Adds a secret

post/data-services/v1beta1/secrets

Adds a new secret using the provided specification.

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

Assigned Secret Specification

required
Array of objects (Assignees) <= 120 items
description
string (Description)

Description for the resource

groups
Array of strings (Groups)

Groups to be associated with the resource

label
string (Label)

Consumer-defined label for the resource

lifecycleEventKey
string (Lifecycleeventkey)

Key for resource lifecycle event messages

name
required
string (Name)

Name of the resource

required
AzureSPClientSecretDef (object) or BasicAuthSecretDef (object) or BearerAuthSecretDef (object) or CertificateSecretDef (object) or GenericSecretDef (object) or JsonWebTokenSecretDef (object) or OAuthClientSecretDef (object) or PasswordSecretDef (object) or PrivateKeySecretDef (object) or SSHKeypairSecretDef (object) (Secret)

Secret definition

service
required
string (Service)

Name of the service originating the resource

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
application/json
{
  • "assignees": [
    ],
  • "description": "string",
  • "groups": [
    ],
  • "label": "string",
  • "lifecycleEventKey": "string",
  • "name": "string",
  • "secret": {
    },
  • "service": "string"
}
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"
}