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,
key_pair_name: Optional[str] = None,
data_disks: Optional[Sequence[InstanceDataDiskArgs]] = None,
net_district_code: Optional[str] = None,
net_work_id: 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,
auto_use_coupon: Optional[str] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[int] = None,
ip_type: Optional[str] = None,
amount: Optional[int] = None,
carrier: Optional[str] = None,
password: Optional[str] = None,
billing_cycle: Optional[str] = None,
password_inherit: Optional[bool] = None,
auto_renew: Optional[bool] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
private_ip_address: Optional[str] = None,
public_ip_identification: Optional[bool] = None,
auto_release_time: Optional[str] = None,
scheduling_price_strategy: Optional[str] = None,
scheduling_strategy: Optional[str] = None,
security_id: Optional[str] = None,
spot_strategy: Optional[str] = None,
status: Optional[str] = None,
system_disk: Optional[InstanceSystemDiskArgs] = None,
tags: Optional[Mapping[str, str]] = 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",
KeyPairName = "string",
DataDisks = new[]
{
new AliCloud.Ens.Inputs.InstanceDataDiskArgs
{
Category = "string",
DiskId = "string",
EncryptKeyId = "string",
Encrypted = false,
Size = 0,
},
},
NetDistrictCode = "string",
NetWorkId = "string",
EnsRegionId = "string",
ForceStop = "string",
HostName = "string",
ImageId = "string",
IncludeDataDisks = false,
InstanceChargeStrategy = "string",
InstanceName = "string",
AutoUseCoupon = "string",
InternetChargeType = "string",
InternetMaxBandwidthOut = 0,
IpType = "string",
Amount = 0,
Carrier = "string",
Password = "string",
BillingCycle = "string",
PasswordInherit = false,
AutoRenew = false,
Period = 0,
PeriodUnit = "string",
PrivateIpAddress = "string",
PublicIpIdentification = false,
AutoReleaseTime = "string",
SchedulingPriceStrategy = "string",
SchedulingStrategy = "string",
SecurityId = "string",
SpotStrategy = "string",
Status = "string",
SystemDisk = new AliCloud.Ens.Inputs.InstanceSystemDiskArgs
{
Category = "string",
Size = 0,
},
Tags =
{
{ "string", "string" },
},
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"),
KeyPairName: pulumi.String("string"),
DataDisks: ens.InstanceDataDiskArray{
&ens.InstanceDataDiskArgs{
Category: pulumi.String("string"),
DiskId: pulumi.String("string"),
EncryptKeyId: pulumi.String("string"),
Encrypted: pulumi.Bool(false),
Size: pulumi.Int(0),
},
},
NetDistrictCode: pulumi.String("string"),
NetWorkId: 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"),
AutoUseCoupon: pulumi.String("string"),
InternetChargeType: pulumi.String("string"),
InternetMaxBandwidthOut: pulumi.Int(0),
IpType: pulumi.String("string"),
Amount: pulumi.Int(0),
Carrier: pulumi.String("string"),
Password: pulumi.String("string"),
BillingCycle: pulumi.String("string"),
PasswordInherit: pulumi.Bool(false),
AutoRenew: pulumi.Bool(false),
Period: pulumi.Int(0),
PeriodUnit: pulumi.String("string"),
PrivateIpAddress: pulumi.String("string"),
PublicIpIdentification: pulumi.Bool(false),
AutoReleaseTime: pulumi.String("string"),
SchedulingPriceStrategy: pulumi.String("string"),
SchedulingStrategy: pulumi.String("string"),
SecurityId: pulumi.String("string"),
SpotStrategy: pulumi.String("string"),
Status: pulumi.String("string"),
SystemDisk: &ens.InstanceSystemDiskArgs{
Category: pulumi.String("string"),
Size: pulumi.Int(0),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
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")
.keyPairName("string")
.dataDisks(InstanceDataDiskArgs.builder()
.category("string")
.diskId("string")
.encryptKeyId("string")
.encrypted(false)
.size(0)
.build())
.netDistrictCode("string")
.netWorkId("string")
.ensRegionId("string")
.forceStop("string")
.hostName("string")
.imageId("string")
.includeDataDisks(false)
.instanceChargeStrategy("string")
.instanceName("string")
.autoUseCoupon("string")
.internetChargeType("string")
.internetMaxBandwidthOut(0)
.ipType("string")
.amount(0)
.carrier("string")
.password("string")
.billingCycle("string")
.passwordInherit(false)
.autoRenew(false)
.period(0)
.periodUnit("string")
.privateIpAddress("string")
.publicIpIdentification(false)
.autoReleaseTime("string")
.schedulingPriceStrategy("string")
.schedulingStrategy("string")
.securityId("string")
.spotStrategy("string")
.status("string")
.systemDisk(InstanceSystemDiskArgs.builder()
.category("string")
.size(0)
.build())
.tags(Map.of("string", "string"))
.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",
key_pair_name="string",
data_disks=[{
"category": "string",
"disk_id": "string",
"encrypt_key_id": "string",
"encrypted": False,
"size": 0,
}],
net_district_code="string",
net_work_id="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",
auto_use_coupon="string",
internet_charge_type="string",
internet_max_bandwidth_out=0,
ip_type="string",
amount=0,
carrier="string",
password="string",
billing_cycle="string",
password_inherit=False,
auto_renew=False,
period=0,
period_unit="string",
private_ip_address="string",
public_ip_identification=False,
auto_release_time="string",
scheduling_price_strategy="string",
scheduling_strategy="string",
security_id="string",
spot_strategy="string",
status="string",
system_disk={
"category": "string",
"size": 0,
},
tags={
"string": "string",
},
unique_suffix=False,
user_data="string",
vswitch_id="string")
const exampleinstanceResourceResourceFromEnsinstance = new alicloud.ens.Instance("exampleinstanceResourceResourceFromEnsinstance", {
instanceType: "string",
scheduleAreaLevel: "string",
paymentType: "string",
keyPairName: "string",
dataDisks: [{
category: "string",
diskId: "string",
encryptKeyId: "string",
encrypted: false,
size: 0,
}],
netDistrictCode: "string",
netWorkId: "string",
ensRegionId: "string",
forceStop: "string",
hostName: "string",
imageId: "string",
includeDataDisks: false,
instanceChargeStrategy: "string",
instanceName: "string",
autoUseCoupon: "string",
internetChargeType: "string",
internetMaxBandwidthOut: 0,
ipType: "string",
amount: 0,
carrier: "string",
password: "string",
billingCycle: "string",
passwordInherit: false,
autoRenew: false,
period: 0,
periodUnit: "string",
privateIpAddress: "string",
publicIpIdentification: false,
autoReleaseTime: "string",
schedulingPriceStrategy: "string",
schedulingStrategy: "string",
securityId: "string",
spotStrategy: "string",
status: "string",
systemDisk: {
category: "string",
size: 0,
},
tags: {
string: "string",
},
uniqueSuffix: false,
userData: "string",
vswitchId: "string",
});
type: alicloud:ens:Instance
properties:
amount: 0
autoReleaseTime: string
autoRenew: false
autoUseCoupon: string
billingCycle: string
carrier: string
dataDisks:
- category: string
diskId: string
encryptKeyId: string
encrypted: false
size: 0
ensRegionId: string
forceStop: string
hostName: string
imageId: string
includeDataDisks: false
instanceChargeStrategy: string
instanceName: string
instanceType: string
internetChargeType: string
internetMaxBandwidthOut: 0
ipType: string
keyPairName: 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
spotStrategy: string
status: string
systemDisk:
category: string
size: 0
tags:
string: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instance resource accepts the following input properties:
- Instance
Type string - The specification of the instance. Example value: ens.sn1.small
- Payment
Type string - Instance payment method. Since v1.230.0, you can modify payment_type. 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
Release stringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- 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
- Key
Pair stringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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.
- Spot
Strategy string - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - Dictionary<string, string>
- The tag bound to the instance
- 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
- Payment
Type string - Instance payment method. Since v1.230.0, you can modify payment_type. 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
Release stringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- 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
- Key
Pair stringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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.
- Spot
Strategy string - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - map[string]string
- The tag bound to the instance
- 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
- payment
Type String - Instance payment method. Since v1.230.0, you can modify payment_type. 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
Release StringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- 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
- key
Pair StringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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.
- spot
Strategy String - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - Map<String,String>
- The tag bound to the instance
- 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
- payment
Type string - Instance payment method. Since v1.230.0, you can modify payment_type. 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
Release stringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- 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
- key
Pair stringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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.
- spot
Strategy string - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - {[key: string]: string}
- The tag bound to the instance
- 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
- payment_
type str - Instance payment method. Since v1.230.0, you can modify payment_type. 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_
release_ strtime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- 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
- key_
pair_ strname The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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.
- spot_
strategy str - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - Mapping[str, str]
- The tag bound to the instance
- 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
- payment
Type String - Instance payment method. Since v1.230.0, you can modify payment_type. 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
Release StringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- 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
- key
Pair StringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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.
- spot
Strategy String - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - Map<String>
- The tag bound to the instance
- 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_release_time: Optional[str] = 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,
key_pair_name: 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,
spot_strategy: Optional[str] = None,
status: Optional[str] = None,
system_disk: Optional[InstanceSystemDiskArgs] = None,
tags: Optional[Mapping[str, str]] = 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
Release stringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- Key
Pair stringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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. Since v1.230.0, you can modify payment_type. 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.
- Spot
Strategy string - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - Dictionary<string, string>
- The tag bound to the instance
- 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
Release stringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- Key
Pair stringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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. Since v1.230.0, you can modify payment_type. 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.
- Spot
Strategy string - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - map[string]string
- The tag bound to the instance
- 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
Release StringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- key
Pair StringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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. Since v1.230.0, you can modify payment_type. 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.
- spot
Strategy String - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - Map<String,String>
- The tag bound to the instance
- 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
Release stringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- key
Pair stringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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. Since v1.230.0, you can modify payment_type. 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.
- spot
Strategy string - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - {[key: string]: string}
- The tag bound to the instance
- 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_
release_ strtime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- key_
pair_ strname The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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. Since v1.230.0, you can modify payment_type. 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.
- spot_
strategy str - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - Mapping[str, str]
- The tag bound to the instance
- 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
Release StringTime - The automatic release time of the pay-as-you-go instance. According to the [ISO 8601] standard, UTC +0 time is used. The format is: 'yyyy-MM-ddTHH:mm:ssZ '.
- If the second ('ss') value is not '00', it is automatically taken as the start of the current minute ('mm').
- The minimum release time is one hour after the current time.
- 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
- key
Pair StringName The key pair name.
NOTE: At least one of
Password
,KeyPairName
, and **PasswordInherit.- 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. Since v1.230.0, you can modify payment_type. 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.
- spot
Strategy String - The bidding strategy for pay-as-you-go instances. It takes effect when the value of the 'InstanceChargeType' parameter is set to 'PostPaid. Value range:
- NoSpot: normal pay-as-you-go instance (default)
- SpotAsPriceGo: The system automatically bids, following the actual price in the current market.
- 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. - Map<String>
- The tag bound to the instance
- 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
- Category string
- Data disk type. Optional values:
- cloud_efficiency: Ultra cloud disk
- cloud_ssd: Full Flash cloud disk
- local_hdd: local hdd disk
- local_ssd: local disk ssd.
- Disk
Id string - Cloud Disk ID.
- Encrypt
Key stringId - The ID of the KMS key used by the cloud disk.
- Encrypted bool
- Whether to encrypt the cloud disk. Value range: true: Yes false (default): No.
- Size int
- Data disk size, unit: GB.
- Category string
- Data disk type. Optional values:
- cloud_efficiency: Ultra cloud disk
- cloud_ssd: Full Flash cloud disk
- local_hdd: local hdd disk
- local_ssd: local disk ssd.
- Disk
Id string - Cloud Disk ID.
- Encrypt
Key stringId - The ID of the KMS key used by the cloud disk.
- Encrypted bool
- Whether to encrypt the cloud disk. Value range: true: Yes false (default): No.
- Size int
- Data disk size, unit: GB.
- category String
- Data disk type. Optional values:
- cloud_efficiency: Ultra cloud disk
- cloud_ssd: Full Flash cloud disk
- local_hdd: local hdd disk
- local_ssd: local disk ssd.
- disk
Id String - Cloud Disk ID.
- encrypt
Key StringId - The ID of the KMS key used by the cloud disk.
- encrypted Boolean
- Whether to encrypt the cloud disk. Value range: true: Yes false (default): No.
- size Integer
- Data disk size, unit: GB.
- category string
- Data disk type. Optional values:
- cloud_efficiency: Ultra cloud disk
- cloud_ssd: Full Flash cloud disk
- local_hdd: local hdd disk
- local_ssd: local disk ssd.
- disk
Id string - Cloud Disk ID.
- encrypt
Key stringId - The ID of the KMS key used by the cloud disk.
- encrypted boolean
- Whether to encrypt the cloud disk. Value range: true: Yes false (default): No.
- size number
- Data disk size, unit: GB.
- category str
- Data disk type. Optional values:
- cloud_efficiency: Ultra cloud disk
- cloud_ssd: Full Flash cloud disk
- local_hdd: local hdd disk
- local_ssd: local disk ssd.
- disk_
id str - Cloud Disk ID.
- encrypt_
key_ strid - The ID of the KMS key used by the cloud disk.
- encrypted bool
- Whether to encrypt the cloud disk. Value range: true: Yes false (default): No.
- size int
- Data disk size, unit: GB.
- category String
- Data disk type. Optional values:
- cloud_efficiency: Ultra cloud disk
- cloud_ssd: Full Flash cloud disk
- local_hdd: local hdd disk
- local_ssd: local disk ssd.
- disk
Id String - Cloud Disk ID.
- encrypt
Key StringId - The ID of the KMS key used by the cloud disk.
- encrypted Boolean
- Whether to encrypt the cloud disk. Value range: true: Yes false (default): No.
- size Number
- Data disk size, unit: GB.
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.