1. Packages
  2. Selectel Provider
  3. API Docs
  4. GlobalRouterStaticRouteV1
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

    Creates and manages a static route in the Global Router service using public API v1. For more information about global router static routes, see the official Selectel documentation.

    Note: Next hop IP address in a static route must belong to one of the subnets already connected to the router. If you create the selectel.GlobalRouterVpcSubnetV1 resource in the same run as the static route, make sure to use depends_on to enforce the global router subnet resource creation before the static route creation is triggered. We strongly recommend to use the lifecycle argument that triggers static route recreation in case the parent subnet was recreated.

    Create GlobalRouterStaticRouteV1 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GlobalRouterStaticRouteV1(name: string, args: GlobalRouterStaticRouteV1Args, opts?: CustomResourceOptions);
    @overload
    def GlobalRouterStaticRouteV1(resource_name: str,
                                  args: GlobalRouterStaticRouteV1Args,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def GlobalRouterStaticRouteV1(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  cidr: Optional[str] = None,
                                  next_hop: Optional[str] = None,
                                  router_id: Optional[str] = None,
                                  global_router_static_route_v1_id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  tags: Optional[Sequence[str]] = None,
                                  timeouts: Optional[GlobalRouterStaticRouteV1TimeoutsArgs] = None)
    func NewGlobalRouterStaticRouteV1(ctx *Context, name string, args GlobalRouterStaticRouteV1Args, opts ...ResourceOption) (*GlobalRouterStaticRouteV1, error)
    public GlobalRouterStaticRouteV1(string name, GlobalRouterStaticRouteV1Args args, CustomResourceOptions? opts = null)
    public GlobalRouterStaticRouteV1(String name, GlobalRouterStaticRouteV1Args args)
    public GlobalRouterStaticRouteV1(String name, GlobalRouterStaticRouteV1Args args, CustomResourceOptions options)
    
    type: selectel:GlobalRouterStaticRouteV1
    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 GlobalRouterStaticRouteV1Args
    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 GlobalRouterStaticRouteV1Args
    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 GlobalRouterStaticRouteV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GlobalRouterStaticRouteV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GlobalRouterStaticRouteV1Args
    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 globalRouterStaticRouteV1Resource = new Selectel.GlobalRouterStaticRouteV1("globalRouterStaticRouteV1Resource", new()
    {
        Cidr = "string",
        NextHop = "string",
        RouterId = "string",
        GlobalRouterStaticRouteV1Id = "string",
        Name = "string",
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Selectel.Inputs.GlobalRouterStaticRouteV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := selectel.NewGlobalRouterStaticRouteV1(ctx, "globalRouterStaticRouteV1Resource", &selectel.GlobalRouterStaticRouteV1Args{
    	Cidr:                        pulumi.String("string"),
    	NextHop:                     pulumi.String("string"),
    	RouterId:                    pulumi.String("string"),
    	GlobalRouterStaticRouteV1Id: pulumi.String("string"),
    	Name:                        pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &selectel.GlobalRouterStaticRouteV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var globalRouterStaticRouteV1Resource = new GlobalRouterStaticRouteV1("globalRouterStaticRouteV1Resource", GlobalRouterStaticRouteV1Args.builder()
        .cidr("string")
        .nextHop("string")
        .routerId("string")
        .globalRouterStaticRouteV1Id("string")
        .name("string")
        .tags("string")
        .timeouts(GlobalRouterStaticRouteV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    global_router_static_route_v1_resource = selectel.GlobalRouterStaticRouteV1("globalRouterStaticRouteV1Resource",
        cidr="string",
        next_hop="string",
        router_id="string",
        global_router_static_route_v1_id="string",
        name="string",
        tags=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const globalRouterStaticRouteV1Resource = new selectel.GlobalRouterStaticRouteV1("globalRouterStaticRouteV1Resource", {
        cidr: "string",
        nextHop: "string",
        routerId: "string",
        globalRouterStaticRouteV1Id: "string",
        name: "string",
        tags: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: selectel:GlobalRouterStaticRouteV1
    properties:
        cidr: string
        globalRouterStaticRouteV1Id: string
        name: string
        nextHop: string
        routerId: string
        tags:
            - string
        timeouts:
            create: string
            delete: string
            update: string
    

    GlobalRouterStaticRouteV1 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 GlobalRouterStaticRouteV1 resource accepts the following input properties:

    Cidr string
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    NextHop string
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    RouterId string
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    GlobalRouterStaticRouteV1Id string
    Unique identifier of the static route.
    Name string
    Name of the static route.
    Tags List<string>
    List of static route tags.
    Timeouts GlobalRouterStaticRouteV1Timeouts
    Cidr string
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    NextHop string
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    RouterId string
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    GlobalRouterStaticRouteV1Id string
    Unique identifier of the static route.
    Name string
    Name of the static route.
    Tags []string
    List of static route tags.
    Timeouts GlobalRouterStaticRouteV1TimeoutsArgs
    cidr String
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    nextHop String
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    routerId String
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    globalRouterStaticRouteV1Id String
    Unique identifier of the static route.
    name String
    Name of the static route.
    tags List<String>
    List of static route tags.
    timeouts GlobalRouterStaticRouteV1Timeouts
    cidr string
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    nextHop string
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    routerId string
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    globalRouterStaticRouteV1Id string
    Unique identifier of the static route.
    name string
    Name of the static route.
    tags string[]
    List of static route tags.
    timeouts GlobalRouterStaticRouteV1Timeouts
    cidr str
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    next_hop str
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    router_id str
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    global_router_static_route_v1_id str
    Unique identifier of the static route.
    name str
    Name of the static route.
    tags Sequence[str]
    List of static route tags.
    timeouts GlobalRouterStaticRouteV1TimeoutsArgs
    cidr String
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    nextHop String
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    routerId String
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    globalRouterStaticRouteV1Id String
    Unique identifier of the static route.
    name String
    Name of the static route.
    tags List<String>
    List of static route tags.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GlobalRouterStaticRouteV1 resource produces the following output properties:

    AccountId string
    Selectel account ID.
    CreatedAt string
    Time when the static route was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetopsStaticRouteId string
    Option for internal usage.
    ProjectId string
    Unique identifier of the associated project.
    Status string
    Static route status.
    SubnetId string
    Unique identifier of the global router subnet which contains the next hop IP address.
    UpdatedAt string
    Time when the static route was updated.
    AccountId string
    Selectel account ID.
    CreatedAt string
    Time when the static route was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetopsStaticRouteId string
    Option for internal usage.
    ProjectId string
    Unique identifier of the associated project.
    Status string
    Static route status.
    SubnetId string
    Unique identifier of the global router subnet which contains the next hop IP address.
    UpdatedAt string
    Time when the static route was updated.
    accountId String
    Selectel account ID.
    createdAt String
    Time when the static route was created.
    id String
    The provider-assigned unique ID for this managed resource.
    netopsStaticRouteId String
    Option for internal usage.
    projectId String
    Unique identifier of the associated project.
    status String
    Static route status.
    subnetId String
    Unique identifier of the global router subnet which contains the next hop IP address.
    updatedAt String
    Time when the static route was updated.
    accountId string
    Selectel account ID.
    createdAt string
    Time when the static route was created.
    id string
    The provider-assigned unique ID for this managed resource.
    netopsStaticRouteId string
    Option for internal usage.
    projectId string
    Unique identifier of the associated project.
    status string
    Static route status.
    subnetId string
    Unique identifier of the global router subnet which contains the next hop IP address.
    updatedAt string
    Time when the static route was updated.
    account_id str
    Selectel account ID.
    created_at str
    Time when the static route was created.
    id str
    The provider-assigned unique ID for this managed resource.
    netops_static_route_id str
    Option for internal usage.
    project_id str
    Unique identifier of the associated project.
    status str
    Static route status.
    subnet_id str
    Unique identifier of the global router subnet which contains the next hop IP address.
    updated_at str
    Time when the static route was updated.
    accountId String
    Selectel account ID.
    createdAt String
    Time when the static route was created.
    id String
    The provider-assigned unique ID for this managed resource.
    netopsStaticRouteId String
    Option for internal usage.
    projectId String
    Unique identifier of the associated project.
    status String
    Static route status.
    subnetId String
    Unique identifier of the global router subnet which contains the next hop IP address.
    updatedAt String
    Time when the static route was updated.

    Look up Existing GlobalRouterStaticRouteV1 Resource

    Get an existing GlobalRouterStaticRouteV1 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?: GlobalRouterStaticRouteV1State, opts?: CustomResourceOptions): GlobalRouterStaticRouteV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            cidr: Optional[str] = None,
            created_at: Optional[str] = None,
            global_router_static_route_v1_id: Optional[str] = None,
            name: Optional[str] = None,
            netops_static_route_id: Optional[str] = None,
            next_hop: Optional[str] = None,
            project_id: Optional[str] = None,
            router_id: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[GlobalRouterStaticRouteV1TimeoutsArgs] = None,
            updated_at: Optional[str] = None) -> GlobalRouterStaticRouteV1
    func GetGlobalRouterStaticRouteV1(ctx *Context, name string, id IDInput, state *GlobalRouterStaticRouteV1State, opts ...ResourceOption) (*GlobalRouterStaticRouteV1, error)
    public static GlobalRouterStaticRouteV1 Get(string name, Input<string> id, GlobalRouterStaticRouteV1State? state, CustomResourceOptions? opts = null)
    public static GlobalRouterStaticRouteV1 get(String name, Output<String> id, GlobalRouterStaticRouteV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:GlobalRouterStaticRouteV1    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.
    The following state arguments are supported:
    AccountId string
    Selectel account ID.
    Cidr string
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    CreatedAt string
    Time when the static route was created.
    GlobalRouterStaticRouteV1Id string
    Unique identifier of the static route.
    Name string
    Name of the static route.
    NetopsStaticRouteId string
    Option for internal usage.
    NextHop string
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    ProjectId string
    Unique identifier of the associated project.
    RouterId string
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    Status string
    Static route status.
    SubnetId string
    Unique identifier of the global router subnet which contains the next hop IP address.
    Tags List<string>
    List of static route tags.
    Timeouts GlobalRouterStaticRouteV1Timeouts
    UpdatedAt string
    Time when the static route was updated.
    AccountId string
    Selectel account ID.
    Cidr string
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    CreatedAt string
    Time when the static route was created.
    GlobalRouterStaticRouteV1Id string
    Unique identifier of the static route.
    Name string
    Name of the static route.
    NetopsStaticRouteId string
    Option for internal usage.
    NextHop string
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    ProjectId string
    Unique identifier of the associated project.
    RouterId string
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    Status string
    Static route status.
    SubnetId string
    Unique identifier of the global router subnet which contains the next hop IP address.
    Tags []string
    List of static route tags.
    Timeouts GlobalRouterStaticRouteV1TimeoutsArgs
    UpdatedAt string
    Time when the static route was updated.
    accountId String
    Selectel account ID.
    cidr String
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    createdAt String
    Time when the static route was created.
    globalRouterStaticRouteV1Id String
    Unique identifier of the static route.
    name String
    Name of the static route.
    netopsStaticRouteId String
    Option for internal usage.
    nextHop String
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    projectId String
    Unique identifier of the associated project.
    routerId String
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    status String
    Static route status.
    subnetId String
    Unique identifier of the global router subnet which contains the next hop IP address.
    tags List<String>
    List of static route tags.
    timeouts GlobalRouterStaticRouteV1Timeouts
    updatedAt String
    Time when the static route was updated.
    accountId string
    Selectel account ID.
    cidr string
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    createdAt string
    Time when the static route was created.
    globalRouterStaticRouteV1Id string
    Unique identifier of the static route.
    name string
    Name of the static route.
    netopsStaticRouteId string
    Option for internal usage.
    nextHop string
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    projectId string
    Unique identifier of the associated project.
    routerId string
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    status string
    Static route status.
    subnetId string
    Unique identifier of the global router subnet which contains the next hop IP address.
    tags string[]
    List of static route tags.
    timeouts GlobalRouterStaticRouteV1Timeouts
    updatedAt string
    Time when the static route was updated.
    account_id str
    Selectel account ID.
    cidr str
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    created_at str
    Time when the static route was created.
    global_router_static_route_v1_id str
    Unique identifier of the static route.
    name str
    Name of the static route.
    netops_static_route_id str
    Option for internal usage.
    next_hop str
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    project_id str
    Unique identifier of the associated project.
    router_id str
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    status str
    Static route status.
    subnet_id str
    Unique identifier of the global router subnet which contains the next hop IP address.
    tags Sequence[str]
    List of static route tags.
    timeouts GlobalRouterStaticRouteV1TimeoutsArgs
    updated_at str
    Time when the static route was updated.
    accountId String
    Selectel account ID.
    cidr String
    Destination subnet IP address range in CIDR notation to which you direct traffic. Changing this deletes the static route and recreates it with the new argument value.
    createdAt String
    Time when the static route was created.
    globalRouterStaticRouteV1Id String
    Unique identifier of the static route.
    name String
    Name of the static route.
    netopsStaticRouteId String
    Option for internal usage.
    nextHop String
    IP address in a subnet through which traffic will be routed to the destination subnet. The IP address must belong to one of the subnets connected to the router. Changing this deletes the static route and recreates it with the new argument value.
    projectId String
    Unique identifier of the associated project.
    routerId String
    Unique identifier of the global router the static route will be created on. Retrieved from the global_router_router_v1 resource. Changing this deletes the static route and recreates it with the new argument value.
    status String
    Static route status.
    subnetId String
    Unique identifier of the global router subnet which contains the next hop IP address.
    tags List<String>
    List of static route tags.
    timeouts Property Map
    updatedAt String
    Time when the static route was updated.

    Supporting Types

    GlobalRouterStaticRouteV1Timeouts, GlobalRouterStaticRouteV1TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    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