The Synthetic Credential Vault API allows administrators to manage credentials securely. This documentation provides details on how to create, list, update, and upload credentials using the API.

Prerequisites

Ensure that:

  • You have an administrator role to create an API client.
  • API clients have the Manage Credential Vault permission to perform LIST, CREATE, UPDATE, and UPLOAD actions.
  • API clients have the Manage Self Credential permission to view credential values.

Associate a Role

To associate a role with an API client:

  1. Navigate to Settings > Administration > Roles.
  2. Create a custom role.
  3. Associate the role with either Manage Credential Vault permission or Manage Self Credential Permission.
  4. Assign the role to the API client.

Base URL

https://<controller-url>/controller/restui/eumSyntheticCredentialsUiService/
CODE

Create a Credential Vault

Creates a new credential vault from the specified JSON payload. 

Resource URL

POST <controller-url>/controller/restui/eumSyntheticCredentialsUiService/create

Request/Response Format

JSON

Example

This example creates a single key-value pair in the credential vault.

{
    "credentials": [
        {
            "credentialName": "URL",
            "credentialValue": "https//www.appdynamics.com/"
        }
    ]
}
JSON
Status code 204. No response body returned.
JSON

Retrieve all Credentials Key-Value Pairs

This API displays all the available credential key-value pairs.

Resource URL

POST <controller-url>/controller/restui/eumSyntheticCredentialsUiService/data

Response Format

JSON

Example Response

{

  "sortDirection": "ASC",

  "sortColumnName": "KEY",

  "searchString": "",

  "pageOffsetKey": null

}
JSON

Retrieve Credential Key-Value Pair of Specific Applications

This API displays all the credential key-value pairs of the specified applications.

Resource URL

GET <controller-url>/controller/restui/eumSyntheticCredentialsUiService/list/<application-id>

Response Format

JSON

Example Response

{
    "credentialNamesInApp": [
        "url"
    ],
    "credentialNamesNotInApp": [
        "appdymics_secret",
        "github_pass"
    ]
} 
JSON

Update Credential Key-Value Pairs

This API updates the key-value pairs in the credential vault. The version is mandatory and must be incremented with each update request.

Resource URL

PUT <controller-url>/controller/restui/eumSyntheticCredentialsUiService/update

Response Format

JSON

Example

{
    "credentials": [
        {
            "credentialName": "URL",
            "credentialValue": "www.appdynamics.com",
            "appId": 24,
            "version": 4
        }
    ]
}
JSON
Status code 204. No response body returned.
JSON

Upload Credential Key-Value Pairs

This API uploads multiple key-value pairs to the credential vault.

Resource URL

POST <controller-url>/controller/restui/eumSyntheticCredentialsUiService/upload

Response Format

JSON

Example

{
    "credentials": [
        {
            "credentialName": "URL",
            "credentialValue": "www.appdynamics.com"
        },
        {
            "credentialName": "username",
            "credentialValue": "appd_user"
        }
    ]
}
JSON
Status code 204. No response body returned.
JSON