Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.vpn.getGatewayZones
Explore with Pulumi AI
This data source provides VPN Gateway Zone available to the user.What is Zone
NOTE: Available since v1.216.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.vpn.getGatewayZones({
spec: "5M",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.vpn.get_gateway_zones(spec="5M")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpn.GetGatewayZones(ctx, &vpn.GetGatewayZonesArgs{
Spec: "5M",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Vpn.GetGatewayZones.Invoke(new()
{
Spec = "5M",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpn.VpnFunctions;
import com.pulumi.alicloud.vpn.inputs.GetGatewayZonesArgs;
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 default = VpnFunctions.getGatewayZones(GetGatewayZonesArgs.builder()
.spec("5M")
.build());
}
}
variables:
default:
fn::invoke:
Function: alicloud:vpn:getGatewayZones
Arguments:
spec: 5M
Using getGatewayZones
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 getGatewayZones(args: GetGatewayZonesArgs, opts?: InvokeOptions): Promise<GetGatewayZonesResult>
function getGatewayZonesOutput(args: GetGatewayZonesOutputArgs, opts?: InvokeOptions): Output<GetGatewayZonesResult>
def get_gateway_zones(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
spec: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGatewayZonesResult
def get_gateway_zones_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
spec: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGatewayZonesResult]
func GetGatewayZones(ctx *Context, args *GetGatewayZonesArgs, opts ...InvokeOption) (*GetGatewayZonesResult, error)
func GetGatewayZonesOutput(ctx *Context, args *GetGatewayZonesOutputArgs, opts ...InvokeOption) GetGatewayZonesResultOutput
> Note: This function is named GetGatewayZones
in the Go SDK.
public static class GetGatewayZones
{
public static Task<GetGatewayZonesResult> InvokeAsync(GetGatewayZonesArgs args, InvokeOptions? opts = null)
public static Output<GetGatewayZonesResult> Invoke(GetGatewayZonesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGatewayZonesResult> getGatewayZones(GetGatewayZonesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:vpn/getGatewayZones:getGatewayZones
arguments:
# arguments dictionary
The following arguments are supported:
- Spec string
- Bandwidth specification.-If an IPsec connection is bound to a VPN gateway instance, this parameter indicates the Bandwidth specification of the VPN gateway instance.-If an IPsec connection is bound to a forwarding router, this parameter indicates the bandwidth that you expect the IPsec connection to support.Different bandwidth specifications may affect the zone information that is found. Value:
5M
10M
20M
50M
100M
200M
500M
1000M
- Ids List<string>
- A list of Zone IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Spec string
- Bandwidth specification.-If an IPsec connection is bound to a VPN gateway instance, this parameter indicates the Bandwidth specification of the VPN gateway instance.-If an IPsec connection is bound to a forwarding router, this parameter indicates the bandwidth that you expect the IPsec connection to support.Different bandwidth specifications may affect the zone information that is found. Value:
5M
10M
20M
50M
100M
200M
500M
1000M
- Ids []string
- A list of Zone IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- spec String
- Bandwidth specification.-If an IPsec connection is bound to a VPN gateway instance, this parameter indicates the Bandwidth specification of the VPN gateway instance.-If an IPsec connection is bound to a forwarding router, this parameter indicates the bandwidth that you expect the IPsec connection to support.Different bandwidth specifications may affect the zone information that is found. Value:
5M
10M
20M
50M
100M
200M
500M
1000M
- ids List<String>
- A list of Zone IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- spec string
- Bandwidth specification.-If an IPsec connection is bound to a VPN gateway instance, this parameter indicates the Bandwidth specification of the VPN gateway instance.-If an IPsec connection is bound to a forwarding router, this parameter indicates the bandwidth that you expect the IPsec connection to support.Different bandwidth specifications may affect the zone information that is found. Value:
5M
10M
20M
50M
100M
200M
500M
1000M
- ids string[]
- A list of Zone IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- spec str
- Bandwidth specification.-If an IPsec connection is bound to a VPN gateway instance, this parameter indicates the Bandwidth specification of the VPN gateway instance.-If an IPsec connection is bound to a forwarding router, this parameter indicates the bandwidth that you expect the IPsec connection to support.Different bandwidth specifications may affect the zone information that is found. Value:
5M
10M
20M
50M
100M
200M
500M
1000M
- ids Sequence[str]
- A list of Zone IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- spec String
- Bandwidth specification.-If an IPsec connection is bound to a VPN gateway instance, this parameter indicates the Bandwidth specification of the VPN gateway instance.-If an IPsec connection is bound to a forwarding router, this parameter indicates the bandwidth that you expect the IPsec connection to support.Different bandwidth specifications may affect the zone information that is found. Value:
5M
10M
20M
50M
100M
200M
500M
1000M
- ids List<String>
- A list of Zone IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getGatewayZones Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Zone IDs.
- Spec string
- Zones
List<Pulumi.
Ali Cloud. Vpn. Outputs. Get Gateway Zones Zone> - A list of Zone Entries. Each element contains the following attributes:
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Zone IDs.
- Spec string
- Zones
[]Get
Gateway Zones Zone - A list of Zone Entries. Each element contains the following attributes:
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Zone IDs.
- spec String
- zones
List<Get
Gateway Zones Zone> - A list of Zone Entries. Each element contains the following attributes:
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Zone IDs.
- spec string
- zones
Get
Gateway Zones Zone[] - A list of Zone Entries. Each element contains the following attributes:
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Zone IDs.
- spec str
- zones
Sequence[Get
Gateway Zones Zone] - A list of Zone Entries. Each element contains the following attributes:
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Zone IDs.
- spec String
- zones List<Property Map>
- A list of Zone Entries. Each element contains the following attributes:
- output
File String
Supporting Types
GetGatewayZonesZone
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.