alicloud.ga.getCustomRoutingEndpointGroupDestinations
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
using System.Collections.Generic;
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 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
})
}
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()));
}
}
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)
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);
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:
- Accelerator
Id string The ID of the GA instance.
- Endpoint
Group stringId 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 theto_port
value. Valid values:1
to65499
.- Ids List<string>
A list of Custom Routing Endpoint Group Destination IDs.
- Listener
Id string The ID of the listener.
- Output
File string - Page
Number int - Page
Size int - Protocols List<string>
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 theto_port
value. Valid values:1
to65499
.
- Accelerator
Id string The ID of the GA instance.
- Endpoint
Group stringId 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 theto_port
value. Valid values:1
to65499
.- Ids []string
A list of Custom Routing Endpoint Group Destination IDs.
- Listener
Id string The ID of the listener.
- Output
File string - Page
Number int - Page
Size int - Protocols []string
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 theto_port
value. Valid values:1
to65499
.
- accelerator
Id String The ID of the GA instance.
- endpoint
Group StringId The ID of the endpoint group.
- from
Port 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 theto_port
value. Valid values:1
to65499
.- ids List<String>
A list of Custom Routing Endpoint Group Destination IDs.
- listener
Id String The ID of the listener.
- output
File String - page
Number Integer - page
Size Integer - protocols List<String>
The backend service protocol of the endpoint group. Valid values:
TCP
,UDP
,TCP, UDP
.- to
Port 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 theto_port
value. Valid values:1
to65499
.
- accelerator
Id string The ID of the GA instance.
- endpoint
Group stringId The ID of the endpoint group.
- from
Port 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 theto_port
value. Valid values:1
to65499
.- ids string[]
A list of Custom Routing Endpoint Group Destination IDs.
- listener
Id string The ID of the listener.
- output
File string - page
Number number - page
Size number - protocols string[]
The backend service protocol of the endpoint group. Valid values:
TCP
,UDP
,TCP, UDP
.- to
Port 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 theto_port
value. Valid values:1
to65499
.
- accelerator_
id str The ID of the GA instance.
- endpoint_
group_ strid 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 theto_port
value. Valid values:1
to65499
.- ids Sequence[str]
A list of Custom Routing Endpoint Group Destination IDs.
- 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. 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 theto_port
value. Valid values:1
to65499
.
- accelerator
Id String The ID of the GA instance.
- endpoint
Group StringId The ID of the endpoint group.
- from
Port 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 theto_port
value. Valid values:1
to65499
.- ids List<String>
A list of Custom Routing Endpoint Group Destination IDs.
- listener
Id String The ID of the listener.
- output
File String - page
Number Number - page
Size Number - protocols List<String>
The backend service protocol of the endpoint group. Valid values:
TCP
,UDP
,TCP, UDP
.- to
Port 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 theto_port
value. Valid values:1
to65499
.
getCustomRoutingEndpointGroupDestinations Result
The following output properties are available:
- Accelerator
Id string The ID of the GA instance.
- Custom
Routing List<Pulumi.Endpoint Group Destinations Ali Cloud. Ga. Outputs. Get Custom Routing Endpoint Group Destinations Custom Routing Endpoint Group Destination> 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>
- Endpoint
Group stringId 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 string The ID of the listener.
- Output
File string - Page
Number int - Page
Size int - Protocols List<string>
The backend service protocol of the endpoint group.
- To
Port int The end port of the backend service port range of the endpoint group.
- Accelerator
Id string The ID of the GA instance.
- Custom
Routing []GetEndpoint Group Destinations Custom Routing Endpoint Group Destinations Custom Routing Endpoint Group Destination 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
- Endpoint
Group stringId 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 string The ID of the listener.
- Output
File string - Page
Number int - Page
Size int - Protocols []string
The backend service protocol of the endpoint group.
- To
Port int The end port of the backend service port range of the endpoint group.
- accelerator
Id String The ID of the GA instance.
- custom
Routing List<GetEndpoint Group Destinations Custom Routing Endpoint Group Destinations Custom Routing Endpoint Group Destination> 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>
- endpoint
Group StringId The ID of the Custom Routing Endpoint Group.
- from
Port Integer The start port of the backend service port range of the endpoint group.
- listener
Id String The ID of the listener.
- output
File String - page
Number Integer - page
Size Integer - protocols List<String>
The backend service protocol of the endpoint group.
- to
Port Integer The end port of the backend service port range of the endpoint group.
- accelerator
Id string The ID of the GA instance.
- custom
Routing GetEndpoint Group Destinations Custom Routing Endpoint Group Destinations Custom Routing Endpoint Group Destination[] 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[]
- endpoint
Group stringId The ID of the Custom Routing Endpoint Group.
- from
Port number The start port of the backend service port range of the endpoint group.
- listener
Id string The ID of the listener.
- output
File string - page
Number number - page
Size number - protocols string[]
The backend service protocol of the endpoint group.
- to
Port 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_ Sequence[Getendpoint_ group_ destinations Custom Routing Endpoint Group Destinations Custom Routing Endpoint Group Destination] 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_ strid 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.
- accelerator
Id String The ID of the GA instance.
- custom
Routing List<Property Map>Endpoint Group Destinations 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>
- endpoint
Group StringId The ID of the Custom Routing Endpoint Group.
- from
Port Number The start port of the backend service port range of the endpoint group.
- listener
Id String The ID of the listener.
- output
File String - page
Number Number - page
Size Number - protocols List<String>
The backend service protocol of the endpoint group.
- to
Port Number The end port of the backend service port range of the endpoint group.
Supporting Types
GetCustomRoutingEndpointGroupDestinationsCustomRoutingEndpointGroupDestination
- Accelerator
Id string The ID of the GA instance.
- Custom
Routing stringEndpoint Group Destination Id The ID of the Custom Routing Endpoint Group Destination.
- Endpoint
Group stringId 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 theto_port
value. Valid values:1
to65499
.- 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>
.- Listener
Id string The ID of the listener.
- Protocols List<string>
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 theto_port
value. Valid values:1
to65499
.
- Accelerator
Id string The ID of the GA instance.
- Custom
Routing stringEndpoint Group Destination Id The ID of the Custom Routing Endpoint Group Destination.
- Endpoint
Group stringId 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 theto_port
value. Valid values:1
to65499
.- 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>
.- Listener
Id string The ID of the listener.
- Protocols []string
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 theto_port
value. Valid values:1
to65499
.
- accelerator
Id String The ID of the GA instance.
- custom
Routing StringEndpoint Group Destination Id The ID of the Custom Routing Endpoint Group Destination.
- endpoint
Group StringId The ID of the endpoint group.
- from
Port 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 theto_port
value. Valid values:1
to65499
.- 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>
.- listener
Id String The ID of the listener.
- protocols List<String>
The backend service protocol of the endpoint group. Valid values:
TCP
,UDP
,TCP, UDP
.- to
Port 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 theto_port
value. Valid values:1
to65499
.
- accelerator
Id string The ID of the GA instance.
- custom
Routing stringEndpoint Group Destination Id The ID of the Custom Routing Endpoint Group Destination.
- endpoint
Group stringId The ID of the endpoint group.
- from
Port 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 theto_port
value. Valid values:1
to65499
.- 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>
.- listener
Id string The ID of the listener.
- protocols string[]
The backend service protocol of the endpoint group. Valid values:
TCP
,UDP
,TCP, UDP
.- to
Port 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 theto_port
value. Valid values:1
to65499
.
- accelerator_
id str The ID of the GA instance.
- custom_
routing_ strendpoint_ group_ destination_ id The ID of the Custom Routing Endpoint Group Destination.
- endpoint_
group_ strid 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 theto_port
value. Valid values:1
to65499
.- 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 theto_port
value. Valid values:1
to65499
.
- accelerator
Id String The ID of the GA instance.
- custom
Routing StringEndpoint Group Destination Id The ID of the Custom Routing Endpoint Group Destination.
- endpoint
Group StringId The ID of the endpoint group.
- from
Port 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 theto_port
value. Valid values:1
to65499
.- 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>
.- listener
Id String The ID of the listener.
- protocols List<String>
The backend service protocol of the endpoint group. Valid values:
TCP
,UDP
,TCP, UDP
.- to
Port 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 theto_port
value. Valid values:1
to65499
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.