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
| Argument | Type | Description |
|---|---|---|
mcon | String! | 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
getAssetFederationLinksAssetFederationLinksOutput
AssetFederationLinksOutputObject type. An asset's federation linkage in both directions (cross-pointers): the source it references, and the references that point at it.
| Field | Type | Description |
|---|---|---|
referencesSource | LinkedAssetOutput | This 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
LinkKindEnum type.
| Value | Description |
|---|---|
IDENTITY | |
REPLICA |
LinkedAssetOutput
LinkedAssetOutputObject type. A federated asset link: a referencing asset (reference_mcon) and the native source asset it resolves to (source_mcon).
| Field | Type | Description |
|---|---|---|
id | ID! | Stable identifier for the asset link |
referenceMcon | String! | The referencing asset's MCON |
sourceMcon | String | The resolved native source asset's MCON; null when unresolved |
linkKind | LinkKind! | identity | replica |
status | LinkResolutionStatus! | unresolved | resolved | ambiguous |
sourceAlias | String! | The source alias of the parent connection link |
lastSeenAt | DateTime | When 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
| Argument | Type | Description |
|---|---|---|
warehouseUuid | UUID! | The source warehouse UUID |
Returns
Example
query GetFederationReferences($warehouseUuid: UUID!) {
getFederationReferences(warehouseUuid: $warehouseUuid) {
id
referenceResourceUuid
referenceResourceType
sourceAlias
resolutionStatus
resolutionMethod
observedEndpoint
sourceResourceUuid
sourceResourceType
connectorType
connectionName
assetCount
lastSeenAt
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
warehouseUuid | UUID! | The warehouse UUID |
Returns
Example
query GetFederationSources($warehouseUuid: UUID!) {
getFederationSources(warehouseUuid: $warehouseUuid) {
id
referenceResourceUuid
referenceResourceType
sourceAlias
resolutionStatus
resolutionMethod
observedEndpoint
sourceResourceUuid
sourceResourceType
connectorType
connectionName
assetCount
lastSeenAt
}
}Related types
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
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
mapFederationSourceMapFederationSource
MapFederationSourceObject type.
| Field | Type | Description |
|---|---|---|
federationSource | FederationSourceOutput | The source, now resolved to the chosen resource |
Related types
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
| Argument | Type | Description |
|---|---|---|
sourceAlias | String! | The source's alias (its name inside the reference) |
warehouseUuid | UUID! | 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
unmapFederationSourceUnmapFederationSource
UnmapFederationSourceObject type.
| Field | Type | Description |
|---|---|---|
federationSource | FederationSourceOutput | The source, reverted to unresolved |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
