1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. getCustomRoutingEndpointTrafficPolicies
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

alicloud.ga.getCustomRoutingEndpointTrafficPolicies

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

    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

    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 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
    	})
    }
    
    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()));
        }
    }
    
    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)
    
    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);
    
    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:

    AcceleratorId string
    The ID of the GA instance to which the traffic policies belong.
    Address string
    The IP addresses of the traffic policies.
    EndpointGroupId string
    The ID of the endpoint group to which the traffic policies belong.
    EndpointId string
    The ID of the endpoint to which the traffic policies belong.
    Ids List<string>
    A list of Custom Routing Endpoint Traffic Policy IDs.
    ListenerId string
    The ID of the listener to which the traffic policies belong.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    AcceleratorId string
    The ID of the GA instance to which the traffic policies belong.
    Address string
    The IP addresses of the traffic policies.
    EndpointGroupId string
    The ID of the endpoint group to which the traffic policies belong.
    EndpointId string
    The ID of the endpoint to which the traffic policies belong.
    Ids []string
    A list of Custom Routing Endpoint Traffic Policy IDs.
    ListenerId string
    The ID of the listener to which the traffic policies belong.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    acceleratorId String
    The ID of the GA instance to which the traffic policies belong.
    address String
    The IP addresses of the traffic policies.
    endpointGroupId String
    The ID of the endpoint group to which the traffic policies belong.
    endpointId String
    The ID of the endpoint to which the traffic policies belong.
    ids List<String>
    A list of Custom Routing Endpoint Traffic Policy IDs.
    listenerId String
    The ID of the listener to which the traffic policies belong.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    acceleratorId string
    The ID of the GA instance to which the traffic policies belong.
    address string
    The IP addresses of the traffic policies.
    endpointGroupId string
    The ID of the endpoint group to which the traffic policies belong.
    endpointId string
    The ID of the endpoint to which the traffic policies belong.
    ids string[]
    A list of Custom Routing Endpoint Traffic Policy IDs.
    listenerId string
    The ID of the listener to which the traffic policies belong.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize 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_id str
    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
    acceleratorId String
    The ID of the GA instance to which the traffic policies belong.
    address String
    The IP addresses of the traffic policies.
    endpointGroupId String
    The ID of the endpoint group to which the traffic policies belong.
    endpointId String
    The ID of the endpoint to which the traffic policies belong.
    ids List<String>
    A list of Custom Routing Endpoint Traffic Policy IDs.
    listenerId String
    The ID of the listener to which the traffic policies belong.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number

    getCustomRoutingEndpointTrafficPolicies Result

    The following output properties are available:

    AcceleratorId string
    The ID of the GA instance to which the endpoint belongs.
    CustomRoutingEndpointTrafficPolicies List<Pulumi.AliCloud.Ga.Outputs.GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicy>
    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.
    EndpointGroupId string
    The ID of the Custom Routing Endpoint Group.
    EndpointId string
    The ID of the Custom Routing Endpoint.
    ListenerId string
    The ID of the custom routing listener to which the endpoint belongs.
    OutputFile string
    PageNumber int
    PageSize int
    AcceleratorId string
    The ID of the GA instance to which the endpoint belongs.
    CustomRoutingEndpointTrafficPolicies []GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicy
    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.
    EndpointGroupId string
    The ID of the Custom Routing Endpoint Group.
    EndpointId string
    The ID of the Custom Routing Endpoint.
    ListenerId string
    The ID of the custom routing listener to which the endpoint belongs.
    OutputFile string
    PageNumber int
    PageSize int
    acceleratorId String
    The ID of the GA instance to which the endpoint belongs.
    customRoutingEndpointTrafficPolicies List<GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicy>
    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.
    endpointGroupId String
    The ID of the Custom Routing Endpoint Group.
    endpointId String
    The ID of the Custom Routing Endpoint.
    listenerId String
    The ID of the custom routing listener to which the endpoint belongs.
    outputFile String
    pageNumber Integer
    pageSize Integer
    acceleratorId string
    The ID of the GA instance to which the endpoint belongs.
    customRoutingEndpointTrafficPolicies GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicy[]
    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.
    endpointGroupId string
    The ID of the Custom Routing Endpoint Group.
    endpointId string
    The ID of the Custom Routing Endpoint.
    listenerId string
    The ID of the custom routing listener to which the endpoint belongs.
    outputFile string
    pageNumber number
    pageSize number
    accelerator_id str
    The ID of the GA instance to which the endpoint belongs.
    custom_routing_endpoint_traffic_policies Sequence[GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicy]
    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_id str
    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
    acceleratorId String
    The ID of the GA instance to which the endpoint belongs.
    customRoutingEndpointTrafficPolicies List<Property Map>
    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.
    endpointGroupId String
    The ID of the Custom Routing Endpoint Group.
    endpointId String
    The ID of the Custom Routing Endpoint.
    listenerId String
    The ID of the custom routing listener to which the endpoint belongs.
    outputFile String
    pageNumber Number
    pageSize Number

    Supporting Types

    GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicy

    AcceleratorId string
    The ID of the GA instance to which the traffic policies belong.
    Address string
    The IP addresses of the traffic policies.
    CustomRoutingEndpointTrafficPolicyId string
    The ID of the Custom Routing Endpoint Traffic Policy.
    EndpointGroupId string
    The ID of the endpoint group to which the traffic policies belong.
    EndpointId 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>.
    ListenerId string
    The ID of the listener to which the traffic policies belong.
    PortRanges List<Pulumi.AliCloud.Ga.Inputs.GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicyPortRange>
    The port range of the traffic policy.
    AcceleratorId string
    The ID of the GA instance to which the traffic policies belong.
    Address string
    The IP addresses of the traffic policies.
    CustomRoutingEndpointTrafficPolicyId string
    The ID of the Custom Routing Endpoint Traffic Policy.
    EndpointGroupId string
    The ID of the endpoint group to which the traffic policies belong.
    EndpointId 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>.
    ListenerId string
    The ID of the listener to which the traffic policies belong.
    PortRanges []GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicyPortRange
    The port range of the traffic policy.
    acceleratorId String
    The ID of the GA instance to which the traffic policies belong.
    address String
    The IP addresses of the traffic policies.
    customRoutingEndpointTrafficPolicyId String
    The ID of the Custom Routing Endpoint Traffic Policy.
    endpointGroupId String
    The ID of the endpoint group to which the traffic policies belong.
    endpointId 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>.
    listenerId String
    The ID of the listener to which the traffic policies belong.
    portRanges List<GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicyPortRange>
    The port range of the traffic policy.
    acceleratorId string
    The ID of the GA instance to which the traffic policies belong.
    address string
    The IP addresses of the traffic policies.
    customRoutingEndpointTrafficPolicyId string
    The ID of the Custom Routing Endpoint Traffic Policy.
    endpointGroupId string
    The ID of the endpoint group to which the traffic policies belong.
    endpointId 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>.
    listenerId string
    The ID of the listener to which the traffic policies belong.
    portRanges GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicyPortRange[]
    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_endpoint_traffic_policy_id str
    The ID of the Custom Routing Endpoint Traffic Policy.
    endpoint_group_id str
    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[GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicyPortRange]
    The port range of the traffic policy.
    acceleratorId String
    The ID of the GA instance to which the traffic policies belong.
    address String
    The IP addresses of the traffic policies.
    customRoutingEndpointTrafficPolicyId String
    The ID of the Custom Routing Endpoint Traffic Policy.
    endpointGroupId String
    The ID of the endpoint group to which the traffic policies belong.
    endpointId 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>.
    listenerId String
    The ID of the listener to which the traffic policies belong.
    portRanges List<Property Map>
    The port range of the traffic policy.

    GetCustomRoutingEndpointTrafficPoliciesCustomRoutingEndpointTrafficPolicyPortRange

    FromPort int
    The first port of the port range.
    ToPort int
    The last port of the port range.
    FromPort int
    The first port of the port range.
    ToPort int
    The last port of the port range.
    fromPort Integer
    The first port of the port range.
    toPort Integer
    The last port of the port range.
    fromPort number
    The first port of the port range.
    toPort number
    The last port of the port range.
    from_port int
    The first port of the port range.
    to_port int
    The last port of the port range.
    fromPort Number
    The first port of the port range.
    toPort Number
    The last port of the port range.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi