1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. alb
  5. getLoadBalancers
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.alb.getLoadBalancers

Explore with Pulumi AI

Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

This data source provides the Alb Load Balancers of the current Alibaba Cloud user.

NOTE: Available in v1.132.0+.

Example Usage

Basic Usage

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

const ids = alicloud.alb.getLoadBalancers({});
export const albLoadBalancerId1 = ids.then(ids => ids.balancers?.[0]?.id);
const nameRegex = alicloud.alb.getLoadBalancers({
    nameRegex: "^my-LoadBalancer",
});
export const albLoadBalancerId2 = nameRegex.then(nameRegex => nameRegex.balancers?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.alb.get_load_balancers()
pulumi.export("albLoadBalancerId1", ids.balancers[0].id)
name_regex = alicloud.alb.get_load_balancers(name_regex="^my-LoadBalancer")
pulumi.export("albLoadBalancerId2", name_regex.balancers[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := alb.GetLoadBalancers(ctx, &alb.GetLoadBalancersArgs{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("albLoadBalancerId1", ids.Balancers[0].Id)
		nameRegex, err := alb.GetLoadBalancers(ctx, &alb.GetLoadBalancersArgs{
			NameRegex: pulumi.StringRef("^my-LoadBalancer"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("albLoadBalancerId2", nameRegex.Balancers[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Alb.GetLoadBalancers.Invoke();

    var nameRegex = AliCloud.Alb.GetLoadBalancers.Invoke(new()
    {
        NameRegex = "^my-LoadBalancer",
    });

    return new Dictionary<string, object?>
    {
        ["albLoadBalancerId1"] = ids.Apply(getLoadBalancersResult => getLoadBalancersResult.Balancers[0]?.Id),
        ["albLoadBalancerId2"] = nameRegex.Apply(getLoadBalancersResult => getLoadBalancersResult.Balancers[0]?.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.alb.AlbFunctions;
import com.pulumi.alicloud.alb.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 ids = AlbFunctions.getLoadBalancers();

        ctx.export("albLoadBalancerId1", ids.applyValue(getLoadBalancersResult -> getLoadBalancersResult.balancers()[0].id()));
        final var nameRegex = AlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
            .nameRegex("^my-LoadBalancer")
            .build());

        ctx.export("albLoadBalancerId2", nameRegex.applyValue(getLoadBalancersResult -> getLoadBalancersResult.balancers()[0].id()));
    }
}
Copy
variables:
  ids:
    fn::invoke:
      function: alicloud:alb:getLoadBalancers
      arguments: {}
  nameRegex:
    fn::invoke:
      function: alicloud:alb:getLoadBalancers
      arguments:
        nameRegex: ^my-LoadBalancer
outputs:
  albLoadBalancerId1: ${ids.balancers[0].id}
  albLoadBalancerId2: ${nameRegex.balancers[0].id}
Copy

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>
Copy
def get_load_balancers(address_type: Optional[str] = None,
                       enable_details: Optional[bool] = None,
                       ids: Optional[Sequence[str]] = None,
                       load_balancer_business_status: Optional[str] = None,
                       load_balancer_bussiness_status: Optional[str] = None,
                       load_balancer_ids: Optional[Sequence[str]] = None,
                       load_balancer_name: Optional[str] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       resource_group_id: Optional[str] = None,
                       status: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       vpc_id: Optional[str] = None,
                       vpc_ids: Optional[Sequence[str]] = None,
                       zone_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetLoadBalancersResult
def get_load_balancers_output(address_type: Optional[pulumi.Input[str]] = None,
                       enable_details: Optional[pulumi.Input[bool]] = None,
                       ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       load_balancer_business_status: Optional[pulumi.Input[str]] = None,
                       load_balancer_bussiness_status: Optional[pulumi.Input[str]] = None,
                       load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       load_balancer_name: Optional[pulumi.Input[str]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       resource_group_id: Optional[pulumi.Input[str]] = None,
                       status: Optional[pulumi.Input[str]] = None,
                       tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                       vpc_id: Optional[pulumi.Input[str]] = None,
                       vpc_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       zone_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancersResult]
Copy
func GetLoadBalancers(ctx *Context, args *GetLoadBalancersArgs, opts ...InvokeOption) (*GetLoadBalancersResult, error)
func GetLoadBalancersOutput(ctx *Context, args *GetLoadBalancersOutputArgs, opts ...InvokeOption) GetLoadBalancersResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetLoadBalancersResult> getLoadBalancers(GetLoadBalancersArgs args, InvokeOptions options)
public static Output<GetLoadBalancersResult> getLoadBalancers(GetLoadBalancersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:alb/getLoadBalancers:getLoadBalancers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AddressType Changes to this property will trigger replacement. string
The type of IP address that the ALB instance uses to provide services. Valid values: Intranet, Internet.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. List<string>
A list of Load Balancer IDs.
LoadBalancerBusinessStatus Changes to this property will trigger replacement. string
Load Balancing of the Service Status. Valid Values: Abnormaland Normal.
LoadBalancerBussinessStatus Changes to this property will trigger replacement. string
Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0. Use 'load_balancer_business_status' replaces it.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

LoadBalancerIds Changes to this property will trigger replacement. List<string>
The load balancer ids.
LoadBalancerName Changes to this property will trigger replacement. string
The name of the resource.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Load Balancer name.
OutputFile string
File name where to save data source results (after running pulumi preview).
ResourceGroupId Changes to this property will trigger replacement. string
The ID of the resource group.
Status Changes to this property will trigger replacement. string
The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
Tags Dictionary<string, string>
VpcId Changes to this property will trigger replacement. string
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
VpcIds Changes to this property will trigger replacement. List<string>
The vpc ids.
ZoneId Changes to this property will trigger replacement. string
The zone ID of the resource.
AddressType Changes to this property will trigger replacement. string
The type of IP address that the ALB instance uses to provide services. Valid values: Intranet, Internet.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. []string
A list of Load Balancer IDs.
LoadBalancerBusinessStatus Changes to this property will trigger replacement. string
Load Balancing of the Service Status. Valid Values: Abnormaland Normal.
LoadBalancerBussinessStatus Changes to this property will trigger replacement. string
Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0. Use 'load_balancer_business_status' replaces it.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

LoadBalancerIds Changes to this property will trigger replacement. []string
The load balancer ids.
LoadBalancerName Changes to this property will trigger replacement. string
The name of the resource.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Load Balancer name.
OutputFile string
File name where to save data source results (after running pulumi preview).
ResourceGroupId Changes to this property will trigger replacement. string
The ID of the resource group.
Status Changes to this property will trigger replacement. string
The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
Tags map[string]string
VpcId Changes to this property will trigger replacement. string
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
VpcIds Changes to this property will trigger replacement. []string
The vpc ids.
ZoneId Changes to this property will trigger replacement. string
The zone ID of the resource.
addressType Changes to this property will trigger replacement. String
The type of IP address that the ALB instance uses to provide services. Valid values: Intranet, Internet.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Load Balancer IDs.
loadBalancerBusinessStatus Changes to this property will trigger replacement. String
Load Balancing of the Service Status. Valid Values: Abnormaland Normal.
loadBalancerBussinessStatus Changes to this property will trigger replacement. String
Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0. Use 'load_balancer_business_status' replaces it.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

loadBalancerIds Changes to this property will trigger replacement. List<String>
The load balancer ids.
loadBalancerName Changes to this property will trigger replacement. String
The name of the resource.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Load Balancer name.
outputFile String
File name where to save data source results (after running pulumi preview).
resourceGroupId Changes to this property will trigger replacement. String
The ID of the resource group.
status Changes to this property will trigger replacement. String
The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
tags Map<String,String>
vpcId Changes to this property will trigger replacement. String
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
vpcIds Changes to this property will trigger replacement. List<String>
The vpc ids.
zoneId Changes to this property will trigger replacement. String
The zone ID of the resource.
addressType Changes to this property will trigger replacement. string
The type of IP address that the ALB instance uses to provide services. Valid values: Intranet, Internet.
enableDetails boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. string[]
A list of Load Balancer IDs.
loadBalancerBusinessStatus Changes to this property will trigger replacement. string
Load Balancing of the Service Status. Valid Values: Abnormaland Normal.
loadBalancerBussinessStatus Changes to this property will trigger replacement. string
Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0. Use 'load_balancer_business_status' replaces it.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

loadBalancerIds Changes to this property will trigger replacement. string[]
The load balancer ids.
loadBalancerName Changes to this property will trigger replacement. string
The name of the resource.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Load Balancer name.
outputFile string
File name where to save data source results (after running pulumi preview).
resourceGroupId Changes to this property will trigger replacement. string
The ID of the resource group.
status Changes to this property will trigger replacement. string
The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
tags {[key: string]: string}
vpcId Changes to this property will trigger replacement. string
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
vpcIds Changes to this property will trigger replacement. string[]
The vpc ids.
zoneId Changes to this property will trigger replacement. string
The zone ID of the resource.
address_type Changes to this property will trigger replacement. str
The type of IP address that the ALB instance uses to provide services. Valid values: Intranet, Internet.
enable_details bool
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Load Balancer IDs.
load_balancer_business_status Changes to this property will trigger replacement. str
Load Balancing of the Service Status. Valid Values: Abnormaland Normal.
load_balancer_bussiness_status Changes to this property will trigger replacement. str
Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0. Use 'load_balancer_business_status' replaces it.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

load_balancer_ids Changes to this property will trigger replacement. Sequence[str]
The load balancer ids.
load_balancer_name Changes to this property will trigger replacement. str
The name of the resource.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Load Balancer name.
output_file str
File name where to save data source results (after running pulumi preview).
resource_group_id Changes to this property will trigger replacement. str
The ID of the resource group.
status Changes to this property will trigger replacement. str
The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
tags Mapping[str, str]
vpc_id Changes to this property will trigger replacement. str
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
vpc_ids Changes to this property will trigger replacement. Sequence[str]
The vpc ids.
zone_id Changes to this property will trigger replacement. str
The zone ID of the resource.
addressType Changes to this property will trigger replacement. String
The type of IP address that the ALB instance uses to provide services. Valid values: Intranet, Internet.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Load Balancer IDs.
loadBalancerBusinessStatus Changes to this property will trigger replacement. String
Load Balancing of the Service Status. Valid Values: Abnormaland Normal.
loadBalancerBussinessStatus Changes to this property will trigger replacement. String
Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0. Use 'load_balancer_business_status' replaces it.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

loadBalancerIds Changes to this property will trigger replacement. List<String>
The load balancer ids.
loadBalancerName Changes to this property will trigger replacement. String
The name of the resource.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Load Balancer name.
outputFile String
File name where to save data source results (after running pulumi preview).
resourceGroupId Changes to this property will trigger replacement. String
The ID of the resource group.
status Changes to this property will trigger replacement. String
The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
tags Map<String>
vpcId Changes to this property will trigger replacement. String
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
vpcIds Changes to this property will trigger replacement. List<String>
The vpc ids.
zoneId Changes to this property will trigger replacement. String
The zone ID of the resource.

getLoadBalancers Result

The following output properties are available:

Balancers List<Pulumi.AliCloud.Alb.Outputs.GetLoadBalancersBalancer>
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Names List<string>
AddressType string
EnableDetails bool
LoadBalancerBusinessStatus string
LoadBalancerBussinessStatus string

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

LoadBalancerIds List<string>
LoadBalancerName string
NameRegex string
OutputFile string
ResourceGroupId string
Status string
Tags Dictionary<string, string>
VpcId string
VpcIds List<string>
ZoneId string
Balancers []GetLoadBalancersBalancer
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
AddressType string
EnableDetails bool
LoadBalancerBusinessStatus string
LoadBalancerBussinessStatus string

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

LoadBalancerIds []string
LoadBalancerName string
NameRegex string
OutputFile string
ResourceGroupId string
Status string
Tags map[string]string
VpcId string
VpcIds []string
ZoneId string
balancers List<GetLoadBalancersBalancer>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
addressType String
enableDetails Boolean
loadBalancerBusinessStatus String
loadBalancerBussinessStatus String

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

loadBalancerIds List<String>
loadBalancerName String
nameRegex String
outputFile String
resourceGroupId String
status String
tags Map<String,String>
vpcId String
vpcIds List<String>
zoneId String
balancers GetLoadBalancersBalancer[]
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
addressType string
enableDetails boolean
loadBalancerBusinessStatus string
loadBalancerBussinessStatus string

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

loadBalancerIds string[]
loadBalancerName string
nameRegex string
outputFile string
resourceGroupId string
status string
tags {[key: string]: string}
vpcId string
vpcIds string[]
zoneId string
balancers Sequence[GetLoadBalancersBalancer]
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
address_type str
enable_details bool
load_balancer_business_status str
load_balancer_bussiness_status str

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

load_balancer_ids Sequence[str]
load_balancer_name str
name_regex str
output_file str
resource_group_id str
status str
tags Mapping[str, str]
vpc_id str
vpc_ids Sequence[str]
zone_id str
balancers List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
addressType String
enableDetails Boolean
loadBalancerBusinessStatus String
loadBalancerBussinessStatus String

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new attribute 'load_balancer_business_status' instead.

loadBalancerIds List<String>
loadBalancerName String
nameRegex String
outputFile String
resourceGroupId String
status String
tags Map<String>
vpcId String
vpcIds List<String>
zoneId String

Supporting Types

GetLoadBalancersBalancer

AccessLogConfigs This property is required. List<Pulumi.AliCloud.Alb.Inputs.GetLoadBalancersBalancerAccessLogConfig>
The Access Logging Configuration Structure.
AddressAllocatedMode This property is required. string
The method in which IP addresses are assigned. Valid values: Fixed: The ALB instance uses a fixed IP address. Dynamic (default): An IP address is dynamically assigned to each zone of the ALB instance.
AddressType This property is required. string
The type of IP address that the ALB instance uses to provide services.
BandwidthPackageId This property is required. string
The ID of the EIP bandwidth plan which is associated with an ALB instance that uses a public IP address.
CreateTime This property is required. string
The creation time of the resource.
DeletionProtectionConfigs This property is required. List<Pulumi.AliCloud.Alb.Inputs.GetLoadBalancersBalancerDeletionProtectionConfig>
Remove the Protection Configuration.
DnsName This property is required. string
DNS Domain Name.
Id This property is required. string
The ID of the Load Balancer.
LoadBalancerBillingConfigs This property is required. List<Pulumi.AliCloud.Alb.Inputs.GetLoadBalancersBalancerLoadBalancerBillingConfig>
The configuration of the billing method.
LoadBalancerBusinessStatus This property is required. string
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Available in 1.142.0+
LoadBalancerBussinessStatus This property is required. string
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new parameter 'load_balancer_business_status' instead.

LoadBalancerEdition This property is required. string
The edition of the ALB instance.
LoadBalancerId This property is required. string
The first ID of the resource.
LoadBalancerName This property is required. string
The name of the resource.
LoadBalancerOperationLocks This property is required. List<Pulumi.AliCloud.Alb.Inputs.GetLoadBalancersBalancerLoadBalancerOperationLock>
The Load Balancing Operations Lock Configuration.
ModificationProtectionConfigs This property is required. List<Pulumi.AliCloud.Alb.Inputs.GetLoadBalancersBalancerModificationProtectionConfig>
Modify the Protection Configuration.
ResourceGroupId This property is required. string
The ID of the resource group.
Status This property is required. string
The The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
Tags This property is required. Dictionary<string, string>
The tag of the resource.
VpcId This property is required. string
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
ZoneMappings This property is required. List<Pulumi.AliCloud.Alb.Inputs.GetLoadBalancersBalancerZoneMapping>
The zones and vSwitches. You must specify at least two zones.
AccessLogConfigs This property is required. []GetLoadBalancersBalancerAccessLogConfig
The Access Logging Configuration Structure.
AddressAllocatedMode This property is required. string
The method in which IP addresses are assigned. Valid values: Fixed: The ALB instance uses a fixed IP address. Dynamic (default): An IP address is dynamically assigned to each zone of the ALB instance.
AddressType This property is required. string
The type of IP address that the ALB instance uses to provide services.
BandwidthPackageId This property is required. string
The ID of the EIP bandwidth plan which is associated with an ALB instance that uses a public IP address.
CreateTime This property is required. string
The creation time of the resource.
DeletionProtectionConfigs This property is required. []GetLoadBalancersBalancerDeletionProtectionConfig
Remove the Protection Configuration.
DnsName This property is required. string
DNS Domain Name.
Id This property is required. string
The ID of the Load Balancer.
LoadBalancerBillingConfigs This property is required. []GetLoadBalancersBalancerLoadBalancerBillingConfig
The configuration of the billing method.
LoadBalancerBusinessStatus This property is required. string
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Available in 1.142.0+
LoadBalancerBussinessStatus This property is required. string
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new parameter 'load_balancer_business_status' instead.

LoadBalancerEdition This property is required. string
The edition of the ALB instance.
LoadBalancerId This property is required. string
The first ID of the resource.
LoadBalancerName This property is required. string
The name of the resource.
LoadBalancerOperationLocks This property is required. []GetLoadBalancersBalancerLoadBalancerOperationLock
The Load Balancing Operations Lock Configuration.
ModificationProtectionConfigs This property is required. []GetLoadBalancersBalancerModificationProtectionConfig
Modify the Protection Configuration.
ResourceGroupId This property is required. string
The ID of the resource group.
Status This property is required. string
The The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
Tags This property is required. map[string]string
The tag of the resource.
VpcId This property is required. string
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
ZoneMappings This property is required. []GetLoadBalancersBalancerZoneMapping
The zones and vSwitches. You must specify at least two zones.
accessLogConfigs This property is required. List<GetLoadBalancersBalancerAccessLogConfig>
The Access Logging Configuration Structure.
addressAllocatedMode This property is required. String
The method in which IP addresses are assigned. Valid values: Fixed: The ALB instance uses a fixed IP address. Dynamic (default): An IP address is dynamically assigned to each zone of the ALB instance.
addressType This property is required. String
The type of IP address that the ALB instance uses to provide services.
bandwidthPackageId This property is required. String
The ID of the EIP bandwidth plan which is associated with an ALB instance that uses a public IP address.
createTime This property is required. String
The creation time of the resource.
deletionProtectionConfigs This property is required. List<GetLoadBalancersBalancerDeletionProtectionConfig>
Remove the Protection Configuration.
dnsName This property is required. String
DNS Domain Name.
id This property is required. String
The ID of the Load Balancer.
loadBalancerBillingConfigs This property is required. List<GetLoadBalancersBalancerLoadBalancerBillingConfig>
The configuration of the billing method.
loadBalancerBusinessStatus This property is required. String
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Available in 1.142.0+
loadBalancerBussinessStatus This property is required. String
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new parameter 'load_balancer_business_status' instead.

loadBalancerEdition This property is required. String
The edition of the ALB instance.
loadBalancerId This property is required. String
The first ID of the resource.
loadBalancerName This property is required. String
The name of the resource.
loadBalancerOperationLocks This property is required. List<GetLoadBalancersBalancerLoadBalancerOperationLock>
The Load Balancing Operations Lock Configuration.
modificationProtectionConfigs This property is required. List<GetLoadBalancersBalancerModificationProtectionConfig>
Modify the Protection Configuration.
resourceGroupId This property is required. String
The ID of the resource group.
status This property is required. String
The The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
tags This property is required. Map<String,String>
The tag of the resource.
vpcId This property is required. String
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
zoneMappings This property is required. List<GetLoadBalancersBalancerZoneMapping>
The zones and vSwitches. You must specify at least two zones.
accessLogConfigs This property is required. GetLoadBalancersBalancerAccessLogConfig[]
The Access Logging Configuration Structure.
addressAllocatedMode This property is required. string
The method in which IP addresses are assigned. Valid values: Fixed: The ALB instance uses a fixed IP address. Dynamic (default): An IP address is dynamically assigned to each zone of the ALB instance.
addressType This property is required. string
The type of IP address that the ALB instance uses to provide services.
bandwidthPackageId This property is required. string
The ID of the EIP bandwidth plan which is associated with an ALB instance that uses a public IP address.
createTime This property is required. string
The creation time of the resource.
deletionProtectionConfigs This property is required. GetLoadBalancersBalancerDeletionProtectionConfig[]
Remove the Protection Configuration.
dnsName This property is required. string
DNS Domain Name.
id This property is required. string
The ID of the Load Balancer.
loadBalancerBillingConfigs This property is required. GetLoadBalancersBalancerLoadBalancerBillingConfig[]
The configuration of the billing method.
loadBalancerBusinessStatus This property is required. string
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Available in 1.142.0+
loadBalancerBussinessStatus This property is required. string
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new parameter 'load_balancer_business_status' instead.

loadBalancerEdition This property is required. string
The edition of the ALB instance.
loadBalancerId This property is required. string
The first ID of the resource.
loadBalancerName This property is required. string
The name of the resource.
loadBalancerOperationLocks This property is required. GetLoadBalancersBalancerLoadBalancerOperationLock[]
The Load Balancing Operations Lock Configuration.
modificationProtectionConfigs This property is required. GetLoadBalancersBalancerModificationProtectionConfig[]
Modify the Protection Configuration.
resourceGroupId This property is required. string
The ID of the resource group.
status This property is required. string
The The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
tags This property is required. {[key: string]: string}
The tag of the resource.
vpcId This property is required. string
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
zoneMappings This property is required. GetLoadBalancersBalancerZoneMapping[]
The zones and vSwitches. You must specify at least two zones.
access_log_configs This property is required. Sequence[GetLoadBalancersBalancerAccessLogConfig]
The Access Logging Configuration Structure.
address_allocated_mode This property is required. str
The method in which IP addresses are assigned. Valid values: Fixed: The ALB instance uses a fixed IP address. Dynamic (default): An IP address is dynamically assigned to each zone of the ALB instance.
address_type This property is required. str
The type of IP address that the ALB instance uses to provide services.
bandwidth_package_id This property is required. str
The ID of the EIP bandwidth plan which is associated with an ALB instance that uses a public IP address.
create_time This property is required. str
The creation time of the resource.
deletion_protection_configs This property is required. Sequence[GetLoadBalancersBalancerDeletionProtectionConfig]
Remove the Protection Configuration.
dns_name This property is required. str
DNS Domain Name.
id This property is required. str
The ID of the Load Balancer.
load_balancer_billing_configs This property is required. Sequence[GetLoadBalancersBalancerLoadBalancerBillingConfig]
The configuration of the billing method.
load_balancer_business_status This property is required. str
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Available in 1.142.0+
load_balancer_bussiness_status This property is required. str
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new parameter 'load_balancer_business_status' instead.

load_balancer_edition This property is required. str
The edition of the ALB instance.
load_balancer_id This property is required. str
The first ID of the resource.
load_balancer_name This property is required. str
The name of the resource.
load_balancer_operation_locks This property is required. Sequence[GetLoadBalancersBalancerLoadBalancerOperationLock]
The Load Balancing Operations Lock Configuration.
modification_protection_configs This property is required. Sequence[GetLoadBalancersBalancerModificationProtectionConfig]
Modify the Protection Configuration.
resource_group_id This property is required. str
The ID of the resource group.
status This property is required. str
The The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
tags This property is required. Mapping[str, str]
The tag of the resource.
vpc_id This property is required. str
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
zone_mappings This property is required. Sequence[GetLoadBalancersBalancerZoneMapping]
The zones and vSwitches. You must specify at least two zones.
accessLogConfigs This property is required. List<Property Map>
The Access Logging Configuration Structure.
addressAllocatedMode This property is required. String
The method in which IP addresses are assigned. Valid values: Fixed: The ALB instance uses a fixed IP address. Dynamic (default): An IP address is dynamically assigned to each zone of the ALB instance.
addressType This property is required. String
The type of IP address that the ALB instance uses to provide services.
bandwidthPackageId This property is required. String
The ID of the EIP bandwidth plan which is associated with an ALB instance that uses a public IP address.
createTime This property is required. String
The creation time of the resource.
deletionProtectionConfigs This property is required. List<Property Map>
Remove the Protection Configuration.
dnsName This property is required. String
DNS Domain Name.
id This property is required. String
The ID of the Load Balancer.
loadBalancerBillingConfigs This property is required. List<Property Map>
The configuration of the billing method.
loadBalancerBusinessStatus This property is required. String
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Available in 1.142.0+
loadBalancerBussinessStatus This property is required. String
Load Balancing of the Service Status. Valid Values: Abnormal and Normal. NOTE: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0.

Deprecated: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0 and it will be removed in the future version. Please use the new parameter 'load_balancer_business_status' instead.

loadBalancerEdition This property is required. String
The edition of the ALB instance.
loadBalancerId This property is required. String
The first ID of the resource.
loadBalancerName This property is required. String
The name of the resource.
loadBalancerOperationLocks This property is required. List<Property Map>
The Load Balancing Operations Lock Configuration.
modificationProtectionConfigs This property is required. List<Property Map>
Modify the Protection Configuration.
resourceGroupId This property is required. String
The ID of the resource group.
status This property is required. String
The The load balancer status. Valid values: Active, Configuring, CreateFailed, Inactive and Provisioning.
tags This property is required. Map<String>
The tag of the resource.
vpcId This property is required. String
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
zoneMappings This property is required. List<Property Map>
The zones and vSwitches. You must specify at least two zones.

GetLoadBalancersBalancerAccessLogConfig

LogProject This property is required. string
The log service that access logs are shipped to.
LogStore This property is required. string
The logstore that access logs are shipped to.
LogProject This property is required. string
The log service that access logs are shipped to.
LogStore This property is required. string
The logstore that access logs are shipped to.
logProject This property is required. String
The log service that access logs are shipped to.
logStore This property is required. String
The logstore that access logs are shipped to.
logProject This property is required. string
The log service that access logs are shipped to.
logStore This property is required. string
The logstore that access logs are shipped to.
log_project This property is required. str
The log service that access logs are shipped to.
log_store This property is required. str
The logstore that access logs are shipped to.
logProject This property is required. String
The log service that access logs are shipped to.
logStore This property is required. String
The logstore that access logs are shipped to.

GetLoadBalancersBalancerDeletionProtectionConfig

Enabled This property is required. bool
Remove the Protection Status.
EnabledTime This property is required. string
Deletion Protection Turn-on Time Use Greenwich Mean Time, in the Format of Yyyy-MM-ddTHH: mm:SSZ.
Enabled This property is required. bool
Remove the Protection Status.
EnabledTime This property is required. string
Deletion Protection Turn-on Time Use Greenwich Mean Time, in the Format of Yyyy-MM-ddTHH: mm:SSZ.
enabled This property is required. Boolean
Remove the Protection Status.
enabledTime This property is required. String
Deletion Protection Turn-on Time Use Greenwich Mean Time, in the Format of Yyyy-MM-ddTHH: mm:SSZ.
enabled This property is required. boolean
Remove the Protection Status.
enabledTime This property is required. string
Deletion Protection Turn-on Time Use Greenwich Mean Time, in the Format of Yyyy-MM-ddTHH: mm:SSZ.
enabled This property is required. bool
Remove the Protection Status.
enabled_time This property is required. str
Deletion Protection Turn-on Time Use Greenwich Mean Time, in the Format of Yyyy-MM-ddTHH: mm:SSZ.
enabled This property is required. Boolean
Remove the Protection Status.
enabledTime This property is required. String
Deletion Protection Turn-on Time Use Greenwich Mean Time, in the Format of Yyyy-MM-ddTHH: mm:SSZ.

GetLoadBalancersBalancerLoadBalancerBillingConfig

PayType This property is required. string
The billing method of the ALB instance. Valid value: PayAsYouGo.
PayType This property is required. string
The billing method of the ALB instance. Valid value: PayAsYouGo.
payType This property is required. String
The billing method of the ALB instance. Valid value: PayAsYouGo.
payType This property is required. string
The billing method of the ALB instance. Valid value: PayAsYouGo.
pay_type This property is required. str
The billing method of the ALB instance. Valid value: PayAsYouGo.
payType This property is required. String
The billing method of the ALB instance. Valid value: PayAsYouGo.

GetLoadBalancersBalancerLoadBalancerOperationLock

LockReason This property is required. string
The Locking of the Reasons.
LockType This property is required. string
The Locking of the Type. Valid Values: securitylocked,relatedresourcelocked, financiallocked, and residuallocked.
LockReason This property is required. string
The Locking of the Reasons.
LockType This property is required. string
The Locking of the Type. Valid Values: securitylocked,relatedresourcelocked, financiallocked, and residuallocked.
lockReason This property is required. String
The Locking of the Reasons.
lockType This property is required. String
The Locking of the Type. Valid Values: securitylocked,relatedresourcelocked, financiallocked, and residuallocked.
lockReason This property is required. string
The Locking of the Reasons.
lockType This property is required. string
The Locking of the Type. Valid Values: securitylocked,relatedresourcelocked, financiallocked, and residuallocked.
lock_reason This property is required. str
The Locking of the Reasons.
lock_type This property is required. str
The Locking of the Type. Valid Values: securitylocked,relatedresourcelocked, financiallocked, and residuallocked.
lockReason This property is required. String
The Locking of the Reasons.
lockType This property is required. String
The Locking of the Type. Valid Values: securitylocked,relatedresourcelocked, financiallocked, and residuallocked.

GetLoadBalancersBalancerModificationProtectionConfig

Reason This property is required. string
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. This parameter is required only if ModificationProtectionStatus is set to ConsoleProtection.
Status This property is required. string
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

  • NonProtection - disables the configuration read-only mode. After you disable the configuration read-only mode, you cannot set the ModificationProtectionReason parameter. If the parameter is set, the value is cleared.
  • ConsoleProtection - enables the configuration read-only mode. After you enable the configuration read-only mode, you can set the ModificationProtectionReason parameter.
Reason This property is required. string
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. This parameter is required only if ModificationProtectionStatus is set to ConsoleProtection.
Status This property is required. string
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

  • NonProtection - disables the configuration read-only mode. After you disable the configuration read-only mode, you cannot set the ModificationProtectionReason parameter. If the parameter is set, the value is cleared.
  • ConsoleProtection - enables the configuration read-only mode. After you enable the configuration read-only mode, you can set the ModificationProtectionReason parameter.
reason This property is required. String
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. This parameter is required only if ModificationProtectionStatus is set to ConsoleProtection.
status This property is required. String
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

  • NonProtection - disables the configuration read-only mode. After you disable the configuration read-only mode, you cannot set the ModificationProtectionReason parameter. If the parameter is set, the value is cleared.
  • ConsoleProtection - enables the configuration read-only mode. After you enable the configuration read-only mode, you can set the ModificationProtectionReason parameter.
reason This property is required. string
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. This parameter is required only if ModificationProtectionStatus is set to ConsoleProtection.
status This property is required. string
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

  • NonProtection - disables the configuration read-only mode. After you disable the configuration read-only mode, you cannot set the ModificationProtectionReason parameter. If the parameter is set, the value is cleared.
  • ConsoleProtection - enables the configuration read-only mode. After you enable the configuration read-only mode, you can set the ModificationProtectionReason parameter.
reason This property is required. str
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. This parameter is required only if ModificationProtectionStatus is set to ConsoleProtection.
status This property is required. str
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

  • NonProtection - disables the configuration read-only mode. After you disable the configuration read-only mode, you cannot set the ModificationProtectionReason parameter. If the parameter is set, the value is cleared.
  • ConsoleProtection - enables the configuration read-only mode. After you enable the configuration read-only mode, you can set the ModificationProtectionReason parameter.
reason This property is required. String
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. This parameter is required only if ModificationProtectionStatus is set to ConsoleProtection.
status This property is required. String
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

  • NonProtection - disables the configuration read-only mode. After you disable the configuration read-only mode, you cannot set the ModificationProtectionReason parameter. If the parameter is set, the value is cleared.
  • ConsoleProtection - enables the configuration read-only mode. After you enable the configuration read-only mode, you can set the ModificationProtectionReason parameter.

GetLoadBalancersBalancerZoneMapping

LoadBalancerAddresses This property is required. List<Pulumi.AliCloud.Alb.Inputs.GetLoadBalancersBalancerZoneMappingLoadBalancerAddress>
VswitchId This property is required. string
The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.
ZoneId This property is required. string
The ID of the zone to which the ALB instance belongs.
LoadBalancerAddresses This property is required. []GetLoadBalancersBalancerZoneMappingLoadBalancerAddress
VswitchId This property is required. string
The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.
ZoneId This property is required. string
The ID of the zone to which the ALB instance belongs.
loadBalancerAddresses This property is required. List<GetLoadBalancersBalancerZoneMappingLoadBalancerAddress>
vswitchId This property is required. String
The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.
zoneId This property is required. String
The ID of the zone to which the ALB instance belongs.
loadBalancerAddresses This property is required. GetLoadBalancersBalancerZoneMappingLoadBalancerAddress[]
vswitchId This property is required. string
The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.
zoneId This property is required. string
The ID of the zone to which the ALB instance belongs.
load_balancer_addresses This property is required. Sequence[GetLoadBalancersBalancerZoneMappingLoadBalancerAddress]
vswitch_id This property is required. str
The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.
zone_id This property is required. str
The ID of the zone to which the ALB instance belongs.
loadBalancerAddresses This property is required. List<Property Map>
vswitchId This property is required. String
The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.
zoneId This property is required. String
The ID of the zone to which the ALB instance belongs.

GetLoadBalancersBalancerZoneMappingLoadBalancerAddress

Address This property is required. string
Address This property is required. string
address This property is required. String
address This property is required. string
address This property is required. str
address This property is required. String

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi