Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi
alicloud.ga.getBasicEndpoints
This data source provides the Global Accelerator (GA) Basic Endpoints of the current Alibaba Cloud user.
NOTE: Available since v1.194.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.ga.getBasicEndpoints({
ids: ["example_id"],
endpointGroupId: "example_id",
});
export const gaBasicEndpointsId1 = ids.then(ids => ids.endpoints?.[0]?.id);
const nameRegex = alicloud.ga.getBasicEndpoints({
nameRegex: "tf-example",
endpointGroupId: "example_id",
});
export const gaBasicEndpointsId2 = nameRegex.then(nameRegex => nameRegex.endpoints?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.ga.get_basic_endpoints(ids=["example_id"],
endpoint_group_id="example_id")
pulumi.export("gaBasicEndpointsId1", ids.endpoints[0].id)
name_regex = alicloud.ga.get_basic_endpoints(name_regex="tf-example",
endpoint_group_id="example_id")
pulumi.export("gaBasicEndpointsId2", name_regex.endpoints[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.GetBasicEndpoints(ctx, &ga.GetBasicEndpointsArgs{
Ids: []string{
"example_id",
},
EndpointGroupId: "example_id",
}, nil)
if err != nil {
return err
}
ctx.Export("gaBasicEndpointsId1", ids.Endpoints[0].Id)
nameRegex, err := ga.GetBasicEndpoints(ctx, &ga.GetBasicEndpointsArgs{
NameRegex: pulumi.StringRef("tf-example"),
EndpointGroupId: "example_id",
}, nil)
if err != nil {
return err
}
ctx.Export("gaBasicEndpointsId2", nameRegex.Endpoints[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.GetBasicEndpoints.Invoke(new()
{
Ids = new[]
{
"example_id",
},
EndpointGroupId = "example_id",
});
var nameRegex = AliCloud.Ga.GetBasicEndpoints.Invoke(new()
{
NameRegex = "tf-example",
EndpointGroupId = "example_id",
});
return new Dictionary<string, object?>
{
["gaBasicEndpointsId1"] = ids.Apply(getBasicEndpointsResult => getBasicEndpointsResult.Endpoints[0]?.Id),
["gaBasicEndpointsId2"] = nameRegex.Apply(getBasicEndpointsResult => getBasicEndpointsResult.Endpoints[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.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.endpoints()[0].id());
final var nameRegex = GaFunctions.getBasicEndpoints(GetBasicEndpointsArgs.builder()
.nameRegex("tf-example")
.endpointGroupId("example_id")
.build());
ctx.export("gaBasicEndpointsId2", nameRegex.endpoints()[0].id());
}
}
variables:
ids:
fn::invoke:
function: alicloud:ga:getBasicEndpoints
arguments:
ids:
- example_id
endpointGroupId: example_id
nameRegex:
fn::invoke:
function: alicloud:ga:getBasicEndpoints
arguments:
nameRegex: tf-example
endpointGroupId: example_id
outputs:
gaBasicEndpointsId1: ${ids.endpoints[0].id}
gaBasicEndpointsId2: ${nameRegex.endpoints[0].id}
Using getBasicEndpoints
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 getBasicEndpoints(args: GetBasicEndpointsArgs, opts?: InvokeOptions): Promise<GetBasicEndpointsResult>
function getBasicEndpointsOutput(args: GetBasicEndpointsOutputArgs, opts?: InvokeOptions): Output<GetBasicEndpointsResult>def get_basic_endpoints(endpoint_group_id: Optional[str] = None,
endpoint_id: Optional[str] = None,
endpoint_type: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBasicEndpointsResult
def get_basic_endpoints_output(endpoint_group_id: Optional[pulumi.Input[str]] = None,
endpoint_id: Optional[pulumi.Input[str]] = None,
endpoint_type: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: 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[GetBasicEndpointsResult]func GetBasicEndpoints(ctx *Context, args *GetBasicEndpointsArgs, opts ...InvokeOption) (*GetBasicEndpointsResult, error)
func GetBasicEndpointsOutput(ctx *Context, args *GetBasicEndpointsOutputArgs, opts ...InvokeOption) GetBasicEndpointsResultOutput> Note: This function is named GetBasicEndpoints in the Go SDK.
public static class GetBasicEndpoints
{
public static Task<GetBasicEndpointsResult> InvokeAsync(GetBasicEndpointsArgs args, InvokeOptions? opts = null)
public static Output<GetBasicEndpointsResult> Invoke(GetBasicEndpointsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBasicEndpointsResult> getBasicEndpoints(GetBasicEndpointsArgs args, InvokeOptions options)
public static Output<GetBasicEndpointsResult> getBasicEndpoints(GetBasicEndpointsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:ga/getBasicEndpoints:getBasicEndpoints
arguments:
# arguments dictionaryThe following arguments are supported:
- Endpoint
Group stringId - The ID of the Basic Endpoint Group.
- Endpoint
Id string - The ID of the Basic Endpoint.
- Endpoint
Type string - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - Ids List<string>
- A list of Global Accelerator Basic Endpoints IDs.
- Name string
- The name of the Basic Endpoint.
- Name
Regex string - A regex string to filter results by Global Accelerator Basic Endpoints name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- Endpoint
Group stringId - The ID of the Basic Endpoint Group.
- Endpoint
Id string - The ID of the Basic Endpoint.
- Endpoint
Type string - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - Ids []string
- A list of Global Accelerator Basic Endpoints IDs.
- Name string
- The name of the Basic Endpoint.
- Name
Regex string - A regex string to filter results by Global Accelerator Basic Endpoints name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- endpoint
Group StringId - The ID of the Basic Endpoint Group.
- endpoint
Id String - The ID of the Basic Endpoint.
- endpoint
Type String - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - ids List<String>
- A list of Global Accelerator Basic Endpoints IDs.
- name String
- The name of the Basic Endpoint.
- name
Regex String - A regex string to filter results by Global Accelerator Basic Endpoints name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- endpoint
Group stringId - The ID of the Basic Endpoint Group.
- endpoint
Id string - The ID of the Basic Endpoint.
- endpoint
Type string - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - ids string[]
- A list of Global Accelerator Basic Endpoints IDs.
- name string
- The name of the Basic Endpoint.
- name
Regex string - A regex string to filter results by Global Accelerator Basic Endpoints name.
- output
File string - File name where to save data source results (after running
pulumi preview). - status string
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- endpoint_
group_ strid - The ID of the Basic Endpoint Group.
- endpoint_
id str - The ID of the Basic Endpoint.
- endpoint_
type str - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - ids Sequence[str]
- A list of Global Accelerator Basic Endpoints IDs.
- name str
- The name of the Basic Endpoint.
- name_
regex str - A regex string to filter results by Global Accelerator Basic Endpoints name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - status str
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- endpoint
Group StringId - The ID of the Basic Endpoint Group.
- endpoint
Id String - The ID of the Basic Endpoint.
- endpoint
Type String - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - ids List<String>
- A list of Global Accelerator Basic Endpoints IDs.
- name String
- The name of the Basic Endpoint.
- name
Regex String - A regex string to filter results by Global Accelerator Basic Endpoints name.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
getBasicEndpoints Result
The following output properties are available:
- Endpoint
Group stringId - The ID of the Basic Endpoint Group.
- Endpoints
List<Pulumi.
Ali Cloud. Ga. Outputs. Get Basic Endpoints Endpoint> - A list of Global Accelerator Basic Endpoints. 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 Global Accelerator Basic Endpoint names.
- Endpoint
Id string - The ID of the Basic Endpoint.
- Endpoint
Type string - The type of the Basic Endpoint.
- Name string
- Name
Regex string - Output
File string - Status string
- The status of the Basic Endpoint.
- Endpoint
Group stringId - The ID of the Basic Endpoint Group.
- Endpoints
[]Get
Basic Endpoints Endpoint - A list of Global Accelerator Basic Endpoints. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Global Accelerator Basic Endpoint names.
- Endpoint
Id string - The ID of the Basic Endpoint.
- Endpoint
Type string - The type of the Basic Endpoint.
- Name string
- Name
Regex string - Output
File string - Status string
- The status of the Basic Endpoint.
- endpoint
Group StringId - The ID of the Basic Endpoint Group.
- endpoints
List<Get
Basic Endpoints Endpoint> - A list of Global Accelerator Basic Endpoints. 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 Global Accelerator Basic Endpoint names.
- endpoint
Id String - The ID of the Basic Endpoint.
- endpoint
Type String - The type of the Basic Endpoint.
- name String
- name
Regex String - output
File String - status String
- The status of the Basic Endpoint.
- endpoint
Group stringId - The ID of the Basic Endpoint Group.
- endpoints
Get
Basic Endpoints Endpoint[] - A list of Global Accelerator Basic Endpoints. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Global Accelerator Basic Endpoint names.
- endpoint
Id string - The ID of the Basic Endpoint.
- endpoint
Type string - The type of the Basic Endpoint.
- name string
- name
Regex string - output
File string - status string
- The status of the Basic Endpoint.
- endpoint_
group_ strid - The ID of the Basic Endpoint Group.
- endpoints
Sequence[Get
Basic Endpoints Endpoint] - A list of Global Accelerator Basic Endpoints. 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 Global Accelerator Basic Endpoint names.
- endpoint_
id str - The ID of the Basic Endpoint.
- endpoint_
type str - The type of the Basic Endpoint.
- name str
- name_
regex str - output_
file str - status str
- The status of the Basic Endpoint.
- endpoint
Group StringId - The ID of the Basic Endpoint Group.
- endpoints List<Property Map>
- A list of Global Accelerator Basic Endpoints. 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 Global Accelerator Basic Endpoint names.
- endpoint
Id String - The ID of the Basic Endpoint.
- endpoint
Type String - The type of the Basic Endpoint.
- name String
- name
Regex String - output
File String - status String
- The status of the Basic Endpoint.
Supporting Types
GetBasicEndpointsEndpoint
- Accelerator
Id string - The ID of the Global Accelerator Basic Accelerator instance.
- Basic
Endpoint stringName - The name of the Basic Endpoint.
- Endpoint
Address string - The address of the Basic Endpoint.
- Endpoint
Group stringId - The ID of the Basic Endpoint Group.
- Endpoint
Id string - The ID of the Basic Endpoint.
- Endpoint
Sub stringAddress - The sub address of the Basic Endpoint.
- Endpoint
Sub stringAddress Type - The sub address type of the Basic Endpoint.
- Endpoint
Type string - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - Endpoint
Zone stringId - The zone id of the Basic Endpoint.
- Id string
- The id of the Global Accelerator Basic Endpoint. It formats as
<endpoint_group_id>:<endpoint_id>. - Status string
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- Accelerator
Id string - The ID of the Global Accelerator Basic Accelerator instance.
- Basic
Endpoint stringName - The name of the Basic Endpoint.
- Endpoint
Address string - The address of the Basic Endpoint.
- Endpoint
Group stringId - The ID of the Basic Endpoint Group.
- Endpoint
Id string - The ID of the Basic Endpoint.
- Endpoint
Sub stringAddress - The sub address of the Basic Endpoint.
- Endpoint
Sub stringAddress Type - The sub address type of the Basic Endpoint.
- Endpoint
Type string - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - Endpoint
Zone stringId - The zone id of the Basic Endpoint.
- Id string
- The id of the Global Accelerator Basic Endpoint. It formats as
<endpoint_group_id>:<endpoint_id>. - Status string
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- accelerator
Id String - The ID of the Global Accelerator Basic Accelerator instance.
- basic
Endpoint StringName - The name of the Basic Endpoint.
- endpoint
Address String - The address of the Basic Endpoint.
- endpoint
Group StringId - The ID of the Basic Endpoint Group.
- endpoint
Id String - The ID of the Basic Endpoint.
- endpoint
Sub StringAddress - The sub address of the Basic Endpoint.
- endpoint
Sub StringAddress Type - The sub address type of the Basic Endpoint.
- endpoint
Type String - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - endpoint
Zone StringId - The zone id of the Basic Endpoint.
- id String
- The id of the Global Accelerator Basic Endpoint. It formats as
<endpoint_group_id>:<endpoint_id>. - status String
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- accelerator
Id string - The ID of the Global Accelerator Basic Accelerator instance.
- basic
Endpoint stringName - The name of the Basic Endpoint.
- endpoint
Address string - The address of the Basic Endpoint.
- endpoint
Group stringId - The ID of the Basic Endpoint Group.
- endpoint
Id string - The ID of the Basic Endpoint.
- endpoint
Sub stringAddress - The sub address of the Basic Endpoint.
- endpoint
Sub stringAddress Type - The sub address type of the Basic Endpoint.
- endpoint
Type string - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - endpoint
Zone stringId - The zone id of the Basic Endpoint.
- id string
- The id of the Global Accelerator Basic Endpoint. It formats as
<endpoint_group_id>:<endpoint_id>. - status string
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- accelerator_
id str - The ID of the Global Accelerator Basic Accelerator instance.
- basic_
endpoint_ strname - The name of the Basic Endpoint.
- endpoint_
address str - The address of the Basic Endpoint.
- endpoint_
group_ strid - The ID of the Basic Endpoint Group.
- endpoint_
id str - The ID of the Basic Endpoint.
- endpoint_
sub_ straddress - The sub address of the Basic Endpoint.
- endpoint_
sub_ straddress_ type - The sub address type of the Basic Endpoint.
- endpoint_
type str - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - endpoint_
zone_ strid - The zone id of the Basic Endpoint.
- id str
- The id of the Global Accelerator Basic Endpoint. It formats as
<endpoint_group_id>:<endpoint_id>. - status str
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
- accelerator
Id String - The ID of the Global Accelerator Basic Accelerator instance.
- basic
Endpoint StringName - The name of the Basic Endpoint.
- endpoint
Address String - The address of the Basic Endpoint.
- endpoint
Group StringId - The ID of the Basic Endpoint Group.
- endpoint
Id String - The ID of the Basic Endpoint.
- endpoint
Sub StringAddress - The sub address of the Basic Endpoint.
- endpoint
Sub StringAddress Type - The sub address type of the Basic Endpoint.
- endpoint
Type String - The type of the Basic Endpoint. Valid values:
ENI,SLB,ECSandNLB. - endpoint
Zone StringId - The zone id of the Basic Endpoint.
- id String
- The id of the Global Accelerator Basic Endpoint. It formats as
<endpoint_group_id>:<endpoint_id>. - status String
- The status of the Global Accelerator Basic Endpoint. Valid Value:
init,active,updating,binding,unbinding,deleting,bound.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
