Secrets

Create secret.

It encodes sensitive data and assigns a name.

post/_fabric/{fabric}/_api/kms/secret

Request

Path parameters

fabricstring required

The name of the fabric.

Request body

namestring
valuestring
fileNamestring
keyNamestring

Example request

{
  "name": "secret_name_1",
  "value": "my value"
}

Response

Successfully created the secret.

errorboolean

Flag if there is an error in response. False for this response.

codeinteger

The generated response code. value property always returns as null.

Example response

{
  "code": 200,
  "result": {
    "name": "secret_name_1",
    "tenant": "_mm",
    "fabric": "_system",
    "keyName": "managed_key_1",
    "keyId": "I1tcRHpOqEtvOxw9z90WjQ.EmcLClY",
    "createdAt": 1689020889736,
    "updatedAt": 1689020889736
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.