alicloud.ga.getEndpointGroups
This data source provides the Global Accelerator (GA) Endpoint Groups of the current Alibaba Cloud user.
NOTE: Available in v1.113.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Ga.GetEndpointGroups.Invoke(new()
{
AcceleratorId = "example_value",
Ids = new[]
{
"example_value",
},
NameRegex = "the_resource_name",
});
return new Dictionary<string, object?>
{
["firstGaEndpointGroupId"] = example.Apply(getEndpointGroupsResult => getEndpointGroupsResult.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 {
example, err := ga.GetEndpointGroups(ctx, &ga.GetEndpointGroupsArgs{
AcceleratorId: "example_value",
Ids: []string{
"example_value",
},
NameRegex: pulumi.StringRef("the_resource_name"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstGaEndpointGroupId", example.Groups[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.GetEndpointGroupsArgs;
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 example = GaFunctions.getEndpointGroups(GetEndpointGroupsArgs.builder()
.acceleratorId("example_value")
.ids("example_value")
.nameRegex("the_resource_name")
.build());
ctx.export("firstGaEndpointGroupId", example.applyValue(getEndpointGroupsResult -> getEndpointGroupsResult.groups()[0].id()));
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.ga.get_endpoint_groups(accelerator_id="example_value",
ids=["example_value"],
name_regex="the_resource_name")
pulumi.export("firstGaEndpointGroupId", example.groups[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.ga.getEndpointGroups({
acceleratorId: "example_value",
ids: ["example_value"],
nameRegex: "the_resource_name",
});
export const firstGaEndpointGroupId = example.then(example => example.groups?.[0]?.id);
variables:
example:
fn::invoke:
Function: alicloud:ga:getEndpointGroups
Arguments:
acceleratorId: example_value
ids:
- example_value
nameRegex: the_resource_name
outputs:
firstGaEndpointGroupId: ${example.groups[0].id}
Using getEndpointGroups
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 getEndpointGroups(args: GetEndpointGroupsArgs, opts?: InvokeOptions): Promise<GetEndpointGroupsResult>
function getEndpointGroupsOutput(args: GetEndpointGroupsOutputArgs, opts?: InvokeOptions): Output<GetEndpointGroupsResult>
def get_endpoint_groups(accelerator_id: Optional[str] = None,
endpoint_group_type: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
listener_id: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEndpointGroupsResult
def get_endpoint_groups_output(accelerator_id: Optional[pulumi.Input[str]] = None,
endpoint_group_type: 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,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEndpointGroupsResult]
func GetEndpointGroups(ctx *Context, args *GetEndpointGroupsArgs, opts ...InvokeOption) (*GetEndpointGroupsResult, error)
func GetEndpointGroupsOutput(ctx *Context, args *GetEndpointGroupsOutputArgs, opts ...InvokeOption) GetEndpointGroupsResultOutput
> Note: This function is named GetEndpointGroups
in the Go SDK.
public static class GetEndpointGroups
{
public static Task<GetEndpointGroupsResult> InvokeAsync(GetEndpointGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetEndpointGroupsResult> Invoke(GetEndpointGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEndpointGroupsResult> getEndpointGroups(GetEndpointGroupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ga/getEndpointGroups:getEndpointGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Accelerator
Id string The ID of the Global Accelerator instance to which the endpoint group will be added.
- Endpoint
Group stringType The endpoint group type. Valid values:
default
,virtual
. Default value isdefault
.- Ids List<string>
A list of Endpoint Group IDs.
- Listener
Id string The ID of the listener that is associated with the endpoint group.
- Name
Regex string A regex string to filter results by Endpoint Group name.
- Output
File string - Status string
The status of the endpoint group.
- Accelerator
Id string The ID of the Global Accelerator instance to which the endpoint group will be added.
- Endpoint
Group stringType The endpoint group type. Valid values:
default
,virtual
. Default value isdefault
.- Ids []string
A list of Endpoint Group IDs.
- Listener
Id string The ID of the listener that is associated with the endpoint group.
- Name
Regex string A regex string to filter results by Endpoint Group name.
- Output
File string - Status string
The status of the endpoint group.
- accelerator
Id String The ID of the Global Accelerator instance to which the endpoint group will be added.
- endpoint
Group StringType The endpoint group type. Valid values:
default
,virtual
. Default value isdefault
.- ids List<String>
A list of Endpoint Group IDs.
- listener
Id String The ID of the listener that is associated with the endpoint group.
- name
Regex String A regex string to filter results by Endpoint Group name.
- output
File String - status String
The status of the endpoint group.
- accelerator
Id string The ID of the Global Accelerator instance to which the endpoint group will be added.
- endpoint
Group stringType The endpoint group type. Valid values:
default
,virtual
. Default value isdefault
.- ids string[]
A list of Endpoint Group IDs.
- listener
Id string The ID of the listener that is associated with the endpoint group.
- name
Regex string A regex string to filter results by Endpoint Group name.
- output
File string - status string
The status of the endpoint group.
- accelerator_
id str The ID of the Global Accelerator instance to which the endpoint group will be added.
- endpoint_
group_ strtype The endpoint group type. Valid values:
default
,virtual
. Default value isdefault
.- ids Sequence[str]
A list of Endpoint Group IDs.
- listener_
id str The ID of the listener that is associated with the endpoint group.
- name_
regex str A regex string to filter results by Endpoint Group name.
- output_
file str - status str
The status of the endpoint group.
- accelerator
Id String The ID of the Global Accelerator instance to which the endpoint group will be added.
- endpoint
Group StringType The endpoint group type. Valid values:
default
,virtual
. Default value isdefault
.- ids List<String>
A list of Endpoint Group IDs.
- listener
Id String The ID of the listener that is associated with the endpoint group.
- name
Regex String A regex string to filter results by Endpoint Group name.
- output
File String - status String
The status of the endpoint group.
getEndpointGroups Result
The following output properties are available:
- Accelerator
Id string - Groups
List<Pulumi.
Ali Cloud. Ga. Outputs. Get Endpoint Groups Group> - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Endpoint
Group stringType - Listener
Id string - Name
Regex string - Output
File string - Status string
- Accelerator
Id string - Groups
[]Get
Endpoint Groups Group - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Endpoint
Group stringType - Listener
Id string - Name
Regex string - Output
File string - Status string
- accelerator
Id String - groups
List<Get
Endpoint Groups Group> - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- endpoint
Group StringType - listener
Id String - name
Regex String - output
File String - status String
- accelerator
Id string - groups
Get
Endpoint Groups Group[] - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- endpoint
Group stringType - listener
Id string - name
Regex string - output
File string - status string
- accelerator_
id str - groups
Sequence[Get
Endpoint Groups Group] - id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- endpoint_
group_ strtype - listener_
id str - name_
regex str - output_
file str - status str
- accelerator
Id String - groups List<Property Map>
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- endpoint
Group StringType - listener
Id String - name
Regex String - output
File String - status String
Supporting Types
GetEndpointGroupsGroup
- Description string
The description of the endpoint group.
- Endpoint
Configurations List<Pulumi.Ali Cloud. Ga. Inputs. Get Endpoint Groups Group Endpoint Configuration> The endpointConfigurations of the endpoint group.
- Endpoint
Group stringId The endpoint_group_id of the Endpoint Group.
- Endpoint
Group stringRegion The ID of the region where the endpoint group is deployed.
- Health
Check intInterval Seconds The interval between two consecutive health checks. Unit: seconds.
- Health
Check stringPath The path specified as the destination of the targets for health checks.
- Health
Check intPort The port that is used for health checks.
- Health
Check stringProtocol The protocol that is used to connect to the targets for health checks.
- Id string
The ID of the Endpoint Group.
- Listener
Id string The ID of the listener that is associated with the endpoint group.
- Name string
The name of the endpoint group.
- Port
Overrides List<Pulumi.Ali Cloud. Ga. Inputs. Get Endpoint Groups Group Port Override> Mapping between listening port and forwarding port of boarding point.
- Status string
The status of the endpoint group.
- Threshold
Count int The number of consecutive failed heath checks that must occur before the endpoint is deemed unhealthy.
- Traffic
Percentage int The weight of the endpoint group when the corresponding listener is associated with multiple endpoint groups.
- Description string
The description of the endpoint group.
- Endpoint
Configurations []GetEndpoint Groups Group Endpoint Configuration The endpointConfigurations of the endpoint group.
- Endpoint
Group stringId The endpoint_group_id of the Endpoint Group.
- Endpoint
Group stringRegion The ID of the region where the endpoint group is deployed.
- Health
Check intInterval Seconds The interval between two consecutive health checks. Unit: seconds.
- Health
Check stringPath The path specified as the destination of the targets for health checks.
- Health
Check intPort The port that is used for health checks.
- Health
Check stringProtocol The protocol that is used to connect to the targets for health checks.
- Id string
The ID of the Endpoint Group.
- Listener
Id string The ID of the listener that is associated with the endpoint group.
- Name string
The name of the endpoint group.
- Port
Overrides []GetEndpoint Groups Group Port Override Mapping between listening port and forwarding port of boarding point.
- Status string
The status of the endpoint group.
- Threshold
Count int The number of consecutive failed heath checks that must occur before the endpoint is deemed unhealthy.
- Traffic
Percentage int The weight of the endpoint group when the corresponding listener is associated with multiple endpoint groups.
- description String
The description of the endpoint group.
- endpoint
Configurations List<GetEndpoint Groups Group Endpoint Configuration> The endpointConfigurations of the endpoint group.
- endpoint
Group StringId The endpoint_group_id of the Endpoint Group.
- endpoint
Group StringRegion The ID of the region where the endpoint group is deployed.
- health
Check IntegerInterval Seconds The interval between two consecutive health checks. Unit: seconds.
- health
Check StringPath The path specified as the destination of the targets for health checks.
- health
Check IntegerPort The port that is used for health checks.
- health
Check StringProtocol The protocol that is used to connect to the targets for health checks.
- id String
The ID of the Endpoint Group.
- listener
Id String The ID of the listener that is associated with the endpoint group.
- name String
The name of the endpoint group.
- port
Overrides List<GetEndpoint Groups Group Port Override> Mapping between listening port and forwarding port of boarding point.
- status String
The status of the endpoint group.
- threshold
Count Integer The number of consecutive failed heath checks that must occur before the endpoint is deemed unhealthy.
- traffic
Percentage Integer The weight of the endpoint group when the corresponding listener is associated with multiple endpoint groups.
- description string
The description of the endpoint group.
- endpoint
Configurations GetEndpoint Groups Group Endpoint Configuration[] The endpointConfigurations of the endpoint group.
- endpoint
Group stringId The endpoint_group_id of the Endpoint Group.
- endpoint
Group stringRegion The ID of the region where the endpoint group is deployed.
- health
Check numberInterval Seconds The interval between two consecutive health checks. Unit: seconds.
- health
Check stringPath The path specified as the destination of the targets for health checks.
- health
Check numberPort The port that is used for health checks.
- health
Check stringProtocol The protocol that is used to connect to the targets for health checks.
- id string
The ID of the Endpoint Group.
- listener
Id string The ID of the listener that is associated with the endpoint group.
- name string
The name of the endpoint group.
- port
Overrides GetEndpoint Groups Group Port Override[] Mapping between listening port and forwarding port of boarding point.
- status string
The status of the endpoint group.
- threshold
Count number The number of consecutive failed heath checks that must occur before the endpoint is deemed unhealthy.
- traffic
Percentage number The weight of the endpoint group when the corresponding listener is associated with multiple endpoint groups.
- description str
The description of the endpoint group.
- endpoint_
configurations Sequence[GetEndpoint Groups Group Endpoint Configuration] The endpointConfigurations of the endpoint group.
- endpoint_
group_ strid The endpoint_group_id of the Endpoint Group.
- endpoint_
group_ strregion The ID of the region where the endpoint group is deployed.
- health_
check_ intinterval_ seconds The interval between two consecutive health checks. Unit: seconds.
- health_
check_ strpath The path specified as the destination of the targets for health checks.
- health_
check_ intport The port that is used for health checks.
- health_
check_ strprotocol The protocol that is used to connect to the targets for health checks.
- id str
The ID of the Endpoint Group.
- listener_
id str The ID of the listener that is associated with the endpoint group.
- name str
The name of the endpoint group.
- port_
overrides Sequence[GetEndpoint Groups Group Port Override] Mapping between listening port and forwarding port of boarding point.
- status str
The status of the endpoint group.
- threshold_
count int The number of consecutive failed heath checks that must occur before the endpoint is deemed unhealthy.
- traffic_
percentage int The weight of the endpoint group when the corresponding listener is associated with multiple endpoint groups.
- description String
The description of the endpoint group.
- endpoint
Configurations List<Property Map> The endpointConfigurations of the endpoint group.
- endpoint
Group StringId The endpoint_group_id of the Endpoint Group.
- endpoint
Group StringRegion The ID of the region where the endpoint group is deployed.
- health
Check NumberInterval Seconds The interval between two consecutive health checks. Unit: seconds.
- health
Check StringPath The path specified as the destination of the targets for health checks.
- health
Check NumberPort The port that is used for health checks.
- health
Check StringProtocol The protocol that is used to connect to the targets for health checks.
- id String
The ID of the Endpoint Group.
- listener
Id String The ID of the listener that is associated with the endpoint group.
- name String
The name of the endpoint group.
- port
Overrides List<Property Map> Mapping between listening port and forwarding port of boarding point.
- status String
The status of the endpoint group.
- threshold
Count Number The number of consecutive failed heath checks that must occur before the endpoint is deemed unhealthy.
- traffic
Percentage Number The weight of the endpoint group when the corresponding listener is associated with multiple endpoint groups.
GetEndpointGroupsGroupEndpointConfiguration
- Enable
Clientip boolPreservation Indicates whether client IP addresses are reserved.
- Endpoint string
The IP address or domain name of Endpoint N in the endpoint group.
- Probe
Port int Probe Port.
- Probe
Protocol string Probe Protocol.
- Type string
The type of Endpoint N in the endpoint group.
- Weight int
The weight of Endpoint N in the endpoint group.
- Enable
Clientip boolPreservation Indicates whether client IP addresses are reserved.
- Endpoint string
The IP address or domain name of Endpoint N in the endpoint group.
- Probe
Port int Probe Port.
- Probe
Protocol string Probe Protocol.
- Type string
The type of Endpoint N in the endpoint group.
- Weight int
The weight of Endpoint N in the endpoint group.
- enable
Clientip BooleanPreservation Indicates whether client IP addresses are reserved.
- endpoint String
The IP address or domain name of Endpoint N in the endpoint group.
- probe
Port Integer Probe Port.
- probe
Protocol String Probe Protocol.
- type String
The type of Endpoint N in the endpoint group.
- weight Integer
The weight of Endpoint N in the endpoint group.
- enable
Clientip booleanPreservation Indicates whether client IP addresses are reserved.
- endpoint string
The IP address or domain name of Endpoint N in the endpoint group.
- probe
Port number Probe Port.
- probe
Protocol string Probe Protocol.
- type string
The type of Endpoint N in the endpoint group.
- weight number
The weight of Endpoint N in the endpoint group.
- enable_
clientip_ boolpreservation Indicates whether client IP addresses are reserved.
- endpoint str
The IP address or domain name of Endpoint N in the endpoint group.
- probe_
port int Probe Port.
- probe_
protocol str Probe Protocol.
- type str
The type of Endpoint N in the endpoint group.
- weight int
The weight of Endpoint N in the endpoint group.
- enable
Clientip BooleanPreservation Indicates whether client IP addresses are reserved.
- endpoint String
The IP address or domain name of Endpoint N in the endpoint group.
- probe
Port Number Probe Port.
- probe
Protocol String Probe Protocol.
- type String
The type of Endpoint N in the endpoint group.
- weight Number
The weight of Endpoint N in the endpoint group.
GetEndpointGroupsGroupPortOverride
- Endpoint
Port int Forwarding port.
- Listener
Port int Listener port.
- Endpoint
Port int Forwarding port.
- Listener
Port int Listener port.
- endpoint
Port Integer Forwarding port.
- listener
Port Integer Listener port.
- endpoint
Port number Forwarding port.
- listener
Port number Listener port.
- endpoint_
port int Forwarding port.
- listener_
port int Listener port.
- endpoint
Port Number Forwarding port.
- listener
Port Number Listener port.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.