Related queries and mutations in Agents and deployments. Each has its own section.
Queries
getAllowList (query)
getAllowList is a query in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
Get the list of projects and datasets that are allowed to be fetched from the warehouse.
Arguments
| Argument | Type | Description |
|---|---|---|
resourceUuid | UUID! | The UUID of the warehouse from which to fetch the allowed projects datasets |
projectNames | [String] | The list of project names to filter the allowed datasets from |
first | Int | The number of datasets to return. Defaults to 1000. Default: 1000. |
offset | Int | The offset from the beginning of the list. Defaults to 0. |
Returns
[ProjectAllowType]
Example
query GetAllowList($resourceUuid: UUID!) {
getAllowList(resourceUuid: $resourceUuid) {
projectName
datasets
}
}Types used only by getAllowList
getAllowListProjectAllowType
ProjectAllowTypeObject type.
| Field | Type | Description |
|---|---|---|
projectName | String | Project name |
datasets | [String] | List of allowed datasets in project |
Related types
getAssetCollectionPreferences (query)
getAssetCollectionPreferences is a query in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get asset collection preferences for my account.
Arguments
| Argument | Type | Description |
|---|---|---|
resourceId | UUID | Filter by resource id |
assetType | String | Filter by asset type |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
AssetCollectionPreferencesConnection
Example
query GetAssetCollectionPreferences {
getAssetCollectionPreferences {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
AssetCollectionPreferencesConnection, UUID
getCollectionBlockList (query)
getCollectionBlockList is a query in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get collection rules in my account. Only block rules are returned unless effects is non-empty.
Arguments
| Argument | Type | Description |
|---|---|---|
resourceId | UUID | Filter by resource id |
project | String | DEPRECATED: use parent_scope instead |
parentScope | CollectionBlockListParentScopeInput | The parent scope of target objects. If not provided then all collection blocks for the account will be returned. |
targetObjectTypes | [CollectionPreferenceTargetObjectType] | Only return collection blocks targeting these object types. |
filterType | CollectionPreferenceFilterType | Return only rules belonging to this filter list. When omitted, only metadata rules are returned. |
effects | [CollectionPreferenceEffectType] | Return only rules with these effects. When omitted or empty, only block rules are returned. |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
Example
query GetCollectionBlockList {
getCollectionBlockList {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
CollectionBlockConnection, CollectionBlockListParentScopeInput, CollectionPreferenceEffectType, CollectionPreferenceFilterType, CollectionPreferenceTargetObjectType, UUID
getCollectionDatasetList (query)
getCollectionDatasetList is a query in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get datasets in the account, including blocked datasets and dataset unblocked recently
Arguments
| Argument | Type | Description |
|---|---|---|
resourceId | UUID | Filter by resource id |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
CollectionDataSetConnection
Example
query GetCollectionDatasetList {
getCollectionDatasetList {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Types used only by getCollectionDatasetList
getCollectionDatasetListCollectionDataSet
CollectionDataSetObject type. Data set to collect data.
| Field | Type | Description |
|---|---|---|
resourceId | UUID! | The resource UUID of the dataset. |
project | String! | Top-level object hierarchy e.g. database, catalog, etc. |
dataset | String | Intermediate object hierarchy e.g. schema, database, etc. |
CollectionDataSetConnection
CollectionDataSetConnectionObject type. Datasets to collect data
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [CollectionDataSetEdge]! | Contains the nodes in this connection. |
CollectionDataSetEdge
CollectionDataSetEdgeObject type. A Relay edge containing a CollectionDataSet and its cursor.
| Field | Type | Description |
|---|---|---|
node | CollectionDataSet | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
Related types
getWorkspaceIdsAllowListForPowerBiReportsCollection (query)
getWorkspaceIdsAllowListForPowerBiReportsCollection is a query in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get the list of workspace UUIDs for which metadata collection is allowed on this account. These IDs are used as a pre-scan filter, which is more efficient than the workspace name-based filter.
Arguments
| Argument | Type | Description |
|---|---|---|
connectionUuid | UUID! | The UUID of the connection that handles the Power BI Reports collection. |
Returns
[String]
Example
query GetWorkspaceIdsAllowListForPowerBiReportsCollection($connectionUuid: UUID!) {
getWorkspaceIdsAllowListForPowerBiReportsCollection(connectionUuid: $connectionUuid)
}Related types
getWorkspacesAllowListForPowerBiReportsCollection (query)
getWorkspacesAllowListForPowerBiReportsCollection is a query in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
Get the list of workspaces for which metadata collection is allowed on this account.
Arguments
| Argument | Type | Description |
|---|---|---|
connectionUuid | UUID! | The UUID of the connection that handles the Power BI Reports collection. |
Returns
[String]
Example
query GetWorkspacesAllowListForPowerBiReportsCollection($connectionUuid: UUID!) {
getWorkspacesAllowListForPowerBiReportsCollection(connectionUuid: $connectionUuid)
}Related types
Mutations
addAllowListEntry (mutation)
addAllowListEntry is a mutation in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
Adds a project/dataset pair to the allow list.
Arguments
| Argument | Type | Description |
|---|---|---|
dataset | String! | The dataset to add to the allow list. |
projectName | String! | The project_name to which to add the entry. |
resourceUuid | UUID! | The resource UUID to which to add the entry. |
Returns
AddAllowListEntry
Example
mutation AddAllowListEntry($dataset: String!, $projectName: String!, $resourceUuid: UUID!) {
addAllowListEntry(dataset: $dataset, projectName: $projectName, resourceUuid: $resourceUuid) {
success
projectName
dataset
}
}Types used only by addAllowListEntry
addAllowListEntryAddAllowListEntry
AddAllowListEntryObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the mutation succeeded. |
projectName | String | The project name for which the dataset was added. |
dataset | String | The dataset name that was added. |
Related types
addToCollectionBlockList (mutation)
addToCollectionBlockList is a mutation in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Adds to the list of entities for which metadata collection is not allowed on this account.
Arguments
| Argument | Type | Description |
|---|---|---|
collectionBlocks | [CollectionBlockInput]! | The entries to be added to the collection block list. |
Returns
AddToCollectionBlockList
Example
mutation AddToCollectionBlockList($collectionBlocks: [CollectionBlockInput]!) {
addToCollectionBlockList(collectionBlocks: $collectionBlocks) {
success
}
}Types used only by addToCollectionBlockList
addToCollectionBlockListAddToCollectionBlockList
AddToCollectionBlockListObject type. Adds to the list of entities for which metadata collection is not allowed on this account.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the mutation succeeded. |
Related types
deleteAllowListEntry (mutation)
deleteAllowListEntry is a mutation in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
Deletes a project/dataset pair from the allow list.
Arguments
| Argument | Type | Description |
|---|---|---|
dataset | String! | The dataset to delete from the allow list. |
projectName | String! | The project_name from which to delete the entry. |
resourceUuid | UUID! | The resource UUID from which to delete the entry. |
Returns
DeleteAllowListEntry
Example
mutation DeleteAllowListEntry($dataset: String!, $projectName: String!, $resourceUuid: UUID!) {
deleteAllowListEntry(dataset: $dataset, projectName: $projectName, resourceUuid: $resourceUuid) {
success
projectName
dataset
}
}Types used only by deleteAllowListEntry
deleteAllowListEntryDeleteAllowListEntry
DeleteAllowListEntryObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the mutation succeeded. |
projectName | String | The project_name from which the dataset was deleted |
dataset | String | The dataset which was deleted. |
Related types
deleteAssetCollectionPreferences (mutation)
deleteAssetCollectionPreferences is a mutation in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Deletes rules for collection of a particular asset type.
Arguments
| Argument | Type | Description |
|---|---|---|
assetType | String! | The asset type of the preferences to delete. |
resourceId | UUID! | The resource UUID of the preferences to delete. |
Returns
DeleteAssetCollectionPreferences
Example
mutation DeleteAssetCollectionPreferences($assetType: String!, $resourceId: UUID!) {
deleteAssetCollectionPreferences(assetType: $assetType, resourceId: $resourceId) {
success
resourceId
assetType
}
}Types used only by deleteAssetCollectionPreferences
deleteAssetCollectionPreferencesDeleteAssetCollectionPreferences
DeleteAssetCollectionPreferencesObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the mutation succeeded. |
resourceId | UUID | The resource UUID the preferences were removed from. |
assetType | String | The asset type that the preferences were removed for. |
Related types
modifyCollectionBlockList (mutation)
modifyCollectionBlockList is a mutation in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
For an object type under a parent scope, modify the list of rules used to determine which objects are excluded from metadata collection. Example: To exclude ingestion for the 'analytics' project and all projects that start with 'prod_', make a request with these variables: {
"parentScope": {
"resourceId": "9ed28eb2-6d21-4ad3-9d87-c05a3cb0f7e2"
},
"targetObjectType": "project",
"collectionBlocks": [
{
"resourceId": "9ed28eb2-6d21-4ad3-9d87-c05a3cb0f7e2",
"project": "analytics",
"matchType": "exact_match"
},
{
"resourceId": "9ed28eb2-6d21-4ad3-9d87-c05a3cb0f7e2",
"project": "prod_",
"matchType": "prefix"
}
]
}
Arguments
| Argument | Type | Description |
|---|---|---|
collectionBlocks | [ModifyCollectionBlockListInput]! | The complete list of rules for deciding which objects are excluded from metadata collection |
filterType | CollectionPreferenceFilterType | Which filter list to operate on. Defaults to 'metadata'. The mutation replaces the complete set of rules in this scope for the specified filter_type only; the other filter list is left untouched. Default: "metadata". |
parentScope | CollectionBlockListParentScopeInput! | The direct parent scope of target objects |
targetObjectType | CollectionPreferenceTargetObjectType! | The type of object to apply the rules to |
Returns
Example
mutation ModifyCollectionBlockList($collectionBlocks: [ModifyCollectionBlockListInput]!, $parentScope: CollectionBlockListParentScopeInput!, $targetObjectType: CollectionPreferenceTargetObjectType!) {
modifyCollectionBlockList(collectionBlocks: $collectionBlocks, parentScope: $parentScope, targetObjectType: $targetObjectType) {
id
resourceId
project
dataset
tableName
matchType
targetObjectType
effect
filterType
}
}Types used only by modifyCollectionBlockList
modifyCollectionBlockListModifyCollectionBlockListInput
ModifyCollectionBlockListInputInput object type.
| Field | Type | Description |
|---|---|---|
id | String | ID of the rule. If provided, the rule will be updated instead of created. |
resourceId | UUID! | Warehouse that the collection preference belongs to. |
project | String! | Value used to match against project/database. |
dataset | String | Value used to match against dataset/schema. |
tableName | String | Value used to match against table name. Not supported for data lakes whose metadata comes only from Glue, which applies rules per catalog and database. |
matchType | CollectionPreferenceMatchType! | |
effect | CollectionPreferenceEffectType | Default: "block". |
Related types
CollectionBlock, CollectionBlockListParentScopeInput, CollectionPreferenceEffectType, CollectionPreferenceFilterType, CollectionPreferenceMatchType, CollectionPreferenceTargetObjectType, UUID
removeFromCollectionBlockList (mutation)
removeFromCollectionBlockList is a mutation in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Removes from the list of entities for which metadata collection is not allowed on this account.
Arguments
| Argument | Type | Description |
|---|---|---|
collectionBlocks | [CollectionBlockInput]! | The entries to be removed from the collection block list. |
Returns
RemoveFromCollectionBlockList
Example
mutation RemoveFromCollectionBlockList($collectionBlocks: [CollectionBlockInput]!) {
removeFromCollectionBlockList(collectionBlocks: $collectionBlocks) {
success
}
}Types used only by removeFromCollectionBlockList
removeFromCollectionBlockListRemoveFromCollectionBlockList
RemoveFromCollectionBlockListObject type. Removes from the list of entities for which metadata collection is not allowed on this account.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the mutation succeeded. |
Related types
setAssetCollectionPreferences (mutation)
setAssetCollectionPreferences is a mutation in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Sets rules for collection of a particular asset type.
Arguments
| Argument | Type | Description |
|---|---|---|
assetType | String! | The asset type that these collection preferences will apply to (e.g. 'workbook', 'project' etc.) |
defaultEffect | AssetCollectionRuleEffect | Whether to allow or block assets of this type when no rules match. Default: "allow". |
resourceId | UUID! | The resource UUID that these collection preferences will apply to. |
rules | [AssetCollectionRuleInput] | The set of rules for collection of this asset type. |
Returns
SetAssetCollectionPreferences
Example
mutation SetAssetCollectionPreferences($assetType: String!, $resourceId: UUID!) {
setAssetCollectionPreferences(assetType: $assetType, resourceId: $resourceId) {
success
}
}Types used only by setAssetCollectionPreferences
setAssetCollectionPreferencesAssetCollectionRuleConditionInput
AssetCollectionRuleConditionInputInput object type.
| Field | Type | Description |
|---|---|---|
attributeName | String! | The name of the attribute to match |
value | String! | The value (or pattern) to compare the attribute against |
comparisonType | CollectionPreferenceMatchType | The method for comparing the attribute to the given value |
AssetCollectionRuleInput
AssetCollectionRuleInputInput object type.
| Field | Type | Description |
|---|---|---|
conditions | [AssetCollectionRuleConditionInput] | The set of conditions that need to match in order for this rule to apply |
effect | AssetCollectionRuleEffect | Whether to allow or block the asset when this rule matches. Default: "block". |
SetAssetCollectionPreferences
SetAssetCollectionPreferencesObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the mutation succeeded. |
assetCollectionPreferences | AssetCollectionPreferences | The created or updated asset collection preferences. |
Related types
AssetCollectionPreferences, AssetCollectionRuleEffect, CollectionPreferenceMatchType, UUID
setWorkspacesAllowListForPowerBiReportsCollection (mutation)
setWorkspacesAllowListForPowerBiReportsCollection is a mutation in the Monte Carlo GraphQL API, in Agents and deployments. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
Sets the list of workspaces to allow for collection in BI Reports.
Arguments
| Argument | Type | Description |
|---|---|---|
allowedWorkspaceIds | [String] | Workspace UUIDs to filter by before scanning (pre-scan filter). More efficient than allowed_workspaces as it skips the full workspace fetch. At least one of allowed_workspaces or allowed_workspace_ids must be provided. |
allowedWorkspaces | [String] | Workspace names to filter by after scanning (post-scan filter). At least one of allowed_workspaces or allowed_workspace_ids must be provided. |
connectionUuid | UUID! | The UUID of the connection that handles the Power BI Reports collection. |
Returns
SetWorkspacesAllowListForPowerBiReportsCollection
Example
mutation SetWorkspacesAllowListForPowerBiReportsCollection($connectionUuid: UUID!) {
setWorkspacesAllowListForPowerBiReportsCollection(connectionUuid: $connectionUuid) {
success
}
}Types used only by setWorkspacesAllowListForPowerBiReportsCollection
setWorkspacesAllowListForPowerBiReportsCollectionSetWorkspacesAllowListForPowerBiReportsCollection
SetWorkspacesAllowListForPowerBiReportsCollectionObject type. Set the workspace allowlists for Power BI reports collection. Accepts workspace names (post-scan filter) and/or workspace UUIDs (pre-scan filter). At least one of allowed_workspaces or allowed_workspace_ids must be provided.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the mutation succeeded. |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
