Deployment and hosting (GraphQL)

Related queries and mutations in Agents and deployments. Each has its own section.

Queries

getDeploymentInfo (query)

getDeploymentInfo 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: Deprecated: Use getDeploymentInfoV2 instead

DEPRECATED. Get the current deployment environment information for the current
authorized user

Returns

DeploymentInfo

Example

query GetDeploymentInfo {
  getDeploymentInfo {
    awsAccountId
    awsRegion
    tenantId
    deploymentType
    integrationGatewayUrl
  }
}

Types used only by getDeploymentInfo

DeploymentInfo

Object type. Deployment environment information

FieldTypeDescription
awsAccountIdString!AWS Account ID
awsRegionString!AWS Region
tenantIdString!Tenant ID
deploymentTypeString!Environment Deployment Type
integrationGatewayUrlString!Integration Gateway URL

getHostingInfo (query)

getHostingInfo 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 current hosting environment information for the current
authorized user

Arguments

ArgumentTypeDescription
envConfigurationAwsEnvConfigurationType of env configuration to get the hosting information for (primary/secondary). If not specified, primary is assumed

Returns

HostingInformation

Example

query GetHostingInfo {
  getHostingInfo {
    availableEnvConfigurations
  }
}

Types used only by getHostingInfo

ActiveNodeDetails

Object type. Active node information

FieldTypeDescription
nameString!Node Name
stackArnString!Stack ARN
uuidUUID!Node UUID
codeVersionString!Code Version
templateVersionString!Template Version
privateCidr[String]!Private CIDR
privateIpAddresses[String]!List of Private IP addresses
AwsEnvConfiguration

Enum type.

ValueDescription
primary
secondary
AwsInformation

Object type. AWS information

FieldTypeDescription
accountIdString!AWS Account ID
regionString!AWS Region
secondaryRegionStringAWS Secondary Region
isSecondaryBoolean!Is this the Secondary Region?
envConfigurationAwsEnvConfiguration!Active AWS Environment Configuration
AwsPrivateLinkDetails

Object type. AWS Private Link information

FieldTypeDescription
accountIdString!AWS Account ID
mcdPrincipalString!MCD Principal
regions[AwsPrivateLinkRegionDetails]!List of AWS Private Link regions
AwsPrivateLinkRegionDetails

Object type. AWS Private Link region information

FieldTypeDescription
regionString!AWS Region
connectionVpcIdString!Connection VPC ID
dataStoreVpcEndpointIdString!Data Store VPC Endpoint ID
agentVpcEndpointIdString!Agent VPC Endpoint ID
AzureInformation

Object type. Azure information

FieldTypeDescription
subscriptionIdString!Azure Subscription ID
subscriptionNameString!Azure Subscription Name
primaryRegionStringAzure Region
secondaryRegionStringAzure Secondary Region
CollectionDetails

Object type. Collection platform information

FieldTypeDescription
awsAccountIdString!AWS Account ID
awsRegionString!AWS Region
privateLinkDetailsPrivateLinkDetailsPrivate Link information
activeNodeDetails[ActiveNodeDetails]List of active nodes
openTelemetryCollectorDetailsOpenTelemetryCollectorDetailsOpenTelemetry collector information
HostingDomainDetails

Object type. Hosting domain information

FieldTypeDescription
uiString!Frontend URL
apiString!GraphQL API URL
integrationsString!Integrations Gateway URL
oauthApiString!OAuth GraphQL API URL
m2mTokenUrlStringOAuth M2M (client-credentials) token URL
m2mInstanceScopeStringOAuth scope clients must request for the global gateway to route to this instance
HostingInformation

Object type. Hosting information

FieldTypeDescription
domainDetailsHostingDomainDetails!Hosting domain information
loginDetailsLoginDetails!Login information
infrastructureDetailsInfrastructureDetails!Infrastructure information
networkDetailsNetworkDetails!Network information
collectionDetailsCollectionDetailsCollection platform information
orchestratorDetailsOrchestratorDetailsOrchestrator connectivity information
availableEnvConfigurations[AwsEnvConfiguration]!List of enabled configurations (primary/secondary)
InfrastructureDetails

Object type. Infrastructure information

FieldTypeDescription
cloudDesignationString!Cloud Designation
tenantIdString!Tenant ID
hostingTypeString!Environment Hosting Type
awsAwsInformation!AWS information
azureAzureInformationAzure information
LoginDetails

Object type. Login information

FieldTypeDescription
ssoSsoDetails!SSO information
NetworkDetails

Object type. Network information

FieldTypeDescription
collectionPublicIpAddresses[String]!List of public IP addresses used by the collection platform
saasPublicIpAddresses[String]!List of public IP addresses used by the SaaS platform
externalWebhookPublicIpAddresses[String]!List of public IP addresses used by the webhooks
dataPlatformPublicIpAddresses[String]!List of public IP addresses used by the data platform
OpenTelemetryCollectorDetails

Object type. OpenTelemetry collector information

FieldTypeDescription
taskRoleArnStringOTEL Collector ECS Task Role ARN
s3VpceIdStringOTEL Collector S3 VPC Endpoint ID
OrchestratorDetails

Object type. Orchestrator connectivity information

FieldTypeDescription
endpointString!Orchestrator endpoint URL
privateLinkEndpointStringOrchestrator Private Link endpoint URL
publicIpAddresses[String]!List of static public IP addresses used by the orchestrator
awsPrivateEndpointServiceNameStringAWS VPC Endpoint Service name for the orchestrator
azureApplicationGatewayResourceIdStringAzure Application Gateway resource ID for Private Link
azureApplicationGatewaySubResourceStringAzure Application Gateway sub-resource for Private Link
PrivateLinkDetails

Object type. Private Link information

FieldTypeDescription
awsAwsPrivateLinkDetails!AWS Private Link information
SsoDetails

Object type. SSO information

FieldTypeDescription
entityIdString!SSO Entity ID
ssoUrlString!ACS endpoint URL / SSO URL

Related types

UUID

getPlatformServices (query)

getPlatformServices 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.

List of platform services linked to the account

Arguments

ArgumentTypeDescription
serviceUuidUUIDUUID of the platform service to return
agentUuidUUIDUUID of the active agent in the platform service to return
deploymentTypeDataCollectorDeploymentTypeExtendedEnumDeployment type of the platform service to return
connectionTypes[ConnectionTypeEnum]Only return platform services containing connections with these types
connectionUuids[UUID]Only return platform services containing connections with these UUIDs
supportsConnectionTypeConnectionTypeEnumOnly return platform services supporting the specified connection type
supportsAgentTypeAgentTypeEnumOnly return platform services supporting the specified agent type
supportsAgentPlatformPlatformTypeEnumOnly return platform services supporting the specified platform type

Returns

[PlatformServiceObject]

Example

query GetPlatformServices {
  getPlatformServices {
    uuid
    name
  }
}

Types used only by getPlatformServices

DataCollectorDeploymentTypeExtendedEnum

Enum type.

ValueDescription
CLOUD_V1
CLOUD_V2_P
CLOUD_V2_M
REMOTE_V1
REMOTE_V1_5
REMOTE_V2_IA
REMOTE_V2_EA
PlatformServiceAgent

Object type. Platform service agent information

FieldTypeDescription
uuidUUIDUUID of the agent
endpointStringAgent endpoint
agentTypeAgentTypeEnumAgent type
platformPlatformTypeEnumAgent platform
createdOnDateTimeAgent creation date
wrapperStringAgent wrapper
lastUpdatedOnDateTimeAgent last update date
versionStringAgent version
wrapperVersionStringAgent wrapper version
enabledBooleanAgent enabled
healthPlatformServiceAgentHealthAgent health. Null for data-store agents, which show no health.
PlatformServiceAgentHealth

Object type. Latest health of a remote agent. Egress agents (Generic, Snowflake) are checked every 5 minutes from the operations they poll for. All other remote agents are checked hourly by pinging them.

FieldTypeDescription
statusPlatformServiceAgentHealthStatus!HEALTHY: reachable and processing. STALLED: connected but not completing operations. DISCONNECTED: not polling, or the last reachability check failed. UNKNOWN: no recent data.
checkedOnDateTimeWhen the operation facts were last refreshed
lastReachableOnDateTimeLast successful reachability check
lastReachabilityCheckedOnDateTimeLast reachability check
lastReachabilityErrorStringError from the last failed reachability check. Requires edit access.
lastPollOnDateTimeLast time the agent polled for operations
lastHeartbeatOnDateTimeLast heartbeat from the agent
lastResultOnDateTimeLast operation result from the agent
lastTimeoutOnDateTimeLast operation that timed out
pendingOperationsIntOperations waiting for the agent
runningOperationsIntOperations the agent is running
oldestPendingAgeSecondsIntAge in seconds of the oldest operation waiting for the agent
completedLastHourIntOperations completed in the last hour
timedOutLastHourIntOperations timed out in the last hour
instanceCountIntRunning agent instances
PlatformServiceAgentHealthStatus

Enum type.

ValueDescription
HEALTHY
STALLED
DISCONNECTED
UNKNOWN
PlatformServiceConnection

Object type. Platform service connection information

FieldTypeDescription
uuidUUIDUUID of the connection
resourceUuidUUIDUUID of the resource containing the connection
nameStringConnection name
connectionTypeConnectionTypeEnumConnection type
subtypeConnectionSubtypeEnumConnection subtype
createdOnDateTimeConnection creation date
identifiersGenericScalarConnection identifiers
integrationTypeIntegrationTypeThe kind of integration this connection's type belongs to
connectionTypeDisplayNameStringCustomer-facing name of the connection type, such as "Snowflake". Null for per-account custom connector types and unknown types.
PlatformServiceDeployment

Object type. Platform service deployment information

FieldTypeDescription
deploymentTypeDataCollectorDeploymentTypeExtendedEnumDeployment type
platformPlatformServicePlatformPlatform information
agentPlatformServiceAgentAgent information
PlatformServiceObject

Object type. Platform service information

FieldTypeDescription
uuidUUIDUUID of the platform service
deploymentPlatformServiceDeploymentDeployment information
connections[PlatformServiceConnection]List of connections
supportStatusPlatformServiceSupportStatusDetailed information about support for the features requested using supports* parameters
nameStringName of the platform service
PlatformServicePlatform

Object type.

FieldTypeDescription
resources[String]Platform resources
ipAddresses[String]Platform IP addresses
dataStoreEncryptionStorageEncryptionTypeType of storage encryption for the data store
createdOnDateTimeService creation date
lastUpdatedOnDateTimeService last update date
assignedOnDateTimeService last update date
codeVersionStringService code version
templateVersionStringService template version
executionRoles[String]Service execution roles
PlatformServiceSupportCode

Enum type.

ValueDescription
SUPPORTEDThe service supports the requested attributes
UPDATE_REQUIREDThe service needs to be updated to support the requested attributes
REMOTE_AGENT_NOT_SUPPORTEDRemote agents not supported by the service
DATA_STORE_NOT_SUPPORTEDData stores not supported by the service
NEW_CONNECTIONS_NOT_SUPPORTEDNew connections not supported by the service
PlatformServiceSupportStatus

Object type. Information about the support for required features (connection type, agent platform, etc.).

FieldTypeDescription
codePlatformServiceSupportCodeSupport code, SUPPORTED indicates the required features are all supported.
detailsGenericScalarAdditional details related to the support status code, such as required minimum version, etc.

Related types

AgentTypeEnum, ConnectionSubtypeEnum, ConnectionTypeEnum, DateTime, GenericScalar, IntegrationType, PlatformTypeEnum, StorageEncryptionType, UUID

Mutations

generateBridgeToken (mutation)

generateBridgeToken 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

Generate a signed JWT for mc-bridge authentication

Returns

BridgeTokenOutput

Example

mutation GenerateBridgeToken {
  generateBridgeToken {
    token
    expiresAt
  }
}

Types used only by generateBridgeToken

BridgeTokenOutput

Object type.

FieldTypeDescription
tokenString!JWT string
expiresAtDateTime!Token expiration timestamp

Related types

DateTime

updatePlatformService (mutation)

updatePlatformService 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

Update platform service attributes.

Arguments

ArgumentTypeDescription
nameStringNew service name
serviceUuidUUID!UUID of the platform service to update

Returns

UpdatePlatformService

Example

mutation UpdatePlatformService($serviceUuid: UUID!) {
  updatePlatformService(serviceUuid: $serviceUuid) {
    ok
  }
}

Types used only by updatePlatformService

UpdatePlatformService

Object type. Update platform service attributes.

FieldTypeDescription
okBooleanBoolean indicating if the operation was successful

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.