POST
/
api
/
svc
/
v1
/
secret-groups
curl --request POST \
  --url https://{controlPlaneURL}/api/svc/v1/secret-groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "integrationId": "<string>",
  "secrets": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ]
}'
{
  "data": {
    "id": "<string>",
    "fqn": "<string>",
    "name": "<string>",
    "tenantName": "<string>",
    "createdBySubject": {
      "subjectId": "<string>",
      "subjectType": "user",
      "subjectSlug": "<string>",
      "subjectDisplayName": "<string>"
    },
    "associatedSecrets": [
      {
        "id": "<string>",
        "fqn": "<string>",
        "name": "<string>",
        "secretGroupId": "<string>",
        "value": "<string>",
        "createdBySubject": {
          "subjectId": "<string>",
          "subjectType": "user",
          "subjectSlug": "<string>",
          "subjectDisplayName": "<string>"
        },
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "secretVersions": [
          {
            "id": "<string>",
            "fqn": "<string>",
            "value": "<string>",
            "version": 123,
            "secret": {},
            "secretId": "<string>",
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z"
          }
        ],
        "activeDeploymentsCount": 123,
        "createdBy": "<string>"
      }
    ],
    "integrationId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Name of the secret group.

integrationId
string
required

Id of the provider integration.

secrets
object[]
required

The secrets to be associated with the secret group

Response

200
application/json
Returns the created secret group without the associated secrets.
data
object
required

Secret Group