ALTR Snowflake Metadata API API

The Snowflake Metadata API API from ALTR — 13 operation(s) for snowflake metadata api.

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-snowflake-metadata-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: This API provides snowflake object metadata.
  title: Snowflake Metadata Snowflake Metadata API API
  contact: {}
  version: 0.1.0
servers:
- url: https://api.live.altr.com/v1/snowflake/metadata
tags:
- name: Snowflake Metadata API
paths:
  /{databaseID}/accountLocator:
    get:
      security:
      - BasicAuth: []
      description: Get snowflake account locator.
      tags:
      - Snowflake Metadata API
      summary: Get Account Locator.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.AccountLocatorInfo'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/accountRegion:
    get:
      security:
      - BasicAuth: []
      description: Get snowflake account region.
      tags:
      - Snowflake Metadata API
      summary: Get Account Region.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.AccountRegionInfo'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/database/{databaseName}/schema/{schemaName}/table/{tableName}/column/{columnName}:
    get:
      security:
      - BasicAuth: []
      description: Get a column and it's information.
      tags:
      - Snowflake Metadata API
      summary: Get Column in Table.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The name of the database.
        name: databaseName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the schema.
        name: schemaName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the table.
        name: tableName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the column.
        name: columnName
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ColumnInfo'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/database/{databaseName}/schema/{schemaName}/table/{tableName}/columns:
    get:
      security:
      - BasicAuth: []
      description: Get the list of column names and their information.
      tags:
      - Snowflake Metadata API
      summary: List Column Names in Table.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The name of the database.
        name: databaseName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the schema.
        name: schemaName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the table.
        name: tableName
        in: path
        required: true
        schema:
          type: string
      - description: The maximum number of columns to return.
        name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 50
          minimum: 1
      - description: Filter to only column name(s) which contains the given string.
        name: column_name_filter
        in: query
        schema:
          type: string
      - description: The Column Name cursor for the results. Will return column names after this given column name.
        name: column_name_offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ListColumnInfoOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/database/{databaseName}/schema/{schemaName}/tables:
    get:
      security:
      - BasicAuth: []
      description: Get the list of table names and their information.
      tags:
      - Snowflake Metadata API
      summary: List Table Names.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The name of the database.
        name: databaseName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the schema.
        name: schemaName
        in: path
        required: true
        schema:
          type: string
      - description: The maximum number of tables to return.
        name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 50
          minimum: 1
      - description: Filter to only table name(s) which contains the given string.
        name: table_name_filter
        in: query
        schema:
          type: string
      - description: The Table Name cursor for the results. Will return table names after this given table name.
        name: table_name_offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ListTableInfoOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/database/{databaseName}/schema/{schemaName}/tags:
    get:
      security:
      - BasicAuth: []
      description: Get the list of tag names and their information.
      tags:
      - Snowflake Metadata API
      summary: List Tag Names.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The name of the database.
        name: databaseName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the schema.
        name: schemaName
        in: path
        required: true
        schema:
          type: string
      - description: The maximum number of tags to return.
        name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 50
          minimum: 1
      - description: Filter to only tag name(s) which contains the given string.
        name: tag_name_filter
        in: query
        schema:
          type: string
      - description: The Tag Name cursor for the results. Will return tag names after this given tag name.
        name: tag_name_offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ListTagInfoOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/database/{databaseName}/schema/{schemaName}/view/{viewName}/column/{columnName}:
    get:
      security:
      - BasicAuth: []
      description: Get a column and it's information.
      tags:
      - Snowflake Metadata API
      summary: Get Column in View.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The name of the database.
        name: databaseName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the schema.
        name: schemaName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the view.
        name: viewName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the column.
        name: columnName
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ColumnInfo'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/database/{databaseName}/schema/{schemaName}/view/{viewName}/columns:
    get:
      security:
      - BasicAuth: []
      description: Get the list of column names and their information.
      tags:
      - Snowflake Metadata API
      summary: List Column Names in View.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The name of the database.
        name: databaseName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the schema.
        name: schemaName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the view.
        name: viewName
        in: path
        required: true
        schema:
          type: string
      - description: The maximum number of columns to return.
        name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 50
          minimum: 1
      - description: Filter to only column name(s) which contains the given string.
        name: column_name_filter
        in: query
        schema:
          type: string
      - description: The Column Name cursor for the results. Will return column names after this given column name.
        name: column_name_offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ListColumnInfoOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/database/{databaseName}/schema/{schemaName}/views:
    get:
      security:
      - BasicAuth: []
      description: Get the list of view names and their information.
      tags:
      - Snowflake Metadata API
      summary: List View Names.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The name of the database.
        name: databaseName
        in: path
        required: true
        schema:
          type: string
      - description: The name of the schema.
        name: schemaName
        in: path
        required: true
        schema:
          type: string
      - description: The maximum number of views to return.
        name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 50
          minimum: 1
      - description: Filter to only view name(s) which contains the given string.
        name: view_name_filter
        in: query
        schema:
          type: string
      - description: The View Name cursor for the results. Will return view names after this given view name.
        name: view_name_offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ListViewInfoOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/database/{databaseName}/schemas:
    get:
      security:
      - BasicAuth: []
      description: Get the list of schema names and their information.
      tags:
      - Snowflake Metadata API
      summary: List Schema Names.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The name of the database.
        name: databaseName
        in: path
        required: true
        schema:
          type: string
      - description: The maximum number of schemas to return.
        name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 50
          minimum: 1
      - description: Filter to only schema name(s) which contains the given string.
        name: schema_name_filter
        in: query
        schema:
          type: string
      - description: The Schema Name cursor for the results. Will return schema names after this given schema name.
        name: schema_name_offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ListSchemaInfoOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/databases:
    get:
      security:
      - BasicAuth: []
      description: Get the list of database names and their information.
      tags:
      - Snowflake Metadata API
      summary: List Database Names.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The maximum number of databases to return.
        name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 50
          minimum: 1
      - description: Filter to only database name(s) which contains the given string.
        name: database_name_filter
        in: query
        schema:
          type: string
      - description: The Database Name cursor for the results. Will return database names after this given database name.
        name: database_name_offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ListDatabaseInfoOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/organizationName:
    get:
      security:
      - BasicAuth: []
      description: Get the organization name.
      tags:
      - Snowflake Metadata API
      summary: Get the organization name.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.OrganizationNameInfo'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /{databaseID}/roles:
    get:
      security:
      - BasicAuth: []
      description: Get the list of role names and their information.
      tags:
      - Snowflake Metadata API
      summary: List Role Names.
      parameters:
      - description: The ID of a connected database.
        name: databaseID
        in: path
        required: true
        schema:
          type: integer
      - description: The maximum number of roles to return.
        name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 50
          minimum: 1
      - description: Filter to only role name(s) which contains the given string.
        name: role_name_filter
        in: query
        schema:
          type: string
      - description: The Role Name cursor for the results. Will return role names after this given role name.
        name: role_name_offset
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/snowflakemetadata.ListRoleInfoOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
    snowflakemetadata.ViewInfo:
      type: object
      properties:
        view_name:
          description: ViewName represents the true view name
          type: string
          x-order: '0'
        is_secure:
          description: IsSecure represents if the view is of the secure type
          type: boolean
          x-order: '1'
        is_materialized:
          description: IsMaterialized represents if the view is of the materialized type
          type: boolean
          x-order: '2'
    snowflakemetadata.OrganizationNameInfo:
      type: object
      properties:
        organization_name:
          description: OrganizationName is the name of the organization
          type: string
    snowflakemetadata.ListViewInfoOutput:
      type: object
      properties:
        views:
          description: Views represents a list of view information
          type: array
          items:
            $ref: '#/components/schemas/snowflakemetadata.ViewInfo'
    snowflakemetadata.ListTagInfoOutput:
      type: object
      properties:
        tags:
          description: Tags represents a list of tag information
          type: array
          items:
            $ref: '#/components/schemas/snowflakemetadata.TagInfo'
    snowflakemetadata.ColumnOptions:
      type: object
      properties:
        can_fpe:
          description: CanFPE represents if the column can be FPE'd
          type: boolean
        can_tokenize:
          description: CanTokenize represents if the column can be tokenized
          type: boolean
    snowflakemetadata.ListTableInfoOutput:
      type: object
      properties:
        tables:
          description: Tables represents a list of table information
          type: array
          items:
            $ref: '#/components/schemas/snowflakemetadata.TableInfo'
    snowflakemetadata.ListColumnInfoOutput:
      type: object
      properties:
        columns:
          description: Columns represents a list of column information
          type: array
          items:
            $ref: '#/components/schemas/snowflakemetadata.ColumnInfo'
    snowflakemetadata.TagInfo:
      type: object
      properties:
        tag_name:
          description: TagName represents the true tag name
          type: string
          x-order: '0'
        allowed_values:
          description: AllowedValues represents the true tag allowed values
          type: array
          items:
            type: string
          x-order: '1'
    snowflakemetadata.ColumnInfo:
      type: object
      properties:
        column_name:
          description: ColumnName represents the true column name
          type: string
          x-order: '0'
        column_type:
          description: ColumnType represents the true column type information
          allOf:
          - $ref: '#/components/schemas/snowflakemetadata.ColumnType'
          x-order: '1'
        column_options:
          description: ColumnOptions represents metadata relevant to ALTR operations
          allOf:
          - $ref: '#/components/schemas/snowflakemetadata.ColumnOptions'
          x-order: '2'
    snowflakemetadata.SchemaInfo:
      type: object
      properties:
        schema_name:
          description: SchemaName represents the true schema name
          type: string
    snowflakemetadata.AccountLocatorInfo:
      type: object
      properties:
        account_locator:
          description: AccountLocator represents the account locator for the Snowflake account
          type: string
    snowflakemetadata.ColumnType:
      type: object
      properties:
        byte_length:
          description: ByteLength represents the true column byte length
          type: integer
        fixed:
          description: Fixed represents if the column is fixed
          type: boolean
        length:
          description: Length represents the true column length
          type: integer
        nullable:
          description: Nullable represents if the column is nullable
          type: boolean
        precision:
          description: Precision represents the true column precision
          type: integer
        scale:
          description: Scale represents the true column scale
          type: integer
        type:
          description: Type represents the true column type
          type: string
    snowflakemetadata.ListRoleInfoOutput:
      type: object
      properties:
        roles:
          description: Roles represents a list of role information
          type: array
          items:
            $ref: '#/components/schemas/snowflakemetadata.RoleInfo'
    snowflakemetadata.DatabaseInfo:
      type: object
      properties:
        database_name:
          description: DatabaseNames represents the true database name
          type: string
        database_type:
          description: DatabaseType represents the true database kind
          type: string
    snowflakemetadata.ListDatabaseInfoOutput:
      type: object
      properties:
        databases:
          description: Databases represents a list of database information
          type: array
          items:
            $ref: '#/components/schemas/snowflakemetadata.DatabaseInfo'
    snowflakemetadata.RoleInfo:
      type: object
      properties:
        role_name:
          description: RoleName represents the true role name
          type: string
    snowflakemetadata.AccountRegionInfo:
      type: object
      properties:
        account_region:
          description: AccountRegion represents the account region for the Snowflake account
          type: string
    snowflakemetadata.TableInfo:
      type: object
      properties:
        table_name:
          description: TableName represents the true table name
          type: string
        table_type:
          description: TableType represents the true table type
          type: string
    snowflakemetadata.ListSchemaInfoOutput:
      type: object
      properties:
        schemas:
          description: Schemas represents a list of schema information
          type: array
          items:
            $ref: '#/components/schemas/snowflakemetadata.SchemaInfo'
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic