Domain name for API request: kms.intl.tencentcloudapi.com.
Rotate the designated customer master key immediately. You can call DescribeKey to return the last rotation time and the next rotation time, and determine whether the rotation is successful.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: RotateKey. |
| Version | Yes | String | Common Params. The value used for this API: 2019-01-18. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| KeyId | Yes | String | Globally unique ID of the CMK. |
| MemberAccount | No | MemberAccount | Member account information for multi-account scenarios |
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Task ID used to identify this rotation. You can call DescribeKey to return the last rotation time and next rotation time, and determine whether the rotation is successful. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Rotate key immediately
POST / HTTP/1.1
Host: kms.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: RotateKey
<Common request parameters>
{
"KeyId": "6ce625e3-01a4-11f1-9481-525400faed4b"
}
{
"Response": {
"TaskId": "3027e0ed-28f1-11f1-b397-525400796650",
"RequestId": "a09e3218-fb08-4560-8377-189e1b791032"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation.RotateTaskRunning | Existing ongoing rotation tasks |
| InternalError | Internal error. |
| InvalidParameter | Invalid parameter. |
| InvalidParameterValue.InvalidKeyId | Invalid KeyId. |
| RequestLimitExceeded.RotateRateLimited | Rotation operation triggers frequency limit, default can only rotate once within 24 hours. |
| ResourceUnavailable.CmkNotFound | The CMK does not exist. |
| ResourceUnavailable.CmkStateNotSupport | This operation cannot be performed under the current CMK status. |
| UnauthorizedOperation | Unauthorized operation. |
| UnsupportedOperation.RotateNotSupported | Rotation not supported (rotation not enabled, external key, replica key) |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários