Creates and manages a global router in the Global Router service using public API v1. 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 globalRouter1 = new selectel.GlobalRouterRouterV1("global_router_1", {
name: "test_router",
tags: [
"blue",
"red",
],
});
import pulumi
import pulumi_selectel as selectel
global_router1 = selectel.GlobalRouterRouterV1("global_router_1",
name="test_router",
tags=[
"blue",
"red",
])
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.NewGlobalRouterRouterV1(ctx, "global_router_1", &selectel.GlobalRouterRouterV1Args{
Name: pulumi.String("test_router"),
Tags: pulumi.StringArray{
pulumi.String("blue"),
pulumi.String("red"),
},
})
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 globalRouter1 = new Selectel.GlobalRouterRouterV1("global_router_1", new()
{
Name = "test_router",
Tags = new[]
{
"blue",
"red",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.GlobalRouterRouterV1;
import com.pulumi.selectel.GlobalRouterRouterV1Args;
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) {
var globalRouter1 = new GlobalRouterRouterV1("globalRouter1", GlobalRouterRouterV1Args.builder()
.name("test_router")
.tags(
"blue",
"red")
.build());
}
}
resources:
globalRouter1:
type: selectel:GlobalRouterRouterV1
name: global_router_1
properties:
name: test_router
tags:
- blue
- red
Create GlobalRouterRouterV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GlobalRouterRouterV1(name: string, args?: GlobalRouterRouterV1Args, opts?: CustomResourceOptions);@overload
def GlobalRouterRouterV1(resource_name: str,
args: Optional[GlobalRouterRouterV1Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def GlobalRouterRouterV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
global_router_router_v1_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[GlobalRouterRouterV1TimeoutsArgs] = None)func NewGlobalRouterRouterV1(ctx *Context, name string, args *GlobalRouterRouterV1Args, opts ...ResourceOption) (*GlobalRouterRouterV1, error)public GlobalRouterRouterV1(string name, GlobalRouterRouterV1Args? args = null, CustomResourceOptions? opts = null)
public GlobalRouterRouterV1(String name, GlobalRouterRouterV1Args args)
public GlobalRouterRouterV1(String name, GlobalRouterRouterV1Args args, CustomResourceOptions options)
type: selectel:GlobalRouterRouterV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GlobalRouterRouterV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GlobalRouterRouterV1Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GlobalRouterRouterV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GlobalRouterRouterV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GlobalRouterRouterV1Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var globalRouterRouterV1Resource = new Selectel.GlobalRouterRouterV1("globalRouterRouterV1Resource", new()
{
GlobalRouterRouterV1Id = "string",
Name = "string",
Tags = new[]
{
"string",
},
Timeouts = new Selectel.Inputs.GlobalRouterRouterV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := selectel.NewGlobalRouterRouterV1(ctx, "globalRouterRouterV1Resource", &selectel.GlobalRouterRouterV1Args{
GlobalRouterRouterV1Id: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &selectel.GlobalRouterRouterV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var globalRouterRouterV1Resource = new GlobalRouterRouterV1("globalRouterRouterV1Resource", GlobalRouterRouterV1Args.builder()
.globalRouterRouterV1Id("string")
.name("string")
.tags("string")
.timeouts(GlobalRouterRouterV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
global_router_router_v1_resource = selectel.GlobalRouterRouterV1("globalRouterRouterV1Resource",
global_router_router_v1_id="string",
name="string",
tags=["string"],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const globalRouterRouterV1Resource = new selectel.GlobalRouterRouterV1("globalRouterRouterV1Resource", {
globalRouterRouterV1Id: "string",
name: "string",
tags: ["string"],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: selectel:GlobalRouterRouterV1
properties:
globalRouterRouterV1Id: string
name: string
tags:
- string
timeouts:
create: string
delete: string
update: string
GlobalRouterRouterV1 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GlobalRouterRouterV1 resource accepts the following input properties:
- Global
Router stringRouter V1Id - Unique identifier of the router.
- Name string
- Name of the router.
- List<string>
- List of router tags.
- Timeouts
Global
Router Router V1Timeouts
- Global
Router stringRouter V1Id - Unique identifier of the router.
- Name string
- Name of the router.
- []string
- List of router tags.
- Timeouts
Global
Router Router V1Timeouts Args
- global
Router StringRouter V1Id - Unique identifier of the router.
- name String
- Name of the router.
- List<String>
- List of router tags.
- timeouts
Global
Router Router V1Timeouts
- global
Router stringRouter V1Id - Unique identifier of the router.
- name string
- Name of the router.
- string[]
- List of router tags.
- timeouts
Global
Router Router V1Timeouts
- global_
router_ strrouter_ v1_ id - Unique identifier of the router.
- name str
- Name of the router.
- Sequence[str]
- List of router tags.
- timeouts
Global
Router Router V1Timeouts Args
- global
Router StringRouter V1Id - Unique identifier of the router.
- name String
- Name of the router.
- List<String>
- List of router tags.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the GlobalRouterRouterV1 resource produces the following output properties:
- Account
Id string - Selectel account ID.
- Created
At string - Time when the router was created.
- Enabled bool
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - Id string
- The provider-assigned unique ID for this managed resource.
- Leak
Uuid string - Unique identifier for a group of routers united by a single logical entity.
- Netops
Router stringId - Option for internal usage.
- Prefix
Pool stringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- Project
Id string - Unique identifier of the associated project.
- Status string
- Router status. Learn more about router statuses.
- Updated
At string - Time when the router was updated.
- Vpn
Id double - Option for internal usage.
- Account
Id string - Selectel account ID.
- Created
At string - Time when the router was created.
- Enabled bool
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - Id string
- The provider-assigned unique ID for this managed resource.
- Leak
Uuid string - Unique identifier for a group of routers united by a single logical entity.
- Netops
Router stringId - Option for internal usage.
- Prefix
Pool stringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- Project
Id string - Unique identifier of the associated project.
- Status string
- Router status. Learn more about router statuses.
- Updated
At string - Time when the router was updated.
- Vpn
Id float64 - Option for internal usage.
- account
Id String - Selectel account ID.
- created
At String - Time when the router was created.
- enabled Boolean
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - id String
- The provider-assigned unique ID for this managed resource.
- leak
Uuid String - Unique identifier for a group of routers united by a single logical entity.
- netops
Router StringId - Option for internal usage.
- prefix
Pool StringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- project
Id String - Unique identifier of the associated project.
- status String
- Router status. Learn more about router statuses.
- updated
At String - Time when the router was updated.
- vpn
Id Double - Option for internal usage.
- account
Id string - Selectel account ID.
- created
At string - Time when the router was created.
- enabled boolean
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - id string
- The provider-assigned unique ID for this managed resource.
- leak
Uuid string - Unique identifier for a group of routers united by a single logical entity.
- netops
Router stringId - Option for internal usage.
- prefix
Pool stringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- project
Id string - Unique identifier of the associated project.
- status string
- Router status. Learn more about router statuses.
- updated
At string - Time when the router was updated.
- vpn
Id number - Option for internal usage.
- account_
id str - Selectel account ID.
- created_
at str - Time when the router was created.
- enabled bool
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - id str
- The provider-assigned unique ID for this managed resource.
- leak_
uuid str - Unique identifier for a group of routers united by a single logical entity.
- netops_
router_ strid - Option for internal usage.
- prefix_
pool_ strid - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- project_
id str - Unique identifier of the associated project.
- status str
- Router status. Learn more about router statuses.
- updated_
at str - Time when the router was updated.
- vpn_
id float - Option for internal usage.
- account
Id String - Selectel account ID.
- created
At String - Time when the router was created.
- enabled Boolean
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - id String
- The provider-assigned unique ID for this managed resource.
- leak
Uuid String - Unique identifier for a group of routers united by a single logical entity.
- netops
Router StringId - Option for internal usage.
- prefix
Pool StringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- project
Id String - Unique identifier of the associated project.
- status String
- Router status. Learn more about router statuses.
- updated
At String - Time when the router was updated.
- vpn
Id Number - Option for internal usage.
Look up Existing GlobalRouterRouterV1 Resource
Get an existing GlobalRouterRouterV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GlobalRouterRouterV1State, opts?: CustomResourceOptions): GlobalRouterRouterV1@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
created_at: Optional[str] = None,
enabled: Optional[bool] = None,
global_router_router_v1_id: Optional[str] = None,
leak_uuid: Optional[str] = None,
name: Optional[str] = None,
netops_router_id: Optional[str] = None,
prefix_pool_id: Optional[str] = None,
project_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[GlobalRouterRouterV1TimeoutsArgs] = None,
updated_at: Optional[str] = None,
vpn_id: Optional[float] = None) -> GlobalRouterRouterV1func GetGlobalRouterRouterV1(ctx *Context, name string, id IDInput, state *GlobalRouterRouterV1State, opts ...ResourceOption) (*GlobalRouterRouterV1, error)public static GlobalRouterRouterV1 Get(string name, Input<string> id, GlobalRouterRouterV1State? state, CustomResourceOptions? opts = null)public static GlobalRouterRouterV1 get(String name, Output<String> id, GlobalRouterRouterV1State state, CustomResourceOptions options)resources: _: type: selectel:GlobalRouterRouterV1 get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Selectel account ID.
- Created
At string - Time when the router was created.
- Enabled bool
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - Global
Router stringRouter V1Id - Unique identifier of the router.
- Leak
Uuid string - Unique identifier for a group of routers united by a single logical entity.
- Name string
- Name of the router.
- Netops
Router stringId - Option for internal usage.
- Prefix
Pool stringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- Project
Id string - Unique identifier of the associated project.
- Status string
- Router status. Learn more about router statuses.
- List<string>
- List of router tags.
- Timeouts
Global
Router Router V1Timeouts - Updated
At string - Time when the router was updated.
- Vpn
Id double - Option for internal usage.
- Account
Id string - Selectel account ID.
- Created
At string - Time when the router was created.
- Enabled bool
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - Global
Router stringRouter V1Id - Unique identifier of the router.
- Leak
Uuid string - Unique identifier for a group of routers united by a single logical entity.
- Name string
- Name of the router.
- Netops
Router stringId - Option for internal usage.
- Prefix
Pool stringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- Project
Id string - Unique identifier of the associated project.
- Status string
- Router status. Learn more about router statuses.
- []string
- List of router tags.
- Timeouts
Global
Router Router V1Timeouts Args - Updated
At string - Time when the router was updated.
- Vpn
Id float64 - Option for internal usage.
- account
Id String - Selectel account ID.
- created
At String - Time when the router was created.
- enabled Boolean
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - global
Router StringRouter V1Id - Unique identifier of the router.
- leak
Uuid String - Unique identifier for a group of routers united by a single logical entity.
- name String
- Name of the router.
- netops
Router StringId - Option for internal usage.
- prefix
Pool StringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- project
Id String - Unique identifier of the associated project.
- status String
- Router status. Learn more about router statuses.
- List<String>
- List of router tags.
- timeouts
Global
Router Router V1Timeouts - updated
At String - Time when the router was updated.
- vpn
Id Double - Option for internal usage.
- account
Id string - Selectel account ID.
- created
At string - Time when the router was created.
- enabled boolean
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - global
Router stringRouter V1Id - Unique identifier of the router.
- leak
Uuid string - Unique identifier for a group of routers united by a single logical entity.
- name string
- Name of the router.
- netops
Router stringId - Option for internal usage.
- prefix
Pool stringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- project
Id string - Unique identifier of the associated project.
- status string
- Router status. Learn more about router statuses.
- string[]
- List of router tags.
- timeouts
Global
Router Router V1Timeouts - updated
At string - Time when the router was updated.
- vpn
Id number - Option for internal usage.
- account_
id str - Selectel account ID.
- created_
at str - Time when the router was created.
- enabled bool
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - global_
router_ strrouter_ v1_ id - Unique identifier of the router.
- leak_
uuid str - Unique identifier for a group of routers united by a single logical entity.
- name str
- Name of the router.
- netops_
router_ strid - Option for internal usage.
- prefix_
pool_ strid - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- project_
id str - Unique identifier of the associated project.
- status str
- Router status. Learn more about router statuses.
- Sequence[str]
- List of router tags.
- timeouts
Global
Router Router V1Timeouts Args - updated_
at str - Time when the router was updated.
- vpn_
id float - Option for internal usage.
- account
Id String - Selectel account ID.
- created
At String - Time when the router was created.
- enabled Boolean
- Boolean flag, indicates whether the router is active.
Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected. - global
Router StringRouter V1Id - Unique identifier of the router.
- leak
Uuid String - Unique identifier for a group of routers united by a single logical entity.
- name String
- Name of the router.
- netops
Router StringId - Option for internal usage.
- prefix
Pool StringId - Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.
- project
Id String - Unique identifier of the associated project.
- status String
- Router status. Learn more about router statuses.
- List<String>
- List of router tags.
- timeouts Property Map
- updated
At String - Time when the router was updated.
- vpn
Id Number - Option for internal usage.
Supporting Types
GlobalRouterRouterV1Timeouts, GlobalRouterRouterV1TimeoutsArgs
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
