Domain name for API request: ssm.intl.tencentcloudapi.com.
This API is used to delete a specified custom secret version. The deletion takes effect immediately. A version bound to the Stage_Current label cannot be deleted. Migrate the label to another version through UpdateSecret first.
A maximum of 50 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: DeleteSecretVersion. |
| 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 credential name. |
| VersionId | Yes | String | Specifies the version number of the credential to delete under this name. Only custom credential versions can be deleted. If the target version holds the Stage_Current label, FailedOperation is returned. You must first migrate the label to another existing version through UpdateSecret. If there are concurrent writes or rotations and the shared write lock is not obtained, OperationDenied is returned. |
| Parameter Name | Type | Description |
|---|---|---|
| SecretName | String | Secret name. |
| VersionId | String | Secret version number. |
| 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=DeleteSecretVersion
&SecretName=lzctest
&VersionId=v1.0
&<Common request parameters>
{
"Response": {
"RequestId": "c701cf6d-4199-4822-8630-d48ee953f485",
"SecretName": "lzctest",
"VersionId": "v1.0"
}
}
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 | Operation failed. |
| InternalError | Internal error. |
| InvalidParameterValue | Parameter value error. |
| OperationDenied | Operation denied. |
| ResourceNotFound | Resources do not exist. |
| ResourceUnavailable.NotPurchased | The service has not been purchased. |
| ResourceUnavailable.ResourceUninitialized | The credential is not initialized. |
| UnauthorizedOperation | Unauthorized operation. |
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