Collection services (GraphQL)

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

Queries

getCaasCollectionNodeParameters (query)

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

Returns the parameters for the collection node associated to the specified service.

Arguments

ArgumentTypeDescription
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

CaasCollectionNodeParameters

Example

query GetCaasCollectionNodeParameters {
  getCaasCollectionNodeParameters {
    parameters
  }
}

Types used only by getCaasCollectionNodeParameters

CaasCollectionNodeParameters

Object type. Node parameters

FieldTypeDescription
parametersGenericScalar!Node parameters

Related types

GenericScalar, UUID

getMigrationTestStatus (query)

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

DC migration status

Arguments

ArgumentTypeDescription
migrationUuidUUID!UUID of the migration to check
dcUuidUUID[Deprecated] Use serviceUuid instead
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

DcMigrationStatusResponse

Example

query GetMigrationTestStatus($migrationUuid: UUID!) {
  getMigrationTestStatus(migrationUuid: $migrationUuid) {
    output
  }
}

Types used only by getMigrationTestStatus

DcMigrationStatusResponse

Object type. DC migration status

FieldTypeDescription
outputGenericScalarOutput from the migration process

Related types

GenericScalar, UUID

getPlatformMigrationStatus (query)

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

Platform migration status

Arguments

ArgumentTypeDescription
migrationUuidUUID!UUID of the migration to check
dcUuidUUID[Deprecated] Use serviceUuid instead
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

PlatformMigrationStatusResponse

Example

query GetPlatformMigrationStatus($migrationUuid: UUID!) {
  getPlatformMigrationStatus(migrationUuid: $migrationUuid) {
    status
    targetDc
    targetNode
    output
  }
}

Types used only by getPlatformMigrationStatus

PlatformMigrationStatusResponse

Object type. DC migration status

FieldTypeDescription
statusString!Description of the migration status for the DC
targetDcStringUUID of the new DC the input DC was migrated to
targetNodeStringID of the node the input DC was migrated to
outputGenericScalarAdditional output from the migration process

Related types

GenericScalar, UUID

getPlatformMigrationTestStatus (query)

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

Platform migration test status

Arguments

ArgumentTypeDescription
migrationUuidUUID!UUID of the migration to check
dcUuidUUID[Deprecated] Use serviceUuid instead
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

PlatformMigrationTestStatusResponse

Example

query GetPlatformMigrationTestStatus($migrationUuid: UUID!) {
  getPlatformMigrationTestStatus(migrationUuid: $migrationUuid) {
    output
  }
}

Types used only by getPlatformMigrationTestStatus

PlatformMigrationTestStatusResponse

Object type. Platform migration test status

FieldTypeDescription
outputGenericScalarOutput from the test migration process

Related types

GenericScalar, UUID

Mutations

addPlatformService (mutation)

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

Adds a new platform service to the account, restricted operation.

Arguments

ArgumentTypeDescription
assignDataStoreBooleanIf True, a data store is assigned to the service Default: true.
assignResourcesBooleanIf False, the service gets its node and data store on its first use. Can't be combined with settingsSourceServiceUuid or assignDataStore false. Default: true.
settingsSourceServiceUuidUUIDOptional platform service to use as the source for settings (concurrency, memory and env vars). If not provided, default settings will be used.

Returns

AddPlatformService

Example

mutation AddPlatformService {
  addPlatformService {
    serviceUuid
  }
}

Types used only by addPlatformService

AddPlatformService

Object type. Adds a new platform service to the account, restricted operation.

FieldTypeDescription
serviceUuidUUIDThe UUID of to the new service

Related types

UUID

caasLinkCollectionResources (mutation)

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

Links a pre-provisioned node and data-store to the specified DC. Only non-active DCs with template_variant=aether are supported.

Arguments

ArgumentTypeDescription
dcUuidUUID[Deprecated] Use serviceUuid instead
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

CaasLinkCollectionResources

Example

mutation CaasLinkCollectionResources {
  caasLinkCollectionResources {
    dc {
      id
      uuid
      name
      apiGatewayId
      kinesisEndpointId
      cloudwatchLogEndpointId
      crossAccountRoleArn
      stackArn
      customerAwsAccountId
      customerAwsRegion
      templateLaunchUrl
      templateProvider
      templateVariant
      templateVersion
      templateParameters
      codeVersion
      kinesisAccessRole
      active
      lastUpdated
      isCustom
    }
  }
}

Types used only by caasLinkCollectionResources

CaasLinkCollectionResources

Object type. Links a pre-provisioned node and data-store to the specified DC. Only non-active DCs with template_variant=aether are supported.

FieldTypeDescription
dcDataCollectorThe data collector that was updated

Related types

DataCollector, UUID

caasUpdateCollectionNodeEnv (mutation)

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

Updates the environment variables for the collection node associated to the specified DC

Arguments

ArgumentTypeDescription
replaceBooleanIf True, the current environment variables will be replaced by the new ones Default: false.
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services
updatesGenericScalar!Dictionary containing the values to update

Returns

CaasUpdateCollectionNodeEnv

Example

mutation CaasUpdateCollectionNodeEnv($updates: GenericScalar!) {
  caasUpdateCollectionNodeEnv(updates: $updates) {
    ok
  }
}

Types used only by caasUpdateCollectionNodeEnv

CaasUpdateCollectionNodeEnv

Object type. Updates the environment variables for the collection node associated to the specified DC

FieldTypeDescription
okBooleanBoolean indicating if the operation was successful

Related types

GenericScalar, UUID

caasUpdateCollectionNodeParameters (mutation)

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

Updates the parameters for the collection node associated to the specified DC

Arguments

ArgumentTypeDescription
dcUuidUUID[Deprecated] Use serviceUuid instead
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services
updatesGenericScalar!Dictionary containing the values to update

Returns

CaasUpdateCollectionNodeParameters

Example

mutation CaasUpdateCollectionNodeParameters($updates: GenericScalar!) {
  caasUpdateCollectionNodeParameters(updates: $updates) {
    ok
  }
}

Types used only by caasUpdateCollectionNodeParameters

CaasUpdateCollectionNodeParameters

Object type. Updates the parameters for the collection node associated to the specified DC

FieldTypeDescription
okBooleanBoolean indicating if the operation was successful

Related types

GenericScalar, UUID

caasUpdateCollectionNodeVersion (mutation)

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

Updates the collection node associated to the specified DC to the specified version.If no version is provided, the node is upgraded to latest version.

Arguments

ArgumentTypeDescription
codeVersionStringOptional version to upgrade to, if not specified the latest released version is used
dcUuidUUID[Deprecated] Use serviceUuid instead
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services
templateVersionStringOptional template version to upgrade to, if not specified and code is not specified either, then the template is also updated to the latest released version

Returns

CaasUpdateCollectionNodeVersion

Example

mutation CaasUpdateCollectionNodeVersion {
  caasUpdateCollectionNodeVersion {
    ok
  }
}

Types used only by caasUpdateCollectionNodeVersion

CaasUpdateCollectionNodeVersion

Object type. Updates the collection node associated to the specified DC to the specified version.If no version is provided, the node is upgraded to latest version.

FieldTypeDescription
okBooleanBoolean indicating if the operation was successful

Related types

UUID

caasUpdateCollectionStorageEncryption (mutation)

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

Status: Experimental

Sets the collection storage encryption

Arguments

ArgumentTypeDescription
encryptionTypeStorageEncryptionTypeType of storage encryption (default: 'AMAZON_S3_SSE') Default: "AMAZON_S3_SSE".
serviceUuidUUID!Platform Service UUID. To disambiguate accounts with multiple services

Returns

CaasUpdateCollectionStorageEncryption

Example

mutation CaasUpdateCollectionStorageEncryption($serviceUuid: UUID!) {
  caasUpdateCollectionStorageEncryption(serviceUuid: $serviceUuid) {
    ok
  }
}

Types used only by caasUpdateCollectionStorageEncryption

CaasUpdateCollectionStorageEncryption

Object type. Sets the collection storage encryption

FieldTypeDescription
okBooleanBoolean indicating if the operation was successful

Related types

StorageEncryptionType, UUID

caasUpdateCollectionStorageLink (mutation)

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

Status: Experimental

If there's an agent associated to the service, it makes sure the link to the CaaS storage is deleted.

Arguments

ArgumentTypeDescription
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

CaasUpdateCollectionStorageLink

Example

mutation CaasUpdateCollectionStorageLink {
  caasUpdateCollectionStorageLink {
    ok
  }
}

Types used only by caasUpdateCollectionStorageLink

CaasUpdateCollectionStorageLink

Object type. If there's an agent associated to the service, it makes sure the link to the CaaS storage is deleted.

FieldTypeDescription
okBooleanBoolean indicating if the operation was successful

Related types

UUID

caasUpdateCollectionStorageParameters (mutation)

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

Updates the parameters for the collection storage associated to the specified DC

Arguments

ArgumentTypeDescription
dcUuidUUID[Deprecated] Use serviceUuid instead
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services
updatesGenericScalar!JSON string with a dictionary containing the values to update

Returns

CaasUpdateCollectionStorageParameters

Example

mutation CaasUpdateCollectionStorageParameters($updates: GenericScalar!) {
  caasUpdateCollectionStorageParameters(updates: $updates) {
    ok
  }
}

Types used only by caasUpdateCollectionStorageParameters

CaasUpdateCollectionStorageParameters

Object type. Updates the parameters for the collection storage associated to the specified DC

FieldTypeDescription
okBooleanBoolean indicating if the operation was successful

Related types

GenericScalar, UUID

caasUpdateCollectionStorageVersion (mutation)

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

Status: Experimental

Updates the collection storage template version associated to a DC.

Arguments

ArgumentTypeDescription
serviceUuidUUID!Platform Service UUID. To disambiguate accounts with multiple services
templateVersionInt!Template version to upgrade to

Returns

CaasUpdateCollectionStorageVersion

Example

mutation CaasUpdateCollectionStorageVersion($serviceUuid: UUID!, $templateVersion: Int!) {
  caasUpdateCollectionStorageVersion(serviceUuid: $serviceUuid, templateVersion: $templateVersion) {
    ok
  }
}

Types used only by caasUpdateCollectionStorageVersion

CaasUpdateCollectionStorageVersion

Object type. Updates the collection storage template version associated to the specified DC.

FieldTypeDescription
okBooleanBoolean indicating if the operation was successful

Related types

UUID

connectPlatformServiceToExistingBucket (mutation)

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

Status: Experimental

Connects a platform service to an existing bucket, creating a new data store. The bucket must be updated to allow access to the execution roles used by the node. Use getPlatformServiceExecutionRoles to get the list of roles to enable.

Arguments

ArgumentTypeDescription
bucketNameString!Name of the bucket to connect to.
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

ConnectPlatformServiceToExistingBucket

Example

mutation ConnectPlatformServiceToExistingBucket($bucketName: String!) {
  connectPlatformServiceToExistingBucket(bucketName: $bucketName) {
    dataStoreId
  }
}

Types used only by connectPlatformServiceToExistingBucket

ConnectPlatformServiceToExistingBucket

Object type.

FieldTypeDescription
dataStoreIdUUIDThe UUID assigned to the data store created from the existing bucket.

Related types

UUID

connectPlatformServiceToLegacyBucket (mutation)

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

Status: Experimental

Connects a platform service to the bucket used by a legacy DC in the same account.

Arguments

ArgumentTypeDescription
sourceServiceUuidUUID!Source Platform Service UUID.
targetServiceUuidUUID!Target Platform Service UUID.

Returns

ConnectPlatformServiceToLegacyBucket

Example

mutation ConnectPlatformServiceToLegacyBucket($sourceServiceUuid: UUID!, $targetServiceUuid: UUID!) {
  connectPlatformServiceToLegacyBucket(sourceServiceUuid: $sourceServiceUuid, targetServiceUuid: $targetServiceUuid) {
    dc {
      id
      uuid
      name
      apiGatewayId
      kinesisEndpointId
      cloudwatchLogEndpointId
      crossAccountRoleArn
      stackArn
      customerAwsAccountId
      customerAwsRegion
      templateLaunchUrl
      templateProvider
      templateVariant
      templateVersion
      templateParameters
      codeVersion
      kinesisAccessRole
      active
      lastUpdated
      isCustom
    }
  }
}

Types used only by connectPlatformServiceToLegacyBucket

ConnectPlatformServiceToLegacyBucket

Object type.

FieldTypeDescription
dcDataCollectorThe data collector that was updated

Related types

DataCollector, UUID

connectPlatformToExistingAgent (mutation)

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

Status: Experimental

Connects a platform service to an existing agent, linked to another service in the same account.

Arguments

ArgumentTypeDescription
sourceServiceUuidUUID!Source Platform Service UUID.
targetServiceUuidUUID!Target Platform Service UUID.

Returns

ConnectPlatformServiceToExistingAgent

Example

mutation ConnectPlatformToExistingAgent($sourceServiceUuid: UUID!, $targetServiceUuid: UUID!) {
  connectPlatformToExistingAgent(sourceServiceUuid: $sourceServiceUuid, targetServiceUuid: $targetServiceUuid) {
    agentId
  }
}

Types used only by connectPlatformToExistingAgent

ConnectPlatformServiceToExistingAgent

Object type.

FieldTypeDescription
agentIdUUIDThe UUID assigned to the new agent.

Related types

UUID

restoreCollectionStorage (mutation)

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

Status: Experimental

Associates a new built-in collection storage to the specified service if no other storage or agent is associated.

Arguments

ArgumentTypeDescription
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

RestoreCollectionStorage

Example

mutation RestoreCollectionStorage {
  restoreCollectionStorage {
    storage {
      id
      status
      stackArn
      assignedOn
      resources
    }
  }
}

Types used only by restoreCollectionStorage

RestoreCollectionStorage

Object type.

FieldTypeDescription
storageCollectionStorageThe storage that was assigned

Related types

CollectionStorage, UUID

triggerMigrationTest (mutation)

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

Triggers the DC migration test operation that checks if all connections in DC can be migrated to target_dc. Validations are executed in background, you can check the progress using getMigrationTestStatus.

Arguments

ArgumentTypeDescription
overridesGenericScalarDictionary containing properties to override per connection. The key must be the connection UUID and the value a dictionary including new values for the connection properties, like 'host'.
resourceUuids[UUID]List of resource UUIDs to test for migration. By default all resources will be tested.
runAllValidationsBooleanIf True, all validations will be run, otherwise only the ones marked as prerequisite will be executed. Default: false.
sourceDcUuidUUID[Deprecated] Use sourceServiceUuid instead
sourceServiceUuidUUIDSource Platform Service UUID.
targetDcUuidUUID[Deprecated] Use targetServiceUuid instead
targetServiceUuidUUIDTarget Platform Service UUID.

Returns

TriggerMigrationTest

Example

mutation TriggerMigrationTest {
  triggerMigrationTest {
    migrationUuid
  }
}

Types used only by triggerMigrationTest

TriggerMigrationTest

Object type. Triggers the DC migration test operation that checks if all connections in DC can be migrated to target_dc. Validations are executed in background, you can check the progress using getMigrationTestStatus.

FieldTypeDescription
migrationUuidUUIDUUID assigned to the operation, used to check status

Related types

GenericScalar, UUID

triggerPlatformMigration (mutation)

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

Triggers the platform migration for a given DC in background, dryRun can be used to run validations without performing the migration.

Arguments

ArgumentTypeDescription
dcUuidUUID[Deprecated] Use serviceUuid instead
dryRunBooleanRuns only validations without performing the migration when True Default: true.
rollbackBooleanWhether to rollback the migration if validation before migration fails. This will delete the DC and CaaS node created to perform the migration. Default: true.
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

TriggerPlatformMigration

Example

mutation TriggerPlatformMigration {
  triggerPlatformMigration {
    migrationUuid
  }
}

Types used only by triggerPlatformMigration

TriggerPlatformMigration

Object type. Triggers the platform migration for a given DC in background, dryRun can be used to run validations without performing the migration.

FieldTypeDescription
migrationUuidUUIDUUID assigned to the operation, used to check status

Related types

UUID

triggerPlatformMigrationTest (mutation)

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

Triggers a platform migration test for a given DC in background, use getPlatformMigrationTestStatus to get results.

Arguments

ArgumentTypeDescription
dcUuidUUID[Deprecated] Use serviceUuid instead
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

TriggerPlatformMigrationTest

Example

mutation TriggerPlatformMigrationTest {
  triggerPlatformMigrationTest {
    migrationUuid
  }
}

Types used only by triggerPlatformMigrationTest

TriggerPlatformMigrationTest

Object type. Triggers a platform migration test for a given DC in background, use getPlatformMigrationTestStatus to get results.

FieldTypeDescription
migrationUuidUUIDUUID assigned to the operation, used to check status

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.