1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. privatelink
  5. getVpcEndpoints
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.privatelink.getVpcEndpoints

Explore with Pulumi AI

Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

This data source provides the Privatelink Vpc Endpoints of the current Alibaba Cloud user.

NOTE: Available since v1.109.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.privatelink.getVpcEndpoints({
    ids: ["example_value"],
    nameRegex: "the_resource_name",
});
export const firstPrivatelinkVpcEndpointId = example.then(example => example.endpoints?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.privatelink.get_vpc_endpoints(ids=["example_value"],
    name_regex="the_resource_name")
pulumi.export("firstPrivatelinkVpcEndpointId", example.endpoints[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/privatelink"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := privatelink.GetVpcEndpoints(ctx, &privatelink.GetVpcEndpointsArgs{
			Ids: []string{
				"example_value",
			},
			NameRegex: pulumi.StringRef("the_resource_name"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstPrivatelinkVpcEndpointId", example.Endpoints[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = AliCloud.PrivateLink.GetVpcEndpoints.Invoke(new()
    {
        Ids = new[]
        {
            "example_value",
        },
        NameRegex = "the_resource_name",
    });

    return new Dictionary<string, object?>
    {
        ["firstPrivatelinkVpcEndpointId"] = example.Apply(getVpcEndpointsResult => getVpcEndpointsResult.Endpoints[0]?.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointsArgs;
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 = PrivatelinkFunctions.getVpcEndpoints(GetVpcEndpointsArgs.builder()
            .ids("example_value")
            .nameRegex("the_resource_name")
            .build());

        ctx.export("firstPrivatelinkVpcEndpointId", example.applyValue(getVpcEndpointsResult -> getVpcEndpointsResult.endpoints()[0].id()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: alicloud:privatelink:getVpcEndpoints
      arguments:
        ids:
          - example_value
        nameRegex: the_resource_name
outputs:
  firstPrivatelinkVpcEndpointId: ${example.endpoints[0].id}
Copy

Using getVpcEndpoints

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 getVpcEndpoints(args: GetVpcEndpointsArgs, opts?: InvokeOptions): Promise<GetVpcEndpointsResult>
function getVpcEndpointsOutput(args: GetVpcEndpointsOutputArgs, opts?: InvokeOptions): Output<GetVpcEndpointsResult>
Copy
def get_vpc_endpoints(connection_status: Optional[str] = None,
                      enable_details: Optional[bool] = None,
                      ids: Optional[Sequence[str]] = None,
                      name_regex: Optional[str] = None,
                      output_file: Optional[str] = None,
                      service_name: Optional[str] = None,
                      status: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      vpc_endpoint_name: Optional[str] = None,
                      vpc_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetVpcEndpointsResult
def get_vpc_endpoints_output(connection_status: Optional[pulumi.Input[str]] = None,
                      enable_details: Optional[pulumi.Input[bool]] = None,
                      ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      name_regex: Optional[pulumi.Input[str]] = None,
                      output_file: Optional[pulumi.Input[str]] = None,
                      service_name: Optional[pulumi.Input[str]] = None,
                      status: Optional[pulumi.Input[str]] = None,
                      tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                      vpc_endpoint_name: Optional[pulumi.Input[str]] = None,
                      vpc_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetVpcEndpointsResult]
Copy
func GetVpcEndpoints(ctx *Context, args *GetVpcEndpointsArgs, opts ...InvokeOption) (*GetVpcEndpointsResult, error)
func GetVpcEndpointsOutput(ctx *Context, args *GetVpcEndpointsOutputArgs, opts ...InvokeOption) GetVpcEndpointsResultOutput
Copy

> Note: This function is named GetVpcEndpoints in the Go SDK.

public static class GetVpcEndpoints 
{
    public static Task<GetVpcEndpointsResult> InvokeAsync(GetVpcEndpointsArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcEndpointsResult> Invoke(GetVpcEndpointsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVpcEndpointsResult> getVpcEndpoints(GetVpcEndpointsArgs args, InvokeOptions options)
public static Output<GetVpcEndpointsResult> getVpcEndpoints(GetVpcEndpointsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:privatelink/getVpcEndpoints:getVpcEndpoints
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ConnectionStatus Changes to this property will trigger replacement. string
The status of Connection.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. List<string>
A list of Vpc Endpoint IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Vpc Endpoint name.
OutputFile string
File name where to save data source results (after running pulumi preview).
ServiceName Changes to this property will trigger replacement. string
The name of the terminal node service associated with the terminal node.
Status Changes to this property will trigger replacement. string
The status of Vpc Endpoint.
Tags Dictionary<string, string>
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
VpcEndpointName Changes to this property will trigger replacement. string
The name of Vpc Endpoint.
VpcId Changes to this property will trigger replacement. string
The private network to which the terminal node belongs..
ConnectionStatus Changes to this property will trigger replacement. string
The status of Connection.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. []string
A list of Vpc Endpoint IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Vpc Endpoint name.
OutputFile string
File name where to save data source results (after running pulumi preview).
ServiceName Changes to this property will trigger replacement. string
The name of the terminal node service associated with the terminal node.
Status Changes to this property will trigger replacement. string
The status of Vpc Endpoint.
Tags map[string]string
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
VpcEndpointName Changes to this property will trigger replacement. string
The name of Vpc Endpoint.
VpcId Changes to this property will trigger replacement. string
The private network to which the terminal node belongs..
connectionStatus Changes to this property will trigger replacement. String
The status of Connection.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Vpc Endpoint IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Vpc Endpoint name.
outputFile String
File name where to save data source results (after running pulumi preview).
serviceName Changes to this property will trigger replacement. String
The name of the terminal node service associated with the terminal node.
status Changes to this property will trigger replacement. String
The status of Vpc Endpoint.
tags Map<String,String>
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
vpcEndpointName Changes to this property will trigger replacement. String
The name of Vpc Endpoint.
vpcId Changes to this property will trigger replacement. String
The private network to which the terminal node belongs..
connectionStatus Changes to this property will trigger replacement. string
The status of Connection.
enableDetails boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. string[]
A list of Vpc Endpoint IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Vpc Endpoint name.
outputFile string
File name where to save data source results (after running pulumi preview).
serviceName Changes to this property will trigger replacement. string
The name of the terminal node service associated with the terminal node.
status Changes to this property will trigger replacement. string
The status of Vpc Endpoint.
tags {[key: string]: string}
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
vpcEndpointName Changes to this property will trigger replacement. string
The name of Vpc Endpoint.
vpcId Changes to this property will trigger replacement. string
The private network to which the terminal node belongs..
connection_status Changes to this property will trigger replacement. str
The status of Connection.
enable_details bool
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Vpc Endpoint IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Vpc Endpoint name.
output_file str
File name where to save data source results (after running pulumi preview).
service_name Changes to this property will trigger replacement. str
The name of the terminal node service associated with the terminal node.
status Changes to this property will trigger replacement. str
The status of Vpc Endpoint.
tags Mapping[str, str]
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
vpc_endpoint_name Changes to this property will trigger replacement. str
The name of Vpc Endpoint.
vpc_id Changes to this property will trigger replacement. str
The private network to which the terminal node belongs..
connectionStatus Changes to this property will trigger replacement. String
The status of Connection.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Vpc Endpoint IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Vpc Endpoint name.
outputFile String
File name where to save data source results (after running pulumi preview).
serviceName Changes to this property will trigger replacement. String
The name of the terminal node service associated with the terminal node.
status Changes to this property will trigger replacement. String
The status of Vpc Endpoint.
tags Map<String>
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
vpcEndpointName Changes to this property will trigger replacement. String
The name of Vpc Endpoint.
vpcId Changes to this property will trigger replacement. String
The private network to which the terminal node belongs..

getVpcEndpoints Result

The following output properties are available:

Endpoints List<Pulumi.AliCloud.PrivateLink.Outputs.GetVpcEndpointsEndpoint>
A list of Privatelink Vpc 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 Vpc Endpoint names.
ConnectionStatus string
The status of Connection.
EnableDetails bool
NameRegex string
OutputFile string
ServiceName string
The name of the terminal node service associated with the terminal node.
Status string
The status of Vpc Endpoint.
Tags Dictionary<string, string>
Tag tags of Vpc Endpoint.
VpcEndpointName string
The name of Vpc Endpoint.
VpcId string
The private network to which the terminal node belongs.
Endpoints []GetVpcEndpointsEndpoint
A list of Privatelink Vpc 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 Vpc Endpoint names.
ConnectionStatus string
The status of Connection.
EnableDetails bool
NameRegex string
OutputFile string
ServiceName string
The name of the terminal node service associated with the terminal node.
Status string
The status of Vpc Endpoint.
Tags map[string]string
Tag tags of Vpc Endpoint.
VpcEndpointName string
The name of Vpc Endpoint.
VpcId string
The private network to which the terminal node belongs.
endpoints List<GetVpcEndpointsEndpoint>
A list of Privatelink Vpc 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 Vpc Endpoint names.
connectionStatus String
The status of Connection.
enableDetails Boolean
nameRegex String
outputFile String
serviceName String
The name of the terminal node service associated with the terminal node.
status String
The status of Vpc Endpoint.
tags Map<String,String>
Tag tags of Vpc Endpoint.
vpcEndpointName String
The name of Vpc Endpoint.
vpcId String
The private network to which the terminal node belongs.
endpoints GetVpcEndpointsEndpoint[]
A list of Privatelink Vpc 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 Vpc Endpoint names.
connectionStatus string
The status of Connection.
enableDetails boolean
nameRegex string
outputFile string
serviceName string
The name of the terminal node service associated with the terminal node.
status string
The status of Vpc Endpoint.
tags {[key: string]: string}
Tag tags of Vpc Endpoint.
vpcEndpointName string
The name of Vpc Endpoint.
vpcId string
The private network to which the terminal node belongs.
endpoints Sequence[GetVpcEndpointsEndpoint]
A list of Privatelink Vpc 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 Vpc Endpoint names.
connection_status str
The status of Connection.
enable_details bool
name_regex str
output_file str
service_name str
The name of the terminal node service associated with the terminal node.
status str
The status of Vpc Endpoint.
tags Mapping[str, str]
Tag tags of Vpc Endpoint.
vpc_endpoint_name str
The name of Vpc Endpoint.
vpc_id str
The private network to which the terminal node belongs.
endpoints List<Property Map>
A list of Privatelink Vpc 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 Vpc Endpoint names.
connectionStatus String
The status of Connection.
enableDetails Boolean
nameRegex String
outputFile String
serviceName String
The name of the terminal node service associated with the terminal node.
status String
The status of Vpc Endpoint.
tags Map<String>
Tag tags of Vpc Endpoint.
vpcEndpointName String
The name of Vpc Endpoint.
vpcId String
The private network to which the terminal node belongs.

Supporting Types

GetVpcEndpointsEndpoint

Bandwidth This property is required. int
The Bandwidth.
ConnectionStatus This property is required. string
The status of Connection.
EndpointBusinessStatus This property is required. string
The status of Endpoint Business.
EndpointDescription This property is required. string
The description of Vpc Endpoint.
EndpointDomain This property is required. string
The Endpoint Domain.
EndpointId This property is required. string
The ID of the Vpc Endpoint.
Id This property is required. string
The ID of the Vpc Endpoint.
SecurityGroupIds This property is required. List<string>
The security group associated with the terminal node network card.
ServiceId This property is required. string
The terminal node service associated with the terminal node.
ServiceName This property is required. string
The name of the terminal node service associated with the terminal node.
Status This property is required. string
The status of Vpc Endpoint.
Tags This property is required. Dictionary<string, string>
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
VpcEndpointName This property is required. string
The name of Vpc Endpoint.
VpcId This property is required. string
The private network to which the terminal node belongs..
Bandwidth This property is required. int
The Bandwidth.
ConnectionStatus This property is required. string
The status of Connection.
EndpointBusinessStatus This property is required. string
The status of Endpoint Business.
EndpointDescription This property is required. string
The description of Vpc Endpoint.
EndpointDomain This property is required. string
The Endpoint Domain.
EndpointId This property is required. string
The ID of the Vpc Endpoint.
Id This property is required. string
The ID of the Vpc Endpoint.
SecurityGroupIds This property is required. []string
The security group associated with the terminal node network card.
ServiceId This property is required. string
The terminal node service associated with the terminal node.
ServiceName This property is required. string
The name of the terminal node service associated with the terminal node.
Status This property is required. string
The status of Vpc Endpoint.
Tags This property is required. map[string]string
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
VpcEndpointName This property is required. string
The name of Vpc Endpoint.
VpcId This property is required. string
The private network to which the terminal node belongs..
bandwidth This property is required. Integer
The Bandwidth.
connectionStatus This property is required. String
The status of Connection.
endpointBusinessStatus This property is required. String
The status of Endpoint Business.
endpointDescription This property is required. String
The description of Vpc Endpoint.
endpointDomain This property is required. String
The Endpoint Domain.
endpointId This property is required. String
The ID of the Vpc Endpoint.
id This property is required. String
The ID of the Vpc Endpoint.
securityGroupIds This property is required. List<String>
The security group associated with the terminal node network card.
serviceId This property is required. String
The terminal node service associated with the terminal node.
serviceName This property is required. String
The name of the terminal node service associated with the terminal node.
status This property is required. String
The status of Vpc Endpoint.
tags This property is required. Map<String,String>
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
vpcEndpointName This property is required. String
The name of Vpc Endpoint.
vpcId This property is required. String
The private network to which the terminal node belongs..
bandwidth This property is required. number
The Bandwidth.
connectionStatus This property is required. string
The status of Connection.
endpointBusinessStatus This property is required. string
The status of Endpoint Business.
endpointDescription This property is required. string
The description of Vpc Endpoint.
endpointDomain This property is required. string
The Endpoint Domain.
endpointId This property is required. string
The ID of the Vpc Endpoint.
id This property is required. string
The ID of the Vpc Endpoint.
securityGroupIds This property is required. string[]
The security group associated with the terminal node network card.
serviceId This property is required. string
The terminal node service associated with the terminal node.
serviceName This property is required. string
The name of the terminal node service associated with the terminal node.
status This property is required. string
The status of Vpc Endpoint.
tags This property is required. {[key: string]: string}
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
vpcEndpointName This property is required. string
The name of Vpc Endpoint.
vpcId This property is required. string
The private network to which the terminal node belongs..
bandwidth This property is required. int
The Bandwidth.
connection_status This property is required. str
The status of Connection.
endpoint_business_status This property is required. str
The status of Endpoint Business.
endpoint_description This property is required. str
The description of Vpc Endpoint.
endpoint_domain This property is required. str
The Endpoint Domain.
endpoint_id This property is required. str
The ID of the Vpc Endpoint.
id This property is required. str
The ID of the Vpc Endpoint.
security_group_ids This property is required. Sequence[str]
The security group associated with the terminal node network card.
service_id This property is required. str
The terminal node service associated with the terminal node.
service_name This property is required. str
The name of the terminal node service associated with the terminal node.
status This property is required. str
The status of Vpc Endpoint.
tags This property is required. Mapping[str, str]
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
vpc_endpoint_name This property is required. str
The name of Vpc Endpoint.
vpc_id This property is required. str
The private network to which the terminal node belongs..
bandwidth This property is required. Number
The Bandwidth.
connectionStatus This property is required. String
The status of Connection.
endpointBusinessStatus This property is required. String
The status of Endpoint Business.
endpointDescription This property is required. String
The description of Vpc Endpoint.
endpointDomain This property is required. String
The Endpoint Domain.
endpointId This property is required. String
The ID of the Vpc Endpoint.
id This property is required. String
The ID of the Vpc Endpoint.
securityGroupIds This property is required. List<String>
The security group associated with the terminal node network card.
serviceId This property is required. String
The terminal node service associated with the terminal node.
serviceName This property is required. String
The name of the terminal node service associated with the terminal node.
status This property is required. String
The status of Vpc Endpoint.
tags This property is required. Map<String>
Query the instance bound to the tag. The format of the incoming value is json string, including TagKey and TagValue. TagKey cannot be null, and TagValue can be empty. Format example {"key1":"value1"}.
vpcEndpointName This property is required. String
The name of Vpc Endpoint.
vpcId This property is required. String
The private network to which the terminal node belongs..

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi