1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. privatelink
  5. getVpcEndpointZones
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.privatelink.getVpcEndpointZones

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

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

    NOTE: Available in 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);
    
    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)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:privatelink:getVpcEndpointZones
          Arguments:
            endpointId: ep-gw8boxxxxx
    outputs:
      firstPrivatelinkVpcEndpointZoneId: ${example.zones[0].id}
    

    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>
    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]
    func GetVpcEndpointZones(ctx *Context, args *GetVpcEndpointZonesArgs, opts ...InvokeOption) (*GetVpcEndpointZonesResult, error)
    func GetVpcEndpointZonesOutput(ctx *Context, args *GetVpcEndpointZonesOutputArgs, opts ...InvokeOption) GetVpcEndpointZonesResultOutput

    > 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)
    }
    public static CompletableFuture<GetVpcEndpointZonesResult> getVpcEndpointZones(GetVpcEndpointZonesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:privatelink/getVpcEndpointZones:getVpcEndpointZones
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndpointId string
    The ID of the Vpc Endpoint.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
    EndpointId string
    The ID of the Vpc Endpoint.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
    endpointId String
    The ID of the Vpc Endpoint.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
    endpointId string
    The ID of the Vpc Endpoint.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
    endpoint_id str
    The ID of the Vpc Endpoint.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The Status of Vpc Endpoint Zone. Valid Values: Connected, Connecting, Creating, Deleted, Deleting, Disconnected, Disconnecting and Wait.
    endpointId String
    The ID of the Vpc Endpoint.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status 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>
    Zones List<Pulumi.AliCloud.PrivateLink.Outputs.GetVpcEndpointZonesZone>
    OutputFile string
    Status string
    EndpointId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Zones []GetVpcEndpointZonesZone
    OutputFile string
    Status string
    endpointId String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    zones List<GetVpcEndpointZonesZone>
    outputFile String
    status String
    endpointId string
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    zones GetVpcEndpointZonesZone[]
    outputFile string
    status string
    endpoint_id str
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    zones Sequence[GetVpcEndpointZonesZone]
    output_file str
    status str
    endpointId String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    zones List<Property Map>
    outputFile String
    status String

    Supporting Types

    GetVpcEndpointZonesZone

    EniId string
    Terminal node network card.
    EniIp string
    IP address of the terminal node network card.
    Id string
    The ID of the Vpc Endpoint Zone.
    Status string
    The Status of Vpc Endpoint Zone..
    VswitchId string
    The VSwitch id.
    ZoneDomain string
    The Zone Domain.
    ZoneId string
    The Zone Id.
    EniId string
    Terminal node network card.
    EniIp string
    IP address of the terminal node network card.
    Id string
    The ID of the Vpc Endpoint Zone.
    Status string
    The Status of Vpc Endpoint Zone..
    VswitchId string
    The VSwitch id.
    ZoneDomain string
    The Zone Domain.
    ZoneId string
    The Zone Id.
    eniId String
    Terminal node network card.
    eniIp String
    IP address of the terminal node network card.
    id String
    The ID of the Vpc Endpoint Zone.
    status String
    The Status of Vpc Endpoint Zone..
    vswitchId String
    The VSwitch id.
    zoneDomain String
    The Zone Domain.
    zoneId String
    The Zone Id.
    eniId string
    Terminal node network card.
    eniIp string
    IP address of the terminal node network card.
    id string
    The ID of the Vpc Endpoint Zone.
    status string
    The Status of Vpc Endpoint Zone..
    vswitchId string
    The VSwitch id.
    zoneDomain string
    The Zone Domain.
    zoneId string
    The Zone Id.
    eni_id str
    Terminal node network card.
    eni_ip str
    IP address of the terminal node network card.
    id str
    The ID of the Vpc Endpoint Zone.
    status str
    The Status of Vpc Endpoint Zone..
    vswitch_id str
    The VSwitch id.
    zone_domain str
    The Zone Domain.
    zone_id str
    The Zone Id.
    eniId String
    Terminal node network card.
    eniIp String
    IP address of the terminal node network card.
    id String
    The ID of the Vpc Endpoint Zone.
    status String
    The Status of Vpc Endpoint Zone..
    vswitchId String
    The VSwitch id.
    zoneDomain String
    The Zone Domain.
    zoneId 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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi