Alibaba Cloud v3.73.0 published on Wednesday, Jan 15, 2025 by Pulumi
alicloud.privatelink.getVpcEndpointZones
Explore with Pulumi AI
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);
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:
- Endpoint
Id string - The ID of the Vpc Endpoint.
- Output
File 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
andWait
.
- Endpoint
Id string - The ID of the Vpc Endpoint.
- Output
File 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
andWait
.
- endpoint
Id String - The ID of the Vpc Endpoint.
- output
File 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
andWait
.
- endpoint
Id string - The ID of the Vpc Endpoint.
- output
File 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
andWait
.
- 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
andWait
.
- endpoint
Id String - The ID of the Vpc Endpoint.
- output
File 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
andWait
.
getVpcEndpointZones Result
The following output properties are available:
- Endpoint
Id 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.
Ali Cloud. Private Link. Outputs. Get Vpc Endpoint Zones Zone> - A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
- Output
File string - Status string
- The Status of Vpc Endpoint Zone..
- Endpoint
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Vpc Endpoint Zone IDs.
- Zones
[]Get
Vpc Endpoint Zones Zone - A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
- Output
File string - Status string
- The Status of Vpc Endpoint Zone..
- endpoint
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Vpc Endpoint Zone IDs.
- zones
List<Get
Vpc Endpoint Zones Zone> - A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
- output
File String - status String
- The Status of Vpc Endpoint Zone..
- endpoint
Id string - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Vpc Endpoint Zone IDs.
- zones
Get
Vpc Endpoint Zones Zone[] - A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
- output
File 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[Get
Vpc Endpoint Zones Zone] - A list of Privatelink Vpc Endpoint Zones. Each element contains the following attributes:
- output_
file str - status str
- The Status of Vpc Endpoint Zone..
- endpoint
Id 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:
- output
File String - status String
- The Status of Vpc Endpoint Zone..
Supporting Types
GetVpcEndpointZonesZone
- Eni
Id string - Terminal node network card.
- Eni
Ip 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. Valid Values:
Connected
,Connecting
,Creating
,Deleted
,Deleting
,Disconnected
,Disconnecting
andWait
. - Vswitch
Id string - The vSwitch id.
- Zone
Domain string - The Zone Domain.
- Zone
Id string - The Zone Id.
- Eni
Id string - Terminal node network card.
- Eni
Ip 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. Valid Values:
Connected
,Connecting
,Creating
,Deleted
,Deleting
,Disconnected
,Disconnecting
andWait
. - Vswitch
Id string - The vSwitch id.
- Zone
Domain string - The Zone Domain.
- Zone
Id string - The Zone Id.
- eni
Id String - Terminal node network card.
- eni
Ip 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. Valid Values:
Connected
,Connecting
,Creating
,Deleted
,Deleting
,Disconnected
,Disconnecting
andWait
. - vswitch
Id String - The vSwitch id.
- zone
Domain String - The Zone Domain.
- zone
Id String - The Zone Id.
- eni
Id string - Terminal node network card.
- eni
Ip 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. Valid Values:
Connected
,Connecting
,Creating
,Deleted
,Deleting
,Disconnected
,Disconnecting
andWait
. - vswitch
Id string - The vSwitch id.
- zone
Domain string - The Zone Domain.
- zone
Id 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. Valid Values:
Connected
,Connecting
,Creating
,Deleted
,Deleting
,Disconnected
,Disconnecting
andWait
. - vswitch_
id str - The vSwitch id.
- zone_
domain str - The Zone Domain.
- zone_
id str - The Zone Id.
- eni
Id String - Terminal node network card.
- eni
Ip 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. Valid Values:
Connected
,Connecting
,Creating
,Deleted
,Deleting
,Disconnected
,Disconnecting
andWait
. - vswitch
Id String - The vSwitch id.
- zone
Domain String - The Zone Domain.
- zone
Id 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.