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

alicloud.vpn.getGatewayZones

Explore with Pulumi AI

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

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",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.vpn.get_gateway_zones(spec="5M")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:vpn:getGatewayZones
      arguments:
        spec: 5M
Copy

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>
Copy
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]
Copy
func GetGatewayZones(ctx *Context, args *GetGatewayZonesArgs, opts ...InvokeOption) (*GetGatewayZonesResult, error)
func GetGatewayZonesOutput(ctx *Context, args *GetGatewayZonesOutputArgs, opts ...InvokeOption) GetGatewayZonesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetGatewayZonesResult> getGatewayZones(GetGatewayZonesArgs args, InvokeOptions options)
public static Output<GetGatewayZonesResult> getGatewayZones(GetGatewayZonesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:vpn/getGatewayZones:getGatewayZones
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Spec
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. List<string>
A list of Zone IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Spec
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. []string
A list of Zone IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
spec
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. List<String>
A list of Zone IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
spec
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string[]
A list of Zone IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
spec
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. Sequence[str]
A list of Zone IDs.
output_file str
File name where to save data source results (after running pulumi preview).
spec
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. List<String>
A list of Zone IDs.
outputFile 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.AliCloud.Vpn.Outputs.GetGatewayZonesZone>
A list of Zone Entries. Each element contains the following attributes:
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of Zone IDs.
Spec string
Zones []GetGatewayZonesZone
A list of Zone Entries. Each element contains the following attributes:
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Zone IDs.
spec String
zones List<GetGatewayZonesZone>
A list of Zone Entries. Each element contains the following attributes:
outputFile String
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of Zone IDs.
spec string
zones GetGatewayZonesZone[]
A list of Zone Entries. Each element contains the following attributes:
outputFile string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of Zone IDs.
spec str
zones Sequence[GetGatewayZonesZone]
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:
outputFile String

Supporting Types

GetGatewayZonesZone

ZoneId This property is required. string
The zone ID.
ZoneName This property is required. string
The zone name.
ZoneId This property is required. string
The zone ID.
ZoneName This property is required. string
The zone name.
zoneId This property is required. String
The zone ID.
zoneName This property is required. String
The zone name.
zoneId This property is required. string
The zone ID.
zoneName This property is required. string
The zone name.
zone_id This property is required. str
The zone ID.
zone_name This property is required. str
The zone name.
zoneId This property is required. String
The zone ID.
zoneName This property is required. String
The zone name.

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