1
0
forked from docs/doc-exports
doc-exports/docs/deh/api-ref/deh_02_0024.html
Hasko, Vladimir ba34ad4eaa initial import of DEH API
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2022-09-07 10:09:05 +00:00

6.0 KiB

Releasing a DeH

Function

This API is used to release a DeH.

Constraints

A DeH accommodating ECSs cannot be released.

URI

DELETE /v1.0/{project_id}/dedicated-hosts/{dedicated_host_id}

Table 1 describes the parameters.

Table 1 Parameters description

Parameter

Type

Mandatory

Description

project_id

String

Yes

Specifies the project ID.

For details about how to obtain the project ID, see Obtaining Required Information.

dedicated_host_id

String

Yes

Specifies the DeH ID.

You can obtain the DeH ID from the DeH console or using the Querying DeHs API.

Request

  • Request parameters

    None

  • Example request
    DELETE https://{Endpoint}/v1.0/9c53a566cb3443ab910cf0daebca90c4/dedicated-hosts/74259164-e63a-4ad9-9c77-a1bd2c9aa187

Response

  • Response parameters

    None

  • Example response
    Http Response Code: 204

Status Code

Table 2 Returned error codes

Error Code

Description

409 Conflict

A DeH accommodating ECSs cannot be released.

For more status codes, see Status Codes.