Updated on 2025-12-29 GMT+08:00

Deleting Diagnosis Records

Function

This API is used to delete diagnosis records.

URI

DELETE /v2/{project_id}/instances/{instance_id}/diagnosis

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. For details, see Obtaining a Project ID.

Constraints

N/A

Range

N/A

Default Value

N/A

instance_id

Yes

String

Definition

Instance ID. It can be viewed on the instance details page on the DCS console.

Constraints

N/A

Range

N/A

Default Value

N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

report_id_list

No

Array of strings

Definition

Instance diagnosis report ID.

Constraints

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

results

Array of Item objects

Definition

Result of deleting diagnosis records.

Table 4 Item

Parameter

Type

Description

result

String

Definition

Diagnosis result.

Range

N/A

id

String

Definition

Diagnosis report ID.

Range

N/A

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_msg

String

Definition

Error information.

Range

N/A

error_code

String

Definition

Error code.

Range

For details, see Error Codes.

error_ext_msg

String

Definition

Extended error information. This parameter is not used currently and is set to null.

Range

N/A

Status code: 500

Table 6 Response body parameters

Parameter

Type

Description

error_msg

String

Definition

Error information.

Range

N/A

error_code

String

Definition

Error code.

Range

For details, see Error Codes.

error_ext_msg

String

Definition

Extended error information. This parameter is not used currently and is set to null.

Range

N/A

Example Requests

DELETE https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/diagnosis

{
  "report_id_list" : [ "5c4a78a3-b502-4b17-9a5b-6fb955c307bd" ]
}

Example Responses

Status code: 200

Diagnosis record deleted.

{
  "results" : [ {
    "result" : "successful",
    "id" : "5c4a78a3-b502-4b17-9a5b-6fb955c307bd"
  } ]
}

Status Codes

Status Code

Description

200

Diagnosis record deleted.

400

Invalid request.

500

Internal service error.

Error Codes

See Error Codes.