Updated on 2022-09-22 GMT+08:00

API Overview

You can use almost all DeH functions by making calls to the APIs provided by the DeH service, for example, querying the DeH list and viewing DeH details. However, no APIs are provided for purchasing and deleting DeHs currently. You can create or delete DeHs on the management console only.

Table 1 APIs

API

Description

Querying DeHs

Query the DeH list. You can add parameters such as flavor, dedicated_host_id, and state to the URI to filter the result.

Querying Details About a DeH

Query details about a DeH, such as its name, AZ, number of available vCPUs, and available memory size.

Querying ECSs on a DeH

Query information about the ECSs deployed on a DeH, such as the names, IDs, and status of the ECSs.

Modifying DeH Attributes

Change the name of a DeH and enable or disable the auto placement function. After auto placement is enabled, ECSs can be automatically scheduled to this DeH.

Querying Available DeH Types

Query available DeH types in an AZ.

Querying API Versions

Query all available API versions and the versions of specified APIs.

DeH Tag Management

Add or delete tags for DeHs and query DeHs by tag.

Quota Configuration

Query the DeH quota of a tenant.

For details about the APIs for creating ECSs on DeHs, see the Elastic Cloud Server API Reference.