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

alicloud.slb.ApplicationLoadBalancer

Explore with Pulumi AI

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

    Import

    Load balancer can be imported using the id, e.g.

    $ pulumi import alicloud:slb/applicationLoadBalancer:ApplicationLoadBalancer example lb-abc123456
    

    Create ApplicationLoadBalancer Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ApplicationLoadBalancer(name: string, args?: ApplicationLoadBalancerArgs, opts?: CustomResourceOptions);
    @overload
    def ApplicationLoadBalancer(resource_name: str,
                                args: Optional[ApplicationLoadBalancerArgs] = None,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApplicationLoadBalancer(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                address: Optional[str] = None,
                                address_ip_version: Optional[str] = None,
                                address_type: Optional[str] = None,
                                bandwidth: Optional[int] = None,
                                delete_protection: Optional[str] = None,
                                instance_charge_type: Optional[str] = None,
                                internet_charge_type: Optional[str] = None,
                                load_balancer_name: Optional[str] = None,
                                load_balancer_spec: Optional[str] = None,
                                master_zone_id: Optional[str] = None,
                                modification_protection_reason: Optional[str] = None,
                                modification_protection_status: Optional[str] = None,
                                name: Optional[str] = None,
                                payment_type: Optional[str] = None,
                                period: Optional[int] = None,
                                resource_group_id: Optional[str] = None,
                                slave_zone_id: Optional[str] = None,
                                specification: Optional[str] = None,
                                status: Optional[str] = None,
                                tags: Optional[Mapping[str, str]] = None,
                                vswitch_id: Optional[str] = None)
    func NewApplicationLoadBalancer(ctx *Context, name string, args *ApplicationLoadBalancerArgs, opts ...ResourceOption) (*ApplicationLoadBalancer, error)
    public ApplicationLoadBalancer(string name, ApplicationLoadBalancerArgs? args = null, CustomResourceOptions? opts = null)
    public ApplicationLoadBalancer(String name, ApplicationLoadBalancerArgs args)
    public ApplicationLoadBalancer(String name, ApplicationLoadBalancerArgs args, CustomResourceOptions options)
    
    type: alicloud:slb:ApplicationLoadBalancer
    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 ApplicationLoadBalancerArgs
    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 ApplicationLoadBalancerArgs
    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 ApplicationLoadBalancerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplicationLoadBalancerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApplicationLoadBalancerArgs
    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 applicationLoadBalancerResource = new AliCloud.Slb.ApplicationLoadBalancer("applicationLoadBalancerResource", new()
    {
        Address = "string",
        AddressIpVersion = "string",
        AddressType = "string",
        Bandwidth = 0,
        DeleteProtection = "string",
        InstanceChargeType = "string",
        InternetChargeType = "string",
        LoadBalancerName = "string",
        LoadBalancerSpec = "string",
        MasterZoneId = "string",
        ModificationProtectionReason = "string",
        ModificationProtectionStatus = "string",
        PaymentType = "string",
        Period = 0,
        ResourceGroupId = "string",
        SlaveZoneId = "string",
        Status = "string",
        Tags = 
        {
            { "string", "string" },
        },
        VswitchId = "string",
    });
    
    example, err := slb.NewApplicationLoadBalancer(ctx, "applicationLoadBalancerResource", &slb.ApplicationLoadBalancerArgs{
    	Address:                      pulumi.String("string"),
    	AddressIpVersion:             pulumi.String("string"),
    	AddressType:                  pulumi.String("string"),
    	Bandwidth:                    pulumi.Int(0),
    	DeleteProtection:             pulumi.String("string"),
    	InstanceChargeType:           pulumi.String("string"),
    	InternetChargeType:           pulumi.String("string"),
    	LoadBalancerName:             pulumi.String("string"),
    	LoadBalancerSpec:             pulumi.String("string"),
    	MasterZoneId:                 pulumi.String("string"),
    	ModificationProtectionReason: pulumi.String("string"),
    	ModificationProtectionStatus: pulumi.String("string"),
    	PaymentType:                  pulumi.String("string"),
    	Period:                       pulumi.Int(0),
    	ResourceGroupId:              pulumi.String("string"),
    	SlaveZoneId:                  pulumi.String("string"),
    	Status:                       pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VswitchId: pulumi.String("string"),
    })
    
    var applicationLoadBalancerResource = new ApplicationLoadBalancer("applicationLoadBalancerResource", ApplicationLoadBalancerArgs.builder()
        .address("string")
        .addressIpVersion("string")
        .addressType("string")
        .bandwidth(0)
        .deleteProtection("string")
        .instanceChargeType("string")
        .internetChargeType("string")
        .loadBalancerName("string")
        .loadBalancerSpec("string")
        .masterZoneId("string")
        .modificationProtectionReason("string")
        .modificationProtectionStatus("string")
        .paymentType("string")
        .period(0)
        .resourceGroupId("string")
        .slaveZoneId("string")
        .status("string")
        .tags(Map.of("string", "string"))
        .vswitchId("string")
        .build());
    
    application_load_balancer_resource = alicloud.slb.ApplicationLoadBalancer("applicationLoadBalancerResource",
        address="string",
        address_ip_version="string",
        address_type="string",
        bandwidth=0,
        delete_protection="string",
        instance_charge_type="string",
        internet_charge_type="string",
        load_balancer_name="string",
        load_balancer_spec="string",
        master_zone_id="string",
        modification_protection_reason="string",
        modification_protection_status="string",
        payment_type="string",
        period=0,
        resource_group_id="string",
        slave_zone_id="string",
        status="string",
        tags={
            "string": "string",
        },
        vswitch_id="string")
    
    const applicationLoadBalancerResource = new alicloud.slb.ApplicationLoadBalancer("applicationLoadBalancerResource", {
        address: "string",
        addressIpVersion: "string",
        addressType: "string",
        bandwidth: 0,
        deleteProtection: "string",
        instanceChargeType: "string",
        internetChargeType: "string",
        loadBalancerName: "string",
        loadBalancerSpec: "string",
        masterZoneId: "string",
        modificationProtectionReason: "string",
        modificationProtectionStatus: "string",
        paymentType: "string",
        period: 0,
        resourceGroupId: "string",
        slaveZoneId: "string",
        status: "string",
        tags: {
            string: "string",
        },
        vswitchId: "string",
    });
    
    type: alicloud:slb:ApplicationLoadBalancer
    properties:
        address: string
        addressIpVersion: string
        addressType: string
        bandwidth: 0
        deleteProtection: string
        instanceChargeType: string
        internetChargeType: string
        loadBalancerName: string
        loadBalancerSpec: string
        masterZoneId: string
        modificationProtectionReason: string
        modificationProtectionStatus: string
        paymentType: string
        period: 0
        resourceGroupId: string
        slaveZoneId: string
        status: string
        tags:
            string: string
        vswitchId: string
    

    ApplicationLoadBalancer 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 ApplicationLoadBalancer resource accepts the following input properties:

    Address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    AddressIpVersion string
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    AddressType string
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    Bandwidth int
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    DeleteProtection string
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    InstanceChargeType string
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    InternetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    LoadBalancerName string
    LoadBalancerSpec string
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    MasterZoneId string
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    ModificationProtectionReason string
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    ModificationProtectionStatus string
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    Name string
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    PaymentType string
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    Period int
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    ResourceGroupId string
    The id of resource group which the SLB belongs.
    SlaveZoneId string
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    Specification string
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    Status string
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    VswitchId string
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    Address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    AddressIpVersion string
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    AddressType string
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    Bandwidth int
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    DeleteProtection string
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    InstanceChargeType string
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    InternetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    LoadBalancerName string
    LoadBalancerSpec string
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    MasterZoneId string
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    ModificationProtectionReason string
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    ModificationProtectionStatus string
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    Name string
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    PaymentType string
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    Period int
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    ResourceGroupId string
    The id of resource group which the SLB belongs.
    SlaveZoneId string
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    Specification string
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    Status string
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    Tags map[string]string
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    VswitchId string
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    address String
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    addressIpVersion String
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    addressType String
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    bandwidth Integer
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    deleteProtection String
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    instanceChargeType String
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    internetChargeType String
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    loadBalancerName String
    loadBalancerSpec String
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    masterZoneId String
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    modificationProtectionReason String
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    modificationProtectionStatus String
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    name String
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    paymentType String
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    period Integer
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    resourceGroupId String
    The id of resource group which the SLB belongs.
    slaveZoneId String
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    specification String
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    status String
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    tags Map<String,String>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    vswitchId String
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    addressIpVersion string
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    addressType string
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    bandwidth number
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    deleteProtection string
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    instanceChargeType string
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    internetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    loadBalancerName string
    loadBalancerSpec string
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    masterZoneId string
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    modificationProtectionReason string
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    modificationProtectionStatus string
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    name string
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    paymentType string
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    period number
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    resourceGroupId string
    The id of resource group which the SLB belongs.
    slaveZoneId string
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    specification string
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    status string
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    vswitchId string
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    address str
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    address_ip_version str
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    address_type str
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    bandwidth int
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    delete_protection str
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    instance_charge_type str
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    internet_charge_type str
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    load_balancer_name str
    load_balancer_spec str
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    master_zone_id str
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    modification_protection_reason str
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    modification_protection_status str
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    name str
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    payment_type str
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    period int
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    resource_group_id str
    The id of resource group which the SLB belongs.
    slave_zone_id str
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    specification str
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    status str
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    vswitch_id str
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    address String
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    addressIpVersion String
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    addressType String
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    bandwidth Number
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    deleteProtection String
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    instanceChargeType String
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    internetChargeType String
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    loadBalancerName String
    loadBalancerSpec String
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    masterZoneId String
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    modificationProtectionReason String
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    modificationProtectionStatus String
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    name String
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    paymentType String
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    period Number
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    resourceGroupId String
    The id of resource group which the SLB belongs.
    slaveZoneId String
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    specification String
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    status String
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    tags Map<String>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    vswitchId String
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApplicationLoadBalancer 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 ApplicationLoadBalancer Resource

    Get an existing ApplicationLoadBalancer 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?: ApplicationLoadBalancerState, opts?: CustomResourceOptions): ApplicationLoadBalancer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address: Optional[str] = None,
            address_ip_version: Optional[str] = None,
            address_type: Optional[str] = None,
            bandwidth: Optional[int] = None,
            delete_protection: Optional[str] = None,
            instance_charge_type: Optional[str] = None,
            internet_charge_type: Optional[str] = None,
            load_balancer_name: Optional[str] = None,
            load_balancer_spec: Optional[str] = None,
            master_zone_id: Optional[str] = None,
            modification_protection_reason: Optional[str] = None,
            modification_protection_status: Optional[str] = None,
            name: Optional[str] = None,
            payment_type: Optional[str] = None,
            period: Optional[int] = None,
            resource_group_id: Optional[str] = None,
            slave_zone_id: Optional[str] = None,
            specification: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            vswitch_id: Optional[str] = None) -> ApplicationLoadBalancer
    func GetApplicationLoadBalancer(ctx *Context, name string, id IDInput, state *ApplicationLoadBalancerState, opts ...ResourceOption) (*ApplicationLoadBalancer, error)
    public static ApplicationLoadBalancer Get(string name, Input<string> id, ApplicationLoadBalancerState? state, CustomResourceOptions? opts = null)
    public static ApplicationLoadBalancer get(String name, Output<String> id, ApplicationLoadBalancerState 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:
    Address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    AddressIpVersion string
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    AddressType string
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    Bandwidth int
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    DeleteProtection string
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    InstanceChargeType string
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    InternetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    LoadBalancerName string
    LoadBalancerSpec string
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    MasterZoneId string
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    ModificationProtectionReason string
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    ModificationProtectionStatus string
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    Name string
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    PaymentType string
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    Period int
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    ResourceGroupId string
    The id of resource group which the SLB belongs.
    SlaveZoneId string
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    Specification string
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    Status string
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    VswitchId string
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    Address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    AddressIpVersion string
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    AddressType string
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    Bandwidth int
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    DeleteProtection string
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    InstanceChargeType string
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    InternetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    LoadBalancerName string
    LoadBalancerSpec string
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    MasterZoneId string
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    ModificationProtectionReason string
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    ModificationProtectionStatus string
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    Name string
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    PaymentType string
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    Period int
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    ResourceGroupId string
    The id of resource group which the SLB belongs.
    SlaveZoneId string
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    Specification string
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    Status string
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    Tags map[string]string
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    VswitchId string
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    address String
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    addressIpVersion String
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    addressType String
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    bandwidth Integer
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    deleteProtection String
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    instanceChargeType String
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    internetChargeType String
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    loadBalancerName String
    loadBalancerSpec String
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    masterZoneId String
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    modificationProtectionReason String
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    modificationProtectionStatus String
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    name String
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    paymentType String
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    period Integer
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    resourceGroupId String
    The id of resource group which the SLB belongs.
    slaveZoneId String
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    specification String
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    status String
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    tags Map<String,String>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    vswitchId String
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    addressIpVersion string
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    addressType string
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    bandwidth number
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    deleteProtection string
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    instanceChargeType string
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    internetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    loadBalancerName string
    loadBalancerSpec string
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    masterZoneId string
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    modificationProtectionReason string
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    modificationProtectionStatus string
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    name string
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    paymentType string
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    period number
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    resourceGroupId string
    The id of resource group which the SLB belongs.
    slaveZoneId string
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    specification string
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    status string
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    vswitchId string
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    address str
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    address_ip_version str
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    address_type str
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    bandwidth int
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    delete_protection str
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    instance_charge_type str
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    internet_charge_type str
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    load_balancer_name str
    load_balancer_spec str
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    master_zone_id str
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    modification_protection_reason str
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    modification_protection_status str
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    name str
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    payment_type str
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    period int
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    resource_group_id str
    The id of resource group which the SLB belongs.
    slave_zone_id str
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    specification str
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    status str
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    vswitch_id str
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.
    address String
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the corresponding switch.
    addressIpVersion String
    The IP version of the SLB instance to be created, which can be set to ipv4 or ipv6 . Default to ipv4. Now, only internet instance support ipv6 address.
    addressType String
    The network type of the SLB instance. Valid values: ["internet", "intranet"]. If load balancer launched in VPC, this value must be intranet.

    • internet: After an Internet SLB instance is created, the system allocates a public IP address so that the instance can forward requests from the Internet.
    • intranet: After an intranet SLB instance is created, the system allocates an intranet IP address so that the instance can only forward intranet requests.
    bandwidth Number
    Valid value is between 1 and 5120, If argument internet_charge_type is PayByTraffic, then this value will be ignored.
    deleteProtection String
    Whether enable the deletion protection or not. on: Enable deletion protection. off: Disable deletion protection. Default to off. Only postpaid instance support this function.
    instanceChargeType String
    Support PayBySpec (default) and PayByCLCU, This parameter takes effect when the value of payment_type (instance payment mode) is PayAsYouGo (pay-as-you-go).
    internetChargeType String
    Valid values are PayByBandwidth, PayByTraffic. If this value is PayByBandwidth, then argument address_type must be internet. Default is PayByTraffic. If load balancer launched in VPC, this value must be PayByTraffic. Before version 1.10.1, the valid values are paybybandwidth and paybytraffic.
    loadBalancerName String
    loadBalancerSpec String
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it must be specified. Valid values: slb.s1.small, slb.s2.small, slb.s2.medium, slb.s3.small, slb.s3.medium, slb.s3.large and slb.s4.large. It will be ignored when instance_charge_type = "PayByCLCU".
    masterZoneId String
    The primary zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    modificationProtectionReason String
    The reason of modification protection. It's effective when modification_protection_status is ConsoleProtection.
    modificationProtectionStatus String
    The status of modification protection. Valid values: ConsoleProtection and NonProtection. Default value is NonProtection.
    name String
    Field name has been deprecated from provider version 1.123.1 New field load_balancer_name instead.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'load_balancer_name' instead

    paymentType String
    The billing method of the load balancer. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.
    period Number
    The duration that you will buy the resource, in month. It is valid when PaymentType is Subscription. Default to 1. Valid values: [1-9, 12, 24, 36]. This attribute is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running pulumi up will not affect the resource.
    resourceGroupId String
    The id of resource group which the SLB belongs.
    slaveZoneId String
    The standby zone ID of the SLB instance. If not specified, the system will be randomly assigned. You can query the primary and standby zones in a region by calling the DescribeZone API.
    specification String
    Field specification has been deprecated from provider version 1.123.1 New field load_balancer_spec instead.

    Deprecated: Field 'specification' has been deprecated from provider version 1.123.1. New field 'load_balancer_spec' instead

    status String
    The status of slb load balancer. Valid values: active and inactice. The system default value is active.
    tags Map<String>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance. This filed mark as Computed since v1.217.1.
    vswitchId String
    The VSwitch ID to launch in. Note: Required for a VPC SLB. If address_type is internet, it will be ignored.

    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