1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. getCustomRoutingEndpointGroupDestinations
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

alicloud.ga.getCustomRoutingEndpointGroupDestinations

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

    This data source provides the Global Accelerator (GA) Custom Routing Endpoint Group Destinations 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.getCustomRoutingEndpointGroupDestinations({
        ids: ["example_id"],
        acceleratorId: "your_accelerator_id",
    });
    export const gaCustomRoutingEndpointGroupDestinationsId1 = ids.then(ids => ids.customRoutingEndpointGroupDestinations?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.ga.get_custom_routing_endpoint_group_destinations(ids=["example_id"],
        accelerator_id="your_accelerator_id")
    pulumi.export("gaCustomRoutingEndpointGroupDestinationsId1", ids.custom_routing_endpoint_group_destinations[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.GetCustomRoutingEndpointGroupDestinations(ctx, &ga.GetCustomRoutingEndpointGroupDestinationsArgs{
    			Ids: []string{
    				"example_id",
    			},
    			AcceleratorId: "your_accelerator_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("gaCustomRoutingEndpointGroupDestinationsId1", ids.CustomRoutingEndpointGroupDestinations[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.GetCustomRoutingEndpointGroupDestinations.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
            AcceleratorId = "your_accelerator_id",
        });
    
        return new Dictionary<string, object?>
        {
            ["gaCustomRoutingEndpointGroupDestinationsId1"] = ids.Apply(getCustomRoutingEndpointGroupDestinationsResult => getCustomRoutingEndpointGroupDestinationsResult.CustomRoutingEndpointGroupDestinations[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.GetCustomRoutingEndpointGroupDestinationsArgs;
    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.getCustomRoutingEndpointGroupDestinations(GetCustomRoutingEndpointGroupDestinationsArgs.builder()
                .ids("example_id")
                .acceleratorId("your_accelerator_id")
                .build());
    
            ctx.export("gaCustomRoutingEndpointGroupDestinationsId1", ids.applyValue(getCustomRoutingEndpointGroupDestinationsResult -> getCustomRoutingEndpointGroupDestinationsResult.customRoutingEndpointGroupDestinations()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:ga:getCustomRoutingEndpointGroupDestinations
          Arguments:
            ids:
              - example_id
            acceleratorId: your_accelerator_id
    outputs:
      gaCustomRoutingEndpointGroupDestinationsId1: ${ids.customRoutingEndpointGroupDestinations[0].id}
    

    Using getCustomRoutingEndpointGroupDestinations

    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 getCustomRoutingEndpointGroupDestinations(args: GetCustomRoutingEndpointGroupDestinationsArgs, opts?: InvokeOptions): Promise<GetCustomRoutingEndpointGroupDestinationsResult>
    function getCustomRoutingEndpointGroupDestinationsOutput(args: GetCustomRoutingEndpointGroupDestinationsOutputArgs, opts?: InvokeOptions): Output<GetCustomRoutingEndpointGroupDestinationsResult>
    def get_custom_routing_endpoint_group_destinations(accelerator_id: Optional[str] = None,
                                                       endpoint_group_id: Optional[str] = None,
                                                       from_port: Optional[int] = 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,
                                                       protocols: Optional[Sequence[str]] = None,
                                                       to_port: Optional[int] = None,
                                                       opts: Optional[InvokeOptions] = None) -> GetCustomRoutingEndpointGroupDestinationsResult
    def get_custom_routing_endpoint_group_destinations_output(accelerator_id: Optional[pulumi.Input[str]] = None,
                                                       endpoint_group_id: Optional[pulumi.Input[str]] = None,
                                                       from_port: Optional[pulumi.Input[int]] = 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,
                                                       protocols: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                       to_port: Optional[pulumi.Input[int]] = None,
                                                       opts: Optional[InvokeOptions] = None) -> Output[GetCustomRoutingEndpointGroupDestinationsResult]
    func GetCustomRoutingEndpointGroupDestinations(ctx *Context, args *GetCustomRoutingEndpointGroupDestinationsArgs, opts ...InvokeOption) (*GetCustomRoutingEndpointGroupDestinationsResult, error)
    func GetCustomRoutingEndpointGroupDestinationsOutput(ctx *Context, args *GetCustomRoutingEndpointGroupDestinationsOutputArgs, opts ...InvokeOption) GetCustomRoutingEndpointGroupDestinationsResultOutput

    > Note: This function is named GetCustomRoutingEndpointGroupDestinations in the Go SDK.

    public static class GetCustomRoutingEndpointGroupDestinations 
    {
        public static Task<GetCustomRoutingEndpointGroupDestinationsResult> InvokeAsync(GetCustomRoutingEndpointGroupDestinationsArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomRoutingEndpointGroupDestinationsResult> Invoke(GetCustomRoutingEndpointGroupDestinationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCustomRoutingEndpointGroupDestinationsResult> getCustomRoutingEndpointGroupDestinations(GetCustomRoutingEndpointGroupDestinationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:ga/getCustomRoutingEndpointGroupDestinations:getCustomRoutingEndpointGroupDestinations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AcceleratorId string
    The ID of the GA instance.
    EndpointGroupId string
    The ID of the endpoint group.
    FromPort int
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    Ids List<string>
    A list of Custom Routing Endpoint Group Destination IDs.
    ListenerId string
    The ID of the listener.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Protocols List<string>
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    ToPort int
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    AcceleratorId string
    The ID of the GA instance.
    EndpointGroupId string
    The ID of the endpoint group.
    FromPort int
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    Ids []string
    A list of Custom Routing Endpoint Group Destination IDs.
    ListenerId string
    The ID of the listener.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Protocols []string
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    ToPort int
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    acceleratorId String
    The ID of the GA instance.
    endpointGroupId String
    The ID of the endpoint group.
    fromPort Integer
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    ids List<String>
    A list of Custom Routing Endpoint Group Destination IDs.
    listenerId String
    The ID of the listener.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    protocols List<String>
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    toPort Integer
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    acceleratorId string
    The ID of the GA instance.
    endpointGroupId string
    The ID of the endpoint group.
    fromPort number
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    ids string[]
    A list of Custom Routing Endpoint Group Destination IDs.
    listenerId string
    The ID of the listener.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    protocols string[]
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    toPort number
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    accelerator_id str
    The ID of the GA instance.
    endpoint_group_id str
    The ID of the endpoint group.
    from_port int
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    ids Sequence[str]
    A list of Custom Routing Endpoint Group Destination IDs.
    listener_id str
    The ID of the listener.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    protocols Sequence[str]
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    to_port int
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    acceleratorId String
    The ID of the GA instance.
    endpointGroupId String
    The ID of the endpoint group.
    fromPort Number
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    ids List<String>
    A list of Custom Routing Endpoint Group Destination IDs.
    listenerId String
    The ID of the listener.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number
    protocols List<String>
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    toPort Number
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

    getCustomRoutingEndpointGroupDestinations Result

    The following output properties are available:

    AcceleratorId string
    The ID of the GA instance.
    CustomRoutingEndpointGroupDestinations List<Pulumi.AliCloud.Ga.Outputs.GetCustomRoutingEndpointGroupDestinationsCustomRoutingEndpointGroupDestination>
    A list of Custom Routing Endpoint Group Destinations. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    EndpointGroupId string
    The ID of the Custom Routing Endpoint Group.
    FromPort int
    The start port of the backend service port range of the endpoint group.
    ListenerId string
    The ID of the listener.
    OutputFile string
    PageNumber int
    PageSize int
    Protocols List<string>
    The backend service protocol of the endpoint group.
    ToPort int
    The end port of the backend service port range of the endpoint group.
    AcceleratorId string
    The ID of the GA instance.
    CustomRoutingEndpointGroupDestinations []GetCustomRoutingEndpointGroupDestinationsCustomRoutingEndpointGroupDestination
    A list of Custom Routing Endpoint Group Destinations. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    EndpointGroupId string
    The ID of the Custom Routing Endpoint Group.
    FromPort int
    The start port of the backend service port range of the endpoint group.
    ListenerId string
    The ID of the listener.
    OutputFile string
    PageNumber int
    PageSize int
    Protocols []string
    The backend service protocol of the endpoint group.
    ToPort int
    The end port of the backend service port range of the endpoint group.
    acceleratorId String
    The ID of the GA instance.
    customRoutingEndpointGroupDestinations List<GetCustomRoutingEndpointGroupDestinationsCustomRoutingEndpointGroupDestination>
    A list of Custom Routing Endpoint Group Destinations. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    endpointGroupId String
    The ID of the Custom Routing Endpoint Group.
    fromPort Integer
    The start port of the backend service port range of the endpoint group.
    listenerId String
    The ID of the listener.
    outputFile String
    pageNumber Integer
    pageSize Integer
    protocols List<String>
    The backend service protocol of the endpoint group.
    toPort Integer
    The end port of the backend service port range of the endpoint group.
    acceleratorId string
    The ID of the GA instance.
    customRoutingEndpointGroupDestinations GetCustomRoutingEndpointGroupDestinationsCustomRoutingEndpointGroupDestination[]
    A list of Custom Routing Endpoint Group Destinations. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    endpointGroupId string
    The ID of the Custom Routing Endpoint Group.
    fromPort number
    The start port of the backend service port range of the endpoint group.
    listenerId string
    The ID of the listener.
    outputFile string
    pageNumber number
    pageSize number
    protocols string[]
    The backend service protocol of the endpoint group.
    toPort number
    The end port of the backend service port range of the endpoint group.
    accelerator_id str
    The ID of the GA instance.
    custom_routing_endpoint_group_destinations Sequence[GetCustomRoutingEndpointGroupDestinationsCustomRoutingEndpointGroupDestination]
    A list of Custom Routing Endpoint Group Destinations. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    endpoint_group_id str
    The ID of the Custom Routing Endpoint Group.
    from_port int
    The start port of the backend service port range of the endpoint group.
    listener_id str
    The ID of the listener.
    output_file str
    page_number int
    page_size int
    protocols Sequence[str]
    The backend service protocol of the endpoint group.
    to_port int
    The end port of the backend service port range of the endpoint group.
    acceleratorId String
    The ID of the GA instance.
    customRoutingEndpointGroupDestinations List<Property Map>
    A list of Custom Routing Endpoint Group Destinations. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    endpointGroupId String
    The ID of the Custom Routing Endpoint Group.
    fromPort Number
    The start port of the backend service port range of the endpoint group.
    listenerId String
    The ID of the listener.
    outputFile String
    pageNumber Number
    pageSize Number
    protocols List<String>
    The backend service protocol of the endpoint group.
    toPort Number
    The end port of the backend service port range of the endpoint group.

    Supporting Types

    GetCustomRoutingEndpointGroupDestinationsCustomRoutingEndpointGroupDestination

    AcceleratorId string
    The ID of the GA instance.
    CustomRoutingEndpointGroupDestinationId string
    The ID of the Custom Routing Endpoint Group Destination.
    EndpointGroupId string
    The ID of the endpoint group.
    FromPort int
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    Id string
    The id of the Global Accelerator Custom Routing Endpoint Group Destination. It formats as <endpoint_group_id>:<custom_routing_endpoint_group_destination_id>.
    ListenerId string
    The ID of the listener.
    Protocols List<string>
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    ToPort int
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    AcceleratorId string
    The ID of the GA instance.
    CustomRoutingEndpointGroupDestinationId string
    The ID of the Custom Routing Endpoint Group Destination.
    EndpointGroupId string
    The ID of the endpoint group.
    FromPort int
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    Id string
    The id of the Global Accelerator Custom Routing Endpoint Group Destination. It formats as <endpoint_group_id>:<custom_routing_endpoint_group_destination_id>.
    ListenerId string
    The ID of the listener.
    Protocols []string
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    ToPort int
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    acceleratorId String
    The ID of the GA instance.
    customRoutingEndpointGroupDestinationId String
    The ID of the Custom Routing Endpoint Group Destination.
    endpointGroupId String
    The ID of the endpoint group.
    fromPort Integer
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    id String
    The id of the Global Accelerator Custom Routing Endpoint Group Destination. It formats as <endpoint_group_id>:<custom_routing_endpoint_group_destination_id>.
    listenerId String
    The ID of the listener.
    protocols List<String>
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    toPort Integer
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    acceleratorId string
    The ID of the GA instance.
    customRoutingEndpointGroupDestinationId string
    The ID of the Custom Routing Endpoint Group Destination.
    endpointGroupId string
    The ID of the endpoint group.
    fromPort number
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    id string
    The id of the Global Accelerator Custom Routing Endpoint Group Destination. It formats as <endpoint_group_id>:<custom_routing_endpoint_group_destination_id>.
    listenerId string
    The ID of the listener.
    protocols string[]
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    toPort number
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    accelerator_id str
    The ID of the GA instance.
    custom_routing_endpoint_group_destination_id str
    The ID of the Custom Routing Endpoint Group Destination.
    endpoint_group_id str
    The ID of the endpoint group.
    from_port int
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    id str
    The id of the Global Accelerator Custom Routing Endpoint Group Destination. It formats as <endpoint_group_id>:<custom_routing_endpoint_group_destination_id>.
    listener_id str
    The ID of the listener.
    protocols Sequence[str]
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    to_port int
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    acceleratorId String
    The ID of the GA instance.
    customRoutingEndpointGroupDestinationId String
    The ID of the Custom Routing Endpoint Group Destination.
    endpointGroupId String
    The ID of the endpoint group.
    fromPort Number
    The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.
    id String
    The id of the Global Accelerator Custom Routing Endpoint Group Destination. It formats as <endpoint_group_id>:<custom_routing_endpoint_group_destination_id>.
    listenerId String
    The ID of the listener.
    protocols List<String>
    The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
    toPort Number
    The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

    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.59.0 published on Friday, Jul 12, 2024 by Pulumi