Viewing docs for selectel 7.6.0
published on Thursday, Mar 12, 2026 by selectel
published on Thursday, Mar 12, 2026 by selectel
Viewing docs for selectel 7.6.0
published on Thursday, Mar 12, 2026 by selectel
published on Thursday, Mar 12, 2026 by selectel
Provides a list of zone groups in the Global Router service using public API v1. Zone group is a logical association of zones. A global router can only connect networks of the same zone group. 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",
});
const zoneGroup1 = zone1.then(zone1 => selectel.getGlobalRouterZoneGroupV1({
name: zone1.groups?.[0]?.name,
}));
import pulumi
import pulumi_selectel as selectel
zone1 = selectel.get_global_router_zone_v1(name="ru-3",
service="vpc")
zone_group1 = selectel.get_global_router_zone_group_v1(name=zone1.groups[0].name)
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 {
zone1, err := selectel.GetGlobalRouterZoneV1(ctx, &selectel.GetGlobalRouterZoneV1Args{
Name: "ru-3",
Service: pulumi.StringRef("vpc"),
}, nil)
if err != nil {
return err
}
_, err = selectel.GetGlobalRouterZoneGroupV1(ctx, &selectel.GetGlobalRouterZoneGroupV1Args{
Name: zone1.Groups[0].Name,
}, 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",
});
var zoneGroup1 = Selectel.GetGlobalRouterZoneGroupV1.Invoke(new()
{
Name = zone1.Apply(getGlobalRouterZoneV1Result => getGlobalRouterZoneV1Result.Groups[0]?.Name),
});
});
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 com.pulumi.selectel.inputs.GetGlobalRouterZoneGroupV1Args;
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());
final var zoneGroup1 = SelectelFunctions.getGlobalRouterZoneGroupV1(GetGlobalRouterZoneGroupV1Args.builder()
.name(zone1.groups()[0].name())
.build());
}
}
variables:
zone1:
fn::invoke:
function: selectel:getGlobalRouterZoneV1
arguments:
name: ru-3
service: vpc
zoneGroup1:
fn::invoke:
function: selectel:getGlobalRouterZoneGroupV1
arguments:
name: ${zone1.groups[0].name}
Using getGlobalRouterZoneGroupV1
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 getGlobalRouterZoneGroupV1(args: GetGlobalRouterZoneGroupV1Args, opts?: InvokeOptions): Promise<GetGlobalRouterZoneGroupV1Result>
function getGlobalRouterZoneGroupV1Output(args: GetGlobalRouterZoneGroupV1OutputArgs, opts?: InvokeOptions): Output<GetGlobalRouterZoneGroupV1Result>def get_global_router_zone_group_v1(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGlobalRouterZoneGroupV1Result
def get_global_router_zone_group_v1_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGlobalRouterZoneGroupV1Result]func GetGlobalRouterZoneGroupV1(ctx *Context, args *GetGlobalRouterZoneGroupV1Args, opts ...InvokeOption) (*GetGlobalRouterZoneGroupV1Result, error)
func GetGlobalRouterZoneGroupV1Output(ctx *Context, args *GetGlobalRouterZoneGroupV1OutputArgs, opts ...InvokeOption) GetGlobalRouterZoneGroupV1ResultOutput> Note: This function is named GetGlobalRouterZoneGroupV1 in the Go SDK.
public static class GetGlobalRouterZoneGroupV1
{
public static Task<GetGlobalRouterZoneGroupV1Result> InvokeAsync(GetGlobalRouterZoneGroupV1Args args, InvokeOptions? opts = null)
public static Output<GetGlobalRouterZoneGroupV1Result> Invoke(GetGlobalRouterZoneGroupV1InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGlobalRouterZoneGroupV1Result> getGlobalRouterZoneGroupV1(GetGlobalRouterZoneGroupV1Args args, InvokeOptions options)
public static Output<GetGlobalRouterZoneGroupV1Result> getGlobalRouterZoneGroupV1(GetGlobalRouterZoneGroupV1Args args, InvokeOptions options)
fn::invoke:
function: selectel:index/getGlobalRouterZoneGroupV1:getGlobalRouterZoneGroupV1
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Zone group name, for example,
public_rf. Retrieved from the selectel.getGlobalRouterZoneV1 data source of the corresponding zone, or via the List zone groups method in the Global Router API. - Id string
- Unique identifier of the zone group.
- Name string
- Zone group name, for example,
public_rf. Retrieved from the selectel.getGlobalRouterZoneV1 data source of the corresponding zone, or via the List zone groups method in the Global Router API. - Id string
- Unique identifier of the zone group.
- name String
- Zone group name, for example,
public_rf. Retrieved from the selectel.getGlobalRouterZoneV1 data source of the corresponding zone, or via the List zone groups method in the Global Router API. - id String
- Unique identifier of the zone group.
- name string
- Zone group name, for example,
public_rf. Retrieved from the selectel.getGlobalRouterZoneV1 data source of the corresponding zone, or via the List zone groups method in the Global Router API. - id string
- Unique identifier of the zone group.
- name str
- Zone group name, for example,
public_rf. Retrieved from the selectel.getGlobalRouterZoneV1 data source of the corresponding zone, or via the List zone groups method in the Global Router API. - id str
- Unique identifier of the zone group.
- name String
- Zone group name, for example,
public_rf. Retrieved from the selectel.getGlobalRouterZoneV1 data source of the corresponding zone, or via the List zone groups method in the Global Router API. - id String
- Unique identifier of the zone group.
getGlobalRouterZoneGroupV1 Result
The following output properties are available:
- Created
At string - Time when the zone group was created.
- Description string
- Optional description for the zone group.
- Id string
- Unique identifier of the zone group.
- Name string
- Zone group name.
- Updated
At string - Time when the zone group was updated.
- Created
At string - Time when the zone group was created.
- Description string
- Optional description for the zone group.
- Id string
- Unique identifier of the zone group.
- Name string
- Zone group name.
- Updated
At string - Time when the zone group was updated.
- created
At String - Time when the zone group was created.
- description String
- Optional description for the zone group.
- id String
- Unique identifier of the zone group.
- name String
- Zone group name.
- updated
At String - Time when the zone group was updated.
- created
At string - Time when the zone group was created.
- description string
- Optional description for the zone group.
- id string
- Unique identifier of the zone group.
- name string
- Zone group name.
- updated
At string - Time when the zone group was updated.
- created_
at str - Time when the zone group was created.
- description str
- Optional description for the zone group.
- id str
- Unique identifier of the zone group.
- name str
- Zone group name.
- updated_
at str - Time when the zone group was updated.
- created
At String - Time when the zone group was created.
- description String
- Optional description for the zone group.
- id String
- Unique identifier of the zone group.
- name String
- Zone group name.
- 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.
Viewing docs for selectel 7.6.0
published on Thursday, Mar 12, 2026 by selectel
published on Thursday, Mar 12, 2026 by selectel
