ALTR Refresh Tag Value Job API

The Refresh Tag Value Job API from ALTR — 2 operation(s) for refresh tag value job.

Documentation

📖
Documentation
https://altrnet.live.altr.com/api/swagger/
📖
APIReference
https://altrnet.live.altr.com/api/swagger/
📖
Authentication
https://raw.githubusercontent.com/api-evangelist/altr/refs/heads/main/authentication/altr-authentication.yml
📖
Documentation
https://api.live.altr.com/v1/unified-policy/docs
📖
APIReference
https://api.live.altr.com/v1/unified-policy/docs
📖
Documentation
https://api.live.altr.com/v1/rbac/api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/rbac/api-docs/index.html
📖
Documentation
https://docs.classification.live.altr.com/v1/docs
📖
APIReference
https://docs.classification.live.altr.com/v1/docs
📖
Documentation
https://api.live.altr.com/v1/tag/auto-tagging-api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/tag/auto-tagging-api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/tag/masking-api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/tag/masking-api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/tag/refresh-api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/tag/refresh-api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/alpha/dbx/tag-policy/docs/index.html
📖
APIReference
https://api.live.altr.com/v1/alpha/dbx/tag-policy/docs/index.html
📖
Documentation
https://api.live.altr.com/v1/dis/swagger/
📖
APIReference
https://api.live.altr.com/v1/dis/swagger/
📖
Documentation
https://api.live.altr.com/v1/snowflake/metadata-api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/snowflake/metadata-api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/query-audits/api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/query-audits/api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/dam/docs
📖
APIReference
https://api.live.altr.com/v1/dam/docs
📖
Documentation
https://docs.dam-alerting.live.altr.com/v1/dam-alerting/docs
📖
APIReference
https://docs.dam-alerting.live.altr.com/v1/dam-alerting/docs
📖
Documentation
https://docs.audit-report.live.altr.com/v1/audit-reports/docs
📖
APIReference
https://docs.audit-report.live.altr.com/v1/audit-reports/docs
📖
Documentation
https://docs.notifications.live.altr.com/v1/notification-integration/docs
📖
APIReference
https://docs.notifications.live.altr.com/v1/notification-integration/docs
📖
Documentation
https://docs.critical.live.altr.com/v2
📖
APIReference
https://docs.critical.live.altr.com/v2
📖
Documentation
https://docs.sc-control.live.altr.com/v1/repo-config-docs
📖
APIReference
https://docs.sc-control.live.altr.com/v1/repo-config-docs
📖
Documentation
https://docs.sc-control.live.altr.com/v1/audits/docs
📖
APIReference
https://docs.sc-control.live.altr.com/v1/audits/docs
📖
Documentation
https://docs.sc-control.live.altr.com/v1/sidecars/telemetry/docs
📖
APIReference
https://docs.sc-control.live.altr.com/v1/sidecars/telemetry/docs
📖
Documentation
https://docs.sc-control.live.altr.com/v1/access-tokens/docs
📖
APIReference
https://docs.sc-control.live.altr.com/v1/access-tokens/docs
📖
Documentation
https://docs.service-user.live.altr.com/v1/docs
📖
APIReference
https://docs.service-user.live.altr.com/v1/docs

Specifications

OpenAPI Specification

altr-refresh-tag-value-job-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: This provides the interface to the tag value refresh jobs.
  title: Snowflake Tag Value Refresh Refresh Tag Value Job API
  contact: {}
  version: 0.1.0
servers:
- url: https://api.live.altr.com/v1/tag/refresh
tags:
- name: Refresh Tag Value Job
paths:
  /:
    post:
      security:
      - BasicAuth: []
      description: This endpoint initiates a tag value refresh job for a specified tag. It checks whether the provided tag exists or not and if the refresh job meets the necessary validation criteria. If all conditions are met, it triggers a refresh job and returns a job reference ID.
      tags:
      - Refresh Tag Value Job
      summary: Initiate a job to refresh a tag's allowed values.
      responses:
        '201':
          description: The job to refresh tag value was initiated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/main.CreateTagValueRefreshJobOutput'
        '400':
          description: The request has failed the validation, or the tag provided in the request does not exist. Please check the request body for errors.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: A job to refresh this tag's value has already been initiated recently. Please try again later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: An internal server error occurred while attempting to initiate the job. Please try again later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/main.CreateTagValueRefreshJobInput'
        description: Details of the refresh job and the tag to be refreshed
        required: true
  /status/{job-reference-id}:
    get:
      security:
      - BasicAuth: []
      description: Get a tag value refresh job status.
      tags:
      - Refresh Tag Value Job
      summary: Get Tag Value Refresh Job Status
      parameters:
      - description: The tag value refresh job reference ID
        name: job-reference-id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/main.GetTagValueRefreshJobStatusOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    main.CreateTagValueRefreshJobOutput:
      description: The response payload for the createTagValueRefresh job. If the job was initiated successfully, it contains the job's reference ID.
      type: object
      properties:
        job_reference_id:
          description: 'The job reference ID for the initiated refresh job


            Example: "a5a295c5-426b-41-1970-01-00-00-00"'
          type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
    tagvaluerefreshjobmanagement.DescribeTagValueRefreshJobError:
      type: object
      properties:
        error_code:
          type: integer
        error_message:
          type: string
        failed_allowed_value:
          type: array
          items:
            type: string
        query_id:
          type: string
    main.CreateTagValueRefreshJobInput:
      description: The payload for creating a new refresh job for a tag's value. Both the TagGroupID and DatabaseID must be provided.
      type: object
      required:
      - database_id
      - tag_group_id
      properties:
        database_id:
          description: 'DatabaseID, the Altr Database ID''s credentials are used to refresh the given tag''s values.

            Note that although the tag does not have to exist in this specified database, the database''s credentials need to have access to the provided tag.


            Required: true

            Example: 1234'
          type: integer
        tag_group_id:
          description: 'TagGroupID, the ALTR tag group ID. This is the ALTR identifier for a snowflake tag.


            Required: true

            Example: "a5a295c5-426b-41bb-85b3-aa0feb8af00b"'
          type: string
    main.GetTagValueRefreshJobStatusOutput:
      type: object
      properties:
        allowed_values_count:
          description: AllowedValuesCount specifies the total count of allowed values.
          type: integer
        database_id:
          description: DatabaseID represents the ALTR ID of the database. This field is optional.
          type: integer
        error:
          description: Error is the error object which will be set if the status of the job is `FAILED`. This field is optional.
          allOf:
          - $ref: '#/components/schemas/tagvaluerefreshjobmanagement.DescribeTagValueRefreshJobError'
        imported_allowed_values_count:
          description: ImportedAllowedValuesCount specifies the count of imported allowed values.
          type: integer
        job_status:
          description: JobStatus represents the status of the refresh job. It could be `RUNNING`, `SUCCEEDED`, or `FAILED`.
          type: string
        tag_group_id:
          description: TagGroupID signifies the ID of the tag group. This field is optional.
          type: string
        tracking_id:
          description: TrackingID is the ID used for tracking the job status. This field is optional.
          type: string
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic