Federation (GraphQL)

Related queries and mutations in Users, accounts and access. Each has its own section.

Queries

getAssetFederationLinks (query)

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

Status: Experimental

Federation linkage for an asset (both directions): the source it references, and the references that point at it.

Arguments

ArgumentTypeDescription
mconString!The asset MCON

Returns

AssetFederationLinksOutput

Example

query GetAssetFederationLinks($mcon: String!) {
  getAssetFederationLinks(mcon: $mcon) {
    referencesSource {
      id
      referenceMcon
      sourceMcon
      linkKind
      status
      sourceAlias
      lastSeenAt
    }
  }
}

Types used only by getAssetFederationLinks

AssetFederationLinksOutput

Object type. An asset's federation linkage in both directions (cross-pointers): the source it references, and the references that point at it.

FieldTypeDescription
referencesSourceLinkedAssetOutputThis asset's link when it is a foreign reference; null if it isn't one
referencedBy[LinkedAssetOutput!]Links where this asset is the native source
LinkKind

Enum type.

ValueDescription
IDENTITY
REPLICA
LinkedAssetOutput

Object type. A federated asset link: a referencing asset (reference_mcon) and the native source asset it resolves to (source_mcon).

FieldTypeDescription
idID!Stable identifier for the asset link
referenceMconString!The referencing asset's MCON
sourceMconStringThe resolved native source asset's MCON; null when unresolved
linkKindLinkKind!identity | replica
statusLinkResolutionStatus!unresolved | resolved | ambiguous
sourceAliasString!The source alias of the parent connection link
lastSeenAtDateTimeWhen this asset link was last observed

Related types

DateTime, LinkResolutionStatus

getFederationReferences (query)

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

Status: Experimental

List the federation links that reference this warehouse as their native source (the reverse of getFederationSources — other integrations that point at it). Backs the source-side 'Referenced by' surface; resolved links only.

Arguments

ArgumentTypeDescription
warehouseUuidUUID!The source warehouse UUID

Returns

[FederationSourceOutput!]

Example

query GetFederationReferences($warehouseUuid: UUID!) {
  getFederationReferences(warehouseUuid: $warehouseUuid) {
    id
    referenceResourceUuid
    referenceResourceType
    sourceAlias
    resolutionStatus
    resolutionMethod
    observedEndpoint
    sourceResourceUuid
    sourceResourceType
    connectorType
    connectionName
    assetCount
    lastSeenAt
  }
}

Related types

FederationSourceOutput, UUID

getFederationSources (query)

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

Status: Experimental

List the federated sources observed on a warehouse (the Federation sources table), including unresolved/ambiguous ones.

Arguments

ArgumentTypeDescription
warehouseUuidUUID!The warehouse UUID

Returns

[FederationSourceOutput!]

Example

query GetFederationSources($warehouseUuid: UUID!) {
  getFederationSources(warehouseUuid: $warehouseUuid) {
    id
    referenceResourceUuid
    referenceResourceType
    sourceAlias
    resolutionStatus
    resolutionMethod
    observedEndpoint
    sourceResourceUuid
    sourceResourceType
    connectorType
    connectionName
    assetCount
    lastSeenAt
  }
}

Related types

FederationSourceOutput, UUID

Mutations

mapFederationSource (mutation)

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

Status: Experimental

Force-match a federated source to a chosen native source resource (Map to existing / Choose match). Authoritative and reversible.

Arguments

ArgumentTypeDescription
sourceAliasString!The source's alias (its name inside the reference)
sourceResourceTypeString!Type of the native source resource
sourceResourceUuidUUID!The native source resource to bind this source to
warehouseUuidUUID!The warehouse the source was observed on

Returns

MapFederationSource

Example

mutation MapFederationSource($sourceAlias: String!, $sourceResourceType: String!, $sourceResourceUuid: UUID!, $warehouseUuid: UUID!) {
  mapFederationSource(sourceAlias: $sourceAlias, sourceResourceType: $sourceResourceType, sourceResourceUuid: $sourceResourceUuid, warehouseUuid: $warehouseUuid) {
    federationSource {
      id
      referenceResourceUuid
      referenceResourceType
      sourceAlias
      resolutionStatus
      resolutionMethod
      observedEndpoint
      sourceResourceUuid
      sourceResourceType
      connectorType
      connectionName
      assetCount
      lastSeenAt
    }
  }
}

Types used only by mapFederationSource

MapFederationSource

Object type.

FieldTypeDescription
federationSourceFederationSourceOutputThe source, now resolved to the chosen resource

Related types

FederationSourceOutput, UUID

unmapFederationSource (mutation)

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

Status: Experimental

Reverse a force-match: revert the source to unresolved so it re-resolves automatically on the next collection.

Arguments

ArgumentTypeDescription
sourceAliasString!The source's alias (its name inside the reference)
warehouseUuidUUID!The warehouse the source was observed on

Returns

UnmapFederationSource

Example

mutation UnmapFederationSource($sourceAlias: String!, $warehouseUuid: UUID!) {
  unmapFederationSource(sourceAlias: $sourceAlias, warehouseUuid: $warehouseUuid) {
    federationSource {
      id
      referenceResourceUuid
      referenceResourceType
      sourceAlias
      resolutionStatus
      resolutionMethod
      observedEndpoint
      sourceResourceUuid
      sourceResourceType
      connectorType
      connectionName
      assetCount
      lastSeenAt
    }
  }
}

Types used only by unmapFederationSource

UnmapFederationSource

Object type.

FieldTypeDescription
federationSourceFederationSourceOutputThe source, reverted to unresolved

Related types

FederationSourceOutput, UUID

Source: The GraphQL API reference

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