Domain name for API request: ssm.intl.tencentcloudapi.com.
This API is used to rotate a cloud product secret or a cloud API key pair secret.
This API is only applicable to cloud product secrets in the Enabled state or cloud API key pair secrets in the Enable state. It is not applicable to cloud product secrets or cloud API key pair secrets in other states, or to user-defined secrets.
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: RotateProductSecret. |
| Version | Yes | String | Common Params. The value used for this API: 2019-09-23. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| SecretName | Yes | String | Name of the credential to rotate. |
| Parameter Name | Type | Description |
|---|---|---|
| FlowID | Integer | This field is valid when the secret type is a cloud product secret (that is, SecretType is 1, such as MySQL, Tdsql, and other managed secrets). It returns the ID of the asynchronous rotation task. |
| 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. |
https://ssm.intl.tencentcloudapi.com/?Action=RotateProductSecret
&SecretName=test3-db-secret
&<Common request parameters>
{
"Response": {
"RequestId": "2609a8fd-4584-4f89-98be-8c7ae1b81ef4",
"FlowID": 43416
}
}
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 |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| DryRunOperation | DryRun operation means the request will be successful, but the DryRun parameter is passed. |
| FailedOperation | Operation failed. |
| FailedOperation.AccessKmsError | KMS operation failed. |
| FailedOperation.RotationForbidden | Credential rotation is disabled. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue | Parameter value error. |
| InvalidParameterValue.TagKeysDuplicated | Duplicate tag key. |
| InvalidParameterValue.TagsNotExisted | The tag key or tag value does not exist. |
| LimitExceeded | The quota limit is exceeded. |
| MissingParameter | Missing parameter error. |
| OperationDenied | Operation denied. |
| OperationDenied.AccessKeyOverLimit | The AccessKey quota has been reached. |
| OperationDenied.AutoRotatedResource | Credentials with automatic rotation cannot be updated manually. |
| OperationDenied.UinNotMatch | The key being operated does not match the account. |
| RequestLimitExceeded | The number of requests exceeds the frequency limit. |
| ResourceInUse | The resource is occupied. |
| ResourceInUse.SecretExists | The credential name already exists. |
| ResourceInUse.VersionIdExists | The version number already exists. |
| ResourceInsufficient | Insufficient resources. |
| ResourceNotFound | Resources do not exist. |
| ResourceUnavailable | The resource is unavailable. |
| ResourceUnavailable.NotPurchased | The service has not been purchased. |
| ResourceUnavailable.ResourceDisabled | The credential is disabled. |
| ResourceUnavailable.ResourcePendingDeleted | The credential is in the scheduled deletion state. |
| ResourceUnavailable.ResourceUninitialized | The credential is not initialized. |
| ResourcesSoldOut | Resources have been sold out. |
| UnauthorizedOperation | Unauthorized operation. |
| UnauthorizedOperation.AccessKmsError | Failed to access KMS. |
| UnknownParameter | Unknown parameter error. |
| UnsupportedOperation | The operation is not supported. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback