Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi
alicloud.alb.getRules
Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi
This data source provides the Alb Rules of the current Alibaba Cloud user.
NOTE: Available since v1.133.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as std from "@pulumi/std";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const _default = alicloud.alb.getZones({});
const defaultGetResourceGroups = alicloud.resourcemanager.getResourceGroups({});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const defaultSwitch: alicloud.vpc.Switch[] = [];
for (const range = {value: 0}; range.value < 2; range.value++) {
defaultSwitch.push(new alicloud.vpc.Switch(`default-${range.value}`, {
vpcId: defaultNetwork.id,
cidrBlock: std.format({
input: "10.4.%d.0/24",
args: [range.value + 1],
}).then(invoke => invoke.result),
zoneId: _default.then(_default => _default.zones[range.value].id),
vswitchName: std.format({
input: `${name}_%d`,
args: [range.value + 1],
}).then(invoke => invoke.result),
}));
}
const defaultLoadBalancer = new alicloud.alb.LoadBalancer("default", {
vpcId: defaultNetwork.id,
addressType: "Internet",
addressAllocatedMode: "Fixed",
loadBalancerName: name,
loadBalancerEdition: "Standard",
resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.groups?.[0]?.id),
loadBalancerBillingConfig: {
payType: "PayAsYouGo",
},
tags: {
Created: "TF",
},
zoneMappings: [
{
vswitchId: defaultSwitch[0].id,
zoneId: _default.then(_default => _default.zones?.[0]?.id),
},
{
vswitchId: defaultSwitch[1].id,
zoneId: _default.then(_default => _default.zones?.[1]?.id),
},
],
});
const defaultServerGroup = new alicloud.alb.ServerGroup("default", {
protocol: "HTTP",
vpcId: defaultNetwork.id,
serverGroupName: name,
resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.groups?.[0]?.id),
healthCheckConfig: {
healthCheckEnabled: false,
},
stickySessionConfig: {
stickySessionEnabled: false,
},
tags: {
Created: "TF",
},
});
const defaultListener = new alicloud.alb.Listener("default", {
loadBalancerId: defaultLoadBalancer.id,
listenerProtocol: "HTTP",
listenerPort: 80,
listenerDescription: name,
defaultActions: [{
type: "ForwardGroup",
forwardGroupConfig: {
serverGroupTuples: [{
serverGroupId: defaultServerGroup.id,
}],
},
}],
});
const defaultRule = new alicloud.alb.Rule("default", {
ruleName: name,
listenerId: defaultListener.id,
priority: 555,
ruleConditions: [{
cookieConfig: {
values: [{
key: "created",
value: "tf",
}],
},
type: "Cookie",
}],
ruleActions: [{
forwardGroupConfig: {
serverGroupTuples: [{
serverGroupId: defaultServerGroup.id,
}],
},
order: 9,
type: "ForwardGroup",
}],
});
const ids = alicloud.alb.getRulesOutput({
ids: [defaultRule.id],
});
export const albRuleId = ids.apply(ids => ids.rules?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
import pulumi_std as std
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.alb.get_zones()
default_get_resource_groups = alicloud.resourcemanager.get_resource_groups()
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="10.4.0.0/16")
default_switch = []
for range in [{"value": i} for i in range(0, 2)]:
default_switch.append(alicloud.vpc.Switch(f"default-{range['value']}",
vpc_id=default_network.id,
cidr_block=std.format(input="10.4.%d.0/24",
args=[range["value"] + 1]).result,
zone_id=default.zones[range["value"]].id,
vswitch_name=std.format(input=f"{name}_%d",
args=[range["value"] + 1]).result))
default_load_balancer = alicloud.alb.LoadBalancer("default",
vpc_id=default_network.id,
address_type="Internet",
address_allocated_mode="Fixed",
load_balancer_name=name,
load_balancer_edition="Standard",
resource_group_id=default_get_resource_groups.groups[0].id,
load_balancer_billing_config={
"pay_type": "PayAsYouGo",
},
tags={
"Created": "TF",
},
zone_mappings=[
{
"vswitch_id": default_switch[0].id,
"zone_id": default.zones[0].id,
},
{
"vswitch_id": default_switch[1].id,
"zone_id": default.zones[1].id,
},
])
default_server_group = alicloud.alb.ServerGroup("default",
protocol="HTTP",
vpc_id=default_network.id,
server_group_name=name,
resource_group_id=default_get_resource_groups.groups[0].id,
health_check_config={
"health_check_enabled": False,
},
sticky_session_config={
"sticky_session_enabled": False,
},
tags={
"Created": "TF",
})
default_listener = alicloud.alb.Listener("default",
load_balancer_id=default_load_balancer.id,
listener_protocol="HTTP",
listener_port=80,
listener_description=name,
default_actions=[{
"type": "ForwardGroup",
"forward_group_config": {
"server_group_tuples": [{
"server_group_id": default_server_group.id,
}],
},
}])
default_rule = alicloud.alb.Rule("default",
rule_name=name,
listener_id=default_listener.id,
priority=555,
rule_conditions=[{
"cookie_config": {
"values": [{
"key": "created",
"value": "tf",
}],
},
"type": "Cookie",
}],
rule_actions=[{
"forward_group_config": {
"server_group_tuples": [{
"server_group_id": default_server_group.id,
}],
},
"order": 9,
"type": "ForwardGroup",
}])
ids = alicloud.alb.get_rules_output(ids=[default_rule.id])
pulumi.export("albRuleId", ids.rules[0].id)
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := alb.GetZones(ctx, &alb.GetZonesArgs{}, nil)
if err != nil {
return err
}
defaultGetResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
invokeFormat, err := std.Format(ctx, &std.FormatArgs{
Input: "10.4.%d.0/24",
Args: []float64{
val0 + 1,
},
}, nil)
if err != nil {
return err
}
invokeFormat1, err := std.Format(ctx, &std.FormatArgs{
Input: fmt.Sprintf("%v%v", name, "_%d"),
Args: []float64{
val0 + 1,
},
}, nil)
if err != nil {
return err
}
var defaultSwitch []*vpc.Switch
for index := 0; index < 2; index++ {
key0 := index
val0 := index
__res, err := vpc.NewSwitch(ctx, fmt.Sprintf("default-%v", key0), &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String(invokeFormat.Result),
ZoneId: _default.Zones[val0].Id,
VswitchName: pulumi.String(invokeFormat1.Result),
})
if err != nil {
return err
}
defaultSwitch = append(defaultSwitch, __res)
}
defaultLoadBalancer, err := alb.NewLoadBalancer(ctx, "default", &alb.LoadBalancerArgs{
VpcId: defaultNetwork.ID(),
AddressType: pulumi.String("Internet"),
AddressAllocatedMode: pulumi.String("Fixed"),
LoadBalancerName: pulumi.String(name),
LoadBalancerEdition: pulumi.String("Standard"),
ResourceGroupId: pulumi.String(defaultGetResourceGroups.Groups[0].Id),
LoadBalancerBillingConfig: &alb.LoadBalancerLoadBalancerBillingConfigArgs{
PayType: pulumi.String("PayAsYouGo"),
},
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
},
ZoneMappings: alb.LoadBalancerZoneMappingArray{
&alb.LoadBalancerZoneMappingArgs{
VswitchId: defaultSwitch[0].ID(),
ZoneId: pulumi.String(_default.Zones[0].Id),
},
&alb.LoadBalancerZoneMappingArgs{
VswitchId: defaultSwitch[1].ID(),
ZoneId: pulumi.String(_default.Zones[1].Id),
},
},
})
if err != nil {
return err
}
defaultServerGroup, err := alb.NewServerGroup(ctx, "default", &alb.ServerGroupArgs{
Protocol: pulumi.String("HTTP"),
VpcId: defaultNetwork.ID(),
ServerGroupName: pulumi.String(name),
ResourceGroupId: pulumi.String(defaultGetResourceGroups.Groups[0].Id),
HealthCheckConfig: &alb.ServerGroupHealthCheckConfigArgs{
HealthCheckEnabled: pulumi.Bool(false),
},
StickySessionConfig: &alb.ServerGroupStickySessionConfigArgs{
StickySessionEnabled: pulumi.Bool(false),
},
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
},
})
if err != nil {
return err
}
defaultListener, err := alb.NewListener(ctx, "default", &alb.ListenerArgs{
LoadBalancerId: defaultLoadBalancer.ID(),
ListenerProtocol: pulumi.String("HTTP"),
ListenerPort: pulumi.Int(80),
ListenerDescription: pulumi.String(name),
DefaultActions: alb.ListenerDefaultActionArray{
&alb.ListenerDefaultActionArgs{
Type: pulumi.String("ForwardGroup"),
ForwardGroupConfig: &alb.ListenerDefaultActionForwardGroupConfigArgs{
ServerGroupTuples: alb.ListenerDefaultActionForwardGroupConfigServerGroupTupleArray{
&alb.ListenerDefaultActionForwardGroupConfigServerGroupTupleArgs{
ServerGroupId: defaultServerGroup.ID(),
},
},
},
},
},
})
if err != nil {
return err
}
defaultRule, err := alb.NewRule(ctx, "default", &alb.RuleArgs{
RuleName: pulumi.String(name),
ListenerId: defaultListener.ID(),
Priority: pulumi.Int(555),
RuleConditions: alb.RuleRuleConditionArray{
&alb.RuleRuleConditionArgs{
CookieConfig: &alb.RuleRuleConditionCookieConfigArgs{
Values: alb.RuleRuleConditionCookieConfigValueArray{
&alb.RuleRuleConditionCookieConfigValueArgs{
Key: pulumi.String("created"),
Value: pulumi.String("tf"),
},
},
},
Type: pulumi.String("Cookie"),
},
},
RuleActions: alb.RuleRuleActionArray{
&alb.RuleRuleActionArgs{
ForwardGroupConfig: &alb.RuleRuleActionForwardGroupConfigArgs{
ServerGroupTuples: alb.RuleRuleActionForwardGroupConfigServerGroupTupleArray{
&alb.RuleRuleActionForwardGroupConfigServerGroupTupleArgs{
ServerGroupId: defaultServerGroup.ID(),
},
},
},
Order: pulumi.Int(9),
Type: pulumi.String("ForwardGroup"),
},
},
})
if err != nil {
return err
}
ids := alb.GetRulesOutput(ctx, alb.GetRulesOutputArgs{
Ids: pulumi.StringArray{
defaultRule.ID(),
},
}, nil)
ctx.Export("albRuleId", ids.ApplyT(func(ids alb.GetRulesResult) (*string, error) {
return &ids.Rules[0].Id, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = AliCloud.Alb.GetZones.Invoke();
var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var defaultSwitch = new List<AliCloud.Vpc.Switch>();
for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
{
var range = new { Value = rangeIndex };
defaultSwitch.Add(new AliCloud.Vpc.Switch($"default-{range.Value}", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = Std.Format.Invoke(new()
{
Input = "10.4.%d.0/24",
Args = new[]
{
range.Value + 1,
},
}).Apply(invoke => invoke.Result),
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones)[range.Value].Id),
VswitchName = Std.Format.Invoke(new()
{
Input = $"{name}_%d",
Args = new[]
{
range.Value + 1,
},
}).Apply(invoke => invoke.Result),
}));
}
var defaultLoadBalancer = new AliCloud.Alb.LoadBalancer("default", new()
{
VpcId = defaultNetwork.Id,
AddressType = "Internet",
AddressAllocatedMode = "Fixed",
LoadBalancerName = name,
LoadBalancerEdition = "Standard",
ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id),
LoadBalancerBillingConfig = new AliCloud.Alb.Inputs.LoadBalancerLoadBalancerBillingConfigArgs
{
PayType = "PayAsYouGo",
},
Tags =
{
{ "Created", "TF" },
},
ZoneMappings = new[]
{
new AliCloud.Alb.Inputs.LoadBalancerZoneMappingArgs
{
VswitchId = defaultSwitch[0].Id,
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
},
new AliCloud.Alb.Inputs.LoadBalancerZoneMappingArgs
{
VswitchId = defaultSwitch[1].Id,
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[1]?.Id)),
},
},
});
var defaultServerGroup = new AliCloud.Alb.ServerGroup("default", new()
{
Protocol = "HTTP",
VpcId = defaultNetwork.Id,
ServerGroupName = name,
ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id),
HealthCheckConfig = new AliCloud.Alb.Inputs.ServerGroupHealthCheckConfigArgs
{
HealthCheckEnabled = false,
},
StickySessionConfig = new AliCloud.Alb.Inputs.ServerGroupStickySessionConfigArgs
{
StickySessionEnabled = false,
},
Tags =
{
{ "Created", "TF" },
},
});
var defaultListener = new AliCloud.Alb.Listener("default", new()
{
LoadBalancerId = defaultLoadBalancer.Id,
ListenerProtocol = "HTTP",
ListenerPort = 80,
ListenerDescription = name,
DefaultActions = new[]
{
new AliCloud.Alb.Inputs.ListenerDefaultActionArgs
{
Type = "ForwardGroup",
ForwardGroupConfig = new AliCloud.Alb.Inputs.ListenerDefaultActionForwardGroupConfigArgs
{
ServerGroupTuples = new[]
{
new AliCloud.Alb.Inputs.ListenerDefaultActionForwardGroupConfigServerGroupTupleArgs
{
ServerGroupId = defaultServerGroup.Id,
},
},
},
},
},
});
var defaultRule = new AliCloud.Alb.Rule("default", new()
{
RuleName = name,
ListenerId = defaultListener.Id,
Priority = 555,
RuleConditions = new[]
{
new AliCloud.Alb.Inputs.RuleRuleConditionArgs
{
CookieConfig = new AliCloud.Alb.Inputs.RuleRuleConditionCookieConfigArgs
{
Values = new[]
{
new AliCloud.Alb.Inputs.RuleRuleConditionCookieConfigValueArgs
{
Key = "created",
Value = "tf",
},
},
},
Type = "Cookie",
},
},
RuleActions = new[]
{
new AliCloud.Alb.Inputs.RuleRuleActionArgs
{
ForwardGroupConfig = new AliCloud.Alb.Inputs.RuleRuleActionForwardGroupConfigArgs
{
ServerGroupTuples = new[]
{
new AliCloud.Alb.Inputs.RuleRuleActionForwardGroupConfigServerGroupTupleArgs
{
ServerGroupId = defaultServerGroup.Id,
},
},
},
Order = 9,
Type = "ForwardGroup",
},
},
});
var ids = AliCloud.Alb.GetRules.Invoke(new()
{
Ids = new[]
{
defaultRule.Id,
},
});
return new Dictionary<string, object?>
{
["albRuleId"] = ids.Apply(getRulesResult => getRulesResult.Rules[0]?.Id),
};
});
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.GetZonesArgs;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.FormatArgs;
import com.pulumi.alicloud.alb.LoadBalancer;
import com.pulumi.alicloud.alb.LoadBalancerArgs;
import com.pulumi.alicloud.alb.inputs.LoadBalancerLoadBalancerBillingConfigArgs;
import com.pulumi.alicloud.alb.inputs.LoadBalancerZoneMappingArgs;
import com.pulumi.alicloud.alb.ServerGroup;
import com.pulumi.alicloud.alb.ServerGroupArgs;
import com.pulumi.alicloud.alb.inputs.ServerGroupHealthCheckConfigArgs;
import com.pulumi.alicloud.alb.inputs.ServerGroupStickySessionConfigArgs;
import com.pulumi.alicloud.alb.Listener;
import com.pulumi.alicloud.alb.ListenerArgs;
import com.pulumi.alicloud.alb.inputs.ListenerDefaultActionArgs;
import com.pulumi.alicloud.alb.inputs.ListenerDefaultActionForwardGroupConfigArgs;
import com.pulumi.alicloud.alb.Rule;
import com.pulumi.alicloud.alb.RuleArgs;
import com.pulumi.alicloud.alb.inputs.RuleRuleConditionArgs;
import com.pulumi.alicloud.alb.inputs.RuleRuleConditionCookieConfigArgs;
import com.pulumi.alicloud.alb.inputs.RuleRuleActionArgs;
import com.pulumi.alicloud.alb.inputs.RuleRuleActionForwardGroupConfigArgs;
import com.pulumi.alicloud.alb.inputs.GetRulesArgs;
import com.pulumi.codegen.internal.KeyedValue;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var default = AlbFunctions.getZones(GetZonesArgs.builder()
.build());
final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
for (var i = 0; i < 2; i++) {
new Switch("defaultSwitch-" + i, SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock(StdFunctions.format(FormatArgs.builder()
.input("10.4.%d.0/24")
.args(range.value() + 1)
.build()).result())
.zoneId(default_.zones()[range.value()].id())
.vswitchName(StdFunctions.format(FormatArgs.builder()
.input(String.format("%s_%d", name))
.args(range.value() + 1)
.build()).result())
.build());
}
var defaultLoadBalancer = new LoadBalancer("defaultLoadBalancer", LoadBalancerArgs.builder()
.vpcId(defaultNetwork.id())
.addressType("Internet")
.addressAllocatedMode("Fixed")
.loadBalancerName(name)
.loadBalancerEdition("Standard")
.resourceGroupId(defaultGetResourceGroups.groups()[0].id())
.loadBalancerBillingConfig(LoadBalancerLoadBalancerBillingConfigArgs.builder()
.payType("PayAsYouGo")
.build())
.tags(Map.of("Created", "TF"))
.zoneMappings(
LoadBalancerZoneMappingArgs.builder()
.vswitchId(defaultSwitch[0].id())
.zoneId(default_.zones()[0].id())
.build(),
LoadBalancerZoneMappingArgs.builder()
.vswitchId(defaultSwitch[1].id())
.zoneId(default_.zones()[1].id())
.build())
.build());
var defaultServerGroup = new ServerGroup("defaultServerGroup", ServerGroupArgs.builder()
.protocol("HTTP")
.vpcId(defaultNetwork.id())
.serverGroupName(name)
.resourceGroupId(defaultGetResourceGroups.groups()[0].id())
.healthCheckConfig(ServerGroupHealthCheckConfigArgs.builder()
.healthCheckEnabled(false)
.build())
.stickySessionConfig(ServerGroupStickySessionConfigArgs.builder()
.stickySessionEnabled(false)
.build())
.tags(Map.of("Created", "TF"))
.build());
var defaultListener = new Listener("defaultListener", ListenerArgs.builder()
.loadBalancerId(defaultLoadBalancer.id())
.listenerProtocol("HTTP")
.listenerPort(80)
.listenerDescription(name)
.defaultActions(ListenerDefaultActionArgs.builder()
.type("ForwardGroup")
.forwardGroupConfig(ListenerDefaultActionForwardGroupConfigArgs.builder()
.serverGroupTuples(ListenerDefaultActionForwardGroupConfigServerGroupTupleArgs.builder()
.serverGroupId(defaultServerGroup.id())
.build())
.build())
.build())
.build());
var defaultRule = new Rule("defaultRule", RuleArgs.builder()
.ruleName(name)
.listenerId(defaultListener.id())
.priority(555)
.ruleConditions(RuleRuleConditionArgs.builder()
.cookieConfig(RuleRuleConditionCookieConfigArgs.builder()
.values(RuleRuleConditionCookieConfigValueArgs.builder()
.key("created")
.value("tf")
.build())
.build())
.type("Cookie")
.build())
.ruleActions(RuleRuleActionArgs.builder()
.forwardGroupConfig(RuleRuleActionForwardGroupConfigArgs.builder()
.serverGroupTuples(RuleRuleActionForwardGroupConfigServerGroupTupleArgs.builder()
.serverGroupId(defaultServerGroup.id())
.build())
.build())
.order(9)
.type("ForwardGroup")
.build())
.build());
final var ids = AlbFunctions.getRules(GetRulesArgs.builder()
.ids(defaultRule.id())
.build());
ctx.export("albRuleId", ids.applyValue(_ids -> _ids.rules()[0].id()));
}
}
Example coming soon!
Using getRules
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 getRules(args: GetRulesArgs, opts?: InvokeOptions): Promise<GetRulesResult>
function getRulesOutput(args: GetRulesOutputArgs, opts?: InvokeOptions): Output<GetRulesResult>def get_rules(ids: Optional[Sequence[str]] = None,
listener_ids: Optional[Sequence[str]] = None,
load_balancer_ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
rule_ids: Optional[Sequence[str]] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRulesResult
def get_rules_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
listener_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
rule_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRulesResult]func GetRules(ctx *Context, args *GetRulesArgs, opts ...InvokeOption) (*GetRulesResult, error)
func GetRulesOutput(ctx *Context, args *GetRulesOutputArgs, opts ...InvokeOption) GetRulesResultOutput> Note: This function is named GetRules in the Go SDK.
public static class GetRules
{
public static Task<GetRulesResult> InvokeAsync(GetRulesArgs args, InvokeOptions? opts = null)
public static Output<GetRulesResult> Invoke(GetRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRulesResult> getRules(GetRulesArgs args, InvokeOptions options)
public static Output<GetRulesResult> getRules(GetRulesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:alb/getRules:getRules
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of Rule IDs.
- Listener
Ids List<string> - The listener ids.
- Load
Balancer List<string>Ids - The load balancer ids.
- Name
Regex string - A regex string to filter results by Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Rule
Ids List<string> - The rule ids.
- Status string
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- Ids []string
- A list of Rule IDs.
- Listener
Ids []string - The listener ids.
- Load
Balancer []stringIds - The load balancer ids.
- Name
Regex string - A regex string to filter results by Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Rule
Ids []string - The rule ids.
- Status string
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- ids List<String>
- A list of Rule IDs.
- listener
Ids List<String> - The listener ids.
- load
Balancer List<String>Ids - The load balancer ids.
- name
Regex String - A regex string to filter results by Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview). - rule
Ids List<String> - The rule ids.
- status String
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- ids string[]
- A list of Rule IDs.
- listener
Ids string[] - The listener ids.
- load
Balancer string[]Ids - The load balancer ids.
- name
Regex string - A regex string to filter results by Rule name.
- output
File string - File name where to save data source results (after running
pulumi preview). - rule
Ids string[] - The rule ids.
- status string
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- ids Sequence[str]
- A list of Rule IDs.
- listener_
ids Sequence[str] - The listener ids.
- load_
balancer_ Sequence[str]ids - The load balancer ids.
- name_
regex str - A regex string to filter results by Rule name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - rule_
ids Sequence[str] - The rule ids.
- status str
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- ids List<String>
- A list of Rule IDs.
- listener
Ids List<String> - The listener ids.
- load
Balancer List<String>Ids - The load balancer ids.
- name
Regex String - A regex string to filter results by Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview). - rule
Ids List<String> - The rule ids.
- status String
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
getRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Rule names.
- Rules
List<Pulumi.
Ali Cloud. Alb. Outputs. Get Rules Rule> - A list of Alb Rules. Each element contains the following attributes:
- Listener
Ids List<string> - Load
Balancer List<string>Ids - Name
Regex string - Output
File string - Rule
Ids List<string> - Status string
- The status of the forwarding rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Rule names.
- Rules
[]Get
Rules Rule - A list of Alb Rules. Each element contains the following attributes:
- Listener
Ids []string - Load
Balancer []stringIds - Name
Regex string - Output
File string - Rule
Ids []string - Status string
- The status of the forwarding rule.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Rule names.
- rules
List<Get
Rules Rule> - A list of Alb Rules. Each element contains the following attributes:
- listener
Ids List<String> - load
Balancer List<String>Ids - name
Regex String - output
File String - rule
Ids List<String> - status String
- The status of the forwarding rule.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Rule names.
- rules
Get
Rules Rule[] - A list of Alb Rules. Each element contains the following attributes:
- listener
Ids string[] - load
Balancer string[]Ids - name
Regex string - output
File string - rule
Ids string[] - status string
- The status of the forwarding rule.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Rule names.
- rules
Sequence[Get
Rules Rule] - A list of Alb Rules. Each element contains the following attributes:
- listener_
ids Sequence[str] - load_
balancer_ Sequence[str]ids - name_
regex str - output_
file str - rule_
ids Sequence[str] - status str
- The status of the forwarding rule.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Rule names.
- rules List<Property Map>
- A list of Alb Rules. Each element contains the following attributes:
- listener
Ids List<String> - load
Balancer List<String>Ids - name
Regex String - output
File String - rule
Ids List<String> - status String
- The status of the forwarding rule.
Supporting Types
GetRulesRule
- Id string
- The ID of the Rule.
- Listener
Id string - The ID of the listener to which the forwarding rule belongs.
- Load
Balancer stringId - The ID of the Application Load Balancer (ALB) instance to which the forwarding rule belongs.
- Priority int
- The priority of the rule.
- Rule
Actions List<Pulumi.Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action> - The actions of the forwarding rules.
- Rule
Conditions List<Pulumi.Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition> - The conditions of the forwarding rule.
- Rule
Id string - The ID of the Rule.
- Rule
Name string - The name of the forwarding rule.
- Status string
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- Id string
- The ID of the Rule.
- Listener
Id string - The ID of the listener to which the forwarding rule belongs.
- Load
Balancer stringId - The ID of the Application Load Balancer (ALB) instance to which the forwarding rule belongs.
- Priority int
- The priority of the rule.
- Rule
Actions []GetRules Rule Rule Action - The actions of the forwarding rules.
- Rule
Conditions []GetRules Rule Rule Condition - The conditions of the forwarding rule.
- Rule
Id string - The ID of the Rule.
- Rule
Name string - The name of the forwarding rule.
- Status string
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- id String
- The ID of the Rule.
- listener
Id String - The ID of the listener to which the forwarding rule belongs.
- load
Balancer StringId - The ID of the Application Load Balancer (ALB) instance to which the forwarding rule belongs.
- priority Integer
- The priority of the rule.
- rule
Actions List<GetRules Rule Rule Action> - The actions of the forwarding rules.
- rule
Conditions List<GetRules Rule Rule Condition> - The conditions of the forwarding rule.
- rule
Id String - The ID of the Rule.
- rule
Name String - The name of the forwarding rule.
- status String
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- id string
- The ID of the Rule.
- listener
Id string - The ID of the listener to which the forwarding rule belongs.
- load
Balancer stringId - The ID of the Application Load Balancer (ALB) instance to which the forwarding rule belongs.
- priority number
- The priority of the rule.
- rule
Actions GetRules Rule Rule Action[] - The actions of the forwarding rules.
- rule
Conditions GetRules Rule Rule Condition[] - The conditions of the forwarding rule.
- rule
Id string - The ID of the Rule.
- rule
Name string - The name of the forwarding rule.
- status string
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- id str
- The ID of the Rule.
- listener_
id str - The ID of the listener to which the forwarding rule belongs.
- load_
balancer_ strid - The ID of the Application Load Balancer (ALB) instance to which the forwarding rule belongs.
- priority int
- The priority of the rule.
- rule_
actions Sequence[GetRules Rule Rule Action] - The actions of the forwarding rules.
- rule_
conditions Sequence[GetRules Rule Rule Condition] - The conditions of the forwarding rule.
- rule_
id str - The ID of the Rule.
- rule_
name str - The name of the forwarding rule.
- status str
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
- id String
- The ID of the Rule.
- listener
Id String - The ID of the listener to which the forwarding rule belongs.
- load
Balancer StringId - The ID of the Application Load Balancer (ALB) instance to which the forwarding rule belongs.
- priority Number
- The priority of the rule.
- rule
Actions List<Property Map> - The actions of the forwarding rules.
- rule
Conditions List<Property Map> - The conditions of the forwarding rule.
- rule
Id String - The ID of the Rule.
- rule
Name String - The name of the forwarding rule.
- status String
- The status of the forwarding rule. Valid values:
Provisioning,Configuring,Available.
GetRulesRuleRuleAction
- Fixed
Response List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Fixed Response Config> - The configuration of the fixed response.
- Forward
Group List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Forward Group Config> - The configurations of the destination server groups.
- Insert
Header List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Insert Header Config> - The configuration of the inserted header field.
- Order int
- The order of the forwarding rule actions.
- Redirect
Configs List<Pulumi.Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Redirect Config> - The configuration of the external redirect action.
- Rewrite
Configs List<Pulumi.Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Rewrite Config> - The redirect action within ALB.
- Traffic
Limit List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Traffic Limit Config> - The Flow speed limit.
- Traffic
Mirror List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Traffic Mirror Config> - The Traffic mirroring.
- Type string
- The type of the forwarding rule.
- Fixed
Response []GetConfigs Rules Rule Rule Action Fixed Response Config - The configuration of the fixed response.
- Forward
Group []GetConfigs Rules Rule Rule Action Forward Group Config - The configurations of the destination server groups.
- Insert
Header []GetConfigs Rules Rule Rule Action Insert Header Config - The configuration of the inserted header field.
- Order int
- The order of the forwarding rule actions.
- Redirect
Configs []GetRules Rule Rule Action Redirect Config - The configuration of the external redirect action.
- Rewrite
Configs []GetRules Rule Rule Action Rewrite Config - The redirect action within ALB.
- Traffic
Limit []GetConfigs Rules Rule Rule Action Traffic Limit Config - The Flow speed limit.
- Traffic
Mirror []GetConfigs Rules Rule Rule Action Traffic Mirror Config - The Traffic mirroring.
- Type string
- The type of the forwarding rule.
- fixed
Response List<GetConfigs Rules Rule Rule Action Fixed Response Config> - The configuration of the fixed response.
- forward
Group List<GetConfigs Rules Rule Rule Action Forward Group Config> - The configurations of the destination server groups.
- insert
Header List<GetConfigs Rules Rule Rule Action Insert Header Config> - The configuration of the inserted header field.
- order Integer
- The order of the forwarding rule actions.
- redirect
Configs List<GetRules Rule Rule Action Redirect Config> - The configuration of the external redirect action.
- rewrite
Configs List<GetRules Rule Rule Action Rewrite Config> - The redirect action within ALB.
- traffic
Limit List<GetConfigs Rules Rule Rule Action Traffic Limit Config> - The Flow speed limit.
- traffic
Mirror List<GetConfigs Rules Rule Rule Action Traffic Mirror Config> - The Traffic mirroring.
- type String
- The type of the forwarding rule.
- fixed
Response GetConfigs Rules Rule Rule Action Fixed Response Config[] - The configuration of the fixed response.
- forward
Group GetConfigs Rules Rule Rule Action Forward Group Config[] - The configurations of the destination server groups.
- insert
Header GetConfigs Rules Rule Rule Action Insert Header Config[] - The configuration of the inserted header field.
- order number
- The order of the forwarding rule actions.
- redirect
Configs GetRules Rule Rule Action Redirect Config[] - The configuration of the external redirect action.
- rewrite
Configs GetRules Rule Rule Action Rewrite Config[] - The redirect action within ALB.
- traffic
Limit GetConfigs Rules Rule Rule Action Traffic Limit Config[] - The Flow speed limit.
- traffic
Mirror GetConfigs Rules Rule Rule Action Traffic Mirror Config[] - The Traffic mirroring.
- type string
- The type of the forwarding rule.
- fixed_
response_ Sequence[Getconfigs Rules Rule Rule Action Fixed Response Config] - The configuration of the fixed response.
- forward_
group_ Sequence[Getconfigs Rules Rule Rule Action Forward Group Config] - The configurations of the destination server groups.
- insert_
header_ Sequence[Getconfigs Rules Rule Rule Action Insert Header Config] - The configuration of the inserted header field.
- order int
- The order of the forwarding rule actions.
- redirect_
configs Sequence[GetRules Rule Rule Action Redirect Config] - The configuration of the external redirect action.
- rewrite_
configs Sequence[GetRules Rule Rule Action Rewrite Config] - The redirect action within ALB.
- traffic_
limit_ Sequence[Getconfigs Rules Rule Rule Action Traffic Limit Config] - The Flow speed limit.
- traffic_
mirror_ Sequence[Getconfigs Rules Rule Rule Action Traffic Mirror Config] - The Traffic mirroring.
- type str
- The type of the forwarding rule.
- fixed
Response List<Property Map>Configs - The configuration of the fixed response.
- forward
Group List<Property Map>Configs - The configurations of the destination server groups.
- insert
Header List<Property Map>Configs - The configuration of the inserted header field.
- order Number
- The order of the forwarding rule actions.
- redirect
Configs List<Property Map> - The configuration of the external redirect action.
- rewrite
Configs List<Property Map> - The redirect action within ALB.
- traffic
Limit List<Property Map>Configs - The Flow speed limit.
- traffic
Mirror List<Property Map>Configs - The Traffic mirroring.
- type String
- The type of the forwarding rule.
GetRulesRuleRuleActionFixedResponseConfig
- Content string
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- Content
Type string - The format of the fixed response.
- Http
Code string - The redirect method.
- Content string
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- Content
Type string - The format of the fixed response.
- Http
Code string - The redirect method.
- content String
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- content
Type String - The format of the fixed response.
- http
Code String - The redirect method.
- content string
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- content
Type string - The format of the fixed response.
- http
Code string - The redirect method.
- content str
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- content_
type str - The format of the fixed response.
- http_
code str - The redirect method.
- content String
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- content
Type String - The format of the fixed response.
- http
Code String - The redirect method.
GetRulesRuleRuleActionForwardGroupConfig
- Server
Group List<Pulumi.Tuples Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Forward Group Config Server Group Tuple> - The destination server group to which requests are forwarded.
- Server
Group []GetTuples Rules Rule Rule Action Forward Group Config Server Group Tuple - The destination server group to which requests are forwarded.
- server
Group List<GetTuples Rules Rule Rule Action Forward Group Config Server Group Tuple> - The destination server group to which requests are forwarded.
- server
Group GetTuples Rules Rule Rule Action Forward Group Config Server Group Tuple[] - The destination server group to which requests are forwarded.
- server_
group_ Sequence[Gettuples Rules Rule Rule Action Forward Group Config Server Group Tuple] - The destination server group to which requests are forwarded.
- server
Group List<Property Map>Tuples - The destination server group to which requests are forwarded.
GetRulesRuleRuleActionForwardGroupConfigServerGroupTuple
- Server
Group stringId - The ID of the destination server group to which requests are forwarded.
- Weight int
- The Weight of server group.
- Server
Group stringId - The ID of the destination server group to which requests are forwarded.
- Weight int
- The Weight of server group.
- server
Group StringId - The ID of the destination server group to which requests are forwarded.
- weight Integer
- The Weight of server group.
- server
Group stringId - The ID of the destination server group to which requests are forwarded.
- weight number
- The Weight of server group.
- server_
group_ strid - The ID of the destination server group to which requests are forwarded.
- weight int
- The Weight of server group.
- server
Group StringId - The ID of the destination server group to which requests are forwarded.
- weight Number
- The Weight of server group.
GetRulesRuleRuleActionInsertHeaderConfig
- key str
- The key of the query string.
- value str
- The value of the query string.
- value_
type str - The value type of the inserted header field.
GetRulesRuleRuleActionRedirectConfig
- Host string
- The host name of the destination to which requests are redirected within ALB.
- Http
Code string - The redirect method.
- Path string
- The path to which requests are to be redirected within ALB.
- Port string
- The port of the destination to which requests are redirected.
- Protocol string
- The protocol of the requests to be redirected.
- Query string
- The query string of the request to be redirected within ALB.
- Host string
- The host name of the destination to which requests are redirected within ALB.
- Http
Code string - The redirect method.
- Path string
- The path to which requests are to be redirected within ALB.
- Port string
- The port of the destination to which requests are redirected.
- Protocol string
- The protocol of the requests to be redirected.
- Query string
- The query string of the request to be redirected within ALB.
- host String
- The host name of the destination to which requests are redirected within ALB.
- http
Code String - The redirect method.
- path String
- The path to which requests are to be redirected within ALB.
- port String
- The port of the destination to which requests are redirected.
- protocol String
- The protocol of the requests to be redirected.
- query String
- The query string of the request to be redirected within ALB.
- host string
- The host name of the destination to which requests are redirected within ALB.
- http
Code string - The redirect method.
- path string
- The path to which requests are to be redirected within ALB.
- port string
- The port of the destination to which requests are redirected.
- protocol string
- The protocol of the requests to be redirected.
- query string
- The query string of the request to be redirected within ALB.
- host str
- The host name of the destination to which requests are redirected within ALB.
- http_
code str - The redirect method.
- path str
- The path to which requests are to be redirected within ALB.
- port str
- The port of the destination to which requests are redirected.
- protocol str
- The protocol of the requests to be redirected.
- query str
- The query string of the request to be redirected within ALB.
- host String
- The host name of the destination to which requests are redirected within ALB.
- http
Code String - The redirect method.
- path String
- The path to which requests are to be redirected within ALB.
- port String
- The port of the destination to which requests are redirected.
- protocol String
- The protocol of the requests to be redirected.
- query String
- The query string of the request to be redirected within ALB.
GetRulesRuleRuleActionRewriteConfig
GetRulesRuleRuleActionTrafficLimitConfig
- Qps int
- The Number of requests per second.
- Qps int
- The Number of requests per second.
- qps Integer
- The Number of requests per second.
- qps number
- The Number of requests per second.
- qps int
- The Number of requests per second.
- qps Number
- The Number of requests per second.
GetRulesRuleRuleActionTrafficMirrorConfig
- Mirror
Group List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Traffic Mirror Config Mirror Group Config> - The Traffic is mirrored to the server group.
- Target
Type string - The Mirror target type.
- Mirror
Group []GetConfigs Rules Rule Rule Action Traffic Mirror Config Mirror Group Config - The Traffic is mirrored to the server group.
- Target
Type string - The Mirror target type.
- mirror
Group List<GetConfigs Rules Rule Rule Action Traffic Mirror Config Mirror Group Config> - The Traffic is mirrored to the server group.
- target
Type String - The Mirror target type.
- mirror
Group GetConfigs Rules Rule Rule Action Traffic Mirror Config Mirror Group Config[] - The Traffic is mirrored to the server group.
- target
Type string - The Mirror target type.
- mirror_
group_ Sequence[Getconfigs Rules Rule Rule Action Traffic Mirror Config Mirror Group Config] - The Traffic is mirrored to the server group.
- target_
type str - The Mirror target type.
- mirror
Group List<Property Map>Configs - The Traffic is mirrored to the server group.
- target
Type String - The Mirror target type.
GetRulesRuleRuleActionTrafficMirrorConfigMirrorGroupConfig
- Server
Group List<Pulumi.Tuples Ali Cloud. Alb. Inputs. Get Rules Rule Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple> - The destination server group to which requests are forwarded.
- Server
Group []GetTuples Rules Rule Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple - The destination server group to which requests are forwarded.
- server
Group List<GetTuples Rules Rule Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple> - The destination server group to which requests are forwarded.
- server
Group GetTuples Rules Rule Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple[] - The destination server group to which requests are forwarded.
- server_
group_ Sequence[Gettuples Rules Rule Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple] - The destination server group to which requests are forwarded.
- server
Group List<Property Map>Tuples - The destination server group to which requests are forwarded.
GetRulesRuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTuple
- Server
Group stringId - The ID of the destination server group to which requests are forwarded.
- Server
Group stringId - The ID of the destination server group to which requests are forwarded.
- server
Group StringId - The ID of the destination server group to which requests are forwarded.
- server
Group stringId - The ID of the destination server group to which requests are forwarded.
- server_
group_ strid - The ID of the destination server group to which requests are forwarded.
- server
Group StringId - The ID of the destination server group to which requests are forwarded.
GetRulesRuleRuleCondition
-
List<Pulumi.
Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition Cookie Config> - The configuration of the cookie.
- Header
Configs List<Pulumi.Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition Header Config> - The configuration of the header field.
- Host
Configs List<Pulumi.Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition Host Config> - The configuration of the host.
- Method
Configs List<Pulumi.Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition Method Config> - The configuration of the request method.
- Path
Configs List<Pulumi.Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition Path Config> - The configuration of the path for the request to be forwarded.
- Query
String List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition Query String Config> - The configuration of the query string.
- Source
Ip List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition Source Ip Config> - The Based on source IP traffic matching.
- Type string
- The type of the forwarding rule.
-
[]Get
Rules Rule Rule Condition Cookie Config - The configuration of the cookie.
- Header
Configs []GetRules Rule Rule Condition Header Config - The configuration of the header field.
- Host
Configs []GetRules Rule Rule Condition Host Config - The configuration of the host.
- Method
Configs []GetRules Rule Rule Condition Method Config - The configuration of the request method.
- Path
Configs []GetRules Rule Rule Condition Path Config - The configuration of the path for the request to be forwarded.
- Query
String []GetConfigs Rules Rule Rule Condition Query String Config - The configuration of the query string.
- Source
Ip []GetConfigs Rules Rule Rule Condition Source Ip Config - The Based on source IP traffic matching.
- Type string
- The type of the forwarding rule.
-
List<Get
Rules Rule Rule Condition Cookie Config> - The configuration of the cookie.
- header
Configs List<GetRules Rule Rule Condition Header Config> - The configuration of the header field.
- host
Configs List<GetRules Rule Rule Condition Host Config> - The configuration of the host.
- method
Configs List<GetRules Rule Rule Condition Method Config> - The configuration of the request method.
- path
Configs List<GetRules Rule Rule Condition Path Config> - The configuration of the path for the request to be forwarded.
- query
String List<GetConfigs Rules Rule Rule Condition Query String Config> - The configuration of the query string.
- source
Ip List<GetConfigs Rules Rule Rule Condition Source Ip Config> - The Based on source IP traffic matching.
- type String
- The type of the forwarding rule.
-
Get
Rules Rule Rule Condition Cookie Config[] - The configuration of the cookie.
- header
Configs GetRules Rule Rule Condition Header Config[] - The configuration of the header field.
- host
Configs GetRules Rule Rule Condition Host Config[] - The configuration of the host.
- method
Configs GetRules Rule Rule Condition Method Config[] - The configuration of the request method.
- path
Configs GetRules Rule Rule Condition Path Config[] - The configuration of the path for the request to be forwarded.
- query
String GetConfigs Rules Rule Rule Condition Query String Config[] - The configuration of the query string.
- source
Ip GetConfigs Rules Rule Rule Condition Source Ip Config[] - The Based on source IP traffic matching.
- type string
- The type of the forwarding rule.
-
Sequence[Get
Rules Rule Rule Condition Cookie Config] - The configuration of the cookie.
- header_
configs Sequence[GetRules Rule Rule Condition Header Config] - The configuration of the header field.
- host_
configs Sequence[GetRules Rule Rule Condition Host Config] - The configuration of the host.
- method_
configs Sequence[GetRules Rule Rule Condition Method Config] - The configuration of the request method.
- path_
configs Sequence[GetRules Rule Rule Condition Path Config] - The configuration of the path for the request to be forwarded.
- query_
string_ Sequence[Getconfigs Rules Rule Rule Condition Query String Config] - The configuration of the query string.
- source_
ip_ Sequence[Getconfigs Rules Rule Rule Condition Source Ip Config] - The Based on source IP traffic matching.
- type str
- The type of the forwarding rule.
- List<Property Map>
- The configuration of the cookie.
- header
Configs List<Property Map> - The configuration of the header field.
- host
Configs List<Property Map> - The configuration of the host.
- method
Configs List<Property Map> - The configuration of the request method.
- path
Configs List<Property Map> - The configuration of the path for the request to be forwarded.
- query
String List<Property Map>Configs - The configuration of the query string.
- source
Ip List<Property Map>Configs - The Based on source IP traffic matching.
- type String
- The type of the forwarding rule.
GetRulesRuleRuleConditionCookieConfig
- Values
List<Pulumi.
Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition Cookie Config Value> - Add one or more IP addresses or IP address segments.
- Values
[]Get
Rules Rule Rule Condition Cookie Config Value - Add one or more IP addresses or IP address segments.
- values
List<Get
Rules Rule Rule Condition Cookie Config Value> - Add one or more IP addresses or IP address segments.
- values
Get
Rules Rule Rule Condition Cookie Config Value[] - Add one or more IP addresses or IP address segments.
- values
Sequence[Get
Rules Rule Rule Condition Cookie Config Value] - Add one or more IP addresses or IP address segments.
- values List<Property Map>
- Add one or more IP addresses or IP address segments.
GetRulesRuleRuleConditionCookieConfigValue
GetRulesRuleRuleConditionHeaderConfig
GetRulesRuleRuleConditionHostConfig
- Values List<string>
- Add one or more IP addresses or IP address segments.
- Values []string
- Add one or more IP addresses or IP address segments.
- values List<String>
- Add one or more IP addresses or IP address segments.
- values string[]
- Add one or more IP addresses or IP address segments.
- values Sequence[str]
- Add one or more IP addresses or IP address segments.
- values List<String>
- Add one or more IP addresses or IP address segments.
GetRulesRuleRuleConditionMethodConfig
- Values List<string>
- Add one or more IP addresses or IP address segments.
- Values []string
- Add one or more IP addresses or IP address segments.
- values List<String>
- Add one or more IP addresses or IP address segments.
- values string[]
- Add one or more IP addresses or IP address segments.
- values Sequence[str]
- Add one or more IP addresses or IP address segments.
- values List<String>
- Add one or more IP addresses or IP address segments.
GetRulesRuleRuleConditionPathConfig
- Values List<string>
- Add one or more IP addresses or IP address segments.
- Values []string
- Add one or more IP addresses or IP address segments.
- values List<String>
- Add one or more IP addresses or IP address segments.
- values string[]
- Add one or more IP addresses or IP address segments.
- values Sequence[str]
- Add one or more IP addresses or IP address segments.
- values List<String>
- Add one or more IP addresses or IP address segments.
GetRulesRuleRuleConditionQueryStringConfig
- Values
List<Pulumi.
Ali Cloud. Alb. Inputs. Get Rules Rule Rule Condition Query String Config Value> - Add one or more IP addresses or IP address segments.
- Values
[]Get
Rules Rule Rule Condition Query String Config Value - Add one or more IP addresses or IP address segments.
- values
List<Get
Rules Rule Rule Condition Query String Config Value> - Add one or more IP addresses or IP address segments.
- values
Get
Rules Rule Rule Condition Query String Config Value[] - Add one or more IP addresses or IP address segments.
- values
Sequence[Get
Rules Rule Rule Condition Query String Config Value] - Add one or more IP addresses or IP address segments.
- values List<Property Map>
- Add one or more IP addresses or IP address segments.
GetRulesRuleRuleConditionQueryStringConfigValue
GetRulesRuleRuleConditionSourceIpConfig
- Values List<string>
- Add one or more IP addresses or IP address segments.
- Values []string
- Add one or more IP addresses or IP address segments.
- values List<String>
- Add one or more IP addresses or IP address segments.
- values string[]
- Add one or more IP addresses or IP address segments.
- values Sequence[str]
- Add one or more IP addresses or IP address segments.
- values List<String>
- Add one or more IP addresses or IP address segments.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi
