Get the metadata of a credential entry in Dynatrace with the Credential Vault API by its ID; the username, certificate, or password is never returned.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/v1/entries/{entry-id} |
You use the entry-id path parameter to read the metadata of one credential entry. The response doesn't include the credential itself, such as the username, certificate, or password. To read an entry owned by another user, you need the credential-vault:entries:admin permission.
To execute this request, you need a platform token or OAuth access token with credential-vault:entries:read scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| entry-id | string | The ID of the required credential entry. | path | Required |
| Code | Type | Description |
|---|---|---|
| 200 | Credentials | Success. The response contains the metadata of the credential entry. |
| 4XX | Error | Client side error. |
| 5XX | Error | Server side error. |
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. The element can hold these values
|
| scopes | string[] | The set of scopes of the credentials set. The element can hold these values
|
| type | string | The type of the credentials set. The element can hold these values
|
CredentialAccessData objectThe set of entities allowed to use the credential.
| Element | Type | Description |
|---|---|---|
| id | string | - |
| type | string | -The element can hold these values
|
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:
The element can hold these values
|
| tokenSecretName | string | - |
| type | string | -The element can hold these values
|
| usernameSecretName | string | - |
| vaultUrl | string | - |
ErrorResponseEnvelope objectEncloses the encountered error.
| Element | Type | Description |
|---|---|---|
| error | Error | Basic information of the encountered error. |
ErrorResponse objectBasic information of the encountered error.
| Element | Type | Description |
|---|---|---|
| code | integer | The returned HTTP status code. |
| details | Error | Detailed information of the error. |
| message | string | Description of the encountered error. |
ErrorResponseDetails objectDetailed information of the error.
| Element | Type | Description |
|---|---|---|
| type | string | Defines the actual set of fields depending on the value. See one of the following objects:
The element can hold these values
|
{"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"}
{"error": {"code": 1,"details": {"type": "constraintViolation"},"message": "string"}}