Help Center/ Application Performance Management/ API Reference(2.0)/ APIs/ CMDB/ Deleting a Component Based on the Component ID
Updated on 2023-08-02 GMT+08:00

Deleting a Component Based on the Component ID

Function

This API is used to delete a specified component.

URI

DELETE /v1/apm2/openapi/cmdb/apps/delete-app/{application_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

application_id

Yes

Long

Component ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

x-business-id

Yes

Long

Application ID, which is used for authentication.

X-Auth-Token

Yes

String

User token obtained from IAM.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

ok

String

ok: The deletion is successful.

Example Requests

Delete component 1.

/v1/apm2/openapi/cmdb/apps/delete-app/1

Example Responses

Status code: 200

Result returned when you delete an application. ok: The deletion is successful.

{'ok'="ok"}

Status Codes

Status Code

Description

200

Result returned when you delete an application. ok: The deletion is successful.

Error Codes

See Error Codes.