alicloud.cddc.DedicatedHost
Explore with Pulumi AI
Import
ApsaraDB for MyBase Dedicated Host can be imported using the id, e.g.
$ pulumi import alicloud:cddc/dedicatedHost:DedicatedHost example <dedicated_host_group_id>:<dedicated_host_id>
Create DedicatedHost Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DedicatedHost(name: string, args: DedicatedHostArgs, opts?: CustomResourceOptions);
@overload
def DedicatedHost(resource_name: str,
args: DedicatedHostArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DedicatedHost(resource_name: str,
opts: Optional[ResourceOptions] = None,
payment_type: Optional[str] = None,
zone_id: Optional[str] = None,
dedicated_host_group_id: Optional[str] = None,
host_class: Optional[str] = None,
vswitch_id: Optional[str] = None,
os_password: Optional[str] = None,
allocation_status: Optional[str] = None,
image_category: Optional[str] = None,
period: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
used_time: Optional[int] = None,
host_name: Optional[str] = None,
auto_renew: Optional[bool] = None)
func NewDedicatedHost(ctx *Context, name string, args DedicatedHostArgs, opts ...ResourceOption) (*DedicatedHost, error)
public DedicatedHost(string name, DedicatedHostArgs args, CustomResourceOptions? opts = null)
public DedicatedHost(String name, DedicatedHostArgs args)
public DedicatedHost(String name, DedicatedHostArgs args, CustomResourceOptions options)
type: alicloud:cddc:DedicatedHost
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dedicatedHostResource = new AliCloud.Cddc.DedicatedHost("dedicatedHostResource", new()
{
PaymentType = "string",
ZoneId = "string",
DedicatedHostGroupId = "string",
HostClass = "string",
VswitchId = "string",
OsPassword = "string",
AllocationStatus = "string",
ImageCategory = "string",
Period = "string",
Tags =
{
{ "string", "string" },
},
UsedTime = 0,
HostName = "string",
AutoRenew = false,
});
example, err := cddc.NewDedicatedHost(ctx, "dedicatedHostResource", &cddc.DedicatedHostArgs{
PaymentType: pulumi.String("string"),
ZoneId: pulumi.String("string"),
DedicatedHostGroupId: pulumi.String("string"),
HostClass: pulumi.String("string"),
VswitchId: pulumi.String("string"),
OsPassword: pulumi.String("string"),
AllocationStatus: pulumi.String("string"),
ImageCategory: pulumi.String("string"),
Period: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UsedTime: pulumi.Int(0),
HostName: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
})
var dedicatedHostResource = new DedicatedHost("dedicatedHostResource", DedicatedHostArgs.builder()
.paymentType("string")
.zoneId("string")
.dedicatedHostGroupId("string")
.hostClass("string")
.vswitchId("string")
.osPassword("string")
.allocationStatus("string")
.imageCategory("string")
.period("string")
.tags(Map.of("string", "string"))
.usedTime(0)
.hostName("string")
.autoRenew(false)
.build());
dedicated_host_resource = alicloud.cddc.DedicatedHost("dedicatedHostResource",
payment_type="string",
zone_id="string",
dedicated_host_group_id="string",
host_class="string",
vswitch_id="string",
os_password="string",
allocation_status="string",
image_category="string",
period="string",
tags={
"string": "string",
},
used_time=0,
host_name="string",
auto_renew=False)
const dedicatedHostResource = new alicloud.cddc.DedicatedHost("dedicatedHostResource", {
paymentType: "string",
zoneId: "string",
dedicatedHostGroupId: "string",
hostClass: "string",
vswitchId: "string",
osPassword: "string",
allocationStatus: "string",
imageCategory: "string",
period: "string",
tags: {
string: "string",
},
usedTime: 0,
hostName: "string",
autoRenew: false,
});
type: alicloud:cddc:DedicatedHost
properties:
allocationStatus: string
autoRenew: false
dedicatedHostGroupId: string
hostClass: string
hostName: string
imageCategory: string
osPassword: string
paymentType: string
period: string
tags:
string: string
usedTime: 0
vswitchId: string
zoneId: string
DedicatedHost Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DedicatedHost resource accepts the following input properties:
- Dedicated
Host stringGroup Id - The ID of the dedicated cluster.
- Host
Class string - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
. - Vswitch
Id string - The ID of the vSwitch to which the host is connected.
- Zone
Id string - The ID of the zone.
- Allocation
Status string - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - Auto
Renew bool - Specifies whether to enable the auto-renewal feature.
- Host
Name string - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - Image
Category string - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - Os
Password string - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - Period string
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Used
Time int - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- Dedicated
Host stringGroup Id - The ID of the dedicated cluster.
- Host
Class string - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
. - Vswitch
Id string - The ID of the vSwitch to which the host is connected.
- Zone
Id string - The ID of the zone.
- Allocation
Status string - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - Auto
Renew bool - Specifies whether to enable the auto-renewal feature.
- Host
Name string - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - Image
Category string - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - Os
Password string - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - Period string
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - map[string]string
- A mapping of tags to assign to the resource.
- Used
Time int - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- dedicated
Host StringGroup Id - The ID of the dedicated cluster.
- host
Class String - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
. - vswitch
Id String - The ID of the vSwitch to which the host is connected.
- zone
Id String - The ID of the zone.
- allocation
Status String - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - auto
Renew Boolean - Specifies whether to enable the auto-renewal feature.
- host
Name String - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - image
Category String - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - os
Password String - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - period String
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - Map<String,String>
- A mapping of tags to assign to the resource.
- used
Time Integer - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- dedicated
Host stringGroup Id - The ID of the dedicated cluster.
- host
Class string - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- payment
Type string - The payment type of the resource. Valid values:
Subscription
. - vswitch
Id string - The ID of the vSwitch to which the host is connected.
- zone
Id string - The ID of the zone.
- allocation
Status string - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - auto
Renew boolean - Specifies whether to enable the auto-renewal feature.
- host
Name string - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - image
Category string - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - os
Password string - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - period string
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- used
Time number - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- dedicated_
host_ strgroup_ id - The ID of the dedicated cluster.
- host_
class str - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- payment_
type str - The payment type of the resource. Valid values:
Subscription
. - vswitch_
id str - The ID of the vSwitch to which the host is connected.
- zone_
id str - The ID of the zone.
- allocation_
status str - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - auto_
renew bool - Specifies whether to enable the auto-renewal feature.
- host_
name str - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - image_
category str - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - os_
password str - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - period str
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- used_
time int - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- dedicated
Host StringGroup Id - The ID of the dedicated cluster.
- host
Class String - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
. - vswitch
Id String - The ID of the vSwitch to which the host is connected.
- zone
Id String - The ID of the zone.
- allocation
Status String - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - auto
Renew Boolean - Specifies whether to enable the auto-renewal feature.
- host
Name String - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - image
Category String - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - os
Password String - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - period String
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - Map<String>
- A mapping of tags to assign to the resource.
- used
Time Number - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
Outputs
All input properties are implicitly available as output properties. Additionally, the DedicatedHost resource produces the following output properties:
- Dedicated
Host stringId - The ID of the host.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked.
- Dedicated
Host stringId - The ID of the host.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked.
- dedicated
Host StringId - The ID of the host.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked.
- dedicated
Host stringId - The ID of the host.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked.
- dedicated_
host_ strid - The ID of the host.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked.
- dedicated
Host StringId - The ID of the host.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked.
Look up Existing DedicatedHost Resource
Get an existing DedicatedHost resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DedicatedHostState, opts?: CustomResourceOptions): DedicatedHost
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocation_status: Optional[str] = None,
auto_renew: Optional[bool] = None,
dedicated_host_group_id: Optional[str] = None,
dedicated_host_id: Optional[str] = None,
host_class: Optional[str] = None,
host_name: Optional[str] = None,
image_category: Optional[str] = None,
os_password: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
used_time: Optional[int] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> DedicatedHost
func GetDedicatedHost(ctx *Context, name string, id IDInput, state *DedicatedHostState, opts ...ResourceOption) (*DedicatedHost, error)
public static DedicatedHost Get(string name, Input<string> id, DedicatedHostState? state, CustomResourceOptions? opts = null)
public static DedicatedHost get(String name, Output<String> id, DedicatedHostState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allocation
Status string - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - Auto
Renew bool - Specifies whether to enable the auto-renewal feature.
- Dedicated
Host stringGroup Id - The ID of the dedicated cluster.
- Dedicated
Host stringId - The ID of the host.
- Host
Class string - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- Host
Name string - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - Image
Category string - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - Os
Password string - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - Payment
Type string - The payment type of the resource. Valid values:
Subscription
. - Period string
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - Status string
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Used
Time int - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- Vswitch
Id string - The ID of the vSwitch to which the host is connected.
- Zone
Id string - The ID of the zone.
- Allocation
Status string - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - Auto
Renew bool - Specifies whether to enable the auto-renewal feature.
- Dedicated
Host stringGroup Id - The ID of the dedicated cluster.
- Dedicated
Host stringId - The ID of the host.
- Host
Class string - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- Host
Name string - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - Image
Category string - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - Os
Password string - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - Payment
Type string - The payment type of the resource. Valid values:
Subscription
. - Period string
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - Status string
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked. - map[string]string
- A mapping of tags to assign to the resource.
- Used
Time int - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- Vswitch
Id string - The ID of the vSwitch to which the host is connected.
- Zone
Id string - The ID of the zone.
- allocation
Status String - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - auto
Renew Boolean - Specifies whether to enable the auto-renewal feature.
- dedicated
Host StringGroup Id - The ID of the dedicated cluster.
- dedicated
Host StringId - The ID of the host.
- host
Class String - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- host
Name String - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - image
Category String - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - os
Password String - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - payment
Type String - The payment type of the resource. Valid values:
Subscription
. - period String
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - status String
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked. - Map<String,String>
- A mapping of tags to assign to the resource.
- used
Time Integer - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- vswitch
Id String - The ID of the vSwitch to which the host is connected.
- zone
Id String - The ID of the zone.
- allocation
Status string - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - auto
Renew boolean - Specifies whether to enable the auto-renewal feature.
- dedicated
Host stringGroup Id - The ID of the dedicated cluster.
- dedicated
Host stringId - The ID of the host.
- host
Class string - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- host
Name string - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - image
Category string - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - os
Password string - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - payment
Type string - The payment type of the resource. Valid values:
Subscription
. - period string
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - status string
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- used
Time number - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- vswitch
Id string - The ID of the vSwitch to which the host is connected.
- zone
Id string - The ID of the zone.
- allocation_
status str - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - auto_
renew bool - Specifies whether to enable the auto-renewal feature.
- dedicated_
host_ strgroup_ id - The ID of the dedicated cluster.
- dedicated_
host_ strid - The ID of the host.
- host_
class str - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- host_
name str - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - image_
category str - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - os_
password str - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - payment_
type str - The payment type of the resource. Valid values:
Subscription
. - period str
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - status str
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- used_
time int - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- vswitch_
id str - The ID of the vSwitch to which the host is connected.
- zone_
id str - The ID of the zone.
- allocation
Status String - Specifies whether instances can be created on the host. Valid values:
Allocatable
orSuspended
.Allocatable
: Instances can be created on the host.Suspended
: Instances cannot be created on the host. - auto
Renew Boolean - Specifies whether to enable the auto-renewal feature.
- dedicated
Host StringGroup Id - The ID of the dedicated cluster.
- dedicated
Host StringId - The ID of the host.
- host
Class String - The instance type of the host. For more information about the supported instance types of hosts, see Host specification details.
- host
Name String - The name of the host. The name must be
1
to64
characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. - image
Category String - Host Image Category. Valid values:
WindowsWithMssqlEntAlwaysonLicense
,WindowsWithMssqlStdLicense
,WindowsWithMssqlEntLicense
,WindowsWithMssqlWebLicense
,AliLinux
. - os
Password String - Host password. NOTE: The creation of a host password is supported only when the database type is
Tair-PMem
. - payment
Type String - The payment type of the resource. Valid values:
Subscription
. - period String
- The unit of the subscription duration. Valid values:
Year
,Month
,Week
. - status String
- The state of the host. Valid values:
0:
The host is being created.1
: The host is running.2
: The host is faulty.3
: The host is ready for deactivation.4
: The host is being maintained.5
: The host is deactivated.6
: The host is restarting.7
: The host is locked. - Map<String>
- A mapping of tags to assign to the resource.
- used
Time Number - The subscription duration of the host. Valid values:
- If the Period parameter is set to
Year
, the value of the UsedTime parameter ranges from1
to5
. - If the Period parameter is set to
Month
, the value of the UsedTime parameter ranges from1
to9
. - If the Period parameter is set to
Week
, the value of the UsedTime parameter ranges from1
,2
and3
.
- If the Period parameter is set to
- vswitch
Id String - The ID of the vSwitch to which the host is connected.
- zone
Id String - The ID of the zone.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.