1. Packages
  2. Selectel Provider
  3. API Docs
  4. getGlobalRouterServiceV1
selectel 7.5.2 published on Saturday, Jan 31, 2026 by selectel
selectel logo
selectel 7.5.2 published on Saturday, Jan 31, 2026 by selectel

    Provides a list of services in the Global Router service using public API v1. A service represents a scope of products and services using the same network infrastructure. For example, the vpc service represents cloud servers, file storage, Managed Kubernetes, and Managed Databases. 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 service1 = selectel.getGlobalRouterServiceV1({
        name: "vpc",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    service1 = selectel.get_global_router_service_v1(name="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.GetGlobalRouterServiceV1(ctx, &selectel.GetGlobalRouterServiceV1Args{
    			Name: "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 service1 = Selectel.GetGlobalRouterServiceV1.Invoke(new()
        {
            Name = "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.GetGlobalRouterServiceV1Args;
    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 service1 = SelectelFunctions.getGlobalRouterServiceV1(GetGlobalRouterServiceV1Args.builder()
                .name("vpc")
                .build());
    
        }
    }
    
    variables:
      service1:
        fn::invoke:
          function: selectel:getGlobalRouterServiceV1
          arguments:
            name: vpc
    

    Using getGlobalRouterServiceV1

    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 getGlobalRouterServiceV1(args: GetGlobalRouterServiceV1Args, opts?: InvokeOptions): Promise<GetGlobalRouterServiceV1Result>
    function getGlobalRouterServiceV1Output(args: GetGlobalRouterServiceV1OutputArgs, opts?: InvokeOptions): Output<GetGlobalRouterServiceV1Result>
    def get_global_router_service_v1(id: Optional[str] = None,
                                     name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetGlobalRouterServiceV1Result
    def get_global_router_service_v1_output(id: Optional[pulumi.Input[str]] = None,
                                     name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetGlobalRouterServiceV1Result]
    func GetGlobalRouterServiceV1(ctx *Context, args *GetGlobalRouterServiceV1Args, opts ...InvokeOption) (*GetGlobalRouterServiceV1Result, error)
    func GetGlobalRouterServiceV1Output(ctx *Context, args *GetGlobalRouterServiceV1OutputArgs, opts ...InvokeOption) GetGlobalRouterServiceV1ResultOutput

    > Note: This function is named GetGlobalRouterServiceV1 in the Go SDK.

    public static class GetGlobalRouterServiceV1 
    {
        public static Task<GetGlobalRouterServiceV1Result> InvokeAsync(GetGlobalRouterServiceV1Args args, InvokeOptions? opts = null)
        public static Output<GetGlobalRouterServiceV1Result> Invoke(GetGlobalRouterServiceV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGlobalRouterServiceV1Result> getGlobalRouterServiceV1(GetGlobalRouterServiceV1Args args, InvokeOptions options)
    public static Output<GetGlobalRouterServiceV1Result> getGlobalRouterServiceV1(GetGlobalRouterServiceV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: selectel:index/getGlobalRouterServiceV1:getGlobalRouterServiceV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Service name. Available names are dedicated, vpc, vmware, and infra. If the service name is not specified, the data source will return the full list of services.
    Id string
    Unique identifier of the service.
    Name string
    Service name. Available names are dedicated, vpc, vmware, and infra. If the service name is not specified, the data source will return the full list of services.
    Id string
    Unique identifier of the service.
    name String
    Service name. Available names are dedicated, vpc, vmware, and infra. If the service name is not specified, the data source will return the full list of services.
    id String
    Unique identifier of the service.
    name string
    Service name. Available names are dedicated, vpc, vmware, and infra. If the service name is not specified, the data source will return the full list of services.
    id string
    Unique identifier of the service.
    name str
    Service name. Available names are dedicated, vpc, vmware, and infra. If the service name is not specified, the data source will return the full list of services.
    id str
    Unique identifier of the service.
    name String
    Service name. Available names are dedicated, vpc, vmware, and infra. If the service name is not specified, the data source will return the full list of services.
    id String
    Unique identifier of the service.

    getGlobalRouterServiceV1 Result

    The following output properties are available:

    CreatedAt string
    Time when the service was created.
    Extension string
    Extension which the Global Router service uses to work with the service. Usually matches the service name.
    Id string
    Unique identifier of the service.
    Name string
    Service name.
    CreatedAt string
    Time when the service was created.
    Extension string
    Extension which the Global Router service uses to work with the service. Usually matches the service name.
    Id string
    Unique identifier of the service.
    Name string
    Service name.
    createdAt String
    Time when the service was created.
    extension String
    Extension which the Global Router service uses to work with the service. Usually matches the service name.
    id String
    Unique identifier of the service.
    name String
    Service name.
    createdAt string
    Time when the service was created.
    extension string
    Extension which the Global Router service uses to work with the service. Usually matches the service name.
    id string
    Unique identifier of the service.
    name string
    Service name.
    created_at str
    Time when the service was created.
    extension str
    Extension which the Global Router service uses to work with the service. Usually matches the service name.
    id str
    Unique identifier of the service.
    name str
    Service name.
    createdAt String
    Time when the service was created.
    extension String
    Extension which the Global Router service uses to work with the service. Usually matches the service name.
    id String
    Unique identifier of the service.
    name String
    Service name.

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 7.5.2 published on Saturday, Jan 31, 2026 by selectel
      Meet Neo: Your AI Platform Teammate