Provides a list of zones in the Global Router service using public API v1. A zone represents a logical grouping of network resources that are used by a service or a product within one pool. Zones are logically aggregated into zone groups. For example, cloud platform networks in the ru-3 pool belong to the ru-3 zone. For more information about global routers, see the official Selectel documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const zone1 = selectel.getGlobalRouterZoneV1({
name: "ru-3",
service: "vpc",
});
import pulumi
import pulumi_selectel as selectel
zone1 = selectel.get_global_router_zone_v1(name="ru-3",
service="vpc")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v7/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.GetGlobalRouterZoneV1(ctx, &selectel.GetGlobalRouterZoneV1Args{
Name: "ru-3",
Service: pulumi.StringRef("vpc"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var zone1 = Selectel.GetGlobalRouterZoneV1.Invoke(new()
{
Name = "ru-3",
Service = "vpc",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.SelectelFunctions;
import com.pulumi.selectel.inputs.GetGlobalRouterZoneV1Args;
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 zone1 = SelectelFunctions.getGlobalRouterZoneV1(GetGlobalRouterZoneV1Args.builder()
.name("ru-3")
.service("vpc")
.build());
}
}
variables:
zone1:
fn::invoke:
function: selectel:getGlobalRouterZoneV1
arguments:
name: ru-3
service: vpc
Using getGlobalRouterZoneV1
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 getGlobalRouterZoneV1(args: GetGlobalRouterZoneV1Args, opts?: InvokeOptions): Promise<GetGlobalRouterZoneV1Result>
function getGlobalRouterZoneV1Output(args: GetGlobalRouterZoneV1OutputArgs, opts?: InvokeOptions): Output<GetGlobalRouterZoneV1Result>def get_global_router_zone_v1(id: Optional[str] = None,
name: Optional[str] = None,
service: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGlobalRouterZoneV1Result
def get_global_router_zone_v1_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
service: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGlobalRouterZoneV1Result]func GetGlobalRouterZoneV1(ctx *Context, args *GetGlobalRouterZoneV1Args, opts ...InvokeOption) (*GetGlobalRouterZoneV1Result, error)
func GetGlobalRouterZoneV1Output(ctx *Context, args *GetGlobalRouterZoneV1OutputArgs, opts ...InvokeOption) GetGlobalRouterZoneV1ResultOutput> Note: This function is named GetGlobalRouterZoneV1 in the Go SDK.
public static class GetGlobalRouterZoneV1
{
public static Task<GetGlobalRouterZoneV1Result> InvokeAsync(GetGlobalRouterZoneV1Args args, InvokeOptions? opts = null)
public static Output<GetGlobalRouterZoneV1Result> Invoke(GetGlobalRouterZoneV1InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGlobalRouterZoneV1Result> getGlobalRouterZoneV1(GetGlobalRouterZoneV1Args args, InvokeOptions options)
public static Output<GetGlobalRouterZoneV1Result> getGlobalRouterZoneV1(GetGlobalRouterZoneV1Args args, InvokeOptions options)
fn::invoke:
function: selectel:index/getGlobalRouterZoneV1:getGlobalRouterZoneV1
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - Id string
- Unique identifier of the zone group.
- Service string
- Name of the service.
Available names are
vpc,dedicated,vmware, andinfra.
- Name string
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - Id string
- Unique identifier of the zone group.
- Service string
- Name of the service.
Available names are
vpc,dedicated,vmware, andinfra.
- name String
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - id String
- Unique identifier of the zone group.
- service String
- Name of the service.
Available names are
vpc,dedicated,vmware, andinfra.
- name string
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - id string
- Unique identifier of the zone group.
- service string
- Name of the service.
Available names are
vpc,dedicated,vmware, andinfra.
- name str
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - id str
- Unique identifier of the zone group.
- service str
- Name of the service.
Available names are
vpc,dedicated,vmware, andinfra.
- name String
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - id String
- Unique identifier of the zone group.
- service String
- Name of the service.
Available names are
vpc,dedicated,vmware, andinfra.
getGlobalRouterZoneV1 Result
The following output properties are available:
- Allow
Create bool - Boolean flag, indicates whether the network can be created in the zone.
Falsemeans that the zone is temporarily under maintenance and networks cannot be created in it. - Allow
Delete bool - Boolean flag, indicates whether the network in the zone can be deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be deleted. - Allow
Update bool - Boolean flag, indicates whether the network can be updated in the zone.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be updated. - Created
At string - Time when the zone group was created.
- Enable bool
- Boolean flag, indicates whether networks in the zone can be created, updated, or deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be created, updated, or deleted. - Groups
List<Get
Global Router Zone V1Group> - List of zone groups that include this zone.
- Id string
- Unique identifier of the zone group.
- Name string
- Zone group name.
- Options string
- Zone custom options.
- Service string
- Service name of the zone.
- Updated
At string - Time when the zone group was updated.
- Visible
Name string - Name of the zone to display in the Control Panel.
- Allow
Create bool - Boolean flag, indicates whether the network can be created in the zone.
Falsemeans that the zone is temporarily under maintenance and networks cannot be created in it. - Allow
Delete bool - Boolean flag, indicates whether the network in the zone can be deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be deleted. - Allow
Update bool - Boolean flag, indicates whether the network can be updated in the zone.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be updated. - Created
At string - Time when the zone group was created.
- Enable bool
- Boolean flag, indicates whether networks in the zone can be created, updated, or deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be created, updated, or deleted. - Groups
[]Get
Global Router Zone V1Group - List of zone groups that include this zone.
- Id string
- Unique identifier of the zone group.
- Name string
- Zone group name.
- Options string
- Zone custom options.
- Service string
- Service name of the zone.
- Updated
At string - Time when the zone group was updated.
- Visible
Name string - Name of the zone to display in the Control Panel.
- allow
Create Boolean - Boolean flag, indicates whether the network can be created in the zone.
Falsemeans that the zone is temporarily under maintenance and networks cannot be created in it. - allow
Delete Boolean - Boolean flag, indicates whether the network in the zone can be deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be deleted. - allow
Update Boolean - Boolean flag, indicates whether the network can be updated in the zone.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be updated. - created
At String - Time when the zone group was created.
- enable Boolean
- Boolean flag, indicates whether networks in the zone can be created, updated, or deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be created, updated, or deleted. - groups
List<Get
Global Router Zone V1Group> - List of zone groups that include this zone.
- id String
- Unique identifier of the zone group.
- name String
- Zone group name.
- options String
- Zone custom options.
- service String
- Service name of the zone.
- updated
At String - Time when the zone group was updated.
- visible
Name String - Name of the zone to display in the Control Panel.
- allow
Create boolean - Boolean flag, indicates whether the network can be created in the zone.
Falsemeans that the zone is temporarily under maintenance and networks cannot be created in it. - allow
Delete boolean - Boolean flag, indicates whether the network in the zone can be deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be deleted. - allow
Update boolean - Boolean flag, indicates whether the network can be updated in the zone.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be updated. - created
At string - Time when the zone group was created.
- enable boolean
- Boolean flag, indicates whether networks in the zone can be created, updated, or deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be created, updated, or deleted. - groups
Get
Global Router Zone V1Group[] - List of zone groups that include this zone.
- id string
- Unique identifier of the zone group.
- name string
- Zone group name.
- options string
- Zone custom options.
- service string
- Service name of the zone.
- updated
At string - Time when the zone group was updated.
- visible
Name string - Name of the zone to display in the Control Panel.
- allow_
create bool - Boolean flag, indicates whether the network can be created in the zone.
Falsemeans that the zone is temporarily under maintenance and networks cannot be created in it. - allow_
delete bool - Boolean flag, indicates whether the network in the zone can be deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be deleted. - allow_
update bool - Boolean flag, indicates whether the network can be updated in the zone.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be updated. - created_
at str - Time when the zone group was created.
- enable bool
- Boolean flag, indicates whether networks in the zone can be created, updated, or deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be created, updated, or deleted. - groups
Sequence[Get
Global Router Zone V1Group] - List of zone groups that include this zone.
- id str
- Unique identifier of the zone group.
- name str
- Zone group name.
- options str
- Zone custom options.
- service str
- Service name of the zone.
- updated_
at str - Time when the zone group was updated.
- visible_
name str - Name of the zone to display in the Control Panel.
- allow
Create Boolean - Boolean flag, indicates whether the network can be created in the zone.
Falsemeans that the zone is temporarily under maintenance and networks cannot be created in it. - allow
Delete Boolean - Boolean flag, indicates whether the network in the zone can be deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be deleted. - allow
Update Boolean - Boolean flag, indicates whether the network can be updated in the zone.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be updated. - created
At String - Time when the zone group was created.
- enable Boolean
- Boolean flag, indicates whether networks in the zone can be created, updated, or deleted.
Falsemeans that the zone is temporarily under maintenance and networks in it cannot be created, updated, or deleted. - groups List<Property Map>
- List of zone groups that include this zone.
- id String
- Unique identifier of the zone group.
- name String
- Zone group name.
- options String
- Zone custom options.
- service String
- Service name of the zone.
- updated
At String - Time when the zone group was updated.
- visible
Name String - Name of the zone to display in the Control Panel.
Supporting Types
GetGlobalRouterZoneV1Group
- Created
At string - Time when the zone group was created.
- Description string
- Optional description of the zone group.
- Id string
- Unique identifier of the zone group.
- Name string
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - Updated
At string - Time when the zone group was updated.
- Created
At string - Time when the zone group was created.
- Description string
- Optional description of the zone group.
- Id string
- Unique identifier of the zone group.
- Name string
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - Updated
At string - Time when the zone group was updated.
- created
At String - Time when the zone group was created.
- description String
- Optional description of the zone group.
- id String
- Unique identifier of the zone group.
- name String
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - updated
At String - Time when the zone group was updated.
- created
At string - Time when the zone group was created.
- description string
- Optional description of the zone group.
- id string
- Unique identifier of the zone group.
- name string
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - updated
At string - Time when the zone group was updated.
- created_
at str - Time when the zone group was created.
- description str
- Optional description of the zone group.
- id str
- Unique identifier of the zone group.
- name str
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - updated_
at str - Time when the zone group was updated.
- created
At String - Time when the zone group was created.
- description String
- Optional description of the zone group.
- id String
- Unique identifier of the zone group.
- name String
- Pool, for example,
ru-3. Learn more about available pools in the Availability matrix. - updated
At String - Time when the zone group was updated.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
