This API is deprecated. Use the Credential vault API from the Environment API instead.
Gets the metadata of the specified set of credentials for synthetic monitors. The credentials set itself (username/certificate and password) is not included in the response.
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/credentials/{id} |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/credentials/{id} |
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.
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string | The Dynatrace entity ID of the required credentials set. | path | required |
Code | Type | Description |
---|---|---|
200 | Credentials | Success. The response contains the metadata of the credentials set. |
CredentialsResponseElement
objectMetadata of the credentials set.
Element | Type | Description |
---|---|---|
allowContextlessRequests | boolean | Allow access without app context, for example, from ad hoc functions in Workflows (requires the APP_ENGINE scope). |
allowedEntities | Credential | The set of entities allowed to use the credential. |
credentialUsageSummary | Credential | The list contains summary data related to the use of credentials. |
description | string | A short description of the credentials set. |
externalVault | External | Configuration for external vault synchronization for username and password credentials. |
id | string | The ID of the credentials set. |
name | string | The name of the credentials set. |
owner | string | The owner of the credential (user for which used API token was created). |
ownerAccessOnly | boolean | Flag indicating that this credential is visible only to the owner. |
scope | string | The scope of the credentials set.
|
scopes | string[] | The set of scopes of the credentials set.
|
type | string | The type of the credentials set.
|
CredentialAccessData
objectThe set of entities allowed to use the credential.
Element | Type | Description |
---|---|---|
id | string | - |
type | string | -
|
CredentialUsageHandler
objectKeeps information about credential's usage.
Element | Type | Description |
---|---|---|
count | integer | The number of uses. |
type | string | Type of usage. |
ExternalVaultConfig
objectConfiguration for external vault synchronization for username and password credentials.
Element | Type | Description |
---|---|---|
credentialsUsedForExternalSynchronization | string[] | - |
passwordSecretName | string | - |
sourceAuthMethod | string | Defines the actual set of fields depending on the value. See one of the following objects:
|
tokenSecretName | string | - |
type | string | -
|
usernameSecretName | string | - |
vaultUrl | string | - |
{"allowContextlessRequests": "false","credentialUsageSummary": [{"BROWSER_MONITOR": 2,"HTTP_MONITOR": 3}],"description": "Sample credentials for demo purposes.","externalVault": {"passwordSecretName": "password","pathToCredentials": "kv/credentials","roleId": "00e4858c-ec33-bc99-4e7e-34de6967de6c","secretId": "CREDENTIALS_VAULT-XXXXXXXXXXXXXXXX","sourceAuthMethod": "HASHICORP_VAULT_APPROLE","usernameSecretName": "username","vaultNamespace": "admin","vaultUrl": "https://vault-cluster.vault.fb17d2fc-be92-4230-afa2-91dbfda3cbad.aws.hashicorp.cloud:8200"},"id": "CREDENTIALS_VAULT-C43F2C2E6395AD23","name": "Sample username-password credentials","owner": "user@domain.com","ownerAccessOnly": true,"scope": "SYNTHETIC","type": "USERNAME_PASSWORD"}
In this example, the request fetches the metadata of the easyTravel credentials set with the ID of CREDENTIALS_VAULT-9415C41E3649FE3C.
The API token is passed in the Authorization header.
curl -X GET \'https://mySampleEnv.live.dynatrace.com/api/config/v1/credentials/CREDENTIALS_VAULT-9415C41E3649FE3C' \-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
https://mySampleEnv.live.dynatrace.com/api/config/v1/credentials/CREDENTIALS_VAULT-9415C41E3649FE3C
{"name": "easyTravel","id": "CREDENTIALS_VAULT-9415C41E3649FE3C","type": "USERNAME_PASSWORD","description": "Credentials for easyTravel test app"}
200