Related queries and mutations in Agents and deployments. Each has its own section.
Queries
getAccountSecret (query)
getAccountSecret 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 an account secret
Arguments
| Argument | Type | Description |
|---|---|---|
name | String! | If the secret name |
reveal | Boolean | If the secret value must be returned |
Returns
Example
query GetAccountSecret($name: String!) {
getAccountSecret(name: $name) {
name
scope
description
expiresAt
value
createdBy
createdAt
updatedBy
lastUpdate
}
}Related types
getAccountSecrets (query)
getAccountSecrets 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.
Returns
Example
query GetAccountSecrets {
getAccountSecrets {
name
scope
description
expiresAt
value
createdBy
createdAt
updatedBy
lastUpdate
}
}Related types
Mutations
createAccountSecret (mutation)
createAccountSecret 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.
Create an account secret
Arguments
| Argument | Type | Description |
|---|---|---|
description | String | The secret description |
expiresAt | DateTime | When does the secret expire. Null if it doesn't expire. |
name | String! | The secret name |
scope | String! | The secret scope |
value | String! | The secret value. |
Returns
CreateAccountSecret
Example
mutation CreateAccountSecret($name: String!, $scope: String!, $value: String!) {
createAccountSecret(name: $name, scope: $scope, value: $value) {
secret {
name
scope
description
expiresAt
value
createdBy
createdAt
updatedBy
lastUpdate
}
}
}Types used only by createAccountSecret
createAccountSecretCreateAccountSecret
CreateAccountSecretObject type. Create an account secret
| Field | Type | Description |
|---|---|---|
secret | AccountSecretOutput | The secret that was created |
Related types
deleteAccountSecret (mutation)
deleteAccountSecret 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.
Delete an account secret
Arguments
| Argument | Type | Description |
|---|---|---|
name | String! | The secret name |
Returns
DeleteAccountSecret
Example
mutation DeleteAccountSecret($name: String!) {
deleteAccountSecret(name: $name) {
deleted
}
}Types used only by deleteAccountSecret
deleteAccountSecretDeleteAccountSecret
DeleteAccountSecretObject type. Delete an account secret
| Field | Type | Description |
|---|---|---|
deleted | Boolean |
updateAccountSecret (mutation)
updateAccountSecret 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.
Update an account secret
Arguments
| Argument | Type | Description |
|---|---|---|
description | String | The secret description |
expiresAt | DateTime | When does the secret expire. Null if it doesn't expire. |
name | String! | The secret name |
scope | String! | The secret scope |
value | String | The secret value. If not provided, the value will not be changed. |
Returns
UpdateAccountSecret
Example
mutation UpdateAccountSecret($name: String!, $scope: String!) {
updateAccountSecret(name: $name, scope: $scope) {
secret {
name
scope
description
expiresAt
value
createdBy
createdAt
updatedBy
lastUpdate
}
}
}Types used only by updateAccountSecret
updateAccountSecretUpdateAccountSecret
UpdateAccountSecretObject type. Update an account secret
| Field | Type | Description |
|---|---|---|
secret | AccountSecretOutput | The secret that was updated |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
