Update secret rotation policy
The table below lists only the parameters unique to this interface and some common parameters. For more information, see common parameters.
Parameter | Type | Required | Example value | Description |
|---|---|---|---|---|
Action | String | UpdateSecretRotationPolicy | ||
Version | String | yes | 2021-02-18 | API version, value: 2021-02-18. |
SecretName | String | yes | secret-9527 | secret name, length 2 to 128 characters. Valid characters: [a-zA-Z0-9/_+=.@-] |
AutomaticRotation | Boolean | yes | true | Whether to enable automatic rotation, applicable only to IAM|RDS|Redis|ECS type secrets. |
RotationInterval | String | No | 7d | Automatic rotation cycle, valid range: 1 ~ 365 days. |
This interface has no unique return parameters. For more information, see response structure.
GET /?Action=UpdateSecretRotationPolicy&Version=2021-02-18&SecretName=secret-9527&AutomaticRotation=true&RotationInterval=7d HTTP/1.1 Host: kms.cn-beijing.volcengineapi.com X-Date: 20240810T101600Z Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240810/cn-beijing/kms/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f
{ "ResponseMetadata": { "RequestId": "2024081018161620010206223496683E", "Action": "UpdateSecretRotationPolicy", "Version": "2021-02-18", "Service": "kms", "Region": "cn-beijing" }, "Result": {} }
The following table lists error codes related to this interface and business logic. Refer to the Public Error Codes document for public error codes.
Status Code | Error Code | Description |
|---|---|---|
400 | InvalidParameter | |
400 | InvalidSecretType | |
400 | InvalidSecretStatus | |
403 | AccessDenied | |
403 | Reject.Throttling.Action | |
404 | Not Found | |
500 | UndefinedError |