Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
This data source provides the Private Link 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 config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.privatelink.VpcEndpointService("default", {
serviceDescription: name,
autoAcceptConnection: true,
});
const ids = alicloud.privatelink.getVpcEndpointServicesOutput({
ids: [_default.id],
});
export const privatelinkVpcEndpointServicesId0 = ids.apply(ids => ids.services?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.privatelink.VpcEndpointService("default",
service_description=name,
auto_accept_connection=True)
ids = alicloud.privatelink.get_vpc_endpoint_services_output(ids=[default.id])
pulumi.export("privatelinkVpcEndpointServicesId0", ids.services[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/privatelink"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := privatelink.NewVpcEndpointService(ctx, "default", &privatelink.VpcEndpointServiceArgs{
ServiceDescription: pulumi.String(name),
AutoAcceptConnection: pulumi.Bool(true),
})
if err != nil {
return err
}
ids := privatelink.GetVpcEndpointServicesOutput(ctx, privatelink.GetVpcEndpointServicesOutputArgs{
Ids: pulumi.StringArray{
_default.ID(),
},
}, nil)
ctx.Export("privatelinkVpcEndpointServicesId0", ids.ApplyT(func(ids privatelink.GetVpcEndpointServicesResult) (*string, error) {
return &ids.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 config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.PrivateLink.VpcEndpointService("default", new()
{
ServiceDescription = name,
AutoAcceptConnection = true,
});
var ids = AliCloud.PrivateLink.GetVpcEndpointServices.Invoke(new()
{
Ids = new[]
{
@default.Id,
},
});
return new Dictionary<string, object?>
{
["privatelinkVpcEndpointServicesId0"] = ids.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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new VpcEndpointService("default", VpcEndpointServiceArgs.builder()
.serviceDescription(name)
.autoAcceptConnection(true)
.build());
final var ids = PrivatelinkFunctions.getVpcEndpointServices(GetVpcEndpointServicesArgs.builder()
.ids(default_.id())
.build());
ctx.export("privatelinkVpcEndpointServicesId0", ids.applyValue(_ids -> _ids.services()[0].id()));
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:privatelink:VpcEndpointService
properties:
serviceDescription: ${name}
autoAcceptConnection: true
variables:
ids:
fn::invoke:
function: alicloud:privatelink:getVpcEndpointServices
arguments:
ids:
- ${default.id}
outputs:
privatelinkVpcEndpointServicesId0: ${ids.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 - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - 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 service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - Status string
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Endpoint stringService Name - The name of the endpoint service.
- Auto
Accept boolConnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - 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 service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - Status string
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Endpoint stringService Name - The name of the endpoint service.
- auto
Accept BooleanConnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - 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 service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - status String
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Endpoint StringService Name - The name of the endpoint service.
- auto
Accept booleanConnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - 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 service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - status string
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Endpoint stringService Name - The name of the endpoint service.
- auto_
accept_ boolconnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - 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 service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - status str
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_
endpoint_ strservice_ name - The name of the endpoint service.
- auto
Accept BooleanConnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - 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 service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - status String
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - Map<String>
- A mapping of tags to assign to the resource.
- vpc
Endpoint StringService Name - The name of the 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 Vpc Endpoint Services. Each element contains the following attributes:
- Auto
Accept boolConnection - Indicates whether endpoint connection requests are automatically accepted.
- Name
Regex string - Output
File string - Service
Business stringStatus - The service state of the endpoint service.
- Status string
- The state of the endpoint service.
- Dictionary<string, string>
- The tags added to the resource.
- Vpc
Endpoint stringService Name - The name of the 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 Vpc Endpoint Services. Each element contains the following attributes:
- Auto
Accept boolConnection - Indicates whether endpoint connection requests are automatically accepted.
- Name
Regex string - Output
File string - Service
Business stringStatus - The service state of the endpoint service.
- Status string
- The state of the endpoint service.
- map[string]string
- The tags added to the resource.
- Vpc
Endpoint stringService Name - The name of the 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 Vpc Endpoint Services. Each element contains the following attributes:
- auto
Accept BooleanConnection - Indicates whether endpoint connection requests are automatically accepted.
- name
Regex String - output
File String - service
Business StringStatus - The service state of the endpoint service.
- status String
- The state of the endpoint service.
- Map<String,String>
- The tags added to the resource.
- vpc
Endpoint StringService Name - The name of the 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 Vpc Endpoint Services. Each element contains the following attributes:
- auto
Accept booleanConnection - Indicates whether endpoint connection requests are automatically accepted.
- name
Regex string - output
File string - service
Business stringStatus - The service state of the endpoint service.
- status string
- The state of the endpoint service.
- {[key: string]: string}
- The tags added to the resource.
- vpc
Endpoint stringService Name - The name of the 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 Vpc Endpoint Services. Each element contains the following attributes:
- auto_
accept_ boolconnection - Indicates whether endpoint connection requests are automatically accepted.
- name_
regex str - output_
file str - service_
business_ strstatus - The service state of the endpoint service.
- status str
- The state of the endpoint service.
- Mapping[str, str]
- The tags added to the resource.
- vpc_
endpoint_ strservice_ name - The name of the 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 Vpc Endpoint Services. Each element contains the following attributes:
- auto
Accept BooleanConnection - Indicates whether endpoint connection requests are automatically accepted.
- name
Regex String - output
File String - service
Business StringStatus - The service state of the endpoint service.
- status String
- The state of the endpoint service.
- Map<String>
- The tags added to the resource.
- vpc
Endpoint StringService Name - The name of the endpoint service.
Supporting Types
GetVpcEndpointServicesService
- Auto
Accept boolConnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - Connect
Bandwidth int - The default maximum bandwidth of the endpoint connection.
- Id string
- The ID of the Vpc Endpoint Service.
- Service
Business stringStatus - The service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - Service
Description string - The description of the endpoint service.
- Service
Domain string - The domain name of the endpoint service.
- Service
Id string - The ID of the endpoint service.
- Status string
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Endpoint stringService Name - The name of the endpoint service.
- Auto
Accept boolConnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - Connect
Bandwidth int - The default maximum bandwidth of the endpoint connection.
- Id string
- The ID of the Vpc Endpoint Service.
- Service
Business stringStatus - The service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - Service
Description string - The description of the endpoint service.
- Service
Domain string - The domain name of the endpoint service.
- Service
Id string - The ID of the endpoint service.
- Status string
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Endpoint stringService Name - The name of the endpoint service.
- auto
Accept BooleanConnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - connect
Bandwidth Integer - The default maximum bandwidth of the endpoint connection.
- id String
- The ID of the Vpc Endpoint Service.
- service
Business StringStatus - The service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - service
Description String - The description of the endpoint service.
- service
Domain String - The domain name of the endpoint service.
- service
Id String - The ID of the endpoint service.
- status String
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Endpoint StringService Name - The name of the endpoint service.
- auto
Accept booleanConnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - connect
Bandwidth number - The default maximum bandwidth of the endpoint connection.
- id string
- The ID of the Vpc Endpoint Service.
- service
Business stringStatus - The service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - service
Description string - The description of the endpoint service.
- service
Domain string - The domain name of the endpoint service.
- service
Id string - The ID of the endpoint service.
- status string
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Endpoint stringService Name - The name of the endpoint service.
- auto_
accept_ boolconnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - connect_
bandwidth int - The default maximum bandwidth of the endpoint connection.
- id str
- The ID of the Vpc Endpoint Service.
- service_
business_ strstatus - The service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - service_
description str - The description of the endpoint service.
- service_
domain str - The domain name of the endpoint service.
- service_
id str - The ID of the endpoint service.
- status str
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_
endpoint_ strservice_ name - The name of the endpoint service.
- auto
Accept BooleanConnection - Specifies whether to automatically accept endpoint connection requests. Valid values: :
true,false. - connect
Bandwidth Number - The default maximum bandwidth of the endpoint connection.
- id String
- The ID of the Vpc Endpoint Service.
- service
Business StringStatus - The service state of the endpoint service. Default value:
Normal. Valid values:Normal,FinancialLockedandSecurityLocked. - service
Description String - The description of the endpoint service.
- service
Domain String - The domain name of the endpoint service.
- service
Id String - The ID of the endpoint service.
- status String
- The state of the endpoint service. Valid values:
Active,Creating,Deleted,DeletingandPending. - Map<String>
- A mapping of tags to assign to the resource.
- vpc
Endpoint StringService Name - The name of the endpoint service.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
