Releases a pay-as-you-go PolarDB cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DeleteDBCluster |
delete |
*dbcluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CloudProvider |
string |
No |
The cloud service provider to which the instance belongs. |
ENS |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-************** |
| BackupRetentionPolicyOnClusterDeletion |
string |
No |
The data retention policy for backup sets when the cluster is deleted. Valid values:
Valid values:
|
NONE |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. The token is generated by the client and must be unique across different requests. The token can be up to 64 ASCII characters in length and is case-sensitive. |
123e4567-e89b-12d3-a456-426655440000 |
| DryRun |
boolean |
No |
Specifies whether to perform only a dry run. Valid values: true and false. Default value: false. If you set this parameter to true, the system checks your identity and permissions, and validates the request parameters, target cluster, deletion lock, billing method, and limits on associated features. If the dry run succeeds, the system returns the DryRunOperation error code and does not perform actual resource changes or tasks. If the dry run fails, the system returns a corresponding error code, such as OperationDenied.DBClusterDeletionLock. For example, if DryRun is set to true and the checks succeed, the system returns Code=DryRunOperation. If the checks fail, the system returns Code=OperationDenied.DBClusterDeletionLock. A dry run does not cover all quota, dependency, or conflict checks in the actual execution phase. A successful dry run does not guarantee that the subsequent actual execution will succeed. If you set this parameter to false, the system performs the actual operation. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D0CEC6AC-7760-409A-A0D5-E6CD86****** |
Examples
Success response
JSON format
{
"RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD86******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DryRunOperation | The dry run completed. No operation was performed. | |
| 400 | EngineMigration.ActionDisabled | Specified action is disabled while custins is in engine migration. | The specified operation is disabled when custins is being migrated across engines. |
| 400 | InvalidParamBackupRetentionPolicyOnClusterDeletion.Malformed | Invalid BackupRetentionPolicyOnClusterDeletion value. Please retain the backup set. | Invalid BackupRetentionPolicyOnClusterDeletio value. Retain the backup set. |
| 400 | InvalidBackupRetentionPolicyOnClusterDeletion.Malformed | The specified BackupRetentionPolicyOnClusterDeletion is invalid. | The specified BackupRetentionPolicyOnClusterDeletion parameter is invalid. |
| 403 | OperationDenied.DBClusterDeletionLock | The operation is not permitted due to the deletion lock of cluster. | This operation is not supported while a deletion lock exists in the cluster. |
| 403 | OperationDenied.OperateStatus | Specified action is denied by operate status. | The operation is denied because the |
| 403 | OperationDenied.ClusterStatus | The PolarDB cluster is not allowed to release when it is not running. | Stopped PolarDB clusters cannot be released. |
| 403 | OperationDenied.DBClusterPayType | The operation is not permitted due to the pay type of cluster. | This operation is not supported by the billing method of the cluster. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.