1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. getCustomRoutingEndpoints
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.ga.getCustomRoutingEndpoints

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the Global Accelerator (GA) Custom Routing Endpoints 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.getCustomRoutingEndpoints({
        ids: ["example_id"],
        acceleratorId: "your_accelerator_id",
    });
    export const gaCustomRoutingEndpointsId1 = ids.then(ids => ids.customRoutingEndpoints?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.ga.get_custom_routing_endpoints(ids=["example_id"],
        accelerator_id="your_accelerator_id")
    pulumi.export("gaCustomRoutingEndpointsId1", ids.custom_routing_endpoints[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.GetCustomRoutingEndpoints(ctx, &ga.GetCustomRoutingEndpointsArgs{
    			Ids: []string{
    				"example_id",
    			},
    			AcceleratorId: "your_accelerator_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("gaCustomRoutingEndpointsId1", ids.CustomRoutingEndpoints[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.GetCustomRoutingEndpoints.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
            AcceleratorId = "your_accelerator_id",
        });
    
        return new Dictionary<string, object?>
        {
            ["gaCustomRoutingEndpointsId1"] = ids.Apply(getCustomRoutingEndpointsResult => getCustomRoutingEndpointsResult.CustomRoutingEndpoints[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.GetCustomRoutingEndpointsArgs;
    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.getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs.builder()
                .ids("example_id")
                .acceleratorId("your_accelerator_id")
                .build());
    
            ctx.export("gaCustomRoutingEndpointsId1", ids.applyValue(getCustomRoutingEndpointsResult -> getCustomRoutingEndpointsResult.customRoutingEndpoints()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:ga:getCustomRoutingEndpoints
          Arguments:
            ids:
              - example_id
            acceleratorId: your_accelerator_id
    outputs:
      gaCustomRoutingEndpointsId1: ${ids.customRoutingEndpoints[0].id}
    

    Using getCustomRoutingEndpoints

    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 getCustomRoutingEndpoints(args: GetCustomRoutingEndpointsArgs, opts?: InvokeOptions): Promise<GetCustomRoutingEndpointsResult>
    function getCustomRoutingEndpointsOutput(args: GetCustomRoutingEndpointsOutputArgs, opts?: InvokeOptions): Output<GetCustomRoutingEndpointsResult>
    def get_custom_routing_endpoints(accelerator_id: Optional[str] = None,
                                     endpoint_group_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) -> GetCustomRoutingEndpointsResult
    def get_custom_routing_endpoints_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,
                                     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[GetCustomRoutingEndpointsResult]
    func GetCustomRoutingEndpoints(ctx *Context, args *GetCustomRoutingEndpointsArgs, opts ...InvokeOption) (*GetCustomRoutingEndpointsResult, error)
    func GetCustomRoutingEndpointsOutput(ctx *Context, args *GetCustomRoutingEndpointsOutputArgs, opts ...InvokeOption) GetCustomRoutingEndpointsResultOutput

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

    public static class GetCustomRoutingEndpoints 
    {
        public static Task<GetCustomRoutingEndpointsResult> InvokeAsync(GetCustomRoutingEndpointsArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomRoutingEndpointsResult> Invoke(GetCustomRoutingEndpointsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCustomRoutingEndpointsResult> getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints
      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 IDs.
    ListenerId string
    The ID of the custom routing listener.
    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.
    EndpointGroupId string
    The ID of the endpoint group.
    Ids []string
    A list of Custom Routing Endpoint IDs.
    ListenerId string
    The ID of the custom routing listener.
    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.
    endpointGroupId String
    The ID of the endpoint group.
    ids List<String>
    A list of Custom Routing Endpoint IDs.
    listenerId String
    The ID of the custom routing listener.
    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.
    endpointGroupId string
    The ID of the endpoint group.
    ids string[]
    A list of Custom Routing Endpoint IDs.
    listenerId string
    The ID of the custom routing listener.
    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.
    endpoint_group_id str
    The ID of the endpoint group.
    ids Sequence[str]
    A list of Custom Routing Endpoint IDs.
    listener_id str
    The ID of the custom routing listener.
    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.
    endpointGroupId String
    The ID of the endpoint group.
    ids List<String>
    A list of Custom Routing Endpoint IDs.
    listenerId String
    The ID of the custom routing listener.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number

    getCustomRoutingEndpoints Result

    The following output properties are available:

    AcceleratorId string
    The ID of the GA instance with which the endpoint is associated.
    CustomRoutingEndpoints List<Pulumi.AliCloud.Ga.Outputs.GetCustomRoutingEndpointsCustomRoutingEndpoint>
    A list of Custom Routing Endpoints. 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.
    ListenerId string
    The ID of the listener with which the endpoint is associated.
    OutputFile string
    PageNumber int
    PageSize int
    AcceleratorId string
    The ID of the GA instance with which the endpoint is associated.
    CustomRoutingEndpoints []GetCustomRoutingEndpointsCustomRoutingEndpoint
    A list of Custom Routing Endpoints. 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.
    ListenerId string
    The ID of the listener with which the endpoint is associated.
    OutputFile string
    PageNumber int
    PageSize int
    acceleratorId String
    The ID of the GA instance with which the endpoint is associated.
    customRoutingEndpoints List<GetCustomRoutingEndpointsCustomRoutingEndpoint>
    A list of Custom Routing Endpoints. 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.
    listenerId String
    The ID of the listener with which the endpoint is associated.
    outputFile String
    pageNumber Integer
    pageSize Integer
    acceleratorId string
    The ID of the GA instance with which the endpoint is associated.
    customRoutingEndpoints GetCustomRoutingEndpointsCustomRoutingEndpoint[]
    A list of Custom Routing Endpoints. 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.
    listenerId string
    The ID of the listener with which the endpoint is associated.
    outputFile string
    pageNumber number
    pageSize number
    accelerator_id str
    The ID of the GA instance with which the endpoint is associated.
    custom_routing_endpoints Sequence[GetCustomRoutingEndpointsCustomRoutingEndpoint]
    A list of Custom Routing Endpoints. 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.
    listener_id str
    The ID of the listener with which the endpoint is associated.
    output_file str
    page_number int
    page_size int
    acceleratorId String
    The ID of the GA instance with which the endpoint is associated.
    customRoutingEndpoints List<Property Map>
    A list of Custom Routing Endpoints. 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.
    listenerId String
    The ID of the listener with which the endpoint is associated.
    outputFile String
    pageNumber Number
    pageSize Number

    Supporting Types

    GetCustomRoutingEndpointsCustomRoutingEndpoint

    AcceleratorId string
    The ID of the GA instance.
    CustomRoutingEndpointId string
    The ID of the Custom Routing Endpoint.
    Endpoint string
    The ID of the endpoint (vSwitch).
    EndpointGroupId string
    The ID of the endpoint group.
    Id string
    The id of the Global Accelerator Custom Routing Endpoint. It formats as <endpoint_group_id>:<custom_routing_endpoint_id>.
    ListenerId string
    The ID of the custom routing listener.
    TrafficToEndpointPolicy string
    The access policy of traffic for the specified endpoint.
    Type string
    The backend service type of the endpoint.
    AcceleratorId string
    The ID of the GA instance.
    CustomRoutingEndpointId string
    The ID of the Custom Routing Endpoint.
    Endpoint string
    The ID of the endpoint (vSwitch).
    EndpointGroupId string
    The ID of the endpoint group.
    Id string
    The id of the Global Accelerator Custom Routing Endpoint. It formats as <endpoint_group_id>:<custom_routing_endpoint_id>.
    ListenerId string
    The ID of the custom routing listener.
    TrafficToEndpointPolicy string
    The access policy of traffic for the specified endpoint.
    Type string
    The backend service type of the endpoint.
    acceleratorId String
    The ID of the GA instance.
    customRoutingEndpointId String
    The ID of the Custom Routing Endpoint.
    endpoint String
    The ID of the endpoint (vSwitch).
    endpointGroupId String
    The ID of the endpoint group.
    id String
    The id of the Global Accelerator Custom Routing Endpoint. It formats as <endpoint_group_id>:<custom_routing_endpoint_id>.
    listenerId String
    The ID of the custom routing listener.
    trafficToEndpointPolicy String
    The access policy of traffic for the specified endpoint.
    type String
    The backend service type of the endpoint.
    acceleratorId string
    The ID of the GA instance.
    customRoutingEndpointId string
    The ID of the Custom Routing Endpoint.
    endpoint string
    The ID of the endpoint (vSwitch).
    endpointGroupId string
    The ID of the endpoint group.
    id string
    The id of the Global Accelerator Custom Routing Endpoint. It formats as <endpoint_group_id>:<custom_routing_endpoint_id>.
    listenerId string
    The ID of the custom routing listener.
    trafficToEndpointPolicy string
    The access policy of traffic for the specified endpoint.
    type string
    The backend service type of the endpoint.
    accelerator_id str
    The ID of the GA instance.
    custom_routing_endpoint_id str
    The ID of the Custom Routing Endpoint.
    endpoint str
    The ID of the endpoint (vSwitch).
    endpoint_group_id str
    The ID of the endpoint group.
    id str
    The id of the Global Accelerator Custom Routing Endpoint. It formats as <endpoint_group_id>:<custom_routing_endpoint_id>.
    listener_id str
    The ID of the custom routing listener.
    traffic_to_endpoint_policy str
    The access policy of traffic for the specified endpoint.
    type str
    The backend service type of the endpoint.
    acceleratorId String
    The ID of the GA instance.
    customRoutingEndpointId String
    The ID of the Custom Routing Endpoint.
    endpoint String
    The ID of the endpoint (vSwitch).
    endpointGroupId String
    The ID of the endpoint group.
    id String
    The id of the Global Accelerator Custom Routing Endpoint. It formats as <endpoint_group_id>:<custom_routing_endpoint_id>.
    listenerId String
    The ID of the custom routing listener.
    trafficToEndpointPolicy String
    The access policy of traffic for the specified endpoint.
    type String
    The backend service type of the endpoint.

    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.57.1 published on Wednesday, Jun 26, 2024 by Pulumi