Updated on 2024-11-01 GMT+08:00

Deleting an Audit Instance

Function

This operation can be performed only when the pay-per-use instance has no tasks or the yearly/monthly instance is faulty.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1/{project_id}/dbss/audit/instances

Table 1 URI parameter

Parameter

Mandatory

Parameter Type

Description

project_id

Yes

String

Project ID.

Request Parameter

Table 2 Request header parameter

Parameter

Mandatory

Parameter Type

Description

X-Auth-Token

Yes

String

User token. The token can be queried by calling the IAM API. (The token is the value of X-Subject-Token in the response header.)

Table 3 Request body parameter

Parameter

Mandatory

Parameter Type

Description

id

Yes

String

Instance ID. You can obtain the value from the ID field in the API for querying the instance list.

delete_publicip

No

Boolean

Whether to delete the EIP

delete_volume

No

Boolean

Whether to delete the disk

Response Parameters

Status code: 200

Table 4 Response body parameter

Parameter

Parameter Type

Description

result

String

Response status

Status code: 400

Table 5 Response body parameter

Parameter

Parameter Type

Description

error

Object

Error message.

Table 6 ErrorDetail

Parameter

Parameter Type

Description

error_code

String

Error code

error_msg

String

Error message

Status code: 403

Table 7 Response body parameter

Parameter

Parameter Type

Description

error

Object

Error message.

Table 8 ErrorDetail

Parameter

Parameter Type

Description

error_code

String

Error code

error_msg

String

Error message

Status code: 500

Table 9 Response body parameters

Parameter

Parameter Type

Description

error

Object

Error message.

Table 10 ErrorDetail

Parameter

Parameter Type

Description

error_code

String

Error code

error_msg

String

Error message

Example Request

/v1/{project_id}/dbss/audit/instances

{
  "id" : "75abd6de-657b-444b-a867-c740ad2b66ec",
  "delete_publicip" : false,
  "delete_volume" : false
}

Response Examples

Example response with status code 200:

Succeeded

{
  "result" : "success"
}

Status code: 400

Failed

{
  "error" : {
    "error_code" : "DBSS.XXXX",
    "error_msg" : "XXX"
  }
}

Status Code

Status Code

Description

200

Success

400

Failed

403

Authentication failed.

500

Server error.

Error Codes

For details, see Error Codes.