Help Center/ Dedicated Host/ CLI Reference/ CLI Command Reference
Updated on 2026-09-10 GMT+08:00

CLI Command Reference

Lifecycle Management

API Name

Command

Description

Operation

Querying the DeH List

hcloud DeH ListDedicatedHosts

This API is used to query the DeH list.

Go debug

Assigning DeHs

hcloud DeH CreateDedicatedHost

This API is used to allocate one or more DeHs and set required parameters, such as the flavor, AZ, and quantity.

Go debug

Querying DeH Details

hcloud DeH ShowDedicatedHost

Querying Details About a DeH.

Go debug

Updating DeH Attributes

hcloud DeH UpdateDedicatedHost

This API is used to modify the auto_placement and name attributes of a DeH.

Go debug

Releasing DeH

hcloud DeH DeleteDedicatedHost

Releasing DeH.

Go debug

Querying ECSs on a DeH

hcloud DeH ListServersDedicatedHost

This API is used to query information about deployed ECSs on a DeH.

Go debug

Querying Available DeH Types

hcloud DeH ListDedicatedHostTypes

This API is used to query available DeH types in an AZ.

Go debug

API Version Query

API Name

Command

Description

Operation

Querying the API Version Information List

hcloud DeH ListDehVersions

This API is used to query all API versions available to the DeH service.

Go debug

Querying a Specified API Version

hcloud DeH ShowDehVersion

This API is used to query a specified API version.

Go debug

Tag Management

API Name

Command

Description

Operation

Adding DeH Tags in Batches

hcloud DeH BatchCreateDedicatedHostTags

This API is used to add tags to a specified DeH in batches. Tag Management Service (TMS) uses this API to batch add tags to a DeH.

Go debug

Deleting DeH Tags in Batches

hcloud DeH BatchDeleteDedicatedHostTags

This API is used to add tags to a specified DeH in batches. Tag Management Service (TMS) uses this API to batch add tags to a DeH.

Go debug

Querying Tags of a Specified DeH

hcloud DeH ShowDedicatedHostTags

This API is used to query tags of a DeH. Tag Management Service (TMS) uses this API to query all tags of a DeH.

Go debug

Querying Tags of All DeHs

hcloud DeH ListDedicatedHostTags

This API is used to query all DeH tags of a tenant.

Go debug

Querying DeH Lists by Tag

hcloud DeH ListDedicatedHostsByTags

This API is used to filter DeHs by tag and return the list of all tags of a DeH. Tag Management Service (TMS) uses this API to filter the DeHs.

Go debug

Quota Management

API Name

Command

Description

Operation

Querying the DeH Quota of a Tenant

hcloud DeH ShowQuotaSets

This API is used to query the DeH quota of a tenant.

Go debug