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

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()));
}
}

Return

A collection of values returned by getEndpointGroups.

Parameters

argument

A collection of arguments for invoking getEndpointGroups.


suspend fun getEndpointGroups(acceleratorId: String, endpointGroupType: String? = null, ids: List<String>? = null, listenerId: String? = null, nameRegex: String? = null, outputFile: String? = null, status: String? = null): GetEndpointGroupsResult

Return

A collection of values returned by getEndpointGroups.

See also

Parameters

acceleratorId

The ID of the Global Accelerator instance to which the endpoint group will be added.

endpointGroupType

The endpoint group type. Valid values: default, virtual. Default value is default.

ids

A list of Endpoint Group IDs.

listenerId

The ID of the listener that is associated with the endpoint group.

nameRegex

A regex string to filter results by Endpoint Group name.

outputFile

File name where to save data source results (after running pulumi preview).

status

The status of the endpoint group.


Return

A collection of values returned by getEndpointGroups.

See also

Parameters

argument

Builder for com.pulumi.alicloud.ga.kotlin.inputs.GetEndpointGroupsPlainArgs.