Credential vault API - GET all credentials

Lists all credentials for synthetic monitors stored in your environment.

The request produces an application/json payload.

GETSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/credentials
Environment ActiveGateCluster ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/credentials

Authentication

To execute this request, you need an access token with credentialVault.read scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
typestring

Filters the result by the specified credentials type.

  • CERTIFICATE
  • USERNAME_PASSWORD
  • TOKEN
  • SNMPV3
  • AWS_MONITORING_KEY_BASED
  • AWS_MONITORING_ROLE_BASED
queryoptional
namestring

Filters the result by the name. When in quotation marks, whole phrase is taken. Case insensitive.

queryoptional
userstring

Filters credentials accessible to the user (owned by the user or the ones that are accessible for all).

queryoptional
scopestring

Filters credentials with specified scope.

queryoptional
nextPageKeystring

The cursor for the next page of results. You can find it in the nextPageKey field of the previous response.

The first page is always returned if you don't specify the nextPageKey query parameter.

When the nextPageKey is set to obtain subsequent pages, you must omit all other query parameters.

queryoptional
pageSizeinteger

The amount of credentials in a single response payload.

The maximal allowed page size is 500.

If not set, 100 is used.

queryoptional

Response

Response codes

CodeTypeDescription
200CredentialsList

Success

400ErrorEnvelope

Failed. The input is invalid.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The CredentialsList object

A list of credentials sets for Synthetic monitors.

ElementTypeDescription
credentialsCredentialsResponseElement[]

A list of credentials sets for Synthetic monitors.

nextPageKeystring-
pageSizeinteger-
totalCountinteger-

The CredentialsResponseElement object

Metadata of the credentials set.

ElementTypeDescription
allowContextlessRequestsboolean

Allow access without app context, for example, from ad hoc functions in Workflows (requires the APP_ENGINE scope).

allowedEntitiesCredentialAccessData[]

The set of entities allowed to use the credential.

credentialUsageSummaryCredentialUsageHandler[]

The list contains summary data related to the use of credentials.

descriptionstring

A short description of the credentials set.

externalVaultExternalVaultConfig

Configuration for external vault synchronization for username and password credentials.

idstring

The ID of the credentials set.

namestring

The name of the credentials set.

ownerstring

The owner of the credential (user for which used API token was created).

ownerAccessOnlyboolean

Flag indicating that this credential is visible only to the owner.

scopestring

The scope of the credentials set.

  • APP_ENGINE
  • EXTENSION
  • SYNTHETIC
scopesstring[]

The set of scopes of the credentials set.

  • APP_ENGINE
  • EXTENSION
  • SYNTHETIC
typestring

The type of the credentials set.

  • AWS_MONITORING_KEY_BASED
  • AWS_MONITORING_ROLE_BASED
  • CERTIFICATE
  • PUBLIC_CERTIFICATE
  • SNMPV3
  • TOKEN
  • UNKNOWN
  • USERNAME_PASSWORD

The CredentialAccessData object

The set of entities allowed to use the credential.

ElementTypeDescription
idstring-
typestring-
  • APPLICATION
  • UNKNOWN
  • USER

The CredentialUsageHandler object

Keeps information about credential's usage.

ElementTypeDescription
countinteger

The number of uses.

typestring

Type of usage.

The ExternalVaultConfig object

Configuration for external vault synchronization for username and password credentials.

ElementTypeDescription
credentialsUsedForExternalSynchronizationstring[]-
passwordSecretNamestring-
sourceAuthMethodstring

Defines the actual set of fields depending on the value. See one of the following objects:

  • HASHICORP_VAULT_APPROLE -> HashicorpApproleConfig
  • HASHICORP_VAULT_CERTIFICATE -> HashicorpCertificateConfig
  • AZURE_KEY_VAULT_CLIENT_SECRET -> AzureClientSecretConfig
  • CYBERARK_VAULT_USERNAME_PASSWORD -> CyberArkUsernamePasswordConfig
  • CYBERARK_VAULT_ALLOWED_LOCATION -> CyberArkAllowedLocationConfig
  • AZURE_KEY_VAULT_CLIENT_SECRET
  • CYBERARK_VAULT_ALLOWED_LOCATION
  • CYBERARK_VAULT_USERNAME_PASSWORD
  • HASHICORP_VAULT_APPROLE
  • HASHICORP_VAULT_CERTIFICATE
tokenSecretNamestring-
typestring-
  • AZURE_CERTIFICATE_MODEL
  • AZURE_CLIENT_SECRET_MODEL
  • CYBERARK_VAULT_ALLOWED_LOCATION_MODEL
  • CYBERARK_VAULT_USERNAME_PASSWORD_MODEL
  • HASHICORP_APPROLE_MODEL
  • HASHICORP_CERTIFICATE_MODEL
usernameSecretNamestring-
vaultUrlstring-

Response body JSON model

{
"credentials": [
{
"credentialUsageSummary": [
{
"HTTP_MONITOR": 4
}
],
"description": "Sample credentials for demo purposes",
"id": "CREDENTIALS_VAULT-E80203F993472E6D",
"name": "Sample username-password credentials",
"owner": "admin",
"ownerAccessOnly": true,
"scope": "SYNTHETIC",
"type": "USERNAME_PASSWORD"
},
{
"credentialUsageSummary": [],
"description": "Sample credentials for demo purposes",
"id": "CREDENTIALS_VAULT-842DEF439999E15B",
"name": "Sample certificate credentials",
"owner": "John.Doe@domain.com",
"ownerAccessOnly": true,
"scope": "EXTENSION",
"type": "CERTIFICATE"
},
{
"credentialUsageSummary": [
{
"BROWSER_MONITOR": 11,
"HTTP_MONITOR": 4
}
],
"description": "Sample token for demo purposes",
"id": "CREDENTIALS_VAULT-854345639999E15B",
"name": "Sample token credentials",
"owner": "John.Doe@domain.com",
"ownerAccessOnly": true,
"scope": "SYNTHETIC",
"type": "TOKEN"
},
{
"awsPartition": "CHINA",
"description": "Sample AWS credentials for demo purposes",
"id": "CREDENTIALS_VAULT-12ABB17F0D93F8AF",
"name": "Sample AWS key based credentials",
"owner": "John.Doe@domain.com",
"ownerAccessOnly": true,
"scopes": [
"CLOUDS_MONITORING_AUTHENTICATION"
],
"type": "AWS_MONITORING_KEY_BASED"
},
{
"accountID": "123456789012",
"description": "Sample AWS credentials for demo purposes",
"externalID": "21cf07eb-4812-4de7-d5b9-6189c5951ad4",
"iamRole": "Dynatrace_monitoring_role",
"id": "CREDENTIALS_VAULT-08D0C2A011411D64",
"name": "Sample AWS role based credentials",
"owner": "John.Doe@domain.com",
"ownerAccessOnly": true,
"scopes": [
"CLOUDS_MONITORING_AUTHENTICATION"
],
"type": "AWS_MONITORING_ROLE_BASED"
}
]
}