Alibaba Cloud v3.87.0 published on Saturday, Oct 18, 2025 by Pulumi
alicloud.privatelink.getVpcEndpointConnections
This data source provides the Privatelink Vpc Endpoint Connections of the current Alibaba Cloud user.
NOTE: Available since v1.110.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.privatelink.getVpcEndpointConnections({
serviceId: "example_value",
status: "Connected",
});
export const firstPrivatelinkVpcEndpointConnectionId = example.then(example => example.connections?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.privatelink.get_vpc_endpoint_connections(service_id="example_value",
status="Connected")
pulumi.export("firstPrivatelinkVpcEndpointConnectionId", example.connections[0].id)
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.GetVpcEndpointConnections(ctx, &privatelink.GetVpcEndpointConnectionsArgs{
ServiceId: "example_value",
Status: pulumi.StringRef("Connected"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstPrivatelinkVpcEndpointConnectionId", example.Connections[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.PrivateLink.GetVpcEndpointConnections.Invoke(new()
{
ServiceId = "example_value",
Status = "Connected",
});
return new Dictionary<string, object?>
{
["firstPrivatelinkVpcEndpointConnectionId"] = example.Apply(getVpcEndpointConnectionsResult => getVpcEndpointConnectionsResult.Connections[0]?.Id),
};
});
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.GetVpcEndpointConnectionsArgs;
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.getVpcEndpointConnections(GetVpcEndpointConnectionsArgs.builder()
.serviceId("example_value")
.status("Connected")
.build());
ctx.export("firstPrivatelinkVpcEndpointConnectionId", example.connections()[0].id());
}
}
variables:
example:
fn::invoke:
function: alicloud:privatelink:getVpcEndpointConnections
arguments:
serviceId: example_value
status: Connected
outputs:
firstPrivatelinkVpcEndpointConnectionId: ${example.connections[0].id}
Using getVpcEndpointConnections
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 getVpcEndpointConnections(args: GetVpcEndpointConnectionsArgs, opts?: InvokeOptions): Promise<GetVpcEndpointConnectionsResult>
function getVpcEndpointConnectionsOutput(args: GetVpcEndpointConnectionsOutputArgs, opts?: InvokeOptions): Output<GetVpcEndpointConnectionsResult>def get_vpc_endpoint_connections(endpoint_id: Optional[str] = None,
endpoint_owner_id: Optional[int] = None,
output_file: Optional[str] = None,
service_id: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcEndpointConnectionsResult
def get_vpc_endpoint_connections_output(endpoint_id: Optional[pulumi.Input[str]] = None,
endpoint_owner_id: Optional[pulumi.Input[int]] = None,
output_file: Optional[pulumi.Input[str]] = None,
service_id: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcEndpointConnectionsResult]func GetVpcEndpointConnections(ctx *Context, args *GetVpcEndpointConnectionsArgs, opts ...InvokeOption) (*GetVpcEndpointConnectionsResult, error)
func GetVpcEndpointConnectionsOutput(ctx *Context, args *GetVpcEndpointConnectionsOutputArgs, opts ...InvokeOption) GetVpcEndpointConnectionsResultOutput> Note: This function is named GetVpcEndpointConnections in the Go SDK.
public static class GetVpcEndpointConnections
{
public static Task<GetVpcEndpointConnectionsResult> InvokeAsync(GetVpcEndpointConnectionsArgs args, InvokeOptions? opts = null)
public static Output<GetVpcEndpointConnectionsResult> Invoke(GetVpcEndpointConnectionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpcEndpointConnectionsResult> getVpcEndpointConnections(GetVpcEndpointConnectionsArgs args, InvokeOptions options)
public static Output<GetVpcEndpointConnectionsResult> getVpcEndpointConnections(GetVpcEndpointConnectionsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:privatelink/getVpcEndpointConnections:getVpcEndpointConnections
arguments:
# arguments dictionaryThe following arguments are supported:
- Service
Id string - The ID of the Vpc Endpoint Service.
- Endpoint
Id string - The ID of the Vpc Endpoint.
- Endpoint
Owner intId - The endpoint owner id.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- Service
Id string - The ID of the Vpc Endpoint Service.
- Endpoint
Id string - The ID of the Vpc Endpoint.
- Endpoint
Owner intId - The endpoint owner id.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- service
Id String - The ID of the Vpc Endpoint Service.
- endpoint
Id String - The ID of the Vpc Endpoint.
- endpoint
Owner IntegerId - The endpoint owner id.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- service
Id string - The ID of the Vpc Endpoint Service.
- endpoint
Id string - The ID of the Vpc Endpoint.
- endpoint
Owner numberId - The endpoint owner id.
- output
File string - File name where to save data source results (after running
pulumi preview). - status string
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- service_
id str - The ID of the Vpc Endpoint Service.
- endpoint_
id str - The ID of the Vpc Endpoint.
- endpoint_
owner_ intid - The endpoint owner id.
- output_
file str - File name where to save data source results (after running
pulumi preview). - status str
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- service
Id String - The ID of the Vpc Endpoint Service.
- endpoint
Id String - The ID of the Vpc Endpoint.
- endpoint
Owner NumberId - The endpoint owner id.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
getVpcEndpointConnections Result
The following output properties are available:
- Connections
List<Pulumi.
Ali Cloud. Private Link. Outputs. Get Vpc Endpoint Connections Connection> - A list of Privatelink Vpc Endpoint Connections. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Vpc Endpoint Connection IDs.
- Service
Id string - Endpoint
Id string - The ID of the Vpc Endpoint.
- Endpoint
Owner intId - Output
File string - Status string
- The status of Vpc Endpoint Connection.
- Connections
[]Get
Vpc Endpoint Connections Connection - A list of Privatelink Vpc Endpoint Connections. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Vpc Endpoint Connection IDs.
- Service
Id string - Endpoint
Id string - The ID of the Vpc Endpoint.
- Endpoint
Owner intId - Output
File string - Status string
- The status of Vpc Endpoint Connection.
- connections
List<Get
Vpc Endpoint Connections Connection> - A list of Privatelink Vpc Endpoint Connections. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Vpc Endpoint Connection IDs.
- service
Id String - endpoint
Id String - The ID of the Vpc Endpoint.
- endpoint
Owner IntegerId - output
File String - status String
- The status of Vpc Endpoint Connection.
- connections
Get
Vpc Endpoint Connections Connection[] - A list of Privatelink Vpc Endpoint Connections. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Vpc Endpoint Connection IDs.
- service
Id string - endpoint
Id string - The ID of the Vpc Endpoint.
- endpoint
Owner numberId - output
File string - status string
- The status of Vpc Endpoint Connection.
- connections
Sequence[Get
Vpc Endpoint Connections Connection] - A list of Privatelink Vpc Endpoint Connections. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Vpc Endpoint Connection IDs.
- service_
id str - endpoint_
id str - The ID of the Vpc Endpoint.
- endpoint_
owner_ intid - output_
file str - status str
- The status of Vpc Endpoint Connection.
- connections List<Property Map>
- A list of Privatelink Vpc Endpoint Connections. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Vpc Endpoint Connection IDs.
- service
Id String - endpoint
Id String - The ID of the Vpc Endpoint.
- endpoint
Owner NumberId - output
File String - status String
- The status of Vpc Endpoint Connection.
Supporting Types
GetVpcEndpointConnectionsConnection
- Bandwidth int
- The Bandwidth.
- Endpoint
Id string - The ID of the Vpc Endpoint.
- Id string
- The ID of the Vpc Endpoint Connection.
- Status string
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- Bandwidth int
- The Bandwidth.
- Endpoint
Id string - The ID of the Vpc Endpoint.
- Id string
- The ID of the Vpc Endpoint Connection.
- Status string
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- bandwidth Integer
- The Bandwidth.
- endpoint
Id String - The ID of the Vpc Endpoint.
- id String
- The ID of the Vpc Endpoint Connection.
- status String
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- bandwidth number
- The Bandwidth.
- endpoint
Id string - The ID of the Vpc Endpoint.
- id string
- The ID of the Vpc Endpoint Connection.
- status string
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- bandwidth int
- The Bandwidth.
- endpoint_
id str - The ID of the Vpc Endpoint.
- id str
- The ID of the Vpc Endpoint Connection.
- status str
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
- bandwidth Number
- The Bandwidth.
- endpoint
Id String - The ID of the Vpc Endpoint.
- id String
- The ID of the Vpc Endpoint Connection.
- status String
- The status of Vpc Endpoint Connection. Valid Values:
Connected,Connecting,Deleted,Deleting,Disconnected,Disconnecting,PendingandServiceDeleted.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
