Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.ga.getCustomRoutingEndpointGroups
Explore with Pulumi AI
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:
- Accelerator
Id string - The ID of the GA instance.
- Endpoint
Group stringId - The ID of the endpoint group.
- Ids List<string>
- A list of Custom Routing Endpoint Group IDs.
- Listener
Id string - The ID of the custom routing listener.
- Name
Regex string - A regex string to filter results by Custom Routing Endpoint Group name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int - Status string
- The status of the endpoint group. Valid Values:
init
,active
,updating
,deleting
.
- Accelerator
Id string - The ID of the GA instance.
- Endpoint
Group stringId - The ID of the endpoint group.
- Ids []string
- A list of Custom Routing Endpoint Group IDs.
- Listener
Id string - The ID of the custom routing listener.
- Name
Regex string - A regex string to filter results by Custom Routing Endpoint Group name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int - Status string
- The status of the endpoint group. Valid Values:
init
,active
,updating
,deleting
.
- accelerator
Id String - The ID of the GA instance.
- endpoint
Group StringId - The ID of the endpoint group.
- ids List<String>
- A list of Custom Routing Endpoint Group IDs.
- listener
Id String - The ID of the custom routing listener.
- name
Regex String - A regex string to filter results by Custom Routing Endpoint Group name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer - status String
- The status of the endpoint group. Valid Values:
init
,active
,updating
,deleting
.
- accelerator
Id string - The ID of the GA instance.
- endpoint
Group stringId - The ID of the endpoint group.
- ids string[]
- A list of Custom Routing Endpoint Group IDs.
- listener
Id string - The ID of the custom routing listener.
- name
Regex string - A regex string to filter results by Custom Routing Endpoint Group name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size 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_ strid - 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
.
- accelerator
Id String - The ID of the GA instance.
- endpoint
Group StringId - The ID of the endpoint group.
- ids List<String>
- A list of Custom Routing Endpoint Group IDs.
- listener
Id String - The ID of the custom routing listener.
- name
Regex String - A regex string to filter results by Custom Routing Endpoint Group name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size Number - status String
- The status of the endpoint group. Valid Values:
init
,active
,updating
,deleting
.
getCustomRoutingEndpointGroups Result
The following output properties are available:
- Accelerator
Id string - The ID of the GA instance.
- Groups
List<Pulumi.
Ali Cloud. Ga. Outputs. Get Custom Routing Endpoint Groups Group> - 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.
- Endpoint
Group stringId - The ID of the Custom Routing Endpoint Group.
- Listener
Id string - The ID of the custom routing listener.
- Name
Regex string - Output
File string - Page
Number int - Page
Size int - Status string
- The status of the endpoint group.
- Accelerator
Id string - The ID of the GA instance.
- Groups
[]Get
Custom Routing Endpoint Groups Group - 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.
- Endpoint
Group stringId - The ID of the Custom Routing Endpoint Group.
- Listener
Id string - The ID of the custom routing listener.
- Name
Regex string - Output
File string - Page
Number int - Page
Size int - Status string
- The status of the endpoint group.
- accelerator
Id String - The ID of the GA instance.
- groups
List<Get
Custom Routing Endpoint Groups Group> - 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.
- endpoint
Group StringId - The ID of the Custom Routing Endpoint Group.
- listener
Id String - The ID of the custom routing listener.
- name
Regex String - output
File String - page
Number Integer - page
Size Integer - status String
- The status of the endpoint group.
- accelerator
Id string - The ID of the GA instance.
- groups
Get
Custom Routing Endpoint Groups Group[] - 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.
- endpoint
Group stringId - The ID of the Custom Routing Endpoint Group.
- listener
Id string - The ID of the custom routing listener.
- name
Regex string - output
File string - page
Number number - page
Size number - status string
- The status of the endpoint group.
- accelerator_
id str - The ID of the GA instance.
- groups
Sequence[Get
Custom Routing Endpoint Groups Group] - 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_ strid - 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.
- accelerator
Id 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.
- endpoint
Group StringId - The ID of the Custom Routing Endpoint Group.
- listener
Id String - The ID of the custom routing listener.
- name
Regex String - output
File String - page
Number Number - page
Size Number - status String
- The status of the endpoint group.
Supporting Types
GetCustomRoutingEndpointGroupsGroup
- Accelerator
Id string - The ID of the GA instance.
- Custom
Routing stringEndpoint Group Name - The name of the endpoint group.
- Description string
- The description of the endpoint group.
- Endpoint
Group stringId - The ID of the endpoint group.
- Endpoint
Group List<string>Ip Lists - The list of endpoint group IP addresses.
- Endpoint
Group stringRegion - The ID of the region where the endpoint group is created.
- Endpoint
Group List<string>Unconfirmed Ip Lists - The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
- Id string
- The id of the Custom Routing Endpoint Group.
- Listener
Id string - The ID of the custom routing listener.
- Status string
- The status of the endpoint group. Valid Values:
init
,active
,updating
,deleting
.
- Accelerator
Id string - The ID of the GA instance.
- Custom
Routing stringEndpoint Group Name - The name of the endpoint group.
- Description string
- The description of the endpoint group.
- Endpoint
Group stringId - The ID of the endpoint group.
- Endpoint
Group []stringIp Lists - The list of endpoint group IP addresses.
- Endpoint
Group stringRegion - The ID of the region where the endpoint group is created.
- Endpoint
Group []stringUnconfirmed Ip Lists - The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
- Id string
- The id of the Custom Routing Endpoint Group.
- Listener
Id string - The ID of the custom routing listener.
- Status string
- The status of the endpoint group. Valid Values:
init
,active
,updating
,deleting
.
- accelerator
Id String - The ID of the GA instance.
- custom
Routing StringEndpoint Group Name - The name of the endpoint group.
- description String
- The description of the endpoint group.
- endpoint
Group StringId - The ID of the endpoint group.
- endpoint
Group List<String>Ip Lists - The list of endpoint group IP addresses.
- endpoint
Group StringRegion - The ID of the region where the endpoint group is created.
- endpoint
Group List<String>Unconfirmed Ip Lists - The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
- id String
- The id of the Custom Routing Endpoint Group.
- listener
Id String - The ID of the custom routing listener.
- status String
- The status of the endpoint group. Valid Values:
init
,active
,updating
,deleting
.
- accelerator
Id string - The ID of the GA instance.
- custom
Routing stringEndpoint Group Name - The name of the endpoint group.
- description string
- The description of the endpoint group.
- endpoint
Group stringId - The ID of the endpoint group.
- endpoint
Group string[]Ip Lists - The list of endpoint group IP addresses.
- endpoint
Group stringRegion - The ID of the region where the endpoint group is created.
- endpoint
Group string[]Unconfirmed Ip Lists - The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
- id string
- The id of the Custom Routing Endpoint Group.
- listener
Id 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_ strendpoint_ group_ name - The name of the endpoint group.
- description str
- The description of the endpoint group.
- endpoint_
group_ strid - The ID of the endpoint group.
- endpoint_
group_ Sequence[str]ip_ lists - The list of endpoint group IP addresses.
- endpoint_
group_ strregion - The ID of the region where the endpoint group is created.
- endpoint_
group_ Sequence[str]unconfirmed_ ip_ lists - 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
.
- accelerator
Id String - The ID of the GA instance.
- custom
Routing StringEndpoint Group Name - The name of the endpoint group.
- description String
- The description of the endpoint group.
- endpoint
Group StringId - The ID of the endpoint group.
- endpoint
Group List<String>Ip Lists - The list of endpoint group IP addresses.
- endpoint
Group StringRegion - The ID of the region where the endpoint group is created.
- endpoint
Group List<String>Unconfirmed Ip Lists - The endpoint group IP addresses to be confirmed after the GA instance is upgraded.
- id String
- The id of the Custom Routing Endpoint Group.
- listener
Id 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.