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

alicloud.slb.getLoadBalancers

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    DEPRECATED: This datasource has been renamed to alicloud.slb.getApplicationLoadBalancers from version 1.123.1.

    This data source provides the server load balancers of the current Alibaba Cloud user.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.slb.LoadBalancer("default", {});
    const slbsDs = alicloud.slb.getLoadBalancers({
        nameRegex: "sample_slb",
    });
    export const firstSlbId = slbsDs.then(slbsDs => slbsDs.slbs?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.slb.LoadBalancer("default")
    slbs_ds = alicloud.slb.get_load_balancers(name_regex="sample_slb")
    pulumi.export("firstSlbId", slbs_ds.slbs[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.NewLoadBalancer(ctx, "default", nil)
    		if err != nil {
    			return err
    		}
    		slbsDs, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			NameRegex: pulumi.StringRef("sample_slb"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("firstSlbId", slbsDs.Slbs[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.Slb.LoadBalancer("default");
    
        var slbsDs = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            NameRegex = "sample_slb",
        });
    
        return new Dictionary<string, object?>
        {
            ["firstSlbId"] = slbsDs.Apply(getLoadBalancersResult => getLoadBalancersResult.Slbs[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.LoadBalancer;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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) {
            var default_ = new LoadBalancer("default");
    
            final var slbsDs = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .nameRegex("sample_slb")
                .build());
    
            ctx.export("firstSlbId", slbsDs.applyValue(getLoadBalancersResult -> getLoadBalancersResult.slbs()[0].id()));
        }
    }
    
    resources:
      default:
        type: alicloud:slb:LoadBalancer
    variables:
      slbsDs:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            nameRegex: sample_slb
    outputs:
      firstSlbId: ${slbsDs.slbs[0].id}
    

    Using getLoadBalancers

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLoadBalancers(args: GetLoadBalancersArgs, opts?: InvokeOptions): Promise<GetLoadBalancersResult>
    function getLoadBalancersOutput(args: GetLoadBalancersOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancersResult>
    def get_load_balancers(address: Optional[str] = None,
                           address_ip_version: Optional[str] = None,
                           address_type: Optional[str] = None,
                           enable_details: Optional[bool] = None,
                           ids: Optional[Sequence[str]] = None,
                           internet_charge_type: Optional[str] = None,
                           load_balancer_name: Optional[str] = None,
                           master_zone_id: Optional[str] = None,
                           name_regex: Optional[str] = None,
                           network_type: Optional[str] = None,
                           output_file: Optional[str] = None,
                           page_number: Optional[int] = None,
                           page_size: Optional[int] = None,
                           payment_type: Optional[str] = None,
                           resource_group_id: Optional[str] = None,
                           server_id: Optional[str] = None,
                           server_intranet_address: Optional[str] = None,
                           slave_zone_id: Optional[str] = None,
                           status: Optional[str] = None,
                           tags: Optional[Mapping[str, Any]] = None,
                           vpc_id: Optional[str] = None,
                           vswitch_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetLoadBalancersResult
    def get_load_balancers_output(address: Optional[pulumi.Input[str]] = None,
                           address_ip_version: Optional[pulumi.Input[str]] = None,
                           address_type: Optional[pulumi.Input[str]] = None,
                           enable_details: Optional[pulumi.Input[bool]] = None,
                           ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           internet_charge_type: Optional[pulumi.Input[str]] = None,
                           load_balancer_name: Optional[pulumi.Input[str]] = None,
                           master_zone_id: Optional[pulumi.Input[str]] = None,
                           name_regex: Optional[pulumi.Input[str]] = None,
                           network_type: Optional[pulumi.Input[str]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           page_number: Optional[pulumi.Input[int]] = None,
                           page_size: Optional[pulumi.Input[int]] = None,
                           payment_type: Optional[pulumi.Input[str]] = None,
                           resource_group_id: Optional[pulumi.Input[str]] = None,
                           server_id: Optional[pulumi.Input[str]] = None,
                           server_intranet_address: Optional[pulumi.Input[str]] = None,
                           slave_zone_id: Optional[pulumi.Input[str]] = None,
                           status: Optional[pulumi.Input[str]] = None,
                           tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                           vpc_id: Optional[pulumi.Input[str]] = None,
                           vswitch_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancersResult]
    func GetLoadBalancers(ctx *Context, args *GetLoadBalancersArgs, opts ...InvokeOption) (*GetLoadBalancersResult, error)
    func GetLoadBalancersOutput(ctx *Context, args *GetLoadBalancersOutputArgs, opts ...InvokeOption) GetLoadBalancersResultOutput

    > Note: This function is named GetLoadBalancers in the Go SDK.

    public static class GetLoadBalancers 
    {
        public static Task<GetLoadBalancersResult> InvokeAsync(GetLoadBalancersArgs args, InvokeOptions? opts = null)
        public static Output<GetLoadBalancersResult> Invoke(GetLoadBalancersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoadBalancersResult> getLoadBalancers(GetLoadBalancersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:slb/getLoadBalancers:getLoadBalancers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Address string
    Service address of the SLBs.
    AddressIpVersion string
    AddressType string
    EnableDetails bool
    Ids List<string>
    A list of SLBs IDs.
    InternetChargeType string
    LoadBalancerName string
    MasterZoneId string
    NameRegex string
    A regex string to filter results by SLB name.
    NetworkType string
    Network type of the SLBs. Valid values: vpc and classic.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    PaymentType string
    ResourceGroupId string
    The Id of resource group which SLB belongs.
    ServerId string
    ServerIntranetAddress string
    SlaveZoneId string
    Status string
    SLB current status. Possible values: inactive, active and locked.
    Tags Dictionary<string, object>
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Optional"> <span id="vpcid_csharp">

    VpcId string

    ID of the VPC linked to the SLBs.
    VswitchId string
    ID of the VSwitch linked to the SLBs.

    Address string
    Service address of the SLBs.
    AddressIpVersion string
    AddressType string
    EnableDetails bool
    Ids []string
    A list of SLBs IDs.
    InternetChargeType string
    LoadBalancerName string
    MasterZoneId string
    NameRegex string
    A regex string to filter results by SLB name.
    NetworkType string
    Network type of the SLBs. Valid values: vpc and classic.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    PaymentType string
    ResourceGroupId string
    The Id of resource group which SLB belongs.
    ServerId string
    ServerIntranetAddress string
    SlaveZoneId string
    Status string
    SLB current status. Possible values: inactive, active and locked.
    Tags map[string]interface{}
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Optional"> <span id="vpcid_go">

    VpcId string

    ID of the VPC linked to the SLBs.
    VswitchId string
    ID of the VSwitch linked to the SLBs.

    address String
    Service address of the SLBs.
    addressIpVersion String
    addressType String
    enableDetails Boolean
    ids List<String>
    A list of SLBs IDs.
    internetChargeType String
    loadBalancerName String
    masterZoneId String
    nameRegex String
    A regex string to filter results by SLB name.
    networkType String
    Network type of the SLBs. Valid values: vpc and classic.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    paymentType String
    resourceGroupId String
    The Id of resource group which SLB belongs.
    serverId String
    serverIntranetAddress String
    slaveZoneId String
    status String
    SLB current status. Possible values: inactive, active and locked.
    tags Map<String,Object>
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Optional"> <span id="vpcid_java">

    vpcId String

    ID of the VPC linked to the SLBs.
    vswitchId String
    ID of the VSwitch linked to the SLBs.

    address string
    Service address of the SLBs.
    addressIpVersion string
    addressType string
    enableDetails boolean
    ids string[]
    A list of SLBs IDs.
    internetChargeType string
    loadBalancerName string
    masterZoneId string
    nameRegex string
    A regex string to filter results by SLB name.
    networkType string
    Network type of the SLBs. Valid values: vpc and classic.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    paymentType string
    resourceGroupId string
    The Id of resource group which SLB belongs.
    serverId string
    serverIntranetAddress string
    slaveZoneId string
    status string
    SLB current status. Possible values: inactive, active and locked.
    tags {[key: string]: any}
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Optional"> <span id="vpcid_nodejs">

    vpcId string

    ID of the VPC linked to the SLBs.
    vswitchId string
    ID of the VSwitch linked to the SLBs.

    address str
    Service address of the SLBs.
    address_ip_version str
    address_type str
    enable_details bool
    ids Sequence[str]
    A list of SLBs IDs.
    internet_charge_type str
    load_balancer_name str
    master_zone_id str
    name_regex str
    A regex string to filter results by SLB name.
    network_type str
    Network type of the SLBs. Valid values: vpc and classic.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    payment_type str
    resource_group_id str
    The Id of resource group which SLB belongs.
    server_id str
    server_intranet_address str
    slave_zone_id str
    status str
    SLB current status. Possible values: inactive, active and locked.
    tags Mapping[str, Any]
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Optional"> <span id="vpc_id_python">

    vpc_id str

    ID of the VPC linked to the SLBs.
    vswitch_id str
    ID of the VSwitch linked to the SLBs.

    address String
    Service address of the SLBs.
    addressIpVersion String
    addressType String
    enableDetails Boolean
    ids List<String>
    A list of SLBs IDs.
    internetChargeType String
    loadBalancerName String
    masterZoneId String
    nameRegex String
    A regex string to filter results by SLB name.
    networkType String
    Network type of the SLBs. Valid values: vpc and classic.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number
    paymentType String
    resourceGroupId String
    The Id of resource group which SLB belongs.
    serverId String
    serverIntranetAddress String
    slaveZoneId String
    status String
    SLB current status. Possible values: inactive, active and locked.
    tags Map<Any>
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Optional"> <span id="vpcid_yaml">

    vpcId String

    ID of the VPC linked to the SLBs.
    vswitchId String
    ID of the VSwitch linked to the SLBs.

    getLoadBalancers Result

    The following output properties are available:

    Balancers List<Pulumi.AliCloud.Slb.Outputs.GetLoadBalancersBalancer>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of slb IDs.
    Names List<string>
    A list of slb names.
    Slbs List<Pulumi.AliCloud.Slb.Outputs.GetLoadBalancersSlb>
    A list of SLBs. Each element contains the following attributes:

    Deprecated:Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.

    TotalCount int
    Address string
    Service address of the SLB.
    AddressIpVersion string
    AddressType string
    EnableDetails bool
    InternetChargeType string
    LoadBalancerName string
    MasterZoneId string
    NameRegex string
    NetworkType string
    Network type of the SLB. Possible values: vpc and classic.
    OutputFile string
    PageNumber int
    PageSize int
    PaymentType string
    ResourceGroupId string
    ServerId string
    ServerIntranetAddress string
    SlaveZoneId string
    Status string
    SLB current status. Possible values: inactive, active and locked.
    Tags Dictionary<string, object>
    A map of tags assigned to the SLB instance.
    VpcId string
    ID of the VPC the SLB belongs to.
    VswitchId string
    ID of the VSwitch the SLB belongs to.
    Balancers []GetLoadBalancersBalancer
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of slb IDs.
    Names []string
    A list of slb names.
    Slbs []GetLoadBalancersSlb
    A list of SLBs. Each element contains the following attributes:

    Deprecated:Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.

    TotalCount int
    Address string
    Service address of the SLB.
    AddressIpVersion string
    AddressType string
    EnableDetails bool
    InternetChargeType string
    LoadBalancerName string
    MasterZoneId string
    NameRegex string
    NetworkType string
    Network type of the SLB. Possible values: vpc and classic.
    OutputFile string
    PageNumber int
    PageSize int
    PaymentType string
    ResourceGroupId string
    ServerId string
    ServerIntranetAddress string
    SlaveZoneId string
    Status string
    SLB current status. Possible values: inactive, active and locked.
    Tags map[string]interface{}
    A map of tags assigned to the SLB instance.
    VpcId string
    ID of the VPC the SLB belongs to.
    VswitchId string
    ID of the VSwitch the SLB belongs to.
    balancers List<GetLoadBalancersBalancer>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of slb IDs.
    names List<String>
    A list of slb names.
    slbs List<GetLoadBalancersSlb>
    A list of SLBs. Each element contains the following attributes:

    Deprecated:Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.

    totalCount Integer
    address String
    Service address of the SLB.
    addressIpVersion String
    addressType String
    enableDetails Boolean
    internetChargeType String
    loadBalancerName String
    masterZoneId String
    nameRegex String
    networkType String
    Network type of the SLB. Possible values: vpc and classic.
    outputFile String
    pageNumber Integer
    pageSize Integer
    paymentType String
    resourceGroupId String
    serverId String
    serverIntranetAddress String
    slaveZoneId String
    status String
    SLB current status. Possible values: inactive, active and locked.
    tags Map<String,Object>
    A map of tags assigned to the SLB instance.
    vpcId String
    ID of the VPC the SLB belongs to.
    vswitchId String
    ID of the VSwitch the SLB belongs to.
    balancers GetLoadBalancersBalancer[]
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of slb IDs.
    names string[]
    A list of slb names.
    slbs GetLoadBalancersSlb[]
    A list of SLBs. Each element contains the following attributes:

    Deprecated:Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.

    totalCount number
    address string
    Service address of the SLB.
    addressIpVersion string
    addressType string
    enableDetails boolean
    internetChargeType string
    loadBalancerName string
    masterZoneId string
    nameRegex string
    networkType string
    Network type of the SLB. Possible values: vpc and classic.
    outputFile string
    pageNumber number
    pageSize number
    paymentType string
    resourceGroupId string
    serverId string
    serverIntranetAddress string
    slaveZoneId string
    status string
    SLB current status. Possible values: inactive, active and locked.
    tags {[key: string]: any}
    A map of tags assigned to the SLB instance.
    vpcId string
    ID of the VPC the SLB belongs to.
    vswitchId string
    ID of the VSwitch the SLB belongs to.
    balancers Sequence[GetLoadBalancersBalancer]
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of slb IDs.
    names Sequence[str]
    A list of slb names.
    slbs Sequence[GetLoadBalancersSlb]
    A list of SLBs. Each element contains the following attributes:

    Deprecated:Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.

    total_count int
    address str
    Service address of the SLB.
    address_ip_version str
    address_type str
    enable_details bool
    internet_charge_type str
    load_balancer_name str
    master_zone_id str
    name_regex str
    network_type str
    Network type of the SLB. Possible values: vpc and classic.
    output_file str
    page_number int
    page_size int
    payment_type str
    resource_group_id str
    server_id str
    server_intranet_address str
    slave_zone_id str
    status str
    SLB current status. Possible values: inactive, active and locked.
    tags Mapping[str, Any]
    A map of tags assigned to the SLB instance.
    vpc_id str
    ID of the VPC the SLB belongs to.
    vswitch_id str
    ID of the VSwitch the SLB belongs to.
    balancers List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of slb IDs.
    names List<String>
    A list of slb names.
    slbs List<Property Map>
    A list of SLBs. Each element contains the following attributes:

    Deprecated:Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.

    totalCount Number
    address String
    Service address of the SLB.
    addressIpVersion String
    addressType String
    enableDetails Boolean
    internetChargeType String
    loadBalancerName String
    masterZoneId String
    nameRegex String
    networkType String
    Network type of the SLB. Possible values: vpc and classic.
    outputFile String
    pageNumber Number
    pageSize Number
    paymentType String
    resourceGroupId String
    serverId String
    serverIntranetAddress String
    slaveZoneId String
    status String
    SLB current status. Possible values: inactive, active and locked.
    tags Map<Any>
    A map of tags assigned to the SLB instance.
    vpcId String
    ID of the VPC the SLB belongs to.
    vswitchId String
    ID of the VSwitch the SLB belongs to.

    Supporting Types

    GetLoadBalancersBalancer

    Address string
    Service address of the SLBs.
    AddressIpVersion string
    AddressType string
    AutoReleaseTime int
    BackendServers List<Pulumi.AliCloud.Slb.Inputs.GetLoadBalancersBalancerBackendServer>
    Bandwidth int
    CreateTimeStamp int
    DeleteProtection string
    EndTime string
    EndTimeStamp int
    Id string
    ID of the SLB.
    InternetChargeType string
    ListenerPortsAndProtocals List<Pulumi.AliCloud.Slb.Inputs.GetLoadBalancersBalancerListenerPortsAndProtocal>
    ListenerPortsAndProtocols List<Pulumi.AliCloud.Slb.Inputs.GetLoadBalancersBalancerListenerPortsAndProtocol>
    LoadBalancerId string
    LoadBalancerName string
    LoadBalancerSpec string
    MasterZoneId string
    ModificationProtectionReason string
    ModificationProtectionStatus string
    NetworkType string
    Network type of the SLBs. Valid values: vpc and classic.
    PaymentType string
    RegionIdAlias string
    RenewalCycUnit string
    RenewalDuration int
    RenewalStatus string
    ResourceGroupId string
    The Id of resource group which SLB belongs.
    SlaveZoneId string
    Status string
    SLB current status. Possible values: inactive, active and locked.
    Tags Dictionary<string, object>
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_csharp">

    VpcId string

    ID of the VPC linked to the SLBs.
    VswitchId string
    ID of the VSwitch linked to the SLBs.

    Address string
    Service address of the SLBs.
    AddressIpVersion string
    AddressType string
    AutoReleaseTime int
    BackendServers []GetLoadBalancersBalancerBackendServer
    Bandwidth int
    CreateTimeStamp int
    DeleteProtection string
    EndTime string
    EndTimeStamp int
    Id string
    ID of the SLB.
    InternetChargeType string
    ListenerPortsAndProtocals []GetLoadBalancersBalancerListenerPortsAndProtocal
    ListenerPortsAndProtocols []GetLoadBalancersBalancerListenerPortsAndProtocol
    LoadBalancerId string
    LoadBalancerName string
    LoadBalancerSpec string
    MasterZoneId string
    ModificationProtectionReason string
    ModificationProtectionStatus string
    NetworkType string
    Network type of the SLBs. Valid values: vpc and classic.
    PaymentType string
    RegionIdAlias string
    RenewalCycUnit string
    RenewalDuration int
    RenewalStatus string
    ResourceGroupId string
    The Id of resource group which SLB belongs.
    SlaveZoneId string
    Status string
    SLB current status. Possible values: inactive, active and locked.
    Tags map[string]interface{}
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_go">

    VpcId string

    ID of the VPC linked to the SLBs.
    VswitchId string
    ID of the VSwitch linked to the SLBs.

    address String
    Service address of the SLBs.
    addressIpVersion String
    addressType String
    autoReleaseTime Integer
    backendServers List<GetLoadBalancersBalancerBackendServer>
    bandwidth Integer
    createTimeStamp Integer
    deleteProtection String
    endTime String
    endTimeStamp Integer
    id String
    ID of the SLB.
    internetChargeType String
    listenerPortsAndProtocals List<GetLoadBalancersBalancerListenerPortsAndProtocal>
    listenerPortsAndProtocols List<GetLoadBalancersBalancerListenerPortsAndProtocol>
    loadBalancerId String
    loadBalancerName String
    loadBalancerSpec String
    masterZoneId String
    modificationProtectionReason String
    modificationProtectionStatus String
    networkType String
    Network type of the SLBs. Valid values: vpc and classic.
    paymentType String
    regionIdAlias String
    renewalCycUnit String
    renewalDuration Integer
    renewalStatus String
    resourceGroupId String
    The Id of resource group which SLB belongs.
    slaveZoneId String
    status String
    SLB current status. Possible values: inactive, active and locked.
    tags Map<String,Object>
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_java">

    vpcId String

    ID of the VPC linked to the SLBs.
    vswitchId String
    ID of the VSwitch linked to the SLBs.

    address string
    Service address of the SLBs.
    addressIpVersion string
    addressType string
    autoReleaseTime number
    backendServers GetLoadBalancersBalancerBackendServer[]
    bandwidth number
    createTimeStamp number
    deleteProtection string
    endTime string
    endTimeStamp number
    id string
    ID of the SLB.
    internetChargeType string
    listenerPortsAndProtocals GetLoadBalancersBalancerListenerPortsAndProtocal[]
    listenerPortsAndProtocols GetLoadBalancersBalancerListenerPortsAndProtocol[]
    loadBalancerId string
    loadBalancerName string
    loadBalancerSpec string
    masterZoneId string
    modificationProtectionReason string
    modificationProtectionStatus string
    networkType string
    Network type of the SLBs. Valid values: vpc and classic.
    paymentType string
    regionIdAlias string
    renewalCycUnit string
    renewalDuration number
    renewalStatus string
    resourceGroupId string
    The Id of resource group which SLB belongs.
    slaveZoneId string
    status string
    SLB current status. Possible values: inactive, active and locked.
    tags {[key: string]: any}
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_nodejs">

    vpcId string

    ID of the VPC linked to the SLBs.
    vswitchId string
    ID of the VSwitch linked to the SLBs.

    address str
    Service address of the SLBs.
    address_ip_version str
    address_type str
    auto_release_time int
    backend_servers Sequence[GetLoadBalancersBalancerBackendServer]
    bandwidth int
    create_time_stamp int
    delete_protection str
    end_time str
    end_time_stamp int
    id str
    ID of the SLB.
    internet_charge_type str
    listener_ports_and_protocals Sequence[GetLoadBalancersBalancerListenerPortsAndProtocal]
    listener_ports_and_protocols Sequence[GetLoadBalancersBalancerListenerPortsAndProtocol]
    load_balancer_id str
    load_balancer_name str
    load_balancer_spec str
    master_zone_id str
    modification_protection_reason str
    modification_protection_status str
    network_type str
    Network type of the SLBs. Valid values: vpc and classic.
    payment_type str
    region_id_alias str
    renewal_cyc_unit str
    renewal_duration int
    renewal_status str
    resource_group_id str
    The Id of resource group which SLB belongs.
    slave_zone_id str
    status str
    SLB current status. Possible values: inactive, active and locked.
    tags Mapping[str, Any]
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpc_id_python">

    vpc_id str

    ID of the VPC linked to the SLBs.
    vswitch_id str
    ID of the VSwitch linked to the SLBs.

    address String
    Service address of the SLBs.
    addressIpVersion String
    addressType String
    autoReleaseTime Number
    backendServers List<Property Map>
    bandwidth Number
    createTimeStamp Number
    deleteProtection String
    endTime String
    endTimeStamp Number
    id String
    ID of the SLB.
    internetChargeType String
    listenerPortsAndProtocals List<Property Map>
    listenerPortsAndProtocols List<Property Map>
    loadBalancerId String
    loadBalancerName String
    loadBalancerSpec String
    masterZoneId String
    modificationProtectionReason String
    modificationProtectionStatus String
    networkType String
    Network type of the SLBs. Valid values: vpc and classic.
    paymentType String
    regionIdAlias String
    renewalCycUnit String
    renewalDuration Number
    renewalStatus String
    resourceGroupId String
    The Id of resource group which SLB belongs.
    slaveZoneId String
    status String
    SLB current status. Possible values: inactive, active and locked.
    tags Map<Any>
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_yaml">

    vpcId String

    ID of the VPC linked to the SLBs.
    vswitchId String
    ID of the VSwitch linked to the SLBs.

    GetLoadBalancersBalancerBackendServer

    Description string
    ServerId string
    Type string
    Weight int
    Description string
    ServerId string
    Type string
    Weight int
    description String
    serverId String
    type String
    weight Integer
    description string
    serverId string
    type string
    weight number
    description String
    serverId String
    type String
    weight Number

    GetLoadBalancersBalancerListenerPortsAndProtocal

    GetLoadBalancersBalancerListenerPortsAndProtocol

    GetLoadBalancersSlb

    Address string
    Service address of the SLBs.
    CreationTime string
    SLB creation time.
    Id string
    ID of the SLB.
    Internet bool
    SLB addressType: internet if true, intranet if false. Must be false when network_type is vpc.
    MasterAvailabilityZone string
    Master availability zone of the SLBs.
    Name string
    SLB name.
    NetworkType string
    Network type of the SLBs. Valid values: vpc and classic.
    RegionId string
    Region ID the SLB belongs to.
    SlaveAvailabilityZone string
    Slave availability zone of the SLBs.
    Status string
    SLB current status. Possible values: inactive, active and locked.
    Tags Dictionary<string, object>
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_csharp">

    VpcId string

    ID of the VPC linked to the SLBs.
    VswitchId string
    ID of the VSwitch linked to the SLBs.

    Address string
    Service address of the SLBs.
    CreationTime string
    SLB creation time.
    Id string
    ID of the SLB.
    Internet bool
    SLB addressType: internet if true, intranet if false. Must be false when network_type is vpc.
    MasterAvailabilityZone string
    Master availability zone of the SLBs.
    Name string
    SLB name.
    NetworkType string
    Network type of the SLBs. Valid values: vpc and classic.
    RegionId string
    Region ID the SLB belongs to.
    SlaveAvailabilityZone string
    Slave availability zone of the SLBs.
    Status string
    SLB current status. Possible values: inactive, active and locked.
    Tags map[string]interface{}
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_go">

    VpcId string

    ID of the VPC linked to the SLBs.
    VswitchId string
    ID of the VSwitch linked to the SLBs.

    address String
    Service address of the SLBs.
    creationTime String
    SLB creation time.
    id String
    ID of the SLB.
    internet Boolean
    SLB addressType: internet if true, intranet if false. Must be false when network_type is vpc.
    masterAvailabilityZone String
    Master availability zone of the SLBs.
    name String
    SLB name.
    networkType String
    Network type of the SLBs. Valid values: vpc and classic.
    regionId String
    Region ID the SLB belongs to.
    slaveAvailabilityZone String
    Slave availability zone of the SLBs.
    status String
    SLB current status. Possible values: inactive, active and locked.
    tags Map<String,Object>
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_java">

    vpcId String

    ID of the VPC linked to the SLBs.
    vswitchId String
    ID of the VSwitch linked to the SLBs.

    address string
    Service address of the SLBs.
    creationTime string
    SLB creation time.
    id string
    ID of the SLB.
    internet boolean
    SLB addressType: internet if true, intranet if false. Must be false when network_type is vpc.
    masterAvailabilityZone string
    Master availability zone of the SLBs.
    name string
    SLB name.
    networkType string
    Network type of the SLBs. Valid values: vpc and classic.
    regionId string
    Region ID the SLB belongs to.
    slaveAvailabilityZone string
    Slave availability zone of the SLBs.
    status string
    SLB current status. Possible values: inactive, active and locked.
    tags {[key: string]: any}
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_nodejs">

    vpcId string

    ID of the VPC linked to the SLBs.
    vswitchId string
    ID of the VSwitch linked to the SLBs.

    address str
    Service address of the SLBs.
    creation_time str
    SLB creation time.
    id str
    ID of the SLB.
    internet bool
    SLB addressType: internet if true, intranet if false. Must be false when network_type is vpc.
    master_availability_zone str
    Master availability zone of the SLBs.
    name str
    SLB name.
    network_type str
    Network type of the SLBs. Valid values: vpc and classic.
    region_id str
    Region ID the SLB belongs to.
    slave_availability_zone str
    Slave availability zone of the SLBs.
    status str
    SLB current status. Possible values: inactive, active and locked.
    tags Mapping[str, Any]
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpc_id_python">

    vpc_id str

    ID of the VPC linked to the SLBs.
    vswitch_id str
    ID of the VSwitch linked to the SLBs.

    address String
    Service address of the SLBs.
    creationTime String
    SLB creation time.
    id String
    ID of the SLB.
    internet Boolean
    SLB addressType: internet if true, intranet if false. Must be false when network_type is vpc.
    masterAvailabilityZone String
    Master availability zone of the SLBs.
    name String
    SLB name.
    networkType String
    Network type of the SLBs. Valid values: vpc and classic.
    regionId String
    Region ID the SLB belongs to.
    slaveAvailabilityZone String
    Slave availability zone of the SLBs.
    status String
    SLB current status. Possible values: inactive, active and locked.
    tags Map<Any>
    A map of tags assigned to the SLB instances. The tags can have a maximum of 5 tag. It must be in the format:

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    

    const taggedInstances = alicloud.slb.getLoadBalancers({ tags: { tagKey1: "tagValue1", tagKey2: "tagValue2", }, });

    import pulumi
    import pulumi_alicloud as alicloud
    
    tagged_instances = alicloud.slb.get_load_balancers(tags={
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2",
    })
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstances = AliCloud.Slb.GetLoadBalancers.Invoke(new()
        {
            Tags = 
            {
                { "tagKey1", "tagValue1" },
                { "tagKey2", "tagValue2" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := slb.GetLoadBalancers(ctx, &slb.GetLoadBalancersArgs{
    			Tags: map[string]interface{}{
    				"tagKey1": "tagValue1",
    				"tagKey2": "tagValue2",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetLoadBalancersArgs;
    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 taggedInstances = SlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
                .tags(Map.ofEntries(
                    Map.entry("tagKey1", "tagValue1"),
                    Map.entry("tagKey2", "tagValue2")
                ))
                .build());
    
        }
    }
    
    variables:
      taggedInstances:
        fn::invoke:
          Function: alicloud:slb:getLoadBalancers
          Arguments:
            tags:
              tagKey1: tagValue1
              tagKey2: tagValue2
    
    title="Required"> <span id="vpcid_yaml">

    vpcId String

    ID of the VPC linked to the SLBs.
    vswitchId String
    ID of the VSwitch linked to the SLBs.

    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