Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.ens.Instance
Explore with Pulumi AI
Import
ENS Instance can be imported using the id, e.g.
$ pulumi import alicloud:ens/instance:Instance example <id>
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_type: Optional[str] = None,
schedule_area_level: Optional[str] = None,
payment_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[int] = None,
ip_type: Optional[str] = None,
password: Optional[str] = None,
ens_region_id: Optional[str] = None,
force_stop: Optional[str] = None,
host_name: Optional[str] = None,
image_id: Optional[str] = None,
include_data_disks: Optional[bool] = None,
instance_charge_strategy: Optional[str] = None,
instance_name: Optional[str] = None,
carrier: Optional[str] = None,
internet_charge_type: Optional[str] = None,
billing_cycle: Optional[str] = None,
amount: Optional[int] = None,
net_district_code: Optional[str] = None,
net_work_id: Optional[str] = None,
data_disks: Optional[Sequence[InstanceDataDiskArgs]] = None,
password_inherit: Optional[bool] = None,
auto_use_coupon: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
private_ip_address: Optional[str] = None,
public_ip_identification: Optional[bool] = None,
auto_renew: Optional[bool] = None,
scheduling_price_strategy: Optional[str] = None,
scheduling_strategy: Optional[str] = None,
security_id: Optional[str] = None,
status: Optional[str] = None,
system_disk: Optional[InstanceSystemDiskArgs] = None,
unique_suffix: Optional[bool] = None,
user_data: Optional[str] = None,
vswitch_id: Optional[str] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: alicloud:ens:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- 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 exampleinstanceResourceResourceFromEnsinstance = new AliCloud.Ens.Instance("exampleinstanceResourceResourceFromEnsinstance", new()
{
InstanceType = "string",
ScheduleAreaLevel = "string",
PaymentType = "string",
InternetMaxBandwidthOut = 0,
IpType = "string",
Password = "string",
EnsRegionId = "string",
ForceStop = "string",
HostName = "string",
ImageId = "string",
IncludeDataDisks = false,
InstanceChargeStrategy = "string",
InstanceName = "string",
Carrier = "string",
InternetChargeType = "string",
BillingCycle = "string",
Amount = 0,
NetDistrictCode = "string",
NetWorkId = "string",
DataDisks = new[]
{
new AliCloud.Ens.Inputs.InstanceDataDiskArgs
{
Category = "string",
Size = 0,
},
},
PasswordInherit = false,
AutoUseCoupon = "string",
Period = 0,
PeriodUnit = "string",
PrivateIpAddress = "string",
PublicIpIdentification = false,
AutoRenew = false,
SchedulingPriceStrategy = "string",
SchedulingStrategy = "string",
SecurityId = "string",
Status = "string",
SystemDisk = new AliCloud.Ens.Inputs.InstanceSystemDiskArgs
{
Category = "string",
Size = 0,
},
UniqueSuffix = false,
UserData = "string",
VswitchId = "string",
});
example, err := ens.NewInstance(ctx, "exampleinstanceResourceResourceFromEnsinstance", &ens.InstanceArgs{
InstanceType: pulumi.String("string"),
ScheduleAreaLevel: pulumi.String("string"),
PaymentType: pulumi.String("string"),
InternetMaxBandwidthOut: pulumi.Int(0),
IpType: pulumi.String("string"),
Password: pulumi.String("string"),
EnsRegionId: pulumi.String("string"),
ForceStop: pulumi.String("string"),
HostName: pulumi.String("string"),
ImageId: pulumi.String("string"),
IncludeDataDisks: pulumi.Bool(false),
InstanceChargeStrategy: pulumi.String("string"),
InstanceName: pulumi.String("string"),
Carrier: pulumi.String("string"),
InternetChargeType: pulumi.String("string"),
BillingCycle: pulumi.String("string"),
Amount: pulumi.Int(0),
NetDistrictCode: pulumi.String("string"),
NetWorkId: pulumi.String("string"),
DataDisks: ens.InstanceDataDiskArray{
&ens.InstanceDataDiskArgs{
Category: pulumi.String("string"),
Size: pulumi.Int(0),
},
},
PasswordInherit: pulumi.Bool(false),
AutoUseCoupon: pulumi.String("string"),
Period: pulumi.Int(0),
PeriodUnit: pulumi.String("string"),
PrivateIpAddress: pulumi.String("string"),
PublicIpIdentification: pulumi.Bool(false),
AutoRenew: pulumi.Bool(false),
SchedulingPriceStrategy: pulumi.String("string"),
SchedulingStrategy: pulumi.String("string"),
SecurityId: pulumi.String("string"),
Status: pulumi.String("string"),
SystemDisk: &ens.InstanceSystemDiskArgs{
Category: pulumi.String("string"),
Size: pulumi.Int(0),
},
UniqueSuffix: pulumi.Bool(false),
UserData: pulumi.String("string"),
VswitchId: pulumi.String("string"),
})
var exampleinstanceResourceResourceFromEnsinstance = new Instance("exampleinstanceResourceResourceFromEnsinstance", InstanceArgs.builder()
.instanceType("string")
.scheduleAreaLevel("string")
.paymentType("string")
.internetMaxBandwidthOut(0)
.ipType("string")
.password("string")
.ensRegionId("string")
.forceStop("string")
.hostName("string")
.imageId("string")
.includeDataDisks(false)
.instanceChargeStrategy("string")
.instanceName("string")
.carrier("string")
.internetChargeType("string")
.billingCycle("string")
.amount(0)
.netDistrictCode("string")
.netWorkId("string")
.dataDisks(InstanceDataDiskArgs.builder()
.category("string")
.size(0)
.build())
.passwordInherit(false)
.autoUseCoupon("string")
.period(0)
.periodUnit("string")
.privateIpAddress("string")
.publicIpIdentification(false)
.autoRenew(false)
.schedulingPriceStrategy("string")
.schedulingStrategy("string")
.securityId("string")
.status("string")
.systemDisk(InstanceSystemDiskArgs.builder()
.category("string")
.size(0)
.build())
.uniqueSuffix(false)
.userData("string")
.vswitchId("string")
.build());
exampleinstance_resource_resource_from_ensinstance = alicloud.ens.Instance("exampleinstanceResourceResourceFromEnsinstance",
instance_type="string",
schedule_area_level="string",
payment_type="string",
internet_max_bandwidth_out=0,
ip_type="string",
password="string",
ens_region_id="string",
force_stop="string",
host_name="string",
image_id="string",
include_data_disks=False,
instance_charge_strategy="string",
instance_name="string",
carrier="string",
internet_charge_type="string",
billing_cycle="string",
amount=0,
net_district_code="string",
net_work_id="string",
data_disks=[alicloud.ens.InstanceDataDiskArgs(
category="string",
size=0,
)],
password_inherit=False,
auto_use_coupon="string",
period=0,
period_unit="string",
private_ip_address="string",
public_ip_identification=False,
auto_renew=False,
scheduling_price_strategy="string",
scheduling_strategy="string",
security_id="string",
status="string",
system_disk=alicloud.ens.InstanceSystemDiskArgs(
category="string",
size=0,
),
unique_suffix=False,
user_data="string",
vswitch_id="string")
const exampleinstanceResourceResourceFromEnsinstance = new alicloud.ens.Instance("exampleinstanceResourceResourceFromEnsinstance", {
instanceType: "string",
scheduleAreaLevel: "string",
paymentType: "string",
internetMaxBandwidthOut: 0,
ipType: "string",
password: "string",
ensRegionId: "string",
forceStop: "string",
hostName: "string",
imageId: "string",
includeDataDisks: false,
instanceChargeStrategy: "string",
instanceName: "string",
carrier: "string",
internetChargeType: "string",
billingCycle: "string",
amount: 0,
netDistrictCode: "string",
netWorkId: "string",
dataDisks: [{
category: "string",
size: 0,
}],
passwordInherit: false,
autoUseCoupon: "string",
period: 0,
periodUnit: "string",
privateIpAddress: "string",
publicIpIdentification: false,
autoRenew: false,
schedulingPriceStrategy: "string",
schedulingStrategy: "string",
securityId: "string",
status: "string",
systemDisk: {
category: "string",
size: 0,
},
uniqueSuffix: false,
userData: "string",
vswitchId: "string",
});
type: alicloud:ens:Instance
properties:
amount: 0
autoRenew: false
autoUseCoupon: string
billingCycle: string
carrier: string
dataDisks:
- category: string
size: 0
ensRegionId: string
forceStop: string
hostName: string
imageId: string
includeDataDisks: false
instanceChargeStrategy: string
instanceName: string
instanceType: string
internetChargeType: string
internetMaxBandwidthOut: 0
ipType: string
netDistrictCode: string
netWorkId: string
password: string
passwordInherit: false
paymentType: string
period: 0
periodUnit: string
privateIpAddress: string
publicIpIdentification: false
scheduleAreaLevel: string
schedulingPriceStrategy: string
schedulingStrategy: string
securityId: string
status: string
systemDisk:
category: string
size: 0
uniqueSuffix: false
userData: string
vswitchId: string
Instance 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 Instance resource accepts the following input properties:
- Instance
Type string - The specification of the instance. Example value: ens.sn1.small.
- Internet
Max intBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- Payment
Type string - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- Schedule
Area stringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- Amount int
- The number of instances created, with a minimum of 1 and a maximum of 100.
- Auto
Renew bool - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- Auto
Use stringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- Billing
Cycle string - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- Carrier string
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- Data
Disks List<Pulumi.Ali Cloud. Ens. Inputs. Instance Data Disk> - Data disk specifications. See
data_disk
below. - Ens
Region stringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- Force
Stop string - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- Host
Name string - The host name of the instance. Example value: test-HostName.
- Image
Id string - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- Include
Data boolDisks - Whether the Payment type of the disk created with the instance is converted.
- Instance
Charge stringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- Instance
Name string - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- Internet
Charge stringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- Ip
Type string - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- Net
District stringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- Net
Work stringId - The network ID of the instance. Can only be used in node-level scheduling.
- Password string
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- Password
Inherit bool - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- Period int
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- Period
Unit string - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- Private
Ip stringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- Public
Ip boolIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- Scheduling
Price stringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- Scheduling
Strategy string - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- Security
Id string - ID of the security group to which the instance belongs.
- Status string
- Status of the instance.
- System
Disk Pulumi.Ali Cloud. Ens. Inputs. Instance System Disk - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - Unique
Suffix bool - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- User
Data string - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- Vswitch
Id string - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- Instance
Type string - The specification of the instance. Example value: ens.sn1.small.
- Internet
Max intBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- Payment
Type string - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- Schedule
Area stringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- Amount int
- The number of instances created, with a minimum of 1 and a maximum of 100.
- Auto
Renew bool - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- Auto
Use stringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- Billing
Cycle string - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- Carrier string
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- Data
Disks []InstanceData Disk Args - Data disk specifications. See
data_disk
below. - Ens
Region stringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- Force
Stop string - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- Host
Name string - The host name of the instance. Example value: test-HostName.
- Image
Id string - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- Include
Data boolDisks - Whether the Payment type of the disk created with the instance is converted.
- Instance
Charge stringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- Instance
Name string - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- Internet
Charge stringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- Ip
Type string - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- Net
District stringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- Net
Work stringId - The network ID of the instance. Can only be used in node-level scheduling.
- Password string
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- Password
Inherit bool - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- Period int
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- Period
Unit string - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- Private
Ip stringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- Public
Ip boolIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- Scheduling
Price stringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- Scheduling
Strategy string - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- Security
Id string - ID of the security group to which the instance belongs.
- Status string
- Status of the instance.
- System
Disk InstanceSystem Disk Args - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - Unique
Suffix bool - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- User
Data string - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- Vswitch
Id string - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- instance
Type String - The specification of the instance. Example value: ens.sn1.small.
- internet
Max IntegerBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- payment
Type String - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- schedule
Area StringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- amount Integer
- The number of instances created, with a minimum of 1 and a maximum of 100.
- auto
Renew Boolean - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- auto
Use StringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- billing
Cycle String - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- carrier String
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- data
Disks List<InstanceData Disk> - Data disk specifications. See
data_disk
below. - ens
Region StringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- force
Stop String - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- host
Name String - The host name of the instance. Example value: test-HostName.
- image
Id String - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- include
Data BooleanDisks - Whether the Payment type of the disk created with the instance is converted.
- instance
Charge StringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- instance
Name String - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- internet
Charge StringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- ip
Type String - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- net
District StringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- net
Work StringId - The network ID of the instance. Can only be used in node-level scheduling.
- password String
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- password
Inherit Boolean - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- period Integer
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- period
Unit String - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- private
Ip StringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- public
Ip BooleanIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- scheduling
Price StringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- scheduling
Strategy String - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- security
Id String - ID of the security group to which the instance belongs.
- status String
- Status of the instance.
- system
Disk InstanceSystem Disk - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - unique
Suffix Boolean - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- user
Data String - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- vswitch
Id String - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- instance
Type string - The specification of the instance. Example value: ens.sn1.small.
- internet
Max numberBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- payment
Type string - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- schedule
Area stringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- amount number
- The number of instances created, with a minimum of 1 and a maximum of 100.
- auto
Renew boolean - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- auto
Use stringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- billing
Cycle string - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- carrier string
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- data
Disks InstanceData Disk[] - Data disk specifications. See
data_disk
below. - ens
Region stringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- force
Stop string - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- host
Name string - The host name of the instance. Example value: test-HostName.
- image
Id string - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- include
Data booleanDisks - Whether the Payment type of the disk created with the instance is converted.
- instance
Charge stringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- instance
Name string - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- internet
Charge stringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- ip
Type string - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- net
District stringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- net
Work stringId - The network ID of the instance. Can only be used in node-level scheduling.
- password string
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- password
Inherit boolean - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- period number
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- period
Unit string - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- private
Ip stringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- public
Ip booleanIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- scheduling
Price stringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- scheduling
Strategy string - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- security
Id string - ID of the security group to which the instance belongs.
- status string
- Status of the instance.
- system
Disk InstanceSystem Disk - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - unique
Suffix boolean - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- user
Data string - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- vswitch
Id string - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- instance_
type str - The specification of the instance. Example value: ens.sn1.small.
- internet_
max_ intbandwidth_ out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- payment_
type str - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- schedule_
area_ strlevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- amount int
- The number of instances created, with a minimum of 1 and a maximum of 100.
- auto_
renew bool - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- auto_
use_ strcoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- billing_
cycle str - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- carrier str
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- data_
disks Sequence[InstanceData Disk Args] - Data disk specifications. See
data_disk
below. - ens_
region_ strid - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- force_
stop str - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- host_
name str - The host name of the instance. Example value: test-HostName.
- image_
id str - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- include_
data_ booldisks - Whether the Payment type of the disk created with the instance is converted.
- instance_
charge_ strstrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- instance_
name str - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- internet_
charge_ strtype - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- ip_
type str - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- net_
district_ strcode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- net_
work_ strid - The network ID of the instance. Can only be used in node-level scheduling.
- password str
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- password_
inherit bool - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- period int
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- period_
unit str - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- private_
ip_ straddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- public_
ip_ boolidentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- scheduling_
price_ strstrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- scheduling_
strategy str - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- security_
id str - ID of the security group to which the instance belongs.
- status str
- Status of the instance.
- system_
disk InstanceSystem Disk Args - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - unique_
suffix bool - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- user_
data str - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- vswitch_
id str - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- instance
Type String - The specification of the instance. Example value: ens.sn1.small.
- internet
Max NumberBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- payment
Type String - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- schedule
Area StringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- amount Number
- The number of instances created, with a minimum of 1 and a maximum of 100.
- auto
Renew Boolean - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- auto
Use StringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- billing
Cycle String - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- carrier String
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- data
Disks List<Property Map> - Data disk specifications. See
data_disk
below. - ens
Region StringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- force
Stop String - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- host
Name String - The host name of the instance. Example value: test-HostName.
- image
Id String - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- include
Data BooleanDisks - Whether the Payment type of the disk created with the instance is converted.
- instance
Charge StringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- instance
Name String - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- internet
Charge StringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- ip
Type String - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- net
District StringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- net
Work StringId - The network ID of the instance. Can only be used in node-level scheduling.
- password String
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- password
Inherit Boolean - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- period Number
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- period
Unit String - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- private
Ip StringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- public
Ip BooleanIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- scheduling
Price StringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- scheduling
Strategy String - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- security
Id String - ID of the security group to which the instance belongs.
- status String
- Status of the instance.
- system
Disk Property Map - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - unique
Suffix Boolean - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- user
Data String - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- vswitch
Id String - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
amount: Optional[int] = None,
auto_renew: Optional[bool] = None,
auto_use_coupon: Optional[str] = None,
billing_cycle: Optional[str] = None,
carrier: Optional[str] = None,
data_disks: Optional[Sequence[InstanceDataDiskArgs]] = None,
ens_region_id: Optional[str] = None,
force_stop: Optional[str] = None,
host_name: Optional[str] = None,
image_id: Optional[str] = None,
include_data_disks: Optional[bool] = None,
instance_charge_strategy: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[int] = None,
ip_type: Optional[str] = None,
net_district_code: Optional[str] = None,
net_work_id: Optional[str] = None,
password: Optional[str] = None,
password_inherit: Optional[bool] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
private_ip_address: Optional[str] = None,
public_ip_identification: Optional[bool] = None,
schedule_area_level: Optional[str] = None,
scheduling_price_strategy: Optional[str] = None,
scheduling_strategy: Optional[str] = None,
security_id: Optional[str] = None,
status: Optional[str] = None,
system_disk: Optional[InstanceSystemDiskArgs] = None,
unique_suffix: Optional[bool] = None,
user_data: Optional[str] = None,
vswitch_id: Optional[str] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState 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.
- Amount int
- The number of instances created, with a minimum of 1 and a maximum of 100.
- Auto
Renew bool - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- Auto
Use stringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- Billing
Cycle string - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- Carrier string
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- Data
Disks List<Pulumi.Ali Cloud. Ens. Inputs. Instance Data Disk> - Data disk specifications. See
data_disk
below. - Ens
Region stringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- Force
Stop string - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- Host
Name string - The host name of the instance. Example value: test-HostName.
- Image
Id string - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- Include
Data boolDisks - Whether the Payment type of the disk created with the instance is converted.
- Instance
Charge stringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- Instance
Name string - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- Instance
Type string - The specification of the instance. Example value: ens.sn1.small.
- Internet
Charge stringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- Internet
Max intBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- Ip
Type string - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- Net
District stringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- Net
Work stringId - The network ID of the instance. Can only be used in node-level scheduling.
- Password string
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- Password
Inherit bool - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- Payment
Type string - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- Period int
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- Period
Unit string - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- Private
Ip stringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- Public
Ip boolIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- Schedule
Area stringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- Scheduling
Price stringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- Scheduling
Strategy string - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- Security
Id string - ID of the security group to which the instance belongs.
- Status string
- Status of the instance.
- System
Disk Pulumi.Ali Cloud. Ens. Inputs. Instance System Disk - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - Unique
Suffix bool - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- User
Data string - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- Vswitch
Id string - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- Amount int
- The number of instances created, with a minimum of 1 and a maximum of 100.
- Auto
Renew bool - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- Auto
Use stringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- Billing
Cycle string - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- Carrier string
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- Data
Disks []InstanceData Disk Args - Data disk specifications. See
data_disk
below. - Ens
Region stringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- Force
Stop string - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- Host
Name string - The host name of the instance. Example value: test-HostName.
- Image
Id string - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- Include
Data boolDisks - Whether the Payment type of the disk created with the instance is converted.
- Instance
Charge stringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- Instance
Name string - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- Instance
Type string - The specification of the instance. Example value: ens.sn1.small.
- Internet
Charge stringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- Internet
Max intBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- Ip
Type string - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- Net
District stringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- Net
Work stringId - The network ID of the instance. Can only be used in node-level scheduling.
- Password string
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- Password
Inherit bool - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- Payment
Type string - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- Period int
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- Period
Unit string - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- Private
Ip stringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- Public
Ip boolIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- Schedule
Area stringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- Scheduling
Price stringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- Scheduling
Strategy string - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- Security
Id string - ID of the security group to which the instance belongs.
- Status string
- Status of the instance.
- System
Disk InstanceSystem Disk Args - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - Unique
Suffix bool - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- User
Data string - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- Vswitch
Id string - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- amount Integer
- The number of instances created, with a minimum of 1 and a maximum of 100.
- auto
Renew Boolean - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- auto
Use StringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- billing
Cycle String - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- carrier String
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- data
Disks List<InstanceData Disk> - Data disk specifications. See
data_disk
below. - ens
Region StringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- force
Stop String - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- host
Name String - The host name of the instance. Example value: test-HostName.
- image
Id String - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- include
Data BooleanDisks - Whether the Payment type of the disk created with the instance is converted.
- instance
Charge StringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- instance
Name String - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- instance
Type String - The specification of the instance. Example value: ens.sn1.small.
- internet
Charge StringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- internet
Max IntegerBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- ip
Type String - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- net
District StringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- net
Work StringId - The network ID of the instance. Can only be used in node-level scheduling.
- password String
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- password
Inherit Boolean - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- payment
Type String - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- period Integer
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- period
Unit String - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- private
Ip StringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- public
Ip BooleanIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- schedule
Area StringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- scheduling
Price StringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- scheduling
Strategy String - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- security
Id String - ID of the security group to which the instance belongs.
- status String
- Status of the instance.
- system
Disk InstanceSystem Disk - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - unique
Suffix Boolean - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- user
Data String - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- vswitch
Id String - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- amount number
- The number of instances created, with a minimum of 1 and a maximum of 100.
- auto
Renew boolean - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- auto
Use stringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- billing
Cycle string - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- carrier string
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- data
Disks InstanceData Disk[] - Data disk specifications. See
data_disk
below. - ens
Region stringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- force
Stop string - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- host
Name string - The host name of the instance. Example value: test-HostName.
- image
Id string - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- include
Data booleanDisks - Whether the Payment type of the disk created with the instance is converted.
- instance
Charge stringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- instance
Name string - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- instance
Type string - The specification of the instance. Example value: ens.sn1.small.
- internet
Charge stringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- internet
Max numberBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- ip
Type string - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- net
District stringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- net
Work stringId - The network ID of the instance. Can only be used in node-level scheduling.
- password string
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- password
Inherit boolean - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- payment
Type string - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- period number
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- period
Unit string - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- private
Ip stringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- public
Ip booleanIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- schedule
Area stringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- scheduling
Price stringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- scheduling
Strategy string - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- security
Id string - ID of the security group to which the instance belongs.
- status string
- Status of the instance.
- system
Disk InstanceSystem Disk - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - unique
Suffix boolean - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- user
Data string - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- vswitch
Id string - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- amount int
- The number of instances created, with a minimum of 1 and a maximum of 100.
- auto_
renew bool - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- auto_
use_ strcoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- billing_
cycle str - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- carrier str
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- data_
disks Sequence[InstanceData Disk Args] - Data disk specifications. See
data_disk
below. - ens_
region_ strid - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- force_
stop str - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- host_
name str - The host name of the instance. Example value: test-HostName.
- image_
id str - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- include_
data_ booldisks - Whether the Payment type of the disk created with the instance is converted.
- instance_
charge_ strstrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- instance_
name str - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- instance_
type str - The specification of the instance. Example value: ens.sn1.small.
- internet_
charge_ strtype - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- internet_
max_ intbandwidth_ out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- ip_
type str - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- net_
district_ strcode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- net_
work_ strid - The network ID of the instance. Can only be used in node-level scheduling.
- password str
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- password_
inherit bool - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- payment_
type str - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- period int
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- period_
unit str - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- private_
ip_ straddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- public_
ip_ boolidentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- schedule_
area_ strlevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- scheduling_
price_ strstrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- scheduling_
strategy str - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- security_
id str - ID of the security group to which the instance belongs.
- status str
- Status of the instance.
- system_
disk InstanceSystem Disk Args - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - unique_
suffix bool - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- user_
data str - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- vswitch_
id str - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
- amount Number
- The number of instances created, with a minimum of 1 and a maximum of 100.
- auto
Renew Boolean - Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
- auto
Use StringCoupon - Whether to use vouchers. The default is to use. Value:
- true (used)
- false (not used).
- billing
Cycle String - The billing cycle for instance computing resources. Only instance-level pay-as-you-go is supported. Value
- Hour: hourly billing
- Day: Daily billing
- Month: monthly billing.
- carrier String
- Operator, required for regional scheduling. Optional values:
- cmcc (mobile)
- unicom
- telecom.
- data
Disks List<Property Map> - Data disk specifications. See
data_disk
below. - ens
Region StringId - The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
- force
Stop String - Whether to force the identity when operating the instance. Optional values:
- true: Force
- false (default): non-mandatory
- host
Name String - The host name of the instance. Example value: test-HostName.
- image
Id String - The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *.
- include
Data BooleanDisks - Whether the Payment type of the disk created with the instance is converted.
- instance
Charge StringStrategy - The instance billing policy. Optional values:
- instance: instance granularity (the subscription method does not support instance)
- user: user Dimension (user is not transmitted or supported in the prepaid mode).
- instance
Name String - The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.), or hyphens (-) The default value is the InstanceId of the instance. .
- instance
Type String - The specification of the instance. Example value: ens.sn1.small.
- internet
Charge StringType - Instance bandwidth billing method. If the billing method can be selected for the first purchase, the subsequent value of this field will be processed by default according to the billing method selected for the first time. Optional values:
- BandwidthByDay: Daily peak bandwidth
- 95bandwidthbymonth: 95 peak bandwidth.
- internet
Max NumberBandwidth Out - Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization. Please note that the value must not be greater than 9007199254740991.
- ip
Type String - The IP type. Value:
- ipv4 (default):IPv4
- ipv6:IPv6
- ipv4Andipv6:IPv4 and IPv6.
- net
District StringCode - The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling.
- net
Work StringId - The network ID of the instance. Can only be used in node-level scheduling.
- password String
- The instance password. At least one of Password, KeyPairName, and PasswordInherit.
- password
Inherit Boolean - Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed.
- payment
Type String - Instance payment method. Optional values:
- Subscription: prepaid, annual and monthly
- PayAsYouGo: Pay by volume.
- period Number
- The duration of the resource purchase. Value method:
- If PeriodUnit is set to Day, Period can only be set to 3.
- If PeriodUnit is set to Month, Period can be set to 1-9,12.
- period
Unit String - The unit of time for purchasing resources. Value:
- Month (default): purchase by Month
- Day: buy by Day.
- private
Ip StringAddress - The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
- public
Ip BooleanIdentification - Whether to assign a public IP identifier. Value:
- true (default): Assign
- false: do not assign.
- schedule
Area StringLevel - Scheduling level, through which node-level scheduling or area scheduling is performed. Optional values:
- Node-level scheduling: Region
- Regional scheduling: Big (region),Middle (province),Small (city).
- scheduling
Price StringStrategy - Scheduling price policy. If it is not filled in, the default priority is low price. Value:
- PriceLowPriority
- PriceLowPriority (priority low price).
- scheduling
Strategy String - Scheduling policy. Optional values:
- Concentrate for node-level scheduling
- For regional scheduling, Concentrate, Disperse.
- security
Id String - ID of the security group to which the instance belongs.
- status String
- Status of the instance.
- system
Disk Property Map - System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families. See
system_disk
below. - unique
Suffix Boolean - Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
- user
Data String - User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
- vswitch
Id String - The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling.
Supporting Types
InstanceDataDisk, InstanceDataDiskArgs
InstanceSystemDisk, InstanceSystemDiskArgs
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.