1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. slb
  5. LoadBalancer
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.slb.LoadBalancer

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi
    Deprecated: This resource has been deprecated in favour of the ApplicationLoadBalancer resource

    NOTE: Deprecated since v1.123.1.

    DEPRECATED: This resource has been renamed to alicloud.slb.ApplicationLoadBalancer from version 1.123.1.

    Provides an Application Load Balancer resource.

    NOTE: At present, to avoid some unnecessary regulation confusion, SLB can not support alicloud international account to create “paybybandwidth” instance.

    NOTE: The supported specifications vary by region. Currently not all regions support guaranteed-performance instances. For more details about guaranteed-performance instance, see Guaranteed-performance instances.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraformslbconfig";
    const defaultZones = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "172.16.0.0/12",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vpcId: defaultNetwork.id,
        cidrBlock: "172.16.0.0/21",
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
        vswitchName: name,
    });
    const defaultLoadBalancer = new alicloud.slb.LoadBalancer("defaultLoadBalancer", {
        loadBalancerName: name,
        loadBalancerSpec: "slb.s2.small",
        vswitchId: defaultSwitch.id,
        tags: {
            tag_a: 1,
            tag_b: 2,
            tag_c: 3,
            tag_d: 4,
            tag_e: 5,
            tag_f: 6,
            tag_g: 7,
            tag_h: 8,
            tag_i: 9,
            tag_j: 10,
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraformslbconfig"
    default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="172.16.0.0/12")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vpc_id=default_network.id,
        cidr_block="172.16.0.0/21",
        zone_id=default_zones.zones[0].id,
        vswitch_name=name)
    default_load_balancer = alicloud.slb.LoadBalancer("defaultLoadBalancer",
        load_balancer_name=name,
        load_balancer_spec="slb.s2.small",
        vswitch_id=default_switch.id,
        tags={
            "tag_a": 1,
            "tag_b": 2,
            "tag_c": 3,
            "tag_d": 4,
            "tag_e": 5,
            "tag_f": 6,
            "tag_g": 7,
            "tag_h": 8,
            "tag_i": 9,
            "tag_j": 10,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraformslbconfig"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("172.16.0.0/12"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VpcId:       defaultNetwork.ID(),
    			CidrBlock:   pulumi.String("172.16.0.0/21"),
    			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
    			VswitchName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = slb.NewLoadBalancer(ctx, "defaultLoadBalancer", &slb.LoadBalancerArgs{
    			LoadBalancerName: pulumi.String(name),
    			LoadBalancerSpec: pulumi.String("slb.s2.small"),
    			VswitchId:        defaultSwitch.ID(),
    			Tags: pulumi.Map{
    				"tag_a": pulumi.Any(1),
    				"tag_b": pulumi.Any(2),
    				"tag_c": pulumi.Any(3),
    				"tag_d": pulumi.Any(4),
    				"tag_e": pulumi.Any(5),
    				"tag_f": pulumi.Any(6),
    				"tag_g": pulumi.Any(7),
    				"tag_h": pulumi.Any(8),
    				"tag_i": pulumi.Any(9),
    				"tag_j": pulumi.Any(10),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraformslbconfig";
        var defaultZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "172.16.0.0/12",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VpcId = defaultNetwork.Id,
            CidrBlock = "172.16.0.0/21",
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            VswitchName = name,
        });
    
        var defaultLoadBalancer = new AliCloud.Slb.LoadBalancer("defaultLoadBalancer", new()
        {
            LoadBalancerName = name,
            LoadBalancerSpec = "slb.s2.small",
            VswitchId = defaultSwitch.Id,
            Tags = 
            {
                { "tag_a", 1 },
                { "tag_b", 2 },
                { "tag_c", 3 },
                { "tag_d", 4 },
                { "tag_e", 5 },
                { "tag_f", 6 },
                { "tag_g", 7 },
                { "tag_h", 8 },
                { "tag_i", 9 },
                { "tag_j", 10 },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.slb.LoadBalancer;
    import com.pulumi.alicloud.slb.LoadBalancerArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraformslbconfig");
            final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("172.16.0.0/12")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vpcId(defaultNetwork.id())
                .cidrBlock("172.16.0.0/21")
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .vswitchName(name)
                .build());
    
            var defaultLoadBalancer = new LoadBalancer("defaultLoadBalancer", LoadBalancerArgs.builder()        
                .loadBalancerName(name)
                .loadBalancerSpec("slb.s2.small")
                .vswitchId(defaultSwitch.id())
                .tags(Map.ofEntries(
                    Map.entry("tag_a", 1),
                    Map.entry("tag_b", 2),
                    Map.entry("tag_c", 3),
                    Map.entry("tag_d", 4),
                    Map.entry("tag_e", 5),
                    Map.entry("tag_f", 6),
                    Map.entry("tag_g", 7),
                    Map.entry("tag_h", 8),
                    Map.entry("tag_i", 9),
                    Map.entry("tag_j", 10)
                ))
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraformslbconfig
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 172.16.0.0/12
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultNetwork.id}
          cidrBlock: 172.16.0.0/21
          zoneId: ${defaultZones.zones[0].id}
          vswitchName: ${name}
      defaultLoadBalancer:
        type: alicloud:slb:LoadBalancer
        properties:
          loadBalancerName: ${name}
          loadBalancerSpec: slb.s2.small
          vswitchId: ${defaultSwitch.id}
          tags:
            tag_a: 1
            tag_b: 2
            tag_c: 3
            tag_d: 4
            tag_e: 5
            tag_f: 6
            tag_g: 7
            tag_h: 8
            tag_i: 9
            tag_j: 10
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create LoadBalancer Resource

    new LoadBalancer(name: string, args?: LoadBalancerArgs, opts?: CustomResourceOptions);
    @overload
    def LoadBalancer(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, Any]] = None,
                     vswitch_id: Optional[str] = None)
    @overload
    def LoadBalancer(resource_name: str,
                     args: Optional[LoadBalancerArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    func NewLoadBalancer(ctx *Context, name string, args *LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)
    public LoadBalancer(string name, LoadBalancerArgs? args = null, CustomResourceOptions? opts = null)
    public LoadBalancer(String name, LoadBalancerArgs args)
    public LoadBalancer(String name, LoadBalancerArgs args, CustomResourceOptions options)
    
    type: alicloud:slb:LoadBalancer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args LoadBalancerArgs
    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 LoadBalancerArgs
    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 LoadBalancerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoadBalancerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoadBalancerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    LoadBalancer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LoadBalancer 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 correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    InternetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    VswitchId string
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    Address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    InternetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    Tags map[string]interface{}
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    VswitchId string
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    address String
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    internetChargeType String
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    tags Map<String,Object>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    vswitchId String
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    internetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    tags {[key: string]: any}
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    vswitchId string
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    address str
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    internet_charge_type str
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    tags Mapping[str, Any]
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    vswitch_id str
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    address String
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    internetChargeType String
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    tags Map<Any>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    vswitchId String
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.

    Outputs

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

    Get an existing LoadBalancer 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?: LoadBalancerState, opts?: CustomResourceOptions): LoadBalancer
    @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, Any]] = None,
            vswitch_id: Optional[str] = None) -> LoadBalancer
    func GetLoadBalancer(ctx *Context, name string, id IDInput, state *LoadBalancerState, opts ...ResourceOption) (*LoadBalancer, error)
    public static LoadBalancer Get(string name, Input<string> id, LoadBalancerState? state, CustomResourceOptions? opts = null)
    public static LoadBalancer get(String name, Output<String> id, LoadBalancerState 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 correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    InternetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    VswitchId string
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    Address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    InternetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    Tags map[string]interface{}
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    VswitchId string
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    address String
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    internetChargeType String
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    tags Map<String,Object>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    vswitchId String
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    address string
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    internetChargeType string
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    tags {[key: string]: any}
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    vswitchId string
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    address str
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    internet_charge_type str
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    tags Mapping[str, Any]
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    vswitch_id str
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.
    address String
    Specify the IP address of the private network for the SLB instance, which must be in the destination CIDR block of the correspond ing 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 1000, If argument "internet_charge_type" is "paybytraffic", then this value will be ignore.
    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
    The billing method of the load balancer. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
    internetChargeType String
    Valid values are PayByBandwidth, PayByTraffic. If this value is "PayByBandwidth", then argument "internet" must be "true". 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.
    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: 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 instance_charge_type is PrePaid. Valid values: [1-9, 12, 24, 36].

    NOTE: The attribute period 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 effect 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
    The specification of the Server Load Balancer instance. Default to empty string indicating it is "Shared-Performance" instance. Launching "Performance-guaranteed" instance, it is must be specified and it valid values are: "slb.s1.small", "slb.s2.small", "slb.s2.medium", "slb.s3.small", "slb.s3.medium", "slb.s3.large" and "slb.s4.large".

    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.

    NOTE: A "Shared-Performance" instance can be changed to "Performance-guaranteed", but the change is irreversible.

    NOTE: To change a "Shared-Performance" instance to a "Performance-guaranteed" instance, the SLB will have a short probability of business interruption (10 seconds-30 seconds). Advise to change it during the business downturn, or migrate business to other SLB Instances by using GSLB before changing.

    NOTE: Currently, the alibaba cloud international account does not support creating a PrePaid SLB instance.

    tags Map<Any>
    A mapping of tags to assign to the resource. The tags can have a maximum of 10 tag for every load balancer instance.
    vswitchId String
    The VSwitch ID to launch in. If address_type is internet, it will be ignore.

    Import

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

    $ pulumi import alicloud:slb/loadBalancer:LoadBalancer example lb-abc123456
    

    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.51.0 published on Saturday, Mar 23, 2024 by Pulumi