Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.ga.getCustomRoutingEndpointTrafficPolicies
Explore with Pulumi AI
This data source provides the Global Accelerator (GA) Custom Routing Endpoint Traffic Policies of the current Alibaba Cloud user.
NOTE: Available in 1.197.0+
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.ga.getCustomRoutingEndpointTrafficPolicies({
ids: ["example_id"],
acceleratorId: "your_accelerator_id",
});
export const gaCustomRoutingEndpointTrafficPoliciesId1 = ids.then(ids => ids.customRoutingEndpointTrafficPolicies?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.ga.get_custom_routing_endpoint_traffic_policies(ids=["example_id"],
accelerator_id="your_accelerator_id")
pulumi.export("gaCustomRoutingEndpointTrafficPoliciesId1", ids.custom_routing_endpoint_traffic_policies[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 {
ids, err := ga.GetCustomRoutingEndpointTrafficPolicies(ctx, &ga.GetCustomRoutingEndpointTrafficPoliciesArgs{
Ids: []string{
"example_id",
},
AcceleratorId: "your_accelerator_id",
}, nil)
if err != nil {
return err
}
ctx.Export("gaCustomRoutingEndpointTrafficPoliciesId1", ids.CustomRoutingEndpointTrafficPolicies[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Ga.GetCustomRoutingEndpointTrafficPolicies.Invoke(new()
{
Ids = new[]
{
"example_id",
},
AcceleratorId = "your_accelerator_id",
});
return new Dictionary<string, object?>
{
["gaCustomRoutingEndpointTrafficPoliciesId1"] = ids.Apply(getCustomRoutingEndpointTrafficPoliciesResult => getCustomRoutingEndpointTrafficPoliciesResult.CustomRoutingEndpointTrafficPolicies[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.GetCustomRoutingEndpointTrafficPoliciesArgs;
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 = GaFunctions.getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs.builder()
.ids("example_id")
.acceleratorId("your_accelerator_id")
.build());
ctx.export("gaCustomRoutingEndpointTrafficPoliciesId1", ids.applyValue(getCustomRoutingEndpointTrafficPoliciesResult -> getCustomRoutingEndpointTrafficPoliciesResult.customRoutingEndpointTrafficPolicies()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:ga:getCustomRoutingEndpointTrafficPolicies
Arguments:
ids:
- example_id
acceleratorId: your_accelerator_id
outputs:
gaCustomRoutingEndpointTrafficPoliciesId1: ${ids.customRoutingEndpointTrafficPolicies[0].id}
Using getCustomRoutingEndpointTrafficPolicies
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 getCustomRoutingEndpointTrafficPolicies(args: GetCustomRoutingEndpointTrafficPoliciesArgs, opts?: InvokeOptions): Promise<GetCustomRoutingEndpointTrafficPoliciesResult>
function getCustomRoutingEndpointTrafficPoliciesOutput(args: GetCustomRoutingEndpointTrafficPoliciesOutputArgs, opts?: InvokeOptions): Output<GetCustomRoutingEndpointTrafficPoliciesResult>
def get_custom_routing_endpoint_traffic_policies(accelerator_id: Optional[str] = None,
address: Optional[str] = None,
endpoint_group_id: Optional[str] = None,
endpoint_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
listener_id: Optional[str] = None,
output_file: Optional[str] = None,
page_number: Optional[int] = None,
page_size: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetCustomRoutingEndpointTrafficPoliciesResult
def get_custom_routing_endpoint_traffic_policies_output(accelerator_id: Optional[pulumi.Input[str]] = None,
address: Optional[pulumi.Input[str]] = None,
endpoint_group_id: Optional[pulumi.Input[str]] = None,
endpoint_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,
page_number: Optional[pulumi.Input[int]] = None,
page_size: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCustomRoutingEndpointTrafficPoliciesResult]
func GetCustomRoutingEndpointTrafficPolicies(ctx *Context, args *GetCustomRoutingEndpointTrafficPoliciesArgs, opts ...InvokeOption) (*GetCustomRoutingEndpointTrafficPoliciesResult, error)
func GetCustomRoutingEndpointTrafficPoliciesOutput(ctx *Context, args *GetCustomRoutingEndpointTrafficPoliciesOutputArgs, opts ...InvokeOption) GetCustomRoutingEndpointTrafficPoliciesResultOutput
> Note: This function is named GetCustomRoutingEndpointTrafficPolicies
in the Go SDK.
public static class GetCustomRoutingEndpointTrafficPolicies
{
public static Task<GetCustomRoutingEndpointTrafficPoliciesResult> InvokeAsync(GetCustomRoutingEndpointTrafficPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetCustomRoutingEndpointTrafficPoliciesResult> Invoke(GetCustomRoutingEndpointTrafficPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCustomRoutingEndpointTrafficPoliciesResult> getCustomRoutingEndpointTrafficPolicies(GetCustomRoutingEndpointTrafficPoliciesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ga/getCustomRoutingEndpointTrafficPolicies:getCustomRoutingEndpointTrafficPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Accelerator
Id string - The ID of the GA instance to which the traffic policies belong.
- Address string
- The IP addresses of the traffic policies.
- Endpoint
Group stringId - The ID of the endpoint group to which the traffic policies belong.
- Endpoint
Id string - The ID of the endpoint to which the traffic policies belong.
- Ids List<string>
- A list of Custom Routing Endpoint Traffic Policy IDs.
- Listener
Id string - The ID of the listener to which the traffic policies belong.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- Accelerator
Id string - The ID of the GA instance to which the traffic policies belong.
- Address string
- The IP addresses of the traffic policies.
- Endpoint
Group stringId - The ID of the endpoint group to which the traffic policies belong.
- Endpoint
Id string - The ID of the endpoint to which the traffic policies belong.
- Ids []string
- A list of Custom Routing Endpoint Traffic Policy IDs.
- Listener
Id string - The ID of the listener to which the traffic policies belong.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- accelerator
Id String - The ID of the GA instance to which the traffic policies belong.
- address String
- The IP addresses of the traffic policies.
- endpoint
Group StringId - The ID of the endpoint group to which the traffic policies belong.
- endpoint
Id String - The ID of the endpoint to which the traffic policies belong.
- ids List<String>
- A list of Custom Routing Endpoint Traffic Policy IDs.
- listener
Id String - The ID of the listener to which the traffic policies belong.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer
- accelerator
Id string - The ID of the GA instance to which the traffic policies belong.
- address string
- The IP addresses of the traffic policies.
- endpoint
Group stringId - The ID of the endpoint group to which the traffic policies belong.
- endpoint
Id string - The ID of the endpoint to which the traffic policies belong.
- ids string[]
- A list of Custom Routing Endpoint Traffic Policy IDs.
- listener
Id string - The ID of the listener to which the traffic policies belong.
- output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size number
- accelerator_
id str - The ID of the GA instance to which the traffic policies belong.
- address str
- The IP addresses of the traffic policies.
- endpoint_
group_ strid - The ID of the endpoint group to which the traffic policies belong.
- endpoint_
id str - The ID of the endpoint to which the traffic policies belong.
- ids Sequence[str]
- A list of Custom Routing Endpoint Traffic Policy IDs.
- listener_
id str - The ID of the listener to which the traffic policies belong.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - page_
number int - page_
size int
- accelerator
Id String - The ID of the GA instance to which the traffic policies belong.
- address String
- The IP addresses of the traffic policies.
- endpoint
Group StringId - The ID of the endpoint group to which the traffic policies belong.
- endpoint
Id String - The ID of the endpoint to which the traffic policies belong.
- ids List<String>
- A list of Custom Routing Endpoint Traffic Policy IDs.
- listener
Id String - The ID of the listener to which the traffic policies belong.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size Number
getCustomRoutingEndpointTrafficPolicies Result
The following output properties are available:
- Accelerator
Id string - The ID of the GA instance to which the endpoint belongs.
- Custom
Routing List<Pulumi.Endpoint Traffic Policies Ali Cloud. Ga. Outputs. Get Custom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy> - A list of Custom Routing Endpoint Traffic Policies. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Address string
- The IP address of the traffic policy.
- Endpoint
Group stringId - The ID of the Custom Routing Endpoint Group.
- Endpoint
Id string - The ID of the Custom Routing Endpoint.
- Listener
Id string - The ID of the custom routing listener to which the endpoint belongs.
- Output
File string - Page
Number int - Page
Size int
- Accelerator
Id string - The ID of the GA instance to which the endpoint belongs.
- Custom
Routing []GetEndpoint Traffic Policies Custom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy - A list of Custom Routing Endpoint Traffic Policies. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Address string
- The IP address of the traffic policy.
- Endpoint
Group stringId - The ID of the Custom Routing Endpoint Group.
- Endpoint
Id string - The ID of the Custom Routing Endpoint.
- Listener
Id string - The ID of the custom routing listener to which the endpoint belongs.
- Output
File string - Page
Number int - Page
Size int
- accelerator
Id String - The ID of the GA instance to which the endpoint belongs.
- custom
Routing List<GetEndpoint Traffic Policies Custom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy> - A list of Custom Routing Endpoint Traffic Policies. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- address String
- The IP address of the traffic policy.
- endpoint
Group StringId - The ID of the Custom Routing Endpoint Group.
- endpoint
Id String - The ID of the Custom Routing Endpoint.
- listener
Id String - The ID of the custom routing listener to which the endpoint belongs.
- output
File String - page
Number Integer - page
Size Integer
- accelerator
Id string - The ID of the GA instance to which the endpoint belongs.
- custom
Routing GetEndpoint Traffic Policies Custom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy[] - A list of Custom Routing Endpoint Traffic Policies. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- address string
- The IP address of the traffic policy.
- endpoint
Group stringId - The ID of the Custom Routing Endpoint Group.
- endpoint
Id string - The ID of the Custom Routing Endpoint.
- listener
Id string - The ID of the custom routing listener to which the endpoint belongs.
- output
File string - page
Number number - page
Size number
- accelerator_
id str - The ID of the GA instance to which the endpoint belongs.
- custom_
routing_ Sequence[Getendpoint_ traffic_ policies Custom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy] - A list of Custom Routing Endpoint Traffic Policies. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- address str
- The IP address of the traffic policy.
- endpoint_
group_ strid - The ID of the Custom Routing Endpoint Group.
- endpoint_
id str - The ID of the Custom Routing Endpoint.
- listener_
id str - The ID of the custom routing listener to which the endpoint belongs.
- output_
file str - page_
number int - page_
size int
- accelerator
Id String - The ID of the GA instance to which the endpoint belongs.
- custom
Routing List<Property Map>Endpoint Traffic Policies - A list of Custom Routing Endpoint Traffic Policies. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- address String
- The IP address of the traffic policy.
- endpoint
Group StringId - The ID of the Custom Routing Endpoint Group.
- endpoint
Id String - The ID of the Custom Routing Endpoint.
- listener
Id String - The ID of the custom routing listener to which the endpoint belongs.
- output
File String - page
Number Number - page
Size Number
Supporting Types
GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicy
- Accelerator
Id string - The ID of the GA instance to which the traffic policies belong.
- Address string
- The IP addresses of the traffic policies.
- Custom
Routing stringEndpoint Traffic Policy Id - The ID of the Custom Routing Endpoint Traffic Policy.
- Endpoint
Group stringId - The ID of the endpoint group to which the traffic policies belong.
- Endpoint
Id string - The ID of the endpoint to which the traffic policies belong.
- Id string
- The id of the Global Accelerator Custom Routing Endpoint Traffic Policy. It formats as
<endpoint_id>:<custom_routing_endpoint_traffic_policy_id>
. - Listener
Id string - The ID of the listener to which the traffic policies belong.
- Port
Ranges List<Pulumi.Ali Cloud. Ga. Inputs. Get Custom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy Port Range> - The port range of the traffic policy.
- Accelerator
Id string - The ID of the GA instance to which the traffic policies belong.
- Address string
- The IP addresses of the traffic policies.
- Custom
Routing stringEndpoint Traffic Policy Id - The ID of the Custom Routing Endpoint Traffic Policy.
- Endpoint
Group stringId - The ID of the endpoint group to which the traffic policies belong.
- Endpoint
Id string - The ID of the endpoint to which the traffic policies belong.
- Id string
- The id of the Global Accelerator Custom Routing Endpoint Traffic Policy. It formats as
<endpoint_id>:<custom_routing_endpoint_traffic_policy_id>
. - Listener
Id string - The ID of the listener to which the traffic policies belong.
- Port
Ranges []GetCustom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy Port Range - The port range of the traffic policy.
- accelerator
Id String - The ID of the GA instance to which the traffic policies belong.
- address String
- The IP addresses of the traffic policies.
- custom
Routing StringEndpoint Traffic Policy Id - The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint
Group StringId - The ID of the endpoint group to which the traffic policies belong.
- endpoint
Id String - The ID of the endpoint to which the traffic policies belong.
- id String
- The id of the Global Accelerator Custom Routing Endpoint Traffic Policy. It formats as
<endpoint_id>:<custom_routing_endpoint_traffic_policy_id>
. - listener
Id String - The ID of the listener to which the traffic policies belong.
- port
Ranges List<GetCustom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy Port Range> - The port range of the traffic policy.
- accelerator
Id string - The ID of the GA instance to which the traffic policies belong.
- address string
- The IP addresses of the traffic policies.
- custom
Routing stringEndpoint Traffic Policy Id - The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint
Group stringId - The ID of the endpoint group to which the traffic policies belong.
- endpoint
Id string - The ID of the endpoint to which the traffic policies belong.
- id string
- The id of the Global Accelerator Custom Routing Endpoint Traffic Policy. It formats as
<endpoint_id>:<custom_routing_endpoint_traffic_policy_id>
. - listener
Id string - The ID of the listener to which the traffic policies belong.
- port
Ranges GetCustom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy Port Range[] - The port range of the traffic policy.
- accelerator_
id str - The ID of the GA instance to which the traffic policies belong.
- address str
- The IP addresses of the traffic policies.
- custom_
routing_ strendpoint_ traffic_ policy_ id - The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint_
group_ strid - The ID of the endpoint group to which the traffic policies belong.
- endpoint_
id str - The ID of the endpoint to which the traffic policies belong.
- id str
- The id of the Global Accelerator Custom Routing Endpoint Traffic Policy. It formats as
<endpoint_id>:<custom_routing_endpoint_traffic_policy_id>
. - listener_
id str - The ID of the listener to which the traffic policies belong.
- port_
ranges Sequence[GetCustom Routing Endpoint Traffic Policies Custom Routing Endpoint Traffic Policy Port Range] - The port range of the traffic policy.
- accelerator
Id String - The ID of the GA instance to which the traffic policies belong.
- address String
- The IP addresses of the traffic policies.
- custom
Routing StringEndpoint Traffic Policy Id - The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint
Group StringId - The ID of the endpoint group to which the traffic policies belong.
- endpoint
Id String - The ID of the endpoint to which the traffic policies belong.
- id String
- The id of the Global Accelerator Custom Routing Endpoint Traffic Policy. It formats as
<endpoint_id>:<custom_routing_endpoint_traffic_policy_id>
. - listener
Id String - The ID of the listener to which the traffic policies belong.
- port
Ranges List<Property Map> - The port range of the traffic policy.
GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicyPortRange
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.