doc-exports/docs/modelarts/api-ref/DeleteService.html
Wuwan, Qi f81ead2467 ModelArts API 24.3.0 20241128 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
2024-11-29 09:04:54 +00:00

5.1 KiB

Deleting a Service

Function

This API is used to delete a model service. You can delete your own services only.

URI

DELETE /v1/{project_id}/services/{service_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID and Name.

service_id

Yes

String

Service ID. To delete multiple services in a batch, use commas (,) to separate multiple service_id values.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. It can be obtained by calling the IAM API that is used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Response Parameters

None

Example Requests

The following shows how to delete the model service with ID xxxxxx.

DELETE https://endpoint/v1/{project_id}/services/xxxxxx

Example Responses

Status code: 200

The service is deleted.

{ }

Status Codes

Status Code

Description

200

The service is deleted.

Error Codes

See Error Codes.