Alation (GraphQL)

Related queries and mutations in Integrations and connections. Each has its own section.

Queries

getAlationIntegrations (query)

getAlationIntegrations is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get the configured Alation integrations

Arguments

ArgumentTypeDescription
integrationIdUUIDFilter by integration ID

Returns

[AlationIntegration!]

Example

query GetAlationIntegrations {
  getAlationIntegrations {
    createdTime
    updatedTime
    uuid
    integrationName
    serverUrl
    username
    userId
    dcProxy
    disableSslVerification
    warehouseDatasourceMapping
    id
    connectionStatus
  }
}

Related types

AlationIntegration, UUID

getAlationTableFlags (query)

getAlationTableFlags is a query in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Gets warning and deprecation flags set in Alation for this table.

Arguments

ArgumentTypeDescription
mconString!The MCON of the table

Returns

[GetAlationTableFlags]

Example

query GetAlationTableFlags($mcon: String!) {
  getAlationTableFlags(mcon: $mcon) {
    flagType
    flagReason
  }
}

Types used only by getAlationTableFlags

GetAlationTableFlags

Object type.

FieldTypeDescription
flagTypeTableFlagType!The type of the flag. Either WARNING or DEPRECATION
flagReasonString!A reason or a description of the flag

Related types

TableFlagType

Mutations

createOrUpdateAlationIntegration (mutation)

createOrUpdateAlationIntegration is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Create or update Alation integration

Arguments

ArgumentTypeDescription
dcProxyBooleanWhether to proxy requests to the Alation instance via the data collector Default: false.
disableSslVerificationBooleanWhether to disable SSL when proxying requests via the data collector Default: false.
integrationNameStringShort text to describe the integration
integrationUuidUUIDThe integration to update
passwordString('The Alation service account password for authentication; if not provided, previous value will be used',)
refreshTokenStringAn Alation service account refresh token; if not provided, previous value will be used. Can be provided instead of username/password.
serverUrlString!The url for your Alation instance
userIdInt('An Alation service account user ID token; if not provided, previous value will be used. Must be provided when using a refresh token instead of username/password.',)
usernameString('The Alation service account username for authentication; if not provided, previous value will be used',)
warehouseDatasourceMappingJSONStringKey-value pairs consisting of MC warehouse UUID (key) to Alation data source ID (value).

Returns

CreateOrUpdateAlationIntegration

Example

mutation CreateOrUpdateAlationIntegration($serverUrl: String!) {
  createOrUpdateAlationIntegration(serverUrl: $serverUrl) {
    alationIntegration {
      createdTime
      updatedTime
      uuid
      integrationName
      serverUrl
      username
      userId
      dcProxy
      disableSslVerification
      warehouseDatasourceMapping
      id
      connectionStatus
    }
  }
}

Types used only by createOrUpdateAlationIntegration

CreateOrUpdateAlationIntegration

Object type. Create or update Alation integration

FieldTypeDescription
alationIntegrationAlationIntegration

Related types

AlationIntegration, JSONString, UUID

createOrUpdateAlationTableFlag (mutation)

createOrUpdateAlationTableFlag is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Create or update Alation flag on a table. The flag could be a warning or a deprecation.

Arguments

ArgumentTypeDescription
flagReasonString!This may be a reason or a description of the flag.Should only be set for DEPRECATION and WARNING.
flagTypeTableFlagType!The type of the flag
mconString!The MCON of the table

Returns

CreateOrUpdateAlationTableFlag

Example

mutation CreateOrUpdateAlationTableFlag($flagReason: String!, $flagType: TableFlagType!, $mcon: String!) {
  createOrUpdateAlationTableFlag(flagReason: $flagReason, flagType: $flagType, mcon: $mcon) {
    alationFlagIds
  }
}

Types used only by createOrUpdateAlationTableFlag

CreateOrUpdateAlationTableFlag

Object type. Create or update Alation flag on a table. The flag could be a warning or a deprecation.

FieldTypeDescription
alationFlagIds[Int]List of IDs of flags created. This list will have more than one entry when multiple tables matched the input full_table_id.

Related types

TableFlagType

deleteAlationIntegration (mutation)

deleteAlationIntegration is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Delete Alation integration

Arguments

ArgumentTypeDescription
integrationUuidUUID!The integration ID

Returns

DeleteAlationIntegration

Example

mutation DeleteAlationIntegration($integrationUuid: UUID!) {
  deleteAlationIntegration(integrationUuid: $integrationUuid) {
    deleted
  }
}

Types used only by deleteAlationIntegration

DeleteAlationIntegration

Object type. Delete Alation integration

FieldTypeDescription
deletedBoolean

Related types

UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.