/v1/api/secrets (POST) - BlueCat Edge - Service Point v4.x.x

BlueCat Edge User Guide

Locale
English
Product name
BlueCat Edge
Version
Service Point v4.x.x

Creates a new secret.

POST https://api-<BlueCat.edge.url>/v1/api/secrets
Authorization: Bearer authorization token
{
  "name": "string",
  "data": "string",
  "secretsProfileId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Body parameters
  • name—the name of the secret
  • data—the sensitive data to associate to the secret name.
  • secretsProfileId—the ID of the secrets profile under which the secret will reside.

Successful response

201 CREATED
Location: <the location and UUID of the secret>
Content-Type: Application/JSON
{
    "id": "<UUID of the secret>"
}
Possible error codes:
  • BAD REQUEST - Invalid request
  • NOT FOUND - The secrets profile cannot be found
  • CONFLICT - A secret with the specified name already exists
  • INTERNAL SERVER ERROR - Unexpected error