1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ens
  5. Instance
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.ens.Instance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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:

    InstanceType string
    The specification of the instance. Example value: ens.sn1.small
    PaymentType string
    Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:

    • Subscription: prepaid, annual and monthly
    • PayAsYouGo: Pay by volume
    ScheduleAreaLevel string
    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
    AutoReleaseTime string
    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.
    AutoRenew bool
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    AutoUseCoupon string
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    BillingCycle 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
    DataDisks List<Pulumi.AliCloud.Ens.Inputs.InstanceDataDisk>
    Data disk specifications See data_disk below.
    EnsRegionId string
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    ForceStop string
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    HostName string
    The host name of the instance. Example value: test-HostName
    ImageId string
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    IncludeDataDisks bool
    Whether the Payment type of the disk created with the instance is converted.
    InstanceChargeStrategy string
    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)
    InstanceName 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.

    InternetChargeType string
    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
    InternetMaxBandwidthOut int
    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
    IpType string
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    KeyPairName string

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    NetDistrictCode string
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    NetWorkId string
    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
    PasswordInherit 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.
    PeriodUnit string
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    PrivateIpAddress string
    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.
    PublicIpIdentification bool
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    SchedulingPriceStrategy string
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    SchedulingStrategy string
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    SecurityId string
    ID of the security group to which the instance belongs.
    SpotStrategy 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
    SystemDisk Pulumi.AliCloud.Ens.Inputs.InstanceSystemDisk
    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.
    Tags Dictionary<string, string>
    The tag bound to the instance
    UniqueSuffix bool
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    UserData string
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    VswitchId string
    The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
    InstanceType string
    The specification of the instance. Example value: ens.sn1.small
    PaymentType string
    Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:

    • Subscription: prepaid, annual and monthly
    • PayAsYouGo: Pay by volume
    ScheduleAreaLevel string
    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
    AutoReleaseTime string
    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.
    AutoRenew bool
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    AutoUseCoupon string
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    BillingCycle 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
    DataDisks []InstanceDataDiskArgs
    Data disk specifications See data_disk below.
    EnsRegionId string
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    ForceStop string
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    HostName string
    The host name of the instance. Example value: test-HostName
    ImageId string
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    IncludeDataDisks bool
    Whether the Payment type of the disk created with the instance is converted.
    InstanceChargeStrategy string
    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)
    InstanceName 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.

    InternetChargeType string
    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
    InternetMaxBandwidthOut int
    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
    IpType string
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    KeyPairName string

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    NetDistrictCode string
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    NetWorkId string
    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
    PasswordInherit 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.
    PeriodUnit string
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    PrivateIpAddress string
    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.
    PublicIpIdentification bool
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    SchedulingPriceStrategy string
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    SchedulingStrategy string
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    SecurityId string
    ID of the security group to which the instance belongs.
    SpotStrategy 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
    SystemDisk InstanceSystemDiskArgs
    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.
    Tags map[string]string
    The tag bound to the instance
    UniqueSuffix bool
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    UserData string
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    VswitchId string
    The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
    instanceType String
    The specification of the instance. Example value: ens.sn1.small
    paymentType String
    Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:

    • Subscription: prepaid, annual and monthly
    • PayAsYouGo: Pay by volume
    scheduleAreaLevel String
    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
    autoReleaseTime String
    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.
    autoRenew Boolean
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    autoUseCoupon String
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    billingCycle 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
    dataDisks List<InstanceDataDisk>
    Data disk specifications See data_disk below.
    ensRegionId String
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    forceStop String
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    hostName String
    The host name of the instance. Example value: test-HostName
    imageId String
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    includeDataDisks Boolean
    Whether the Payment type of the disk created with the instance is converted.
    instanceChargeStrategy String
    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)
    instanceName 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.

    internetChargeType String
    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
    internetMaxBandwidthOut Integer
    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
    ipType String
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    keyPairName String

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    netDistrictCode String
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    netWorkId String
    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
    passwordInherit 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.
    periodUnit String
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    privateIpAddress String
    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.
    publicIpIdentification Boolean
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    schedulingPriceStrategy String
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    schedulingStrategy String
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    securityId String
    ID of the security group to which the instance belongs.
    spotStrategy 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
    systemDisk InstanceSystemDisk
    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.
    tags Map<String,String>
    The tag bound to the instance
    uniqueSuffix Boolean
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    userData String
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    vswitchId String
    The ID of the vSwitch to which the instance belongs. Can only be used in node-level scheduling
    instanceType string
    The specification of the instance. Example value: ens.sn1.small
    paymentType string
    Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:

    • Subscription: prepaid, annual and monthly
    • PayAsYouGo: Pay by volume
    scheduleAreaLevel string
    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
    autoReleaseTime string
    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.
    autoRenew boolean
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    autoUseCoupon string
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    billingCycle 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
    dataDisks InstanceDataDisk[]
    Data disk specifications See data_disk below.
    ensRegionId string
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    forceStop string
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    hostName string
    The host name of the instance. Example value: test-HostName
    imageId string
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    includeDataDisks boolean
    Whether the Payment type of the disk created with the instance is converted.
    instanceChargeStrategy string
    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)
    instanceName 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.

    internetChargeType string
    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
    internetMaxBandwidthOut number
    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
    ipType string
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    keyPairName string

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    netDistrictCode string
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    netWorkId string
    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
    passwordInherit 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.
    periodUnit string
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    privateIpAddress string
    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.
    publicIpIdentification boolean
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    schedulingPriceStrategy string
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    schedulingStrategy string
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    securityId string
    ID of the security group to which the instance belongs.
    spotStrategy 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
    systemDisk InstanceSystemDisk
    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.
    tags {[key: string]: string}
    The tag bound to the instance
    uniqueSuffix boolean
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    userData string
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    vswitchId 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_level str
    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_time str
    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_coupon str
    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[InstanceDataDiskArgs]
    Data disk specifications See data_disk below.
    ens_region_id str
    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_disks bool
    Whether the Payment type of the disk created with the instance is converted.
    instance_charge_strategy str
    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_type str
    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_bandwidth_out int
    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_name str

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    net_district_code str
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    net_work_id str
    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_address str
    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_identification bool
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    scheduling_price_strategy str
    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 InstanceSystemDiskArgs
    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.
    tags 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
    instanceType String
    The specification of the instance. Example value: ens.sn1.small
    paymentType String
    Instance payment method. Since v1.230.0, you can modify payment_type. Optional values:

    • Subscription: prepaid, annual and monthly
    • PayAsYouGo: Pay by volume
    scheduleAreaLevel String
    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
    autoReleaseTime String
    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.
    autoRenew Boolean
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    autoUseCoupon String
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    billingCycle 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
    dataDisks List<Property Map>
    Data disk specifications See data_disk below.
    ensRegionId String
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    forceStop String
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    hostName String
    The host name of the instance. Example value: test-HostName
    imageId String
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    includeDataDisks Boolean
    Whether the Payment type of the disk created with the instance is converted.
    instanceChargeStrategy String
    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)
    instanceName 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.

    internetChargeType String
    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
    internetMaxBandwidthOut Number
    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
    ipType String
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    keyPairName String

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    netDistrictCode String
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    netWorkId String
    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
    passwordInherit 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.
    periodUnit String
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    privateIpAddress String
    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.
    publicIpIdentification Boolean
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    schedulingPriceStrategy String
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    schedulingStrategy String
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    securityId String
    ID of the security group to which the instance belongs.
    spotStrategy 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
    systemDisk 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.
    tags Map<String>
    The tag bound to the instance
    uniqueSuffix Boolean
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    userData String
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    vswitchId 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.
    The following state arguments are supported:
    Amount int
    The number of instances created, with a minimum of 1 and a maximum of 100
    AutoReleaseTime string
    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.
    AutoRenew bool
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    AutoUseCoupon string
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    BillingCycle 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
    DataDisks List<Pulumi.AliCloud.Ens.Inputs.InstanceDataDisk>
    Data disk specifications See data_disk below.
    EnsRegionId string
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    ForceStop string
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    HostName string
    The host name of the instance. Example value: test-HostName
    ImageId string
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    IncludeDataDisks bool
    Whether the Payment type of the disk created with the instance is converted.
    InstanceChargeStrategy string
    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)
    InstanceName 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.

    InstanceType string
    The specification of the instance. Example value: ens.sn1.small
    InternetChargeType string
    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
    InternetMaxBandwidthOut int
    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
    IpType string
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    KeyPairName string

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    NetDistrictCode string
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    NetWorkId string
    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
    PasswordInherit bool
    Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
    PaymentType 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.
    PeriodUnit string
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    PrivateIpAddress string
    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.
    PublicIpIdentification bool
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    ScheduleAreaLevel string
    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)
    SchedulingPriceStrategy string
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    SchedulingStrategy string
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    SecurityId string
    ID of the security group to which the instance belongs.
    SpotStrategy 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
    SystemDisk Pulumi.AliCloud.Ens.Inputs.InstanceSystemDisk
    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.
    Tags Dictionary<string, string>
    The tag bound to the instance
    UniqueSuffix bool
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    UserData string
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    VswitchId 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
    AutoReleaseTime string
    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.
    AutoRenew bool
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    AutoUseCoupon string
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    BillingCycle 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
    DataDisks []InstanceDataDiskArgs
    Data disk specifications See data_disk below.
    EnsRegionId string
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    ForceStop string
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    HostName string
    The host name of the instance. Example value: test-HostName
    ImageId string
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    IncludeDataDisks bool
    Whether the Payment type of the disk created with the instance is converted.
    InstanceChargeStrategy string
    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)
    InstanceName 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.

    InstanceType string
    The specification of the instance. Example value: ens.sn1.small
    InternetChargeType string
    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
    InternetMaxBandwidthOut int
    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
    IpType string
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    KeyPairName string

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    NetDistrictCode string
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    NetWorkId string
    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
    PasswordInherit bool
    Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
    PaymentType 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.
    PeriodUnit string
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    PrivateIpAddress string
    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.
    PublicIpIdentification bool
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    ScheduleAreaLevel string
    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)
    SchedulingPriceStrategy string
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    SchedulingStrategy string
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    SecurityId string
    ID of the security group to which the instance belongs.
    SpotStrategy 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
    SystemDisk InstanceSystemDiskArgs
    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.
    Tags map[string]string
    The tag bound to the instance
    UniqueSuffix bool
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    UserData string
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    VswitchId 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
    autoReleaseTime String
    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.
    autoRenew Boolean
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    autoUseCoupon String
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    billingCycle 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
    dataDisks List<InstanceDataDisk>
    Data disk specifications See data_disk below.
    ensRegionId String
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    forceStop String
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    hostName String
    The host name of the instance. Example value: test-HostName
    imageId String
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    includeDataDisks Boolean
    Whether the Payment type of the disk created with the instance is converted.
    instanceChargeStrategy String
    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)
    instanceName 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.

    instanceType String
    The specification of the instance. Example value: ens.sn1.small
    internetChargeType String
    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
    internetMaxBandwidthOut Integer
    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
    ipType String
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    keyPairName String

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    netDistrictCode String
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    netWorkId String
    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
    passwordInherit Boolean
    Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
    paymentType 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.
    periodUnit String
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    privateIpAddress String
    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.
    publicIpIdentification Boolean
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    scheduleAreaLevel String
    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)
    schedulingPriceStrategy String
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    schedulingStrategy String
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    securityId String
    ID of the security group to which the instance belongs.
    spotStrategy 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
    systemDisk InstanceSystemDisk
    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.
    tags Map<String,String>
    The tag bound to the instance
    uniqueSuffix Boolean
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    userData String
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    vswitchId 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
    autoReleaseTime string
    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.
    autoRenew boolean
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    autoUseCoupon string
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    billingCycle 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
    dataDisks InstanceDataDisk[]
    Data disk specifications See data_disk below.
    ensRegionId string
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    forceStop string
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    hostName string
    The host name of the instance. Example value: test-HostName
    imageId string
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    includeDataDisks boolean
    Whether the Payment type of the disk created with the instance is converted.
    instanceChargeStrategy string
    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)
    instanceName 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.

    instanceType string
    The specification of the instance. Example value: ens.sn1.small
    internetChargeType string
    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
    internetMaxBandwidthOut number
    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
    ipType string
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    keyPairName string

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    netDistrictCode string
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    netWorkId string
    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
    passwordInherit boolean
    Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
    paymentType 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.
    periodUnit string
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    privateIpAddress string
    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.
    publicIpIdentification boolean
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    scheduleAreaLevel string
    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)
    schedulingPriceStrategy string
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    schedulingStrategy string
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    securityId string
    ID of the security group to which the instance belongs.
    spotStrategy 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
    systemDisk InstanceSystemDisk
    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.
    tags {[key: string]: string}
    The tag bound to the instance
    uniqueSuffix boolean
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    userData string
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    vswitchId 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_time str
    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_coupon str
    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[InstanceDataDiskArgs]
    Data disk specifications See data_disk below.
    ens_region_id str
    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_disks bool
    Whether the Payment type of the disk created with the instance is converted.
    instance_charge_strategy str
    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_type str
    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_bandwidth_out int
    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_name str

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    net_district_code str
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    net_work_id str
    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_address str
    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_identification bool
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    schedule_area_level str
    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_strategy str
    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 InstanceSystemDiskArgs
    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.
    tags 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
    autoReleaseTime String
    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.
    autoRenew Boolean
    Whether to automatically renew the logo. The default value is false. This parameter is invalid when you pay by volume.
    autoUseCoupon String
    Whether to use vouchers. The default is to use. Value:

    • true (used)
    • false (not used)
    billingCycle 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
    dataDisks List<Property Map>
    Data disk specifications See data_disk below.
    ensRegionId String
    The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    forceStop String
    Whether to force the identity when operating the instance. Optional values:

    • true: Force
    • false (default): non-mandatory
    hostName String
    The host name of the instance. Example value: test-HostName
    imageId String
    The image ID of the instance. The arm version card cannot be filled in. Other specifications are required. Example value: m-5si16wo6simkt267p8b7h * * * *
    includeDataDisks Boolean
    Whether the Payment type of the disk created with the instance is converted.
    instanceChargeStrategy String
    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)
    instanceName 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.

    instanceType String
    The specification of the instance. Example value: ens.sn1.small
    internetChargeType String
    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
    internetMaxBandwidthOut Number
    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
    ipType String
    The IP type. Value:

    • ipv4 (default):IPv4
    • ipv6:IPv6
    • ipv4Andipv6:IPv4 and IPv6
    keyPairName String

    The key pair name.

    NOTE: At least one of Password, KeyPairName, and **PasswordInherit.

    netDistrictCode String
    The area code. Example value: 350000. Required for regional-level scheduling, invalid for node-level scheduling
    netWorkId String
    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
    passwordInherit Boolean
    Whether to use image preset password prompt: Password and KeyPairNamePasswordInherit must be passed
    paymentType 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.
    periodUnit String
    The unit of time for purchasing resources. Value:

    • Month (default): purchase by Month
    • Day: buy by Day
    privateIpAddress String
    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.
    publicIpIdentification Boolean
    Whether to assign a public IP identifier. Value:

    • true (default): Assign
    • false: do not assign
    scheduleAreaLevel String
    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)
    schedulingPriceStrategy String
    Scheduling price policy. If it is not filled in, the default priority is low price. Value:

    • PriceLowPriority
    • PriceLowPriority (priority low price)
    schedulingStrategy String
    Scheduling policy. Optional values:

    • Concentrate for node-level scheduling
    • For regional scheduling, Concentrate, Disperse
    securityId String
    ID of the security group to which the instance belongs.
    spotStrategy 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
    systemDisk 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.
    tags Map<String>
    The tag bound to the instance
    uniqueSuffix Boolean
    Indicates whether to add an ordered suffix to HostName and InstanceName. The ordered suffix starts from 001 and cannot exceed 999.
    userData String
    User-defined data, maximum support 16KB. You can pass in the UserData information. The UserData is encoded in Base64 format.
    vswitchId 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.
    DiskId string
    Cloud Disk ID.
    EncryptKeyId string
    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.
    DiskId string
    Cloud Disk ID.
    EncryptKeyId string
    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.
    diskId String
    Cloud Disk ID.
    encryptKeyId String
    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.
    diskId string
    Cloud Disk ID.
    encryptKeyId string
    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_id str
    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.
    diskId String
    Cloud Disk ID.
    encryptKeyId String
    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

    Category string
    System disk type. Value

    • cloud_efficiency: Ultra cloud disk
    • cloud_ssd: Full Flash cloud disk
    • local_hdd: local hdd disk
    • local_ssd: local disk ssd.
    Size int
    System disk size, unit: GB.
    Category string
    System disk type. Value

    • cloud_efficiency: Ultra cloud disk
    • cloud_ssd: Full Flash cloud disk
    • local_hdd: local hdd disk
    • local_ssd: local disk ssd.
    Size int
    System disk size, unit: GB.
    category String
    System disk type. Value

    • cloud_efficiency: Ultra cloud disk
    • cloud_ssd: Full Flash cloud disk
    • local_hdd: local hdd disk
    • local_ssd: local disk ssd.
    size Integer
    System disk size, unit: GB.
    category string
    System disk type. Value

    • cloud_efficiency: Ultra cloud disk
    • cloud_ssd: Full Flash cloud disk
    • local_hdd: local hdd disk
    • local_ssd: local disk ssd.
    size number
    System disk size, unit: GB.
    category str
    System disk type. Value

    • cloud_efficiency: Ultra cloud disk
    • cloud_ssd: Full Flash cloud disk
    • local_hdd: local hdd disk
    • local_ssd: local disk ssd.
    size int
    System disk size, unit: GB.
    category String
    System disk type. Value

    • cloud_efficiency: Ultra cloud disk
    • cloud_ssd: Full Flash cloud disk
    • local_hdd: local hdd disk
    • local_ssd: local disk ssd.
    size Number
    System disk size, unit: GB.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi