Deleting Diagnosis Records
Function
This API is used to delete diagnosis records.
URI
DELETE /v2/{project_id}/instances/{instance_id}/diagnosis
|
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
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
report_id_list |
No |
Array of strings |
Definition Instance diagnosis report ID. Constraints N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
results |
Array of Item objects |
Definition Result of deleting diagnosis records. |
|
Parameter |
Type |
Description |
|---|---|---|
|
result |
String |
Definition Diagnosis result. Range N/A |
|
id |
String |
Definition Diagnosis report ID. Range N/A |
Status code: 400
|
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
|
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot