Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi
alicloud.privatelink.getVpcEndpointServices
This data source provides the Privatelink Vpc Endpoint Services 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 exampleVpcEndpointService = new alicloud.privatelink.VpcEndpointService("example", {
serviceDescription: "terraform-example",
connectBandwidth: 103,
autoAcceptConnection: false,
});
const example = alicloud.privatelink.getVpcEndpointServicesOutput({
ids: [exampleVpcEndpointService.id],
});
export const firstPrivatelinkVpcEndpointServiceId = example.apply(example => example.services?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example_vpc_endpoint_service = alicloud.privatelink.VpcEndpointService("example",
service_description="terraform-example",
connect_bandwidth=103,
auto_accept_connection=False)
example = alicloud.privatelink.get_vpc_endpoint_services_output(ids=[example_vpc_endpoint_service.id])
pulumi.export("firstPrivatelinkVpcEndpointServiceId", example.services[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 {
exampleVpcEndpointService, err := privatelink.NewVpcEndpointService(ctx, "example", &privatelink.VpcEndpointServiceArgs{
ServiceDescription: pulumi.String("terraform-example"),
ConnectBandwidth: pulumi.Int(103),
AutoAcceptConnection: pulumi.Bool(false),
})
if err != nil {
return err
}
example := privatelink.GetVpcEndpointServicesOutput(ctx, privatelink.GetVpcEndpointServicesOutputArgs{
Ids: pulumi.StringArray{
exampleVpcEndpointService.ID(),
},
}, nil)
ctx.Export("firstPrivatelinkVpcEndpointServiceId", example.ApplyT(func(example privatelink.GetVpcEndpointServicesResult) (*string, error) {
return &example.Services[0].Id, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var exampleVpcEndpointService = new AliCloud.PrivateLink.VpcEndpointService("example", new()
{
ServiceDescription = "terraform-example",
ConnectBandwidth = 103,
AutoAcceptConnection = false,
});
var example = AliCloud.PrivateLink.GetVpcEndpointServices.Invoke(new()
{
Ids = new[]
{
exampleVpcEndpointService.Id,
},
});
return new Dictionary<string, object?>
{
["firstPrivatelinkVpcEndpointServiceId"] = example.Apply(getVpcEndpointServicesResult => getVpcEndpointServicesResult.Services[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.privatelink.VpcEndpointService;
import com.pulumi.alicloud.privatelink.VpcEndpointServiceArgs;
import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointServicesArgs;
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) {
var exampleVpcEndpointService = new VpcEndpointService("exampleVpcEndpointService", VpcEndpointServiceArgs.builder()
.serviceDescription("terraform-example")
.connectBandwidth(103)
.autoAcceptConnection(false)
.build());
final var example = PrivatelinkFunctions.getVpcEndpointServices(GetVpcEndpointServicesArgs.builder()
.ids(exampleVpcEndpointService.id())
.build());
ctx.export("firstPrivatelinkVpcEndpointServiceId", example.applyValue(_example -> _example.services()[0].id()));
}
}
resources:
exampleVpcEndpointService:
type: alicloud:privatelink:VpcEndpointService
name: example
properties:
serviceDescription: terraform-example
connectBandwidth: 103
autoAcceptConnection: false
variables:
example:
fn::invoke:
function: alicloud:privatelink:getVpcEndpointServices
arguments:
ids:
- ${exampleVpcEndpointService.id}
outputs:
firstPrivatelinkVpcEndpointServiceId: ${example.services[0].id}
Using getVpcEndpointServices
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 getVpcEndpointServices(args: GetVpcEndpointServicesArgs, opts?: InvokeOptions): Promise<GetVpcEndpointServicesResult>
function getVpcEndpointServicesOutput(args: GetVpcEndpointServicesOutputArgs, opts?: InvokeOptions): Output<GetVpcEndpointServicesResult>def get_vpc_endpoint_services(auto_accept_connection: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
service_business_status: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_endpoint_service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcEndpointServicesResult
def get_vpc_endpoint_services_output(auto_accept_connection: 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_business_status: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
vpc_endpoint_service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcEndpointServicesResult]func GetVpcEndpointServices(ctx *Context, args *GetVpcEndpointServicesArgs, opts ...InvokeOption) (*GetVpcEndpointServicesResult, error)
func GetVpcEndpointServicesOutput(ctx *Context, args *GetVpcEndpointServicesOutputArgs, opts ...InvokeOption) GetVpcEndpointServicesResultOutput> Note: This function is named GetVpcEndpointServices in the Go SDK.
public static class GetVpcEndpointServices
{
public static Task<GetVpcEndpointServicesResult> InvokeAsync(GetVpcEndpointServicesArgs args, InvokeOptions? opts = null)
public static Output<GetVpcEndpointServicesResult> Invoke(GetVpcEndpointServicesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpcEndpointServicesResult> getVpcEndpointServices(GetVpcEndpointServicesArgs args, InvokeOptions options)
public static Output<GetVpcEndpointServicesResult> getVpcEndpointServices(GetVpcEndpointServicesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:privatelink/getVpcEndpointServices:getVpcEndpointServices
arguments:
# arguments dictionaryThe following arguments are supported:
- Auto
Accept boolConnection - Whether to automatically accept terminal node connections.
- Ids List<string>
- A list of Vpc Endpoint Service IDs.
- Name
Regex string - A regex string to filter results by Vpc Endpoint Service name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Service
Business stringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - Status string
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - Dictionary<string, string>
- The tags of Vpc Endpoint Service.
- Vpc
Endpoint stringService Name - The name of Vpc Endpoint Service.
- Auto
Accept boolConnection - Whether to automatically accept terminal node connections.
- Ids []string
- A list of Vpc Endpoint Service IDs.
- Name
Regex string - A regex string to filter results by Vpc Endpoint Service name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Service
Business stringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - Status string
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - map[string]string
- The tags of Vpc Endpoint Service.
- Vpc
Endpoint stringService Name - The name of Vpc Endpoint Service.
- auto
Accept BooleanConnection - Whether to automatically accept terminal node connections.
- ids List<String>
- A list of Vpc Endpoint Service IDs.
- name
Regex String - A regex string to filter results by Vpc Endpoint Service name.
- output
File String - File name where to save data source results (after running
pulumi preview). - service
Business StringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - status String
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - Map<String,String>
- The tags of Vpc Endpoint Service.
- vpc
Endpoint StringService Name - The name of Vpc Endpoint Service.
- auto
Accept booleanConnection - Whether to automatically accept terminal node connections.
- ids string[]
- A list of Vpc Endpoint Service IDs.
- name
Regex string - A regex string to filter results by Vpc Endpoint Service name.
- output
File string - File name where to save data source results (after running
pulumi preview). - service
Business stringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - status string
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - {[key: string]: string}
- The tags of Vpc Endpoint Service.
- vpc
Endpoint stringService Name - The name of Vpc Endpoint Service.
- auto_
accept_ boolconnection - Whether to automatically accept terminal node connections.
- ids Sequence[str]
- A list of Vpc Endpoint Service IDs.
- name_
regex str - A regex string to filter results by Vpc Endpoint Service name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - service_
business_ strstatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - status str
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - Mapping[str, str]
- The tags of Vpc Endpoint Service.
- vpc_
endpoint_ strservice_ name - The name of Vpc Endpoint Service.
- auto
Accept BooleanConnection - Whether to automatically accept terminal node connections.
- ids List<String>
- A list of Vpc Endpoint Service IDs.
- name
Regex String - A regex string to filter results by Vpc Endpoint Service name.
- output
File String - File name where to save data source results (after running
pulumi preview). - service
Business StringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - status String
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - Map<String>
- The tags of Vpc Endpoint Service.
- vpc
Endpoint StringService Name - The name of Vpc Endpoint Service.
getVpcEndpointServices Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Vpc Endpoint Service names.
- Services
List<Pulumi.
Ali Cloud. Private Link. Outputs. Get Vpc Endpoint Services Service> - A list of Privatelink Vpc Endpoint Services. Each element contains the following attributes:
- Auto
Accept boolConnection - Whether to automatically accept terminal node connections..
- Name
Regex string - Output
File string - Service
Business stringStatus - The business status of the terminal node service..
- Status string
- The Status of Vpc Endpoint Service.
- Dictionary<string, string>
- The tags of Vpc Endpoint Service.
- Vpc
Endpoint stringService Name - The name of Vpc Endpoint Service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Vpc Endpoint Service names.
- Services
[]Get
Vpc Endpoint Services Service - A list of Privatelink Vpc Endpoint Services. Each element contains the following attributes:
- Auto
Accept boolConnection - Whether to automatically accept terminal node connections..
- Name
Regex string - Output
File string - Service
Business stringStatus - The business status of the terminal node service..
- Status string
- The Status of Vpc Endpoint Service.
- map[string]string
- The tags of Vpc Endpoint Service.
- Vpc
Endpoint stringService Name - The name of Vpc Endpoint Service.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Vpc Endpoint Service names.
- services
List<Get
Vpc Endpoint Services Service> - A list of Privatelink Vpc Endpoint Services. Each element contains the following attributes:
- auto
Accept BooleanConnection - Whether to automatically accept terminal node connections..
- name
Regex String - output
File String - service
Business StringStatus - The business status of the terminal node service..
- status String
- The Status of Vpc Endpoint Service.
- Map<String,String>
- The tags of Vpc Endpoint Service.
- vpc
Endpoint StringService Name - The name of Vpc Endpoint Service.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Vpc Endpoint Service names.
- services
Get
Vpc Endpoint Services Service[] - A list of Privatelink Vpc Endpoint Services. Each element contains the following attributes:
- auto
Accept booleanConnection - Whether to automatically accept terminal node connections..
- name
Regex string - output
File string - service
Business stringStatus - The business status of the terminal node service..
- status string
- The Status of Vpc Endpoint Service.
- {[key: string]: string}
- The tags of Vpc Endpoint Service.
- vpc
Endpoint stringService Name - The name of Vpc Endpoint Service.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Vpc Endpoint Service names.
- services
Sequence[Get
Vpc Endpoint Services Service] - A list of Privatelink Vpc Endpoint Services. Each element contains the following attributes:
- auto_
accept_ boolconnection - Whether to automatically accept terminal node connections..
- name_
regex str - output_
file str - service_
business_ strstatus - The business status of the terminal node service..
- status str
- The Status of Vpc Endpoint Service.
- Mapping[str, str]
- The tags of Vpc Endpoint Service.
- vpc_
endpoint_ strservice_ name - The name of Vpc Endpoint Service.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Vpc Endpoint Service names.
- services List<Property Map>
- A list of Privatelink Vpc Endpoint Services. Each element contains the following attributes:
- auto
Accept BooleanConnection - Whether to automatically accept terminal node connections..
- name
Regex String - output
File String - service
Business StringStatus - The business status of the terminal node service..
- status String
- The Status of Vpc Endpoint Service.
- Map<String>
- The tags of Vpc Endpoint Service.
- vpc
Endpoint StringService Name - The name of Vpc Endpoint Service.
Supporting Types
GetVpcEndpointServicesService
- Auto
Accept boolConnection - Whether to automatically accept terminal node connections.
- Connect
Bandwidth int - The connection bandwidth.
- Id string
- The ID of the Vpc Endpoint Service.
- Service
Business stringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - Service
Description string - The description of the terminal node service.
- Service
Domain string - The domain of service.
- Service
Id string - The ID of the Vpc Endpoint Service.
- Status string
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - Dictionary<string, string>
- The tags of Vpc Endpoint Service.
- Vpc
Endpoint stringService Name - The name of Vpc Endpoint Service.
- Auto
Accept boolConnection - Whether to automatically accept terminal node connections.
- Connect
Bandwidth int - The connection bandwidth.
- Id string
- The ID of the Vpc Endpoint Service.
- Service
Business stringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - Service
Description string - The description of the terminal node service.
- Service
Domain string - The domain of service.
- Service
Id string - The ID of the Vpc Endpoint Service.
- Status string
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - map[string]string
- The tags of Vpc Endpoint Service.
- Vpc
Endpoint stringService Name - The name of Vpc Endpoint Service.
- auto
Accept BooleanConnection - Whether to automatically accept terminal node connections.
- connect
Bandwidth Integer - The connection bandwidth.
- id String
- The ID of the Vpc Endpoint Service.
- service
Business StringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - service
Description String - The description of the terminal node service.
- service
Domain String - The domain of service.
- service
Id String - The ID of the Vpc Endpoint Service.
- status String
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - Map<String,String>
- The tags of Vpc Endpoint Service.
- vpc
Endpoint StringService Name - The name of Vpc Endpoint Service.
- auto
Accept booleanConnection - Whether to automatically accept terminal node connections.
- connect
Bandwidth number - The connection bandwidth.
- id string
- The ID of the Vpc Endpoint Service.
- service
Business stringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - service
Description string - The description of the terminal node service.
- service
Domain string - The domain of service.
- service
Id string - The ID of the Vpc Endpoint Service.
- status string
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - {[key: string]: string}
- The tags of Vpc Endpoint Service.
- vpc
Endpoint stringService Name - The name of Vpc Endpoint Service.
- auto_
accept_ boolconnection - Whether to automatically accept terminal node connections.
- connect_
bandwidth int - The connection bandwidth.
- id str
- The ID of the Vpc Endpoint Service.
- service_
business_ strstatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - service_
description str - The description of the terminal node service.
- service_
domain str - The domain of service.
- service_
id str - The ID of the Vpc Endpoint Service.
- status str
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - Mapping[str, str]
- The tags of Vpc Endpoint Service.
- vpc_
endpoint_ strservice_ name - The name of Vpc Endpoint Service.
- auto
Accept BooleanConnection - Whether to automatically accept terminal node connections.
- connect
Bandwidth Number - The connection bandwidth.
- id String
- The ID of the Vpc Endpoint Service.
- service
Business StringStatus - The business status of the terminal node service. Valid Value:
Normal,FinancialLockedandSecurityLocked. - service
Description String - The description of the terminal node service.
- service
Domain String - The domain of service.
- service
Id String - The ID of the Vpc Endpoint Service.
- status String
- The Status of Vpc Endpoint Service. Valid Value:
Active,Creating,Deleted,DeletingandPending. - Map<String>
- The tags of Vpc Endpoint Service.
- vpc
Endpoint StringService Name - The name of Vpc Endpoint Service.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
