Deletes an application by its process identifier (PID) and type.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. Call the SearchTraceAppByName operation to query the application ID. |
5406** |
| RegionId |
string |
Yes |
The region ID of the application. |
cn-hangzhou |
| Type |
string |
Yes |
The type of the application to delete. Call the SearchTraceAppByName operation to query the application type. Valid values:
|
TRACE |
| Pid |
string |
Yes |
The PID of the application. For information about how to query the PID, see QueryMetricByPage. |
9w0sc5gxxz@edcsd447c2f**** |
| DeleteReason |
object |
No |
The reasons for deleting the application. |
|
| Remark |
string |
No |
Additional remarks when none of the predefined deletion reasons apply. |
业务场景覆盖不全 |
| ReasonIds |
array<object> |
No |
The reason IDs. |
|
|
object |
No |
|||
| Id |
integer |
No |
The ID of the reason for deletion. |
0 |
| Name |
string |
No |
The description of the deletion reason. |
删除理由描述,ID和Name的对应关系: "id":0,"name":"功能不完善,无法定位到问题根本原因。" "id":1,"name":"Agent不稳定,影响应用运行。" "id":2,"name":"服务不稳定,经常打不开界面。" "id":3,"name":"报警相关问题。" "id":4,"name":"价格太贵" "id":5,"name":"其他原因" |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
string |
The response in JSON format, including the HTTP status code, error code, response message, and trace ID. |
{\"code\":200,\"data\":\"{\\\"code\\\":200,\\\"data\\\":true,\\\"errorCode\\\":\\\"删除应用成功\\\",\\\"message\\\":\\\"删除应用成功\\\",\\\"success\\\":true,\\\"traceId\\\":\\\"0bc0594d15954826692915817e****\\\"}\",\"errorCode\":\"删除应用成功\",\"message\":\"删除应用成功\",\"success\":true,\"traceId\":\"0ab2646915954826692568137d****\"} |
| RequestId |
string |
The request ID. |
46355DD8-FC56-40C5-BFC6-269DE4F9**** |
| Message |
string |
The returned message. |
message |
| Code |
integer |
The HTTP status code. A value of 200 indicates a successful request. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values: true: The request was successful. false: The request failed. |
true |
Examples
Success response
JSON format
{
"Data": "{\\\"code\\\":200,\\\"data\\\":\\\"{\\\\\\\"code\\\\\\\":200,\\\\\\\"data\\\\\\\":true,\\\\\\\"errorCode\\\\\\\":\\\\\\\"删除应用成功\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"删除应用成功\\\\\\\",\\\\\\\"success\\\\\\\":true,\\\\\\\"traceId\\\\\\\":\\\\\\\"0bc0594d15954826692915817e****\\\\\\\"}\\\",\\\"errorCode\\\":\\\"删除应用成功\\\",\\\"message\\\":\\\"删除应用成功\\\",\\\"success\\\":true,\\\"traceId\\\":\\\"0ab2646915954826692568137d****\\\"}",
"RequestId": "46355DD8-FC56-40C5-BFC6-269DE4F9****",
"Message": "message",
"Code": 200,
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | Internal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries. | Internal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries. |
| 403 | IllegalUserAccess | Illegal user access. | Illegal user access. |
| 406 | AgentNotUninstalled | agent not uninstalled. | The agent attached by the application is not uninstalled normally. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.