Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 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 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:
- 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>
- Zones
List<Pulumi.
Ali Cloud. Private Link. Outputs. Get Vpc Endpoint Zones Zone> - Output
File string - Status string
- Endpoint
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Zones
[]Get
Vpc Endpoint Zones Zone - Output
File string - Status string
- endpoint
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- zones
List<Get
Vpc Endpoint Zones Zone> - output
File String - status String
- endpoint
Id string - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- zones
Get
Vpc Endpoint Zones Zone[] - output
File string - status string
- endpoint_
id str - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- zones
Sequence[Get
Vpc Endpoint Zones Zone] - output_
file str - status str
- endpoint
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- zones List<Property Map>
- output
File String - status String
Supporting Types
GetVpcEndpointZonesZone
- 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.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.