Help Center/ ServiceStage/ API Reference/ CSE APIs/ Engine Management/ Deleting an Exclusive Microservice Engine
Updated on 2024-10-16 GMT+08:00

Deleting an Exclusive Microservice Engine

Function

This API is used to delete an exclusive microservice engine.

URI

DELETE /v2/{project_id}/enginemgr/engines/{engine_id}

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Tenant sub-project ID, which must be unique. The value contains 1 to 64 characters. See Obtaining a Project ID.

engine_id

Yes

String

ID of an exclusive microservice engine.

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

X-Enterprise-Project-ID

No

String

Enterprise project ID.

If this parameter is not set, the default enterprise project is default and the ID is 0.

Response

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

id

String

ID of an exclusive microservice engine.

name

String

Name of an exclusive microservice engine.

jobId

Integer

ID of an exclusive microservice engine job.

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMessage

String

Error message.

detail

String

Location details.

Status code: 500

Table 5 Response body parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMessage

String

Error message.

detail

String

Location details.

Example Request

Delete an engine with specified engine_id.

DELET /v2/{project_id}/enginemgr/engines/{engine_id}

Example Response

{   
  "id": "891bf21a-4024-4f47-b38c-bd259ca8f10a",   
  "name": "test",   
  "jobId": 7256
}

Status Code

Status Code

Description

200

OK

400

Bad Request

500

Internal Server Error

Error Code

See CSE Error Codes.