Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.ga.getForwardingRules
Explore with Pulumi AI
This data source provides the Global Accelerator (GA) Forwarding Rules of the current Alibaba Cloud user.
NOTE: Available since v1.120.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.ga.getForwardingRules({
acceleratorId: "example_value",
listenerId: "example_value",
ids: ["example_value"],
});
export const firstGaForwardingRuleId = example.then(example => example.forwardingRules?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.ga.get_forwarding_rules(accelerator_id="example_value",
listener_id="example_value",
ids=["example_value"])
pulumi.export("firstGaForwardingRuleId", example.forwarding_rules[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := ga.GetForwardingRules(ctx, &ga.GetForwardingRulesArgs{
AcceleratorId: "example_value",
ListenerId: "example_value",
Ids: []string{
"example_value",
},
}, nil)
if err != nil {
return err
}
ctx.Export("firstGaForwardingRuleId", example.ForwardingRules[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Ga.GetForwardingRules.Invoke(new()
{
AcceleratorId = "example_value",
ListenerId = "example_value",
Ids = new[]
{
"example_value",
},
});
return new Dictionary<string, object?>
{
["firstGaForwardingRuleId"] = example.Apply(getForwardingRulesResult => getForwardingRulesResult.ForwardingRules[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ga.GaFunctions;
import com.pulumi.alicloud.ga.inputs.GetForwardingRulesArgs;
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 example = GaFunctions.getForwardingRules(GetForwardingRulesArgs.builder()
.acceleratorId("example_value")
.listenerId("example_value")
.ids("example_value")
.build());
ctx.export("firstGaForwardingRuleId", example.applyValue(getForwardingRulesResult -> getForwardingRulesResult.forwardingRules()[0].id()));
}
}
variables:
example:
fn::invoke:
function: alicloud:ga:getForwardingRules
arguments:
acceleratorId: example_value
listenerId: example_value
ids:
- example_value
outputs:
firstGaForwardingRuleId: ${example.forwardingRules[0].id}
Using getForwardingRules
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 getForwardingRules(args: GetForwardingRulesArgs, opts?: InvokeOptions): Promise<GetForwardingRulesResult>
function getForwardingRulesOutput(args: GetForwardingRulesOutputArgs, opts?: InvokeOptions): Output<GetForwardingRulesResult>
def get_forwarding_rules(accelerator_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
listener_id: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetForwardingRulesResult
def get_forwarding_rules_output(accelerator_id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
listener_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetForwardingRulesResult]
func GetForwardingRules(ctx *Context, args *GetForwardingRulesArgs, opts ...InvokeOption) (*GetForwardingRulesResult, error)
func GetForwardingRulesOutput(ctx *Context, args *GetForwardingRulesOutputArgs, opts ...InvokeOption) GetForwardingRulesResultOutput
> Note: This function is named GetForwardingRules
in the Go SDK.
public static class GetForwardingRules
{
public static Task<GetForwardingRulesResult> InvokeAsync(GetForwardingRulesArgs args, InvokeOptions? opts = null)
public static Output<GetForwardingRulesResult> Invoke(GetForwardingRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetForwardingRulesResult> getForwardingRules(GetForwardingRulesArgs args, InvokeOptions options)
public static Output<GetForwardingRulesResult> getForwardingRules(GetForwardingRulesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:ga/getForwardingRules:getForwardingRules
arguments:
# arguments dictionary
The following arguments are supported:
- Accelerator
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Global Accelerator instance.
- Listener
Id This property is required. Changes to this property will trigger replacement.
- The ID of the listener.
- Ids
Changes to this property will trigger replacement.
- A list of Forwarding Rule IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- The status of the acceleration region. Valid values:
active
,configuring
.
- Accelerator
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Global Accelerator instance.
- Listener
Id This property is required. Changes to this property will trigger replacement.
- The ID of the listener.
- Ids
Changes to this property will trigger replacement.
- A list of Forwarding Rule IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Status
Changes to this property will trigger replacement.
- The status of the acceleration region. Valid values:
active
,configuring
.
- accelerator
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Global Accelerator instance.
- listener
Id This property is required. Changes to this property will trigger replacement.
- The ID of the listener.
- ids
Changes to this property will trigger replacement.
- A list of Forwarding Rule IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the acceleration region. Valid values:
active
,configuring
.
- accelerator
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Global Accelerator instance.
- listener
Id This property is required. Changes to this property will trigger replacement.
- The ID of the listener.
- ids
Changes to this property will trigger replacement.
- A list of Forwarding Rule IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the acceleration region. Valid values:
active
,configuring
.
- accelerator_
id This property is required. Changes to this property will trigger replacement.
- The ID of the Global Accelerator instance.
- listener_
id This property is required. Changes to this property will trigger replacement.
- The ID of the listener.
- ids
Changes to this property will trigger replacement.
- A list of Forwarding Rule IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the acceleration region. Valid values:
active
,configuring
.
- accelerator
Id This property is required. Changes to this property will trigger replacement.
- The ID of the Global Accelerator instance.
- listener
Id This property is required. Changes to this property will trigger replacement.
- The ID of the listener.
- ids
Changes to this property will trigger replacement.
- A list of Forwarding Rule IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - status
Changes to this property will trigger replacement.
- The status of the acceleration region. Valid values:
active
,configuring
.
getForwardingRules Result
The following output properties are available:
- Accelerator
Id string - Forwarding
Rules List<Pulumi.Ali Cloud. Ga. Outputs. Get Forwarding Rules Forwarding Rule> - A list of Ga Forwarding Rules. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Listener
Id string - The ID of the listener.
- Output
File string - Status string
- Accelerator
Id string - Forwarding
Rules []GetForwarding Rules Forwarding Rule - A list of Ga Forwarding Rules. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Listener
Id string - The ID of the listener.
- Output
File string - Status string
- accelerator
Id String - forwarding
Rules List<GetForwarding Rules Forwarding Rule> - A list of Ga Forwarding Rules. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- listener
Id String - The ID of the listener.
- output
File String - status String
- accelerator
Id string - forwarding
Rules GetForwarding Rules Forwarding Rule[] - A list of Ga Forwarding Rules. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- listener
Id string - The ID of the listener.
- output
File string - status string
- accelerator_
id str - forwarding_
rules Sequence[GetForwarding Rules Forwarding Rule] - A list of Ga Forwarding Rules. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- listener_
id str - The ID of the listener.
- output_
file str - status str
- accelerator
Id String - forwarding
Rules List<Property Map> - A list of Ga Forwarding Rules. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- listener
Id String - The ID of the listener.
- output
File String - status String
Supporting Types
GetForwardingRulesForwardingRule
- Forwarding
Rule Id This property is required. string - Forwarding Policy ID.
- Forwarding
Rule Name This property is required. string - Forwarding policy name. The length of the name is 2-128 English or Chinese characters.
- Forwarding
Rule Status This property is required. string - Forwarding Policy Status.
- Id
This property is required. string - Listener
Id This property is required. string - The ID of the listener.
- Priority
This property is required. int - Forwarding policy priority.
- Rule
Actions This property is required. List<Pulumi.Ali Cloud. Ga. Inputs. Get Forwarding Rules Forwarding Rule Rule Action> - The IP protocol used by the GA instance.
- Rule
Conditions This property is required. List<Pulumi.Ali Cloud. Ga. Inputs. Get Forwarding Rules Forwarding Rule Rule Condition> - Forward action.
- Forwarding
Rule Id This property is required. string - Forwarding Policy ID.
- Forwarding
Rule Name This property is required. string - Forwarding policy name. The length of the name is 2-128 English or Chinese characters.
- Forwarding
Rule Status This property is required. string - Forwarding Policy Status.
- Id
This property is required. string - Listener
Id This property is required. string - The ID of the listener.
- Priority
This property is required. int - Forwarding policy priority.
- Rule
Actions This property is required. []GetForwarding Rules Forwarding Rule Rule Action - The IP protocol used by the GA instance.
- Rule
Conditions This property is required. []GetForwarding Rules Forwarding Rule Rule Condition - Forward action.
- forwarding
Rule Id This property is required. String - Forwarding Policy ID.
- forwarding
Rule Name This property is required. String - Forwarding policy name. The length of the name is 2-128 English or Chinese characters.
- forwarding
Rule Status This property is required. String - Forwarding Policy Status.
- id
This property is required. String - listener
Id This property is required. String - The ID of the listener.
- priority
This property is required. Integer - Forwarding policy priority.
- rule
Actions This property is required. List<GetForwarding Rules Forwarding Rule Rule Action> - The IP protocol used by the GA instance.
- rule
Conditions This property is required. List<GetForwarding Rules Forwarding Rule Rule Condition> - Forward action.
- forwarding
Rule Id This property is required. string - Forwarding Policy ID.
- forwarding
Rule Name This property is required. string - Forwarding policy name. The length of the name is 2-128 English or Chinese characters.
- forwarding
Rule Status This property is required. string - Forwarding Policy Status.
- id
This property is required. string - listener
Id This property is required. string - The ID of the listener.
- priority
This property is required. number - Forwarding policy priority.
- rule
Actions This property is required. GetForwarding Rules Forwarding Rule Rule Action[] - The IP protocol used by the GA instance.
- rule
Conditions This property is required. GetForwarding Rules Forwarding Rule Rule Condition[] - Forward action.
- forwarding_
rule_ id This property is required. str - Forwarding Policy ID.
- forwarding_
rule_ name This property is required. str - Forwarding policy name. The length of the name is 2-128 English or Chinese characters.
- forwarding_
rule_ status This property is required. str - Forwarding Policy Status.
- id
This property is required. str - listener_
id This property is required. str - The ID of the listener.
- priority
This property is required. int - Forwarding policy priority.
- rule_
actions This property is required. Sequence[GetForwarding Rules Forwarding Rule Rule Action] - The IP protocol used by the GA instance.
- rule_
conditions This property is required. Sequence[GetForwarding Rules Forwarding Rule Rule Condition] - Forward action.
- forwarding
Rule Id This property is required. String - Forwarding Policy ID.
- forwarding
Rule Name This property is required. String - Forwarding policy name. The length of the name is 2-128 English or Chinese characters.
- forwarding
Rule Status This property is required. String - Forwarding Policy Status.
- id
This property is required. String - listener
Id This property is required. String - The ID of the listener.
- priority
This property is required. Number - Forwarding policy priority.
- rule
Actions This property is required. List<Property Map> - The IP protocol used by the GA instance.
- rule
Conditions This property is required. List<Property Map> - Forward action.
GetForwardingRulesForwardingRuleRuleAction
- Forward
Group Configs This property is required. List<Pulumi.Ali Cloud. Ga. Inputs. Get Forwarding Rules Forwarding Rule Rule Action Forward Group Config> - Forwarding configuration.
- Order
This property is required. int - Forwarding priority.
- Rule
Action Type This property is required. string - Forward action type.
- Forward
Group Configs This property is required. []GetForwarding Rules Forwarding Rule Rule Action Forward Group Config - Forwarding configuration.
- Order
This property is required. int - Forwarding priority.
- Rule
Action Type This property is required. string - Forward action type.
- forward
Group Configs This property is required. List<GetForwarding Rules Forwarding Rule Rule Action Forward Group Config> - Forwarding configuration.
- order
This property is required. Integer - Forwarding priority.
- rule
Action Type This property is required. String - Forward action type.
- forward
Group Configs This property is required. GetForwarding Rules Forwarding Rule Rule Action Forward Group Config[] - Forwarding configuration.
- order
This property is required. number - Forwarding priority.
- rule
Action Type This property is required. string - Forward action type.
- forward_
group_ configs This property is required. Sequence[GetForwarding Rules Forwarding Rule Rule Action Forward Group Config] - Forwarding configuration.
- order
This property is required. int - Forwarding priority.
- rule_
action_ type This property is required. str - Forward action type.
- forward
Group Configs This property is required. List<Property Map> - Forwarding configuration.
- order
This property is required. Number - Forwarding priority.
- rule
Action Type This property is required. String - Forward action type.
GetForwardingRulesForwardingRuleRuleActionForwardGroupConfig
- Server
Group Tuples This property is required. List<Pulumi.Ali Cloud. Ga. Inputs. Get Forwarding Rules Forwarding Rule Rule Action Forward Group Config Server Group Tuple> - Terminal node group configuration.
- Server
Group Tuples This property is required. []GetForwarding Rules Forwarding Rule Rule Action Forward Group Config Server Group Tuple - Terminal node group configuration.
- server
Group Tuples This property is required. List<GetForwarding Rules Forwarding Rule Rule Action Forward Group Config Server Group Tuple> - Terminal node group configuration.
- server
Group Tuples This property is required. GetForwarding Rules Forwarding Rule Rule Action Forward Group Config Server Group Tuple[] - Terminal node group configuration.
- server_
group_ tuples This property is required. Sequence[GetForwarding Rules Forwarding Rule Rule Action Forward Group Config Server Group Tuple] - Terminal node group configuration.
- server
Group Tuples This property is required. List<Property Map> - Terminal node group configuration.
GetForwardingRulesForwardingRuleRuleActionForwardGroupConfigServerGroupTuple
- Endpoint
Group Id This property is required. string - Terminal node group ID.
- Endpoint
Group Id This property is required. string - Terminal node group ID.
- endpoint
Group Id This property is required. String - Terminal node group ID.
- endpoint
Group Id This property is required. string - Terminal node group ID.
- endpoint_
group_ id This property is required. str - Terminal node group ID.
- endpoint
Group Id This property is required. String - Terminal node group ID.
GetForwardingRulesForwardingRuleRuleCondition
- Host
Configs This property is required. List<Pulumi.Ali Cloud. Ga. Inputs. Get Forwarding Rules Forwarding Rule Rule Condition Host Config> - Domain name configuration information.
- Path
Configs This property is required. List<Pulumi.Ali Cloud. Ga. Inputs. Get Forwarding Rules Forwarding Rule Rule Condition Path Config> - Path configuration information.
- Rule
Condition Type This property is required. string - Forwarding condition type.
- Host
Configs This property is required. []GetForwarding Rules Forwarding Rule Rule Condition Host Config - Domain name configuration information.
- Path
Configs This property is required. []GetForwarding Rules Forwarding Rule Rule Condition Path Config - Path configuration information.
- Rule
Condition Type This property is required. string - Forwarding condition type.
- host
Configs This property is required. List<GetForwarding Rules Forwarding Rule Rule Condition Host Config> - Domain name configuration information.
- path
Configs This property is required. List<GetForwarding Rules Forwarding Rule Rule Condition Path Config> - Path configuration information.
- rule
Condition Type This property is required. String - Forwarding condition type.
- host
Configs This property is required. GetForwarding Rules Forwarding Rule Rule Condition Host Config[] - Domain name configuration information.
- path
Configs This property is required. GetForwarding Rules Forwarding Rule Rule Condition Path Config[] - Path configuration information.
- rule
Condition Type This property is required. string - Forwarding condition type.
- host_
configs This property is required. Sequence[GetForwarding Rules Forwarding Rule Rule Condition Host Config] - Domain name configuration information.
- path_
configs This property is required. Sequence[GetForwarding Rules Forwarding Rule Rule Condition Path Config] - Path configuration information.
- rule_
condition_ type This property is required. str - Forwarding condition type.
- host
Configs This property is required. List<Property Map> - Domain name configuration information.
- path
Configs This property is required. List<Property Map> - Path configuration information.
- rule
Condition Type This property is required. String - Forwarding condition type.
GetForwardingRulesForwardingRuleRuleConditionHostConfig
- Values
This property is required. List<string> - The domain name is 3-128 characters long.
- Values
This property is required. []string - The domain name is 3-128 characters long.
- values
This property is required. List<String> - The domain name is 3-128 characters long.
- values
This property is required. string[] - The domain name is 3-128 characters long.
- values
This property is required. Sequence[str] - The domain name is 3-128 characters long.
- values
This property is required. List<String> - The domain name is 3-128 characters long.
GetForwardingRulesForwardingRuleRuleConditionPathConfig
- Values
This property is required. List<string> - The domain name is 3-128 characters long.
- Values
This property is required. []string - The domain name is 3-128 characters long.
- values
This property is required. List<String> - The domain name is 3-128 characters long.
- values
This property is required. string[] - The domain name is 3-128 characters long.
- values
This property is required. Sequence[str] - The domain name is 3-128 characters long.
- values
This property is required. List<String> - The domain name is 3-128 characters long.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.