tencent cloud

Secrets Manager

DescribeRotationHistory

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-11-30 19:10:31

1. API Description

Domain name for API request: ssm.intl.tencentcloudapi.com.

This API is used to query the rotation history versions of a secret.
This API is only applicable to cloud product secrets.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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: DescribeRotationHistory.
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

Specifies the name of the credential whose rotation history is to be obtained.

3. Output Parameters

Parameter Name Type Description
VersionIDs Array of String

List of version numbers

TotalCount Integer

Number of version numbers. The maximum number of version numbers that can be displayed to users is 10.

AccountInfoList Array of SecretAccountInfo

Information about the account associated with the secret

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.

4. Example

Example1 Displaying Information About the Credential Rotation Account

Input Example

POST / HTTP/1.1
Host: ssm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRotationHistory
<Common request parameters>

{
    "SecretName": "PGSQL_remark_0714"
}

Output Example

{
    "Response": {
        "AccountInfoList": [
            {
                "AccountName": "remm_SSM_hQ4",
                "Host": [
                    "%"
                ],
                "RotatedTime": "2026-07-14 14:21:52",
                "Version": "SSM_Current"
            }
        ],
        "TotalCount": 0,
        "VersionIDs": [],
        "RequestId": "a3ffde0c-192a-47be-8d7d-53d99fca6ebf"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.
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.AutoRotatedResource Credentials with automatic rotation cannot be updated manually.
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.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백