1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. privatelink
  5. getVpcEndpointZones
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.privatelink.getVpcEndpointZones

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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

NOTE: Available since v1.111.0.

Example Usage

Basic Usage

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

const example = alicloud.privatelink.getVpcEndpointZones({
    endpointId: "ep-gw8boxxxxx",
});
export const firstPrivatelinkVpcEndpointZoneId = example.then(example => example.zones?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.privatelink.get_vpc_endpoint_zones(endpoint_id="ep-gw8boxxxxx")
pulumi.export("firstPrivatelinkVpcEndpointZoneId", example.zones[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.GetVpcEndpointZones(ctx, &privatelink.GetVpcEndpointZonesArgs{
			EndpointId: "ep-gw8boxxxxx",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstPrivatelinkVpcEndpointZoneId", example.Zones[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.GetVpcEndpointZones.Invoke(new()
    {
        EndpointId = "ep-gw8boxxxxx",
    });

    return new Dictionary<string, object?>
    {
        ["firstPrivatelinkVpcEndpointZoneId"] = example.Apply(getVpcEndpointZonesResult => getVpcEndpointZonesResult.Zones[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.GetVpcEndpointZonesArgs;
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.getVpcEndpointZones(GetVpcEndpointZonesArgs.builder()
            .endpointId("ep-gw8boxxxxx")
            .build());

        ctx.export("firstPrivatelinkVpcEndpointZoneId", example.applyValue(getVpcEndpointZonesResult -> getVpcEndpointZonesResult.zones()[0].id()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: alicloud:privatelink:getVpcEndpointZones
      arguments:
        endpointId: ep-gw8boxxxxx
outputs:
  firstPrivatelinkVpcEndpointZoneId: ${example.zones[0].id}
Copy

Using getVpcEndpointZones

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 getVpcEndpointZones(args: GetVpcEndpointZonesArgs, opts?: InvokeOptions): Promise<GetVpcEndpointZonesResult>
function getVpcEndpointZonesOutput(args: GetVpcEndpointZonesOutputArgs, opts?: InvokeOptions): Output<GetVpcEndpointZonesResult>
Copy
def get_vpc_endpoint_zones(endpoint_id: Optional[str] = None,
                           output_file: Optional[str] = None,
                           status: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetVpcEndpointZonesResult
def get_vpc_endpoint_zones_output(endpoint_id: Optional[pulumi.Input[str]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           status: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetVpcEndpointZonesResult]
Copy
func GetVpcEndpointZones(ctx *Context, args *GetVpcEndpointZonesArgs, opts ...InvokeOption) (*GetVpcEndpointZonesResult, error)
func GetVpcEndpointZonesOutput(ctx *Context, args *GetVpcEndpointZonesOutputArgs, opts ...InvokeOption) GetVpcEndpointZonesResultOutput
Copy

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

public static class GetVpcEndpointZones 
{
    public static Task<GetVpcEndpointZonesResult> InvokeAsync(GetVpcEndpointZonesArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcEndpointZonesResult> Invoke(GetVpcEndpointZonesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVpcEndpointZonesResult> getVpcEndpointZones(GetVpcEndpointZonesArgs args, InvokeOptions options)
public static Output<GetVpcEndpointZonesResult> getVpcEndpointZones(GetVpcEndpointZonesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EndpointId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Vpc Endpoint.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
EndpointId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Vpc Endpoint.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
endpointId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Vpc Endpoint.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
endpointId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Vpc Endpoint.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
endpoint_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Vpc Endpoint.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. str
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
endpointId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Vpc Endpoint.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.

getVpcEndpointZones Result

The following output properties are available:

EndpointId string
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
A list of Vpc Endpoint Zone IDs.
Zones List<Pulumi.AliCloud.PrivateLink.Outputs.GetVpcEndpointZonesZone>
A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
OutputFile string
Status string
The Status of Vpc Endpoint Zone..
EndpointId string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of Vpc Endpoint Zone IDs.
Zones []GetVpcEndpointZonesZone
A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
OutputFile string
Status string
The Status of Vpc Endpoint Zone..
endpointId String
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Vpc Endpoint Zone IDs.
zones List<GetVpcEndpointZonesZone>
A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
outputFile String
status String
The Status of Vpc Endpoint Zone..
endpointId string
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of Vpc Endpoint Zone IDs.
zones GetVpcEndpointZonesZone[]
A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
outputFile string
status string
The Status of Vpc Endpoint Zone..
endpoint_id str
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of Vpc Endpoint Zone IDs.
zones Sequence[GetVpcEndpointZonesZone]
A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
output_file str
status str
The Status of Vpc Endpoint Zone..
endpointId String
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Vpc Endpoint Zone IDs.
zones List<Property Map>
A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
outputFile String
status String
The Status of Vpc Endpoint Zone..

Supporting Types

GetVpcEndpointZonesZone

EniId This property is required. string
Terminal node network card.
EniIp This property is required. string
IP address of the terminal node network card.
Id This property is required. string
The ID of the Vpc Endpoint Zone.
Status This property is required. string
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
VswitchId This property is required. string
The vSwitch id.
ZoneDomain This property is required. string
The Zone Domain.
ZoneId This property is required. string
The Zone Id.
EniId This property is required. string
Terminal node network card.
EniIp This property is required. string
IP address of the terminal node network card.
Id This property is required. string
The ID of the Vpc Endpoint Zone.
Status This property is required. string
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
VswitchId This property is required. string
The vSwitch id.
ZoneDomain This property is required. string
The Zone Domain.
ZoneId This property is required. string
The Zone Id.
eniId This property is required. String
Terminal node network card.
eniIp This property is required. String
IP address of the terminal node network card.
id This property is required. String
The ID of the Vpc Endpoint Zone.
status This property is required. String
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
vswitchId This property is required. String
The vSwitch id.
zoneDomain This property is required. String
The Zone Domain.
zoneId This property is required. String
The Zone Id.
eniId This property is required. string
Terminal node network card.
eniIp This property is required. string
IP address of the terminal node network card.
id This property is required. string
The ID of the Vpc Endpoint Zone.
status This property is required. string
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
vswitchId This property is required. string
The vSwitch id.
zoneDomain This property is required. string
The Zone Domain.
zoneId This property is required. string
The Zone Id.
eni_id This property is required. str
Terminal node network card.
eni_ip This property is required. str
IP address of the terminal node network card.
id This property is required. str
The ID of the Vpc Endpoint Zone.
status This property is required. str
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
vswitch_id This property is required. str
The vSwitch id.
zone_domain This property is required. str
The Zone Domain.
zone_id This property is required. str
The Zone Id.
eniId This property is required. String
Terminal node network card.
eniIp This property is required. String
IP address of the terminal node network card.
id This property is required. String
The ID of the Vpc Endpoint Zone.
status This property is required. String
The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
vswitchId This property is required. String
The vSwitch id.
zoneDomain This property is required. String
The Zone Domain.
zoneId This property is required. String
The Zone Id.

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.76.0 published on Tuesday, Apr 8, 2025 by Pulumi