getBasicEndpoints

This data source provides the Global Accelerator (GA) Basic Endpoints of the current Alibaba Cloud user.

NOTE: Available in v1.194.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.GetBasicEndpointsArgs;
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.getBasicEndpoints(GetBasicEndpointsArgs.builder()
.ids("example_id")
.endpointGroupId("example_id")
.build());
ctx.export("gaBasicEndpointsId1", ids.applyValue(getBasicEndpointsResult -> getBasicEndpointsResult.endpoints()[0].id()));
final var nameRegex = GaFunctions.getBasicEndpoints(GetBasicEndpointsArgs.builder()
.nameRegex("tf-example")
.endpointGroupId("example_id")
.build());
ctx.export("gaBasicEndpointsId2", nameRegex.applyValue(getBasicEndpointsResult -> getBasicEndpointsResult.endpoints()[0].id()));
}
}

Return

A collection of values returned by getBasicEndpoints.

Parameters

argument

A collection of arguments for invoking getBasicEndpoints.


suspend fun getBasicEndpoints(endpointGroupId: String, endpointId: String? = null, endpointType: String? = null, ids: List<String>? = null, name: String? = null, nameRegex: String? = null, outputFile: String? = null, status: String? = null): GetBasicEndpointsResult

Return

A collection of values returned by getBasicEndpoints.

See also

Parameters

endpointGroupId

The ID of the Basic Endpoint Group.

endpointId

The ID of the Basic Endpoint.

endpointType

The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.

ids

A list of Global Accelerator Basic Endpoints IDs.

name

The name of the Basic Endpoint.

nameRegex

A regex string to filter results by Global Accelerator Basic Endpoints name.

outputFile

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

status

The status of the Global Accelerator Basic Endpoint. Valid Value: init, active, updating, binding, unbinding, deleting, bound.


Return

A collection of values returned by getBasicEndpoints.

See also

Parameters

argument

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