All Products
Search
Document Center

Database Backup:DeleteSandboxInstance

Last Updated:May 23, 2024

Releases a sandbox instance.

Operation description

This operation is available only for the Database Backup (DBS) API of the 2021-01-01 version.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dbs:DeleteSandboxInstanceWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
BackupPlanIdstringYes

The ID of the backup schedule. You can call the DescribeBackupPlanList operation to query the ID of the backup schedule.

Note If your instance is an ApsaraDB RDS for MySQL instance, you can configure automatic access to a data source to automatically add the instance to DBS and obtain the ID of the backup schedule.
1hxxxx8xxxxxa
InstanceIdstringYes

The ID of the sandbox instance. You can call the DescribeSandboxInstances operation to query the ID of the sandbox instance.

1jxxxxnxxx1xc

Response parameters

ParameterTypeDescriptionExample
object
Datastring

The returned data.

operation forbidden due to sandbox is creating.
RequestIdstring

The ID of the request.

4F1888AC-1138-4995-B9FE-D2734F61C058
ErrCodestring

The error code returned if the request failed.

Param.NotFound
Successstring

Indicates whether the request was successful.

true
ErrMessagestring

The error message returned if the request failed.

The specified parameter %s value is not valid.
Codestring

The error code returned if the request failed.

Param.NotFound
Messagestring

The error message returned if the request failed.

The specified parameter %s value is not valid.

Examples

Sample success responses

JSONformat

{
  "Data": "operation forbidden due to sandbox is creating.",
  "RequestId": "4F1888AC-1138-4995-B9FE-D2734F61C058",
  "ErrCode": "Param.NotFound",
  "Success": "true",
  "ErrMessage": "The specified parameter %s value is not valid.",
  "Code": "Param.NotFound",
  "Message": "The specified parameter %s value is not valid."
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-08-18The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ZoneId
Error codeError messageDescription
Operation.DeniedByJobStatusoperation forbidden due to sandbox is creatingThe error message returned because the sandbox instance is being created and cannot be released. Release the sandbox instance when it is running.