Dedicated Host
Import
Ecs dedicated host can be imported using the id, e.g.
$ pulumi import alicloud:ecs/dedicatedHost:DedicatedHost default dh-2zedmxxxx
Properties
The policy used to migrate the instances from the dedicated host when the dedicated host fails or needs to be repaired online. Valid values: Migrate
, Stop
.
Specifies whether to add the dedicated host to the resource pool for automatic deployment. If you do not specify the DedicatedHostId parameter when you create an instance on a dedicated host, Alibaba Cloud automatically selects a dedicated host from the resource pool to host the instance. Valid values: on
, off
. Default: on
.
The automatic release time of the dedicated host. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC+0.
The auto-renewal period of the dedicated host. Unit: months. Valid values: 1
, 2
, 3
, 6
, and 12
. takes effect and is required only when the AutoRenew parameter is set to true.
CPU oversold ratio. Only custom specifications g6s, c6s, r6s support setting the CPU oversold ratio.
The dedicated host cluster ID to which the dedicated host belongs.
The name of the dedicated host. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
The type of the dedicated host. You can call the DescribeDedicatedHostTypes operation to obtain the most recent list of dedicated host types.
The description of the dedicated host. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
The subscription period of the dedicated host. The Period parameter takes effect and is required only when the ChargeType parameter is set to PrePaid.
Specify the minimum purchase quantity of a dedicated host.
dedicated host network parameters. contains the following attributes:
The billing method of the dedicated host. Valid values: PrePaid
, PostPaid
. Default: PostPaid
.
The ID of the resource group to which the dedicated host belongs.