Skip to content

DedicatedHostProps

Properties for defining a DedicatedHost.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-dedicatedhost

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.DedicatedHostProps {
    DedicatedHostType: interface{},
    ActionOnMaintenance: interface{},
    AutoPlacement: interface{},
    AutoReleaseTime: interface{},
    AutoRenew: interface{},
    AutoRenewPeriod: interface{},
    ChargeType: interface{},
    DedicatedHostName: interface{},
    Description: interface{},
    NetworkAttributesSlbUdpTimeout: interface{},
    NetworkAttributesUdpTimeout: interface{},
    Period: interface{},
    PeriodUnit: interface{},
    Quantity: interface{},
    ResourceGroupId: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosDedicatedHost.TagsProperty,
    ZoneId: interface{},
}

Properties

Name Type Description
DedicatedHostType interface{} Property dedicatedHostType: The instance type of host.
ActionOnMaintenance interface{} Property actionOnMaintenance: The policy used to migrate the instances from the dedicated hostwhen the dedicated host fails or needs to be repaired online.Valid values: Migrate: Instances are migrated to another physical server and restarted.If the dedicated host is attached with disks that are not local disks, the default value is Migrate.Stop: Instances on the dedicated host are stopped. If the dedicated host cannot be repaired,the instances are migrated to another physical server and restarted.If the dedicated host is attached with local disks, the default value is Stop.
AutoPlacement interface{} Property autoPlacement: Specifies whether the dedicated host is added to the resource pool for automatic deployment.
AutoReleaseTime interface{} Property autoReleaseTime: Auto release time for created host, Follow ISO8601 standard using UTC time.
AutoRenew interface{} Property autoRenew: Whether renew the fee automatically?
AutoRenewPeriod interface{} Property autoRenewPeriod: The time period of auto renew.
ChargeType interface{} Property chargeType: Instance Charge type, allowed value: Prepaid and Postpaid.
DedicatedHostName interface{} Property dedicatedHostName: The name of the dedicated host, [2, 128] English or Chinese characters.
Description interface{} Property description: The description of host.
NetworkAttributesSlbUdpTimeout interface{} Property networkAttributesSlbUdpTimeout: The duration of UDP timeout for sessions between Server Load Balancer (SLB) and the dedicated host.
NetworkAttributesUdpTimeout interface{} Property networkAttributesUdpTimeout: The duration of UDP timeout for sessions between users and instances on the dedicated host.
Period interface{} Property period: Prepaid time period.
PeriodUnit interface{} Property periodUnit: Unit of prepaid time period, it could be Week\/Month\/Year.
Quantity interface{} Property quantity: The number of dedicated hosts that you want to create.
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
Tags *[]TagsProperty Property tags: Tags to attach to DedicatedHost.
ZoneId interface{} Property zoneId: The zone to create the host.

DedicatedHostTypeRequired

DedicatedHostType interface{}
  • Type: interface{}

Property dedicatedHostType: The instance type of host.


ActionOnMaintenanceOptional

ActionOnMaintenance interface{}
  • Type: interface{}

Property actionOnMaintenance: The policy used to migrate the instances from the dedicated hostwhen the dedicated host fails or needs to be repaired online.Valid values: Migrate: Instances are migrated to another physical server and restarted.If the dedicated host is attached with disks that are not local disks, the default value is Migrate.Stop: Instances on the dedicated host are stopped. If the dedicated host cannot be repaired,the instances are migrated to another physical server and restarted.If the dedicated host is attached with local disks, the default value is Stop.


AutoPlacementOptional

AutoPlacement interface{}
  • Type: interface{}

Property autoPlacement: Specifies whether the dedicated host is added 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. For more information, see Automatic deployment. Valid values:on: The dedicated host is added to the resource pool for automatic deployment.off: The dedicated host is not added to the resource pool for automatic deployment.Default value: on.Note When you create a dedicated host: If you do not specify this parameter, the dedicated host is added to the automatic deployment resource pool.If you do not want to add the dedicated host to the automatic deployment resource pool, set the value to off.


AutoReleaseTimeOptional

AutoReleaseTime interface{}
  • Type: interface{}

Property autoReleaseTime: Auto release time for created host, Follow ISO8601 standard using UTC time.

format is 'yyyy-MM-ddTHH:mm:ssZ'. Not bigger than 3 years from this day onwards


AutoRenewOptional

AutoRenew interface{}
  • Type: interface{}

Property autoRenew: Whether renew the fee automatically?

When the parameter InstanceChargeType is PrePaid, it will take effect. Range of value:True: automatic renewal.False: no automatic renewal. Default value is False.


AutoRenewPeriodOptional

AutoRenewPeriod interface{}
  • Type: interface{}

Property autoRenewPeriod: The time period of auto renew.

When the parameter InstanceChargeType is PrePaid, it will take effect.It could be 1, 2, 3, 6, 12, 24, 36, 48, 60. Default value is 1.


ChargeTypeOptional

ChargeType interface{}
  • Type: interface{}

Property chargeType: Instance Charge type, allowed value: Prepaid and Postpaid.

If specified Prepaid, please ensure you have sufficient balance in your account. Or instance creation will be failure. Default value is Postpaid.


DedicatedHostNameOptional

DedicatedHostName interface{}
  • Type: interface{}

Property dedicatedHostName: The name of the dedicated host, [2, 128] English or Chinese characters.

It must begin with an uppercase/lowercase letter or a Chinese character, and may contain numbers, '_' or '-'. It cannot begin with http:// or https://.


DescriptionOptional

Description interface{}
  • Type: interface{}

Property description: The description of host.


NetworkAttributesSlbUdpTimeoutOptional

NetworkAttributesSlbUdpTimeout interface{}
  • Type: interface{}

Property networkAttributesSlbUdpTimeout: The duration of UDP timeout for sessions between Server Load Balancer (SLB) and the dedicated host.

Unit: seconds. Valid values: 15 to 310.


NetworkAttributesUdpTimeoutOptional

NetworkAttributesUdpTimeout interface{}
  • Type: interface{}

Property networkAttributesUdpTimeout: The duration of UDP timeout for sessions between users and instances on the dedicated host.

Unit: seconds. Valid values: 15 to 310.


PeriodOptional

Period interface{}
  • Type: interface{}

Property period: Prepaid time period.

Unit is month, it could be from 1 to 9 or 12, 24, 36, 48, 60. Default value is 1.


PeriodUnitOptional

PeriodUnit interface{}
  • Type: interface{}

Property periodUnit: Unit of prepaid time period, it could be Week\/Month\/Year.

Default value is Month.


QuantityOptional

Quantity interface{}
  • Type: interface{}

Property quantity: The number of dedicated hosts that you want to create.

Valid values: 1 to 100.Default value: 1.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


TagsOptional

Tags *[]TagsProperty

Property tags: Tags to attach to DedicatedHost.

Max support 20 tags to add during create DedicatedHost. Each tag with two properties Key and Value, and Key is required.


ZoneIdOptional

ZoneId interface{}
  • Type: interface{}

Property zoneId: The zone to create the host.