alicloud.slb.getLoadBalancers
Example Usage
using System.Collections.Generic;
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 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
})
}
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()));
}
}
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)
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);
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.
- Address
Ip stringVersion - Address
Type string - Enable
Details bool - Ids List<string>
A list of SLBs IDs.
- Internet
Charge stringType - Load
Balancer stringName - Master
Zone stringId - Name
Regex string A regex string to filter results by SLB name.
- Network
Type string Network type of the SLBs. Valid values:
vpc
andclassic
.- Output
File string - Page
Number int - Page
Size int - Payment
Type string - Resource
Group stringId The Id of resource group which SLB belongs.
- Server
Id string - Server
Intranet stringAddress - Slave
Zone stringId - Status string
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- Vpc
Id string ID of the VPC linked to the SLBs.
- Vswitch
Id string ID of the VSwitch linked to the SLBs.
- Address string
Service address of the SLBs.
- Address
Ip stringVersion - Address
Type string - Enable
Details bool - Ids []string
A list of SLBs IDs.
- Internet
Charge stringType - Load
Balancer stringName - Master
Zone stringId - Name
Regex string A regex string to filter results by SLB name.
- Network
Type string Network type of the SLBs. Valid values:
vpc
andclassic
.- Output
File string - Page
Number int - Page
Size int - Payment
Type string - Resource
Group stringId The Id of resource group which SLB belongs.
- Server
Id string - Server
Intranet stringAddress - Slave
Zone stringId - Status string
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- Vpc
Id string ID of the VPC linked to the SLBs.
- Vswitch
Id string ID of the VSwitch linked to the SLBs.
- address String
Service address of the SLBs.
- address
Ip StringVersion - address
Type String - enable
Details Boolean - ids List<String>
A list of SLBs IDs.
- internet
Charge StringType - load
Balancer StringName - master
Zone StringId - name
Regex String A regex string to filter results by SLB name.
- network
Type String Network type of the SLBs. Valid values:
vpc
andclassic
.- output
File String - page
Number Integer - page
Size Integer - payment
Type String - resource
Group StringId The Id of resource group which SLB belongs.
- server
Id String - server
Intranet StringAddress - slave
Zone StringId - status String
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- vpc
Id String ID of the VPC linked to the SLBs.
- vswitch
Id String ID of the VSwitch linked to the SLBs.
- address string
Service address of the SLBs.
- address
Ip stringVersion - address
Type string - enable
Details boolean - ids string[]
A list of SLBs IDs.
- internet
Charge stringType - load
Balancer stringName - master
Zone stringId - name
Regex string A regex string to filter results by SLB name.
- network
Type string Network type of the SLBs. Valid values:
vpc
andclassic
.- output
File string - page
Number number - page
Size number - payment
Type string - resource
Group stringId The Id of resource group which SLB belongs.
- server
Id string - server
Intranet stringAddress - slave
Zone stringId - status string
SLB current status. Possible values:
inactive
,active
andlocked
.- {[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 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
- vpc
Id string ID of the VPC linked to the SLBs.
- vswitch
Id string ID of the VSwitch linked to the SLBs.
- address str
Service address of the SLBs.
- address_
ip_ strversion - address_
type str - enable_
details bool - ids Sequence[str]
A list of SLBs IDs.
- internet_
charge_ strtype - load_
balancer_ strname - master_
zone_ strid - name_
regex str A regex string to filter results by SLB name.
- network_
type str Network type of the SLBs. Valid values:
vpc
andclassic
.- output_
file str - page_
number int - page_
size int - payment_
type str - resource_
group_ strid The Id of resource group which SLB belongs.
- server_
id str - server_
intranet_ straddress - slave_
zone_ strid - status str
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- 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.
- address
Ip StringVersion - address
Type String - enable
Details Boolean - ids List<String>
A list of SLBs IDs.
- internet
Charge StringType - load
Balancer StringName - master
Zone StringId - name
Regex String A regex string to filter results by SLB name.
- network
Type String Network type of the SLBs. Valid values:
vpc
andclassic
.- output
File String - page
Number Number - page
Size Number - payment
Type String - resource
Group StringId The Id of resource group which SLB belongs.
- server
Id String - server
Intranet StringAddress - slave
Zone StringId - status String
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- vpc
Id String ID of the VPC linked to the SLBs.
- vswitch
Id String ID of the VSwitch linked to the SLBs.
getLoadBalancers Result
The following output properties are available:
- Balancers
List<Pulumi.
Ali Cloud. Slb. Outputs. Get Load Balancers Balancer> - 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.
Ali Cloud. Slb. Outputs. Get Load Balancers Slb> A list of SLBs. Each element contains the following attributes:
Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.
- Total
Count int - Address string
Service address of the SLB.
- Address
Ip stringVersion - Address
Type string - Enable
Details bool - Internet
Charge stringType - Load
Balancer stringName - Master
Zone stringId - Name
Regex string - Network
Type string Network type of the SLB. Possible values:
vpc
andclassic
.- Output
File string - Page
Number int - Page
Size int - Payment
Type string - Resource
Group stringId - Server
Id string - Server
Intranet stringAddress - Slave
Zone stringId - Status string
SLB current status. Possible values:
inactive
,active
andlocked
.- Dictionary<string, object>
A map of tags assigned to the SLB instance.
- Vpc
Id string ID of the VPC the SLB belongs to.
- Vswitch
Id string ID of the VSwitch the SLB belongs to.
- Balancers
[]Get
Load Balancers Balancer - 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
[]Get
Load Balancers Slb A list of SLBs. Each element contains the following attributes:
Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.
- Total
Count int - Address string
Service address of the SLB.
- Address
Ip stringVersion - Address
Type string - Enable
Details bool - Internet
Charge stringType - Load
Balancer stringName - Master
Zone stringId - Name
Regex string - Network
Type string Network type of the SLB. Possible values:
vpc
andclassic
.- Output
File string - Page
Number int - Page
Size int - Payment
Type string - Resource
Group stringId - Server
Id string - Server
Intranet stringAddress - Slave
Zone stringId - Status string
SLB current status. Possible values:
inactive
,active
andlocked
.- map[string]interface{}
A map of tags assigned to the SLB instance.
- Vpc
Id string ID of the VPC the SLB belongs to.
- Vswitch
Id string ID of the VSwitch the SLB belongs to.
- balancers
List<Get
Load Balancers Balancer> - 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<Get
Load Balancers Slb> A list of SLBs. Each element contains the following attributes:
Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.
- total
Count Integer - address String
Service address of the SLB.
- address
Ip StringVersion - address
Type String - enable
Details Boolean - internet
Charge StringType - load
Balancer StringName - master
Zone StringId - name
Regex String - network
Type String Network type of the SLB. Possible values:
vpc
andclassic
.- output
File String - page
Number Integer - page
Size Integer - payment
Type String - resource
Group StringId - server
Id String - server
Intranet StringAddress - slave
Zone StringId - status String
SLB current status. Possible values:
inactive
,active
andlocked
.- Map<String,Object>
A map of tags assigned to the SLB instance.
- vpc
Id String ID of the VPC the SLB belongs to.
- vswitch
Id String ID of the VSwitch the SLB belongs to.
- balancers
Get
Load Balancers Balancer[] - 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
Get
Load Balancers Slb[] A list of SLBs. Each element contains the following attributes:
Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.
- total
Count number - address string
Service address of the SLB.
- address
Ip stringVersion - address
Type string - enable
Details boolean - internet
Charge stringType - load
Balancer stringName - master
Zone stringId - name
Regex string - network
Type string Network type of the SLB. Possible values:
vpc
andclassic
.- output
File string - page
Number number - page
Size number - payment
Type string - resource
Group stringId - server
Id string - server
Intranet stringAddress - slave
Zone stringId - status string
SLB current status. Possible values:
inactive
,active
andlocked
.- {[key: string]: any}
A map of tags assigned to the SLB instance.
- vpc
Id string ID of the VPC the SLB belongs to.
- vswitch
Id string ID of the VSwitch the SLB belongs to.
- balancers
Sequence[Get
Load Balancers Balancer] - 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[Get
Load Balancers Slb] A list of SLBs. Each element contains the following attributes:
Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.
- total_
count int - address str
Service address of the SLB.
- address_
ip_ strversion - address_
type str - enable_
details bool - internet_
charge_ strtype - load_
balancer_ strname - master_
zone_ strid - name_
regex str - network_
type str Network type of the SLB. Possible values:
vpc
andclassic
.- output_
file str - page_
number int - page_
size int - payment_
type str - resource_
group_ strid - server_
id str - server_
intranet_ straddress - slave_
zone_ strid - status str
SLB current status. Possible values:
inactive
,active
andlocked
.- 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:
Field 'slbs' has deprecated from v1.123.1 and replace by 'balancers'.
- total
Count Number - address String
Service address of the SLB.
- address
Ip StringVersion - address
Type String - enable
Details Boolean - internet
Charge StringType - load
Balancer StringName - master
Zone StringId - name
Regex String - network
Type String Network type of the SLB. Possible values:
vpc
andclassic
.- output
File String - page
Number Number - page
Size Number - payment
Type String - resource
Group StringId - server
Id String - server
Intranet StringAddress - slave
Zone StringId - status String
SLB current status. Possible values:
inactive
,active
andlocked
.- Map<Any>
A map of tags assigned to the SLB instance.
- vpc
Id String ID of the VPC the SLB belongs to.
- vswitch
Id String ID of the VSwitch the SLB belongs to.
Supporting Types
GetLoadBalancersBalancer
- Address string
Service address of the SLBs.
- Address
Ip stringVersion - Address
Type string - Auto
Release intTime - Backend
Servers List<Pulumi.Ali Cloud. Slb. Inputs. Get Load Balancers Balancer Backend Server> - Bandwidth int
- Create
Time intStamp - Delete
Protection string - End
Time string - End
Time intStamp - Id string
ID of the SLB.
- Internet
Charge stringType - Listener
Ports List<Pulumi.And Protocals Ali Cloud. Slb. Inputs. Get Load Balancers Balancer Listener Ports And Protocal> - Listener
Ports List<Pulumi.And Protocols Ali Cloud. Slb. Inputs. Get Load Balancers Balancer Listener Ports And Protocol> - Load
Balancer stringId - Load
Balancer stringName - Load
Balancer stringSpec - Master
Zone stringId - Modification
Protection stringReason - Modification
Protection stringStatus - Network
Type string Network type of the SLBs. Valid values:
vpc
andclassic
.- Payment
Type string - Region
Id stringAlias - Renewal
Cyc stringUnit - Renewal
Duration int - Renewal
Status string - Resource
Group stringId The Id of resource group which SLB belongs.
- Slave
Zone stringId - Status string
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- Vpc
Id string ID of the VPC linked to the SLBs.
- Vswitch
Id string ID of the VSwitch linked to the SLBs.
- Address string
Service address of the SLBs.
- Address
Ip stringVersion - Address
Type string - Auto
Release intTime - Backend
Servers []GetLoad Balancers Balancer Backend Server - Bandwidth int
- Create
Time intStamp - Delete
Protection string - End
Time string - End
Time intStamp - Id string
ID of the SLB.
- Internet
Charge stringType - Listener
Ports []GetAnd Protocals Load Balancers Balancer Listener Ports And Protocal - Listener
Ports []GetAnd Protocols Load Balancers Balancer Listener Ports And Protocol - Load
Balancer stringId - Load
Balancer stringName - Load
Balancer stringSpec - Master
Zone stringId - Modification
Protection stringReason - Modification
Protection stringStatus - Network
Type string Network type of the SLBs. Valid values:
vpc
andclassic
.- Payment
Type string - Region
Id stringAlias - Renewal
Cyc stringUnit - Renewal
Duration int - Renewal
Status string - Resource
Group stringId The Id of resource group which SLB belongs.
- Slave
Zone stringId - Status string
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- Vpc
Id string ID of the VPC linked to the SLBs.
- Vswitch
Id string ID of the VSwitch linked to the SLBs.
- address String
Service address of the SLBs.
- address
Ip StringVersion - address
Type String - auto
Release IntegerTime - backend
Servers List<GetLoad Balancers Balancer Backend Server> - bandwidth Integer
- create
Time IntegerStamp - delete
Protection String - end
Time String - end
Time IntegerStamp - id String
ID of the SLB.
- internet
Charge StringType - listener
Ports List<GetAnd Protocals Load Balancers Balancer Listener Ports And Protocal> - listener
Ports List<GetAnd Protocols Load Balancers Balancer Listener Ports And Protocol> - load
Balancer StringId - load
Balancer StringName - load
Balancer StringSpec - master
Zone StringId - modification
Protection StringReason - modification
Protection StringStatus - network
Type String Network type of the SLBs. Valid values:
vpc
andclassic
.- payment
Type String - region
Id StringAlias - renewal
Cyc StringUnit - renewal
Duration Integer - renewal
Status String - resource
Group StringId The Id of resource group which SLB belongs.
- slave
Zone StringId - status String
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- vpc
Id String ID of the VPC linked to the SLBs.
- vswitch
Id String ID of the VSwitch linked to the SLBs.
- address string
Service address of the SLBs.
- address
Ip stringVersion - address
Type string - auto
Release numberTime - backend
Servers GetLoad Balancers Balancer Backend Server[] - bandwidth number
- create
Time numberStamp - delete
Protection string - end
Time string - end
Time numberStamp - id string
ID of the SLB.
- internet
Charge stringType - listener
Ports GetAnd Protocals Load Balancers Balancer Listener Ports And Protocal[] - listener
Ports GetAnd Protocols Load Balancers Balancer Listener Ports And Protocol[] - load
Balancer stringId - load
Balancer stringName - load
Balancer stringSpec - master
Zone stringId - modification
Protection stringReason - modification
Protection stringStatus - network
Type string Network type of the SLBs. Valid values:
vpc
andclassic
.- payment
Type string - region
Id stringAlias - renewal
Cyc stringUnit - renewal
Duration number - renewal
Status string - resource
Group stringId The Id of resource group which SLB belongs.
- slave
Zone stringId - status string
SLB current status. Possible values:
inactive
,active
andlocked
.- {[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 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
- vpc
Id string ID of the VPC linked to the SLBs.
- vswitch
Id string ID of the VSwitch linked to the SLBs.
- address str
Service address of the SLBs.
- address_
ip_ strversion - address_
type str - auto_
release_ inttime - backend_
servers Sequence[GetLoad Balancers Balancer Backend Server] - bandwidth int
- create_
time_ intstamp - delete_
protection str - end_
time str - end_
time_ intstamp - id str
ID of the SLB.
- internet_
charge_ strtype - listener_
ports_ Sequence[Getand_ protocals Load Balancers Balancer Listener Ports And Protocal] - listener_
ports_ Sequence[Getand_ protocols Load Balancers Balancer Listener Ports And Protocol] - load_
balancer_ strid - load_
balancer_ strname - load_
balancer_ strspec - master_
zone_ strid - modification_
protection_ strreason - modification_
protection_ strstatus - network_
type str Network type of the SLBs. Valid values:
vpc
andclassic
.- payment_
type str - region_
id_ stralias - renewal_
cyc_ strunit - renewal_
duration int - renewal_
status str - resource_
group_ strid The Id of resource group which SLB belongs.
- slave_
zone_ strid - status str
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- 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.
- address
Ip StringVersion - address
Type String - auto
Release NumberTime - backend
Servers List<Property Map> - bandwidth Number
- create
Time NumberStamp - delete
Protection String - end
Time String - end
Time NumberStamp - id String
ID of the SLB.
- internet
Charge StringType - listener
Ports List<Property Map>And Protocals - listener
Ports List<Property Map>And Protocols - load
Balancer StringId - load
Balancer StringName - load
Balancer StringSpec - master
Zone StringId - modification
Protection StringReason - modification
Protection StringStatus - network
Type String Network type of the SLBs. Valid values:
vpc
andclassic
.- payment
Type String - region
Id StringAlias - renewal
Cyc StringUnit - renewal
Duration Number - renewal
Status String - resource
Group StringId The Id of resource group which SLB belongs.
- slave
Zone StringId - status String
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- vpc
Id String ID of the VPC linked to the SLBs.
- vswitch
Id String ID of the VSwitch linked to the SLBs.
GetLoadBalancersBalancerBackendServer
- Description string
- Server
Id string - Type string
- Weight int
- Description string
- Server
Id string - Type string
- Weight int
- description String
- server
Id String - type String
- weight Integer
- description string
- server
Id string - type string
- weight number
- description str
- server_
id str - type str
- weight int
- description String
- server
Id String - type String
- weight Number
GetLoadBalancersBalancerListenerPortsAndProtocal
- Listener
Port int - Listener
Protocal string
- Listener
Port int - Listener
Protocal string
- listener
Port Integer - listener
Protocal String
- listener
Port number - listener
Protocal string
- listener_
port int - listener_
protocal str
- listener
Port Number - listener
Protocal String
GetLoadBalancersBalancerListenerPortsAndProtocol
- Description string
- Forward
Port int - Listener
Forward string - Listener
Port int - Listener
Protocol string
- Description string
- Forward
Port int - Listener
Forward string - Listener
Port int - Listener
Protocol string
- description String
- forward
Port Integer - listener
Forward String - listener
Port Integer - listener
Protocol String
- description string
- forward
Port number - listener
Forward string - listener
Port number - listener
Protocol string
- description str
- forward_
port int - listener_
forward str - listener_
port int - listener_
protocol str
- description String
- forward
Port Number - listener
Forward String - listener
Port Number - listener
Protocol String
GetLoadBalancersSlb
- Address string
Service address of the SLBs.
- Creation
Time string SLB creation time.
- Id string
ID of the SLB.
- Internet bool
SLB addressType: internet if
true
, intranet iffalse
. Must befalse
whennetwork_type
isvpc
.- Master
Availability stringZone Master availability zone of the SLBs.
- Name string
SLB name.
- Network
Type string Network type of the SLBs. Valid values:
vpc
andclassic
.- Region
Id string Region ID the SLB belongs to.
- Slave
Availability stringZone Slave availability zone of the SLBs.
- Status string
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- Vpc
Id string ID of the VPC linked to the SLBs.
- Vswitch
Id string ID of the VSwitch linked to the SLBs.
- Address string
Service address of the SLBs.
- Creation
Time string SLB creation time.
- Id string
ID of the SLB.
- Internet bool
SLB addressType: internet if
true
, intranet iffalse
. Must befalse
whennetwork_type
isvpc
.- Master
Availability stringZone Master availability zone of the SLBs.
- Name string
SLB name.
- Network
Type string Network type of the SLBs. Valid values:
vpc
andclassic
.- Region
Id string Region ID the SLB belongs to.
- Slave
Availability stringZone Slave availability zone of the SLBs.
- Status string
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- Vpc
Id string ID of the VPC linked to the SLBs.
- Vswitch
Id string ID of the VSwitch linked to the SLBs.
- address String
Service address of the SLBs.
- creation
Time String SLB creation time.
- id String
ID of the SLB.
- internet Boolean
SLB addressType: internet if
true
, intranet iffalse
. Must befalse
whennetwork_type
isvpc
.- master
Availability StringZone Master availability zone of the SLBs.
- name String
SLB name.
- network
Type String Network type of the SLBs. Valid values:
vpc
andclassic
.- region
Id String Region ID the SLB belongs to.
- slave
Availability StringZone Slave availability zone of the SLBs.
- status String
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- vpc
Id String ID of the VPC linked to the SLBs.
- vswitch
Id String ID of the VSwitch linked to the SLBs.
- address string
Service address of the SLBs.
- creation
Time string SLB creation time.
- id string
ID of the SLB.
- internet boolean
SLB addressType: internet if
true
, intranet iffalse
. Must befalse
whennetwork_type
isvpc
.- master
Availability stringZone Master availability zone of the SLBs.
- name string
SLB name.
- network
Type string Network type of the SLBs. Valid values:
vpc
andclassic
.- region
Id string Region ID the SLB belongs to.
- slave
Availability stringZone Slave availability zone of the SLBs.
- status string
SLB current status. Possible values:
inactive
,active
andlocked
.- {[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 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
- vpc
Id string ID of the VPC linked to the SLBs.
- vswitch
Id 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 iffalse
. Must befalse
whennetwork_type
isvpc
.- master_
availability_ strzone Master availability zone of the SLBs.
- name str
SLB name.
- network_
type str Network type of the SLBs. Valid values:
vpc
andclassic
.- region_
id str Region ID the SLB belongs to.
- slave_
availability_ strzone Slave availability zone of the SLBs.
- status str
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- 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.
- creation
Time String SLB creation time.
- id String
ID of the SLB.
- internet Boolean
SLB addressType: internet if
true
, intranet iffalse
. Must befalse
whennetwork_type
isvpc
.- master
Availability StringZone Master availability zone of the SLBs.
- name String
SLB name.
- network
Type String Network type of the SLBs. Valid values:
vpc
andclassic
.- region
Id String Region ID the SLB belongs to.
- slave
Availability StringZone Slave availability zone of the SLBs.
- status String
SLB current status. Possible values:
inactive
,active
andlocked
.- 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 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
- vpc
Id String ID of the VPC linked to the SLBs.
- vswitch
Id 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.