nav-img
Advanced

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.

400

Bad Request: Semantic or parameter error.

401

Unauthorized: No permissions.

403

Forbidden: Access forbidden.

404

Not Found: The requested resource is not found.

Error Codes