All Products
Search
Document Center

Application Real-Time Monitoring Service:DeleteTraceApp

Last Updated:Nov 05, 2024

Deletes an application based on a specified process identifier (PID) and application type.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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
arms:DeleteTraceAppnone
  • TraceApp
    acs:arms:{#regionId}:{#AccountId}:traceapp/{#Pid}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the application that you want to delete. You can call the SearchTraceAppByName operation to query the application ID. For more information, see SearchTraceAppByName .

5406**
RegionIdstringYes

The ID of the region in which the application is located.

cn-hangzhou
TypestringYes

The type of the application that you want to delete. You can call the SearchTraceAppByName operation to query the application type. For more information, see SearchTraceAppByName . Valid values:

  • TRACE: Application Monitoring
  • RETCODE: frontend monitoring
TRACE
PidstringYes

The PID of the application. For more information about how to query the PID, see QueryMetricByPage .

9w0sc5gxxz@edcsd447c2f****
DeleteReasonobjectNo

The reason(s) to delete application.

RemarkstringNo

Additional remarks when none of the reasons for removal provided are met.

The business scenario cannot be satisfied.
ReasonIdsarray<object>No

Reasons Ids.

objectNo
IdintegerNo

The ID of the reason for deletion.

0
NamestringNo

A description of the reason for removal.

The function is not perfect, and the root cause of the problem cannot be located.

Response parameters

ParameterTypeDescriptionExample
object
Datastring

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\\\\\":\\\\\"The application is deleted\\\\\",\\\\\"message\\\\\":\\\\\"The application is deleted\\\\\",\\\\\"success\\\\\":true,\\\\\"traceId\\\\\":\\\\\"0bc0594d15954826692915817e\*\*\*\*\\\\\"}\\",\\"errorCode\\":\\"The application is deleted\\",\\"message\\":\\"The application is deleted\\",\\"success\\":true,\\"traceId\\":\\"0ab2646915954826692568137d\*\*\*\*\\"}
RequestIdstring

The ID of the request.

46355DD8-FC56-40C5-BFC6-269DE4F9****
Messagestring

The returned message.

Internal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries.
Codelong

The status code. The status code 200 indicates that the request was successful.

200
Successboolean

Indicates whether the request was successful. Valid values:

true: The request was successful.

false: The request failed.

true

Examples

Sample success responses

JSONformat

{
  "Data": "\"{\\\\\"code\\\\\":200,\\\\\"data\\\\\":\\\\\"{\\\\\\\\\\\"code\\\\\\\\\\\":200,\\\\\\\\\\\"data\\\\\\\\\\\":true,\\\\\\\\\\\"errorCode\\\\\\\\\\\":\\\\\\\\\\\"The application is deleted\\\\\\\\\\\",\\\\\\\\\\\"message\\\\\\\\\\\":\\\\\\\\\\\"The application is deleted\\\\\\\\\\\",\\\\\\\\\\\"success\\\\\\\\\\\":true,\\\\\\\\\\\"traceId\\\\\\\\\\\":\\\\\\\\\\\"0bc0594d15954826692915817e\\*\\*\\*\\*\\\\\\\\\\\"}\\\\\",\\\\\"errorCode\\\\\":\\\\\"The application is deleted\\\\\",\\\\\"message\\\\\":\\\\\"The application is deleted\\\\\",\\\\\"success\\\\\":true,\\\\\"traceId\\\\\":\\\\\"0ab2646915954826692568137d\\*\\*\\*\\*\\\\\"}\n",
  "RequestId": "46355DD8-FC56-40C5-BFC6-269DE4F9****",
  "Message": "Internal error. Please try again. Contact the DingTalk service account if the issue                              persists after multiple retries.",
  "Code": 200,
  "Success": true
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-05-28The Error code has changedView Change Details
2023-08-03The request parameters of the API has changed. The response structure of the API has changedView Change Details