1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. privatelink
  5. getVpcEndpointServices
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
alicloud logo
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 dictionary

    The following arguments are supported:

    AutoAcceptConnection bool
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    Ids List<string>
    A list of Vpc Endpoint Service IDs.
    NameRegex string
    A regex string to filter results by Vpc Endpoint Service name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ServiceBusinessStatus string
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    Status string
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    VpcEndpointServiceName string
    The name of the endpoint service.
    AutoAcceptConnection bool
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    Ids []string
    A list of Vpc Endpoint Service IDs.
    NameRegex string
    A regex string to filter results by Vpc Endpoint Service name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ServiceBusinessStatus string
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    Status string
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    VpcEndpointServiceName string
    The name of the endpoint service.
    autoAcceptConnection Boolean
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    ids List<String>
    A list of Vpc Endpoint Service IDs.
    nameRegex String
    A regex string to filter results by Vpc Endpoint Service name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    serviceBusinessStatus String
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    status String
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    vpcEndpointServiceName String
    The name of the endpoint service.
    autoAcceptConnection boolean
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    ids string[]
    A list of Vpc Endpoint Service IDs.
    nameRegex string
    A regex string to filter results by Vpc Endpoint Service name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    serviceBusinessStatus string
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    status string
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    vpcEndpointServiceName string
    The name of the endpoint service.
    auto_accept_connection bool
    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_status str
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    status str
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    vpc_endpoint_service_name str
    The name of the endpoint service.
    autoAcceptConnection Boolean
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    ids List<String>
    A list of Vpc Endpoint Service IDs.
    nameRegex String
    A regex string to filter results by Vpc Endpoint Service name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    serviceBusinessStatus String
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    status String
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    tags Map<String>
    A mapping of tags to assign to the resource.
    vpcEndpointServiceName String
    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.AliCloud.PrivateLink.Outputs.GetVpcEndpointServicesService>
    A list of Vpc Endpoint Services. Each element contains the following attributes:
    AutoAcceptConnection bool
    Indicates whether endpoint connection requests are automatically accepted.
    NameRegex string
    OutputFile string
    ServiceBusinessStatus string
    The service state of the endpoint service.
    Status string
    The state of the endpoint service.
    Tags Dictionary<string, string>
    The tags added to the resource.
    VpcEndpointServiceName string
    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 []GetVpcEndpointServicesService
    A list of Vpc Endpoint Services. Each element contains the following attributes:
    AutoAcceptConnection bool
    Indicates whether endpoint connection requests are automatically accepted.
    NameRegex string
    OutputFile string
    ServiceBusinessStatus string
    The service state of the endpoint service.
    Status string
    The state of the endpoint service.
    Tags map[string]string
    The tags added to the resource.
    VpcEndpointServiceName string
    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<GetVpcEndpointServicesService>
    A list of Vpc Endpoint Services. Each element contains the following attributes:
    autoAcceptConnection Boolean
    Indicates whether endpoint connection requests are automatically accepted.
    nameRegex String
    outputFile String
    serviceBusinessStatus String
    The service state of the endpoint service.
    status String
    The state of the endpoint service.
    tags Map<String,String>
    The tags added to the resource.
    vpcEndpointServiceName String
    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 GetVpcEndpointServicesService[]
    A list of Vpc Endpoint Services. Each element contains the following attributes:
    autoAcceptConnection boolean
    Indicates whether endpoint connection requests are automatically accepted.
    nameRegex string
    outputFile string
    serviceBusinessStatus string
    The service state of the endpoint service.
    status string
    The state of the endpoint service.
    tags {[key: string]: string}
    The tags added to the resource.
    vpcEndpointServiceName string
    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[GetVpcEndpointServicesService]
    A list of Vpc Endpoint Services. Each element contains the following attributes:
    auto_accept_connection bool
    Indicates whether endpoint connection requests are automatically accepted.
    name_regex str
    output_file str
    service_business_status str
    The service state of the endpoint service.
    status str
    The state of the endpoint service.
    tags Mapping[str, str]
    The tags added to the resource.
    vpc_endpoint_service_name str
    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:
    autoAcceptConnection Boolean
    Indicates whether endpoint connection requests are automatically accepted.
    nameRegex String
    outputFile String
    serviceBusinessStatus String
    The service state of the endpoint service.
    status String
    The state of the endpoint service.
    tags Map<String>
    The tags added to the resource.
    vpcEndpointServiceName String
    The name of the endpoint service.

    Supporting Types

    GetVpcEndpointServicesService

    AutoAcceptConnection bool
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    ConnectBandwidth int
    The default maximum bandwidth of the endpoint connection.
    Id string
    The ID of the Vpc Endpoint Service.
    ServiceBusinessStatus string
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    ServiceDescription string
    The description of the endpoint service.
    ServiceDomain string
    The domain name of the endpoint service.
    ServiceId string
    The ID of the endpoint service.
    Status string
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    VpcEndpointServiceName string
    The name of the endpoint service.
    AutoAcceptConnection bool
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    ConnectBandwidth int
    The default maximum bandwidth of the endpoint connection.
    Id string
    The ID of the Vpc Endpoint Service.
    ServiceBusinessStatus string
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    ServiceDescription string
    The description of the endpoint service.
    ServiceDomain string
    The domain name of the endpoint service.
    ServiceId string
    The ID of the endpoint service.
    Status string
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    VpcEndpointServiceName string
    The name of the endpoint service.
    autoAcceptConnection Boolean
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    connectBandwidth Integer
    The default maximum bandwidth of the endpoint connection.
    id String
    The ID of the Vpc Endpoint Service.
    serviceBusinessStatus String
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    serviceDescription String
    The description of the endpoint service.
    serviceDomain String
    The domain name of the endpoint service.
    serviceId String
    The ID of the endpoint service.
    status String
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    vpcEndpointServiceName String
    The name of the endpoint service.
    autoAcceptConnection boolean
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    connectBandwidth number
    The default maximum bandwidth of the endpoint connection.
    id string
    The ID of the Vpc Endpoint Service.
    serviceBusinessStatus string
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    serviceDescription string
    The description of the endpoint service.
    serviceDomain string
    The domain name of the endpoint service.
    serviceId string
    The ID of the endpoint service.
    status string
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    vpcEndpointServiceName string
    The name of the endpoint service.
    auto_accept_connection bool
    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_status str
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    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, Deleting and Pending.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    vpc_endpoint_service_name str
    The name of the endpoint service.
    autoAcceptConnection Boolean
    Specifies whether to automatically accept endpoint connection requests. Valid values: : true, false.
    connectBandwidth Number
    The default maximum bandwidth of the endpoint connection.
    id String
    The ID of the Vpc Endpoint Service.
    serviceBusinessStatus String
    The service state of the endpoint service. Default value: Normal. Valid values: Normal, FinancialLocked and SecurityLocked.
    serviceDescription String
    The description of the endpoint service.
    serviceDomain String
    The domain name of the endpoint service.
    serviceId String
    The ID of the endpoint service.
    status String
    The state of the endpoint service. Valid values: Active, Creating, Deleted, Deleting and Pending.
    tags Map<String>
    A mapping of tags to assign to the resource.
    vpcEndpointServiceName String
    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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate