Creates a new secrets profile.
POST https://api-<BlueCat.edge.url>/v1/api/secretsProfiles
Authorization: Bearer authorization token
Content-Type: Application/JSON
{
"name": "string",
"secrets": [
{
"name": "string",
"data": "@53Cr3T Pa55w0rd@@"
}
]
}
Body parameters
- name—the name of the secrets profile
- secrets—the secrets to be added tot he secrets profile. The secrets
includes the following:
- name— the name of the secret. This name will be used in fields where the associated sensitive data is required.
- data—enter the sensitive data to associate to the secrets
name.Attention: Once you have created secrets, the actual value of the secrets will not be returned when retrieving secrets or secret profiles using the GET APIs.
Successful response
201 CREATED
Location: <the location and UUID of the secrets profile>
Content-Type: Application/JSON
{
"id": "<UUID of the secrets profile>"
}
Possible error codes:
- BAD REQUEST - Invalid request
- CONFLICT - A secrets profile with the specified name already exists
- INTERNAL SERVER ERROR - Unexpected error