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

alicloud.ga.getCustomRoutingEndpointGroups

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 Groups 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.getCustomRoutingEndpointGroups({
        ids: ["example_id"],
        acceleratorId: "your_accelerator_id",
    });
    export const gaCustomRoutingEndpointGroupsId1 = ids.then(ids => ids.groups?.[0]?.id);
    const nameRegex = alicloud.ga.getCustomRoutingEndpointGroups({
        nameRegex: "tf-example",
        acceleratorId: "your_accelerator_id",
    });
    export const gaCustomRoutingEndpointGroupsId2 = nameRegex.then(nameRegex => nameRegex.groups?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.ga.get_custom_routing_endpoint_groups(ids=["example_id"],
        accelerator_id="your_accelerator_id")
    pulumi.export("gaCustomRoutingEndpointGroupsId1", ids.groups[0].id)
    name_regex = alicloud.ga.get_custom_routing_endpoint_groups(name_regex="tf-example",
        accelerator_id="your_accelerator_id")
    pulumi.export("gaCustomRoutingEndpointGroupsId2", name_regex.groups[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.GetCustomRoutingEndpointGroups(ctx, &ga.GetCustomRoutingEndpointGroupsArgs{
    			Ids: []string{
    				"example_id",
    			},
    			AcceleratorId: "your_accelerator_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("gaCustomRoutingEndpointGroupsId1", ids.Groups[0].Id)
    		nameRegex, err := ga.GetCustomRoutingEndpointGroups(ctx, &ga.GetCustomRoutingEndpointGroupsArgs{
    			NameRegex:     pulumi.StringRef("tf-example"),
    			AcceleratorId: "your_accelerator_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("gaCustomRoutingEndpointGroupsId2", nameRegex.Groups[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.GetCustomRoutingEndpointGroups.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
            AcceleratorId = "your_accelerator_id",
        });
    
        var nameRegex = AliCloud.Ga.GetCustomRoutingEndpointGroups.Invoke(new()
        {
            NameRegex = "tf-example",
            AcceleratorId = "your_accelerator_id",
        });
    
        return new Dictionary<string, object?>
        {
            ["gaCustomRoutingEndpointGroupsId1"] = ids.Apply(getCustomRoutingEndpointGroupsResult => getCustomRoutingEndpointGroupsResult.Groups[0]?.Id),
            ["gaCustomRoutingEndpointGroupsId2"] = nameRegex.Apply(getCustomRoutingEndpointGroupsResult => getCustomRoutingEndpointGroupsResult.Groups[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.GetCustomRoutingEndpointGroupsArgs;
    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.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
                .ids("example_id")
                .acceleratorId("your_accelerator_id")
                .build());
    
            ctx.export("gaCustomRoutingEndpointGroupsId1", ids.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
            final var nameRegex = GaFunctions.getCustomRoutingEndpointGroups(GetCustomRoutingEndpointGroupsArgs.builder()
                .nameRegex("tf-example")
                .acceleratorId("your_accelerator_id")
                .build());
    
            ctx.export("gaCustomRoutingEndpointGroupsId2", nameRegex.applyValue(getCustomRoutingEndpointGroupsResult -> getCustomRoutingEndpointGroupsResult.groups()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:ga:getCustomRoutingEndpointGroups
          Arguments:
            ids:
              - example_id
            acceleratorId: your_accelerator_id
      nameRegex:
        fn::invoke:
          Function: alicloud:ga:getCustomRoutingEndpointGroups
          Arguments:
            nameRegex: tf-example
            acceleratorId: your_accelerator_id
    outputs:
      gaCustomRoutingEndpointGroupsId1: ${ids.groups[0].id}
      gaCustomRoutingEndpointGroupsId2: ${nameRegex.groups[0].id}
    

    Using getCustomRoutingEndpointGroups

    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 getCustomRoutingEndpointGroups(args: GetCustomRoutingEndpointGroupsArgs, opts?: InvokeOptions): Promise<GetCustomRoutingEndpointGroupsResult>
    function getCustomRoutingEndpointGroupsOutput(args: GetCustomRoutingEndpointGroupsOutputArgs, opts?: InvokeOptions): Output<GetCustomRoutingEndpointGroupsResult>
    def get_custom_routing_endpoint_groups(accelerator_id: Optional[str] = None,
                                           endpoint_group_id: Optional[str] = None,
                                           ids: Optional[Sequence[str]] = None,
                                           listener_id: Optional[str] = None,
                                           name_regex: Optional[str] = None,
                                           output_file: Optional[str] = None,
                                           page_number: Optional[int] = None,
                                           page_size: Optional[int] = None,
                                           status: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetCustomRoutingEndpointGroupsResult
    def get_custom_routing_endpoint_groups_output(accelerator_id: Optional[pulumi.Input[str]] = None,
                                           endpoint_group_id: Optional[pulumi.Input[str]] = None,
                                           ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                           listener_id: Optional[pulumi.Input[str]] = None,
                                           name_regex: 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,
                                           status: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetCustomRoutingEndpointGroupsResult]
    func GetCustomRoutingEndpointGroups(ctx *Context, args *GetCustomRoutingEndpointGroupsArgs, opts ...InvokeOption) (*GetCustomRoutingEndpointGroupsResult, error)
    func GetCustomRoutingEndpointGroupsOutput(ctx *Context, args *GetCustomRoutingEndpointGroupsOutputArgs, opts ...InvokeOption) GetCustomRoutingEndpointGroupsResultOutput

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

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

    The following arguments are supported:

    AcceleratorId string
    The ID of the GA instance.
    EndpointGroupId string
    The ID of the endpoint group.
    Ids List<string>
    A list of Custom Routing Endpoint Group IDs.
    ListenerId string
    The ID of the custom routing listener.
    NameRegex string
    A regex string to filter results by Custom Routing Endpoint Group name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Status string
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    AcceleratorId string
    The ID of the GA instance.
    EndpointGroupId string
    The ID of the endpoint group.
    Ids []string
    A list of Custom Routing Endpoint Group IDs.
    ListenerId string
    The ID of the custom routing listener.
    NameRegex string
    A regex string to filter results by Custom Routing Endpoint Group name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Status string
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    acceleratorId String
    The ID of the GA instance.
    endpointGroupId String
    The ID of the endpoint group.
    ids List<String>
    A list of Custom Routing Endpoint Group IDs.
    listenerId String
    The ID of the custom routing listener.
    nameRegex String
    A regex string to filter results by Custom Routing Endpoint Group name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    status String
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    acceleratorId string
    The ID of the GA instance.
    endpointGroupId string
    The ID of the endpoint group.
    ids string[]
    A list of Custom Routing Endpoint Group IDs.
    listenerId string
    The ID of the custom routing listener.
    nameRegex string
    A regex string to filter results by Custom Routing Endpoint Group name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    status string
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    accelerator_id str
    The ID of the GA instance.
    endpoint_group_id str
    The ID of the endpoint group.
    ids Sequence[str]
    A list of Custom Routing Endpoint Group IDs.
    listener_id str
    The ID of the custom routing listener.
    name_regex str
    A regex string to filter results by Custom Routing Endpoint Group name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    status str
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    acceleratorId String
    The ID of the GA instance.
    endpointGroupId String
    The ID of the endpoint group.
    ids List<String>
    A list of Custom Routing Endpoint Group IDs.
    listenerId String
    The ID of the custom routing listener.
    nameRegex String
    A regex string to filter results by Custom Routing Endpoint Group name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number
    status String
    The status of the endpoint group. Valid Values: init, active, updating, deleting.

    getCustomRoutingEndpointGroups Result

    The following output properties are available:

    AcceleratorId string
    The ID of the GA instance.
    Groups List<Pulumi.AliCloud.Ga.Outputs.GetCustomRoutingEndpointGroupsGroup>
    A list of Custom Routing Endpoint Groups. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    A list of Custom Routing Endpoint Group names.
    EndpointGroupId string
    The ID of the Custom Routing Endpoint Group.
    ListenerId string
    The ID of the custom routing listener.
    NameRegex string
    OutputFile string
    PageNumber int
    PageSize int
    Status string
    The status of the endpoint group.
    AcceleratorId string
    The ID of the GA instance.
    Groups []GetCustomRoutingEndpointGroupsGroup
    A list of Custom Routing Endpoint Groups. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    A list of Custom Routing Endpoint Group names.
    EndpointGroupId string
    The ID of the Custom Routing Endpoint Group.
    ListenerId string
    The ID of the custom routing listener.
    NameRegex string
    OutputFile string
    PageNumber int
    PageSize int
    Status string
    The status of the endpoint group.
    acceleratorId String
    The ID of the GA instance.
    groups List<GetCustomRoutingEndpointGroupsGroup>
    A list of Custom Routing Endpoint Groups. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of Custom Routing Endpoint Group names.
    endpointGroupId String
    The ID of the Custom Routing Endpoint Group.
    listenerId String
    The ID of the custom routing listener.
    nameRegex String
    outputFile String
    pageNumber Integer
    pageSize Integer
    status String
    The status of the endpoint group.
    acceleratorId string
    The ID of the GA instance.
    groups GetCustomRoutingEndpointGroupsGroup[]
    A list of Custom Routing Endpoint Groups. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    A list of Custom Routing Endpoint Group names.
    endpointGroupId string
    The ID of the Custom Routing Endpoint Group.
    listenerId string
    The ID of the custom routing listener.
    nameRegex string
    outputFile string
    pageNumber number
    pageSize number
    status string
    The status of the endpoint group.
    accelerator_id str
    The ID of the GA instance.
    groups Sequence[GetCustomRoutingEndpointGroupsGroup]
    A list of Custom Routing Endpoint Groups. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    A list of Custom Routing Endpoint Group names.
    endpoint_group_id str
    The ID of the Custom Routing Endpoint Group.
    listener_id str
    The ID of the custom routing listener.
    name_regex str
    output_file str
    page_number int
    page_size int
    status str
    The status of the endpoint group.
    acceleratorId String
    The ID of the GA instance.
    groups List<Property Map>
    A list of Custom Routing Endpoint Groups. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of Custom Routing Endpoint Group names.
    endpointGroupId String
    The ID of the Custom Routing Endpoint Group.
    listenerId String
    The ID of the custom routing listener.
    nameRegex String
    outputFile String
    pageNumber Number
    pageSize Number
    status String
    The status of the endpoint group.

    Supporting Types

    GetCustomRoutingEndpointGroupsGroup

    AcceleratorId string
    The ID of the GA instance.
    CustomRoutingEndpointGroupName string
    The name of the endpoint group.
    Description string
    The description of the endpoint group.
    EndpointGroupId string
    The ID of the endpoint group.
    EndpointGroupIpLists List<string>
    The list of endpoint group IP addresses.
    EndpointGroupRegion string
    The ID of the region where the endpoint group is created.
    EndpointGroupUnconfirmedIpLists List<string>
    The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
    Id string
    The id of the Custom Routing Endpoint Group.
    ListenerId string
    The ID of the custom routing listener.
    Status string
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    AcceleratorId string
    The ID of the GA instance.
    CustomRoutingEndpointGroupName string
    The name of the endpoint group.
    Description string
    The description of the endpoint group.
    EndpointGroupId string
    The ID of the endpoint group.
    EndpointGroupIpLists []string
    The list of endpoint group IP addresses.
    EndpointGroupRegion string
    The ID of the region where the endpoint group is created.
    EndpointGroupUnconfirmedIpLists []string
    The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
    Id string
    The id of the Custom Routing Endpoint Group.
    ListenerId string
    The ID of the custom routing listener.
    Status string
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    acceleratorId String
    The ID of the GA instance.
    customRoutingEndpointGroupName String
    The name of the endpoint group.
    description String
    The description of the endpoint group.
    endpointGroupId String
    The ID of the endpoint group.
    endpointGroupIpLists List<String>
    The list of endpoint group IP addresses.
    endpointGroupRegion String
    The ID of the region where the endpoint group is created.
    endpointGroupUnconfirmedIpLists List<String>
    The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
    id String
    The id of the Custom Routing Endpoint Group.
    listenerId String
    The ID of the custom routing listener.
    status String
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    acceleratorId string
    The ID of the GA instance.
    customRoutingEndpointGroupName string
    The name of the endpoint group.
    description string
    The description of the endpoint group.
    endpointGroupId string
    The ID of the endpoint group.
    endpointGroupIpLists string[]
    The list of endpoint group IP addresses.
    endpointGroupRegion string
    The ID of the region where the endpoint group is created.
    endpointGroupUnconfirmedIpLists string[]
    The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
    id string
    The id of the Custom Routing Endpoint Group.
    listenerId string
    The ID of the custom routing listener.
    status string
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    accelerator_id str
    The ID of the GA instance.
    custom_routing_endpoint_group_name str
    The name of the endpoint group.
    description str
    The description of the endpoint group.
    endpoint_group_id str
    The ID of the endpoint group.
    endpoint_group_ip_lists Sequence[str]
    The list of endpoint group IP addresses.
    endpoint_group_region str
    The ID of the region where the endpoint group is created.
    endpoint_group_unconfirmed_ip_lists Sequence[str]
    The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
    id str
    The id of the Custom Routing Endpoint Group.
    listener_id str
    The ID of the custom routing listener.
    status str
    The status of the endpoint group. Valid Values: init, active, updating, deleting.
    acceleratorId String
    The ID of the GA instance.
    customRoutingEndpointGroupName String
    The name of the endpoint group.
    description String
    The description of the endpoint group.
    endpointGroupId String
    The ID of the endpoint group.
    endpointGroupIpLists List<String>
    The list of endpoint group IP addresses.
    endpointGroupRegion String
    The ID of the region where the endpoint group is created.
    endpointGroupUnconfirmedIpLists List<String>
    The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
    id String
    The id of the Custom Routing Endpoint Group.
    listenerId String
    The ID of the custom routing listener.
    status String
    The status of the endpoint group. Valid Values: init, active, updating, deleting.

    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