Updating Attributes of Azure Secrets
Use the patch /v1/cckm/azure/secrets/{id}
API to update the attributes of a secret. You can modify the attributes and tags of the secret.
Syntax
Here, {id}
is the resource ID of the secret on the CipherTrust Manager.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
attributes | JSON | Attributes to be updated such as exp, enabled, and nbf. Possible options are: • nbf - Activation date for the secret in Unix epoch time format. For example, the corresponding epoch time for September 9, 2022, 5:52:20 AM is 1662702740. • exp - Expiration date for the secret in Unix epoch time format. For example, the corresponding epoch time for September 9, 2022, 5:52:20 AM is 1662702740. • enabled - Specify whether the secret is enabled or disabled (true/false). |
contentType (optional) | string | Update content type for secrets to aid interpretation on retrieval. |
tags | JSON | An optional parameter to add additional information to the secret. The value must be specified as the key-value pair. Refer to the following rules on tag values. |
CCKM allows the following characters in tag values:
Alphanumeric characters
Special characters ** ! @ # $ ) ( { } > < ? + - / [ ] ^ & + = | ~ ` ; . ' _ **
CCKM does not allow colon (:) and percent (%) special characters in tag values.
Example Request
Example Response
The sample output shows that the attributes
and tags
parameters are modified.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.