Changes a secret

patch/data-services/v1beta1/secrets/{id}

Changes an existing secret using the provided redefinition.

Security
Request
path Parameters
id
required
string <uuid> (Id)

UUID of the secret

header Parameters
x-envoy-external-address
string (X-Envoy-External-Address)
Default:
x-forwarded-for
string (X-Forwarded-For)
Default:
Request Body schema:
required
Any of:

Secret Redefinition

description
string (Description)

Description for the resource

groups
Array of strings (Groups)

Groups to be associated with the resource

required
AzureSPClientSecretRedef (object) or BasicAuthSecretRedef (object) or BearerAuthSecretRedef (object) or CertificateSecretRedef (object) or GenericSecretRedef (object) or JsonWebTokenSecretRedef (object) or OAuthClientSecretRedef (object) or PasswordSecretRedef (object) or PrivateKeySecretRedef (object) or SSHKeypairSecretRedef (object) (Secret)

Secret redefinition

Responses
200

Successful Response

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict

412

Precondition Failed

422

Unprocessable Entity

500

Internal Server Error

503

Service Unavailable

Request samples
{
  • "description": "string",
  • "groups": [
    ],
  • "secret": {
    }
}
Response samples
application/json
{
  • "assignmentsCount": 0,
  • "classifier": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "customerId": "string",
  • "domain": {
    },
  • "generation": 0,
  • "groups": [
    ],
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "label": "string",
  • "name": "string",
  • "resourceUri": "string",
  • "service": "string",
  • "status": "string",
  • "statusUpdatedAt": "2019-08-24T14:15:22Z",
  • "subclassifier": {
    },
  • "type": "string",
  • "updatedAt": "2019-08-24T14:15:22Z"
}