1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. NetworkingRouterV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.NetworkingRouterV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for VPC router you can get at documentation portal

    Manages a V2 router resource within OpenTelekomCloud. The router is the top-level resource for the VPC within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const router1 = new opentelekomcloud.NetworkingRouterV2("router1", {externalGateway: "f67f0d72-0ddf-11e4-9d95-e1f29f417e2f"});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    router1 = opentelekomcloud.NetworkingRouterV2("router1", external_gateway="f67f0d72-0ddf-11e4-9d95-e1f29f417e2f")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewNetworkingRouterV2(ctx, "router1", &opentelekomcloud.NetworkingRouterV2Args{
    			ExternalGateway: pulumi.String("f67f0d72-0ddf-11e4-9d95-e1f29f417e2f"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var router1 = new Opentelekomcloud.NetworkingRouterV2("router1", new()
        {
            ExternalGateway = "f67f0d72-0ddf-11e4-9d95-e1f29f417e2f",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.NetworkingRouterV2;
    import com.pulumi.opentelekomcloud.NetworkingRouterV2Args;
    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 router1 = new NetworkingRouterV2("router1", NetworkingRouterV2Args.builder()
                .externalGateway("f67f0d72-0ddf-11e4-9d95-e1f29f417e2f")
                .build());
    
        }
    }
    
    resources:
      router1:
        type: opentelekomcloud:NetworkingRouterV2
        properties:
          externalGateway: f67f0d72-0ddf-11e4-9d95-e1f29f417e2f
    

    Enable SNAT

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const adminExternalNet = opentelekomcloud.getNetworkingNetworkV2({
        name: "admin_external_net",
    });
    const router1 = new opentelekomcloud.NetworkingRouterV2("router1", {
        adminStateUp: true,
        distributed: false,
        externalGateway: adminExternalNet.then(adminExternalNet => adminExternalNet.id),
        enableSnat: true,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    admin_external_net = opentelekomcloud.get_networking_network_v2(name="admin_external_net")
    router1 = opentelekomcloud.NetworkingRouterV2("router1",
        admin_state_up=True,
        distributed=False,
        external_gateway=admin_external_net.id,
        enable_snat=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		adminExternalNet, err := opentelekomcloud.LookupNetworkingNetworkV2(ctx, &opentelekomcloud.LookupNetworkingNetworkV2Args{
    			Name: pulumi.StringRef("admin_external_net"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewNetworkingRouterV2(ctx, "router1", &opentelekomcloud.NetworkingRouterV2Args{
    			AdminStateUp:    pulumi.Bool(true),
    			Distributed:     pulumi.Bool(false),
    			ExternalGateway: pulumi.String(adminExternalNet.Id),
    			EnableSnat:      pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var adminExternalNet = Opentelekomcloud.GetNetworkingNetworkV2.Invoke(new()
        {
            Name = "admin_external_net",
        });
    
        var router1 = new Opentelekomcloud.NetworkingRouterV2("router1", new()
        {
            AdminStateUp = true,
            Distributed = false,
            ExternalGateway = adminExternalNet.Apply(getNetworkingNetworkV2Result => getNetworkingNetworkV2Result.Id),
            EnableSnat = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetNetworkingNetworkV2Args;
    import com.pulumi.opentelekomcloud.NetworkingRouterV2;
    import com.pulumi.opentelekomcloud.NetworkingRouterV2Args;
    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 adminExternalNet = OpentelekomcloudFunctions.getNetworkingNetworkV2(GetNetworkingNetworkV2Args.builder()
                .name("admin_external_net")
                .build());
    
            var router1 = new NetworkingRouterV2("router1", NetworkingRouterV2Args.builder()
                .adminStateUp(true)
                .distributed(false)
                .externalGateway(adminExternalNet.applyValue(getNetworkingNetworkV2Result -> getNetworkingNetworkV2Result.id()))
                .enableSnat(true)
                .build());
    
        }
    }
    
    resources:
      router1:
        type: opentelekomcloud:NetworkingRouterV2
        properties:
          adminStateUp: true
          distributed: false
          externalGateway: ${adminExternalNet.id}
          enableSnat: true
    variables:
      adminExternalNet:
        fn::invoke:
          function: opentelekomcloud:getNetworkingNetworkV2
          arguments:
            name: admin_external_net
    

    Create NetworkingRouterV2 Resource

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

    Constructor syntax

    new NetworkingRouterV2(name: string, args?: NetworkingRouterV2Args, opts?: CustomResourceOptions);
    @overload
    def NetworkingRouterV2(resource_name: str,
                           args: Optional[NetworkingRouterV2Args] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkingRouterV2(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           admin_state_up: Optional[bool] = None,
                           distributed: Optional[bool] = None,
                           enable_snat: Optional[bool] = None,
                           external_gateway: Optional[str] = None,
                           name: Optional[str] = None,
                           networking_router_v2_id: Optional[str] = None,
                           region: Optional[str] = None,
                           tenant_id: Optional[str] = None,
                           timeouts: Optional[NetworkingRouterV2TimeoutsArgs] = None,
                           value_specs: Optional[Mapping[str, str]] = None)
    func NewNetworkingRouterV2(ctx *Context, name string, args *NetworkingRouterV2Args, opts ...ResourceOption) (*NetworkingRouterV2, error)
    public NetworkingRouterV2(string name, NetworkingRouterV2Args? args = null, CustomResourceOptions? opts = null)
    public NetworkingRouterV2(String name, NetworkingRouterV2Args args)
    public NetworkingRouterV2(String name, NetworkingRouterV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:NetworkingRouterV2
    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 NetworkingRouterV2Args
    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 NetworkingRouterV2Args
    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 NetworkingRouterV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkingRouterV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkingRouterV2Args
    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 networkingRouterV2Resource = new Opentelekomcloud.NetworkingRouterV2("networkingRouterV2Resource", new()
    {
        AdminStateUp = false,
        Distributed = false,
        EnableSnat = false,
        ExternalGateway = "string",
        Name = "string",
        NetworkingRouterV2Id = "string",
        Region = "string",
        TenantId = "string",
        Timeouts = new Opentelekomcloud.Inputs.NetworkingRouterV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        ValueSpecs = 
        {
            { "string", "string" },
        },
    });
    
    example, err := opentelekomcloud.NewNetworkingRouterV2(ctx, "networkingRouterV2Resource", &opentelekomcloud.NetworkingRouterV2Args{
    	AdminStateUp:         pulumi.Bool(false),
    	Distributed:          pulumi.Bool(false),
    	EnableSnat:           pulumi.Bool(false),
    	ExternalGateway:      pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    	NetworkingRouterV2Id: pulumi.String("string"),
    	Region:               pulumi.String("string"),
    	TenantId:             pulumi.String("string"),
    	Timeouts: &opentelekomcloud.NetworkingRouterV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	ValueSpecs: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var networkingRouterV2Resource = new NetworkingRouterV2("networkingRouterV2Resource", NetworkingRouterV2Args.builder()
        .adminStateUp(false)
        .distributed(false)
        .enableSnat(false)
        .externalGateway("string")
        .name("string")
        .networkingRouterV2Id("string")
        .region("string")
        .tenantId("string")
        .timeouts(NetworkingRouterV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .valueSpecs(Map.of("string", "string"))
        .build());
    
    networking_router_v2_resource = opentelekomcloud.NetworkingRouterV2("networkingRouterV2Resource",
        admin_state_up=False,
        distributed=False,
        enable_snat=False,
        external_gateway="string",
        name="string",
        networking_router_v2_id="string",
        region="string",
        tenant_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        value_specs={
            "string": "string",
        })
    
    const networkingRouterV2Resource = new opentelekomcloud.NetworkingRouterV2("networkingRouterV2Resource", {
        adminStateUp: false,
        distributed: false,
        enableSnat: false,
        externalGateway: "string",
        name: "string",
        networkingRouterV2Id: "string",
        region: "string",
        tenantId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        valueSpecs: {
            string: "string",
        },
    });
    
    type: opentelekomcloud:NetworkingRouterV2
    properties:
        adminStateUp: false
        distributed: false
        enableSnat: false
        externalGateway: string
        name: string
        networkingRouterV2Id: string
        region: string
        tenantId: string
        timeouts:
            create: string
            delete: string
        valueSpecs:
            string: string
    

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

    AdminStateUp bool
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    Distributed bool
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    EnableSnat bool
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    ExternalGateway string
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    Name string
    A unique name for the router. Changing this updates the name of an existing router.
    NetworkingRouterV2Id string
    ID of the router.
    Region string
    TenantId string
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    Timeouts NetworkingRouterV2Timeouts
    ValueSpecs Dictionary<string, string>
    Map of additional driver-specific options.
    AdminStateUp bool
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    Distributed bool
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    EnableSnat bool
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    ExternalGateway string
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    Name string
    A unique name for the router. Changing this updates the name of an existing router.
    NetworkingRouterV2Id string
    ID of the router.
    Region string
    TenantId string
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    Timeouts NetworkingRouterV2TimeoutsArgs
    ValueSpecs map[string]string
    Map of additional driver-specific options.
    adminStateUp Boolean
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    distributed Boolean
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    enableSnat Boolean
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    externalGateway String
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    name String
    A unique name for the router. Changing this updates the name of an existing router.
    networkingRouterV2Id String
    ID of the router.
    region String
    tenantId String
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    timeouts NetworkingRouterV2Timeouts
    valueSpecs Map<String,String>
    Map of additional driver-specific options.
    adminStateUp boolean
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    distributed boolean
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    enableSnat boolean
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    externalGateway string
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    name string
    A unique name for the router. Changing this updates the name of an existing router.
    networkingRouterV2Id string
    ID of the router.
    region string
    tenantId string
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    timeouts NetworkingRouterV2Timeouts
    valueSpecs {[key: string]: string}
    Map of additional driver-specific options.
    admin_state_up bool
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    distributed bool
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    enable_snat bool
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    external_gateway str
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    name str
    A unique name for the router. Changing this updates the name of an existing router.
    networking_router_v2_id str
    ID of the router.
    region str
    tenant_id str
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    timeouts NetworkingRouterV2TimeoutsArgs
    value_specs Mapping[str, str]
    Map of additional driver-specific options.
    adminStateUp Boolean
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    distributed Boolean
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    enableSnat Boolean
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    externalGateway String
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    name String
    A unique name for the router. Changing this updates the name of an existing router.
    networkingRouterV2Id String
    ID of the router.
    region String
    tenantId String
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    timeouts Property Map
    valueSpecs Map<String>
    Map of additional driver-specific options.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NetworkingRouterV2 Resource

    Get an existing NetworkingRouterV2 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?: NetworkingRouterV2State, opts?: CustomResourceOptions): NetworkingRouterV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            distributed: Optional[bool] = None,
            enable_snat: Optional[bool] = None,
            external_gateway: Optional[str] = None,
            name: Optional[str] = None,
            networking_router_v2_id: Optional[str] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[NetworkingRouterV2TimeoutsArgs] = None,
            value_specs: Optional[Mapping[str, str]] = None) -> NetworkingRouterV2
    func GetNetworkingRouterV2(ctx *Context, name string, id IDInput, state *NetworkingRouterV2State, opts ...ResourceOption) (*NetworkingRouterV2, error)
    public static NetworkingRouterV2 Get(string name, Input<string> id, NetworkingRouterV2State? state, CustomResourceOptions? opts = null)
    public static NetworkingRouterV2 get(String name, Output<String> id, NetworkingRouterV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:NetworkingRouterV2    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:
    AdminStateUp bool
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    Distributed bool
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    EnableSnat bool
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    ExternalGateway string
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    Name string
    A unique name for the router. Changing this updates the name of an existing router.
    NetworkingRouterV2Id string
    ID of the router.
    Region string
    TenantId string
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    Timeouts NetworkingRouterV2Timeouts
    ValueSpecs Dictionary<string, string>
    Map of additional driver-specific options.
    AdminStateUp bool
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    Distributed bool
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    EnableSnat bool
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    ExternalGateway string
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    Name string
    A unique name for the router. Changing this updates the name of an existing router.
    NetworkingRouterV2Id string
    ID of the router.
    Region string
    TenantId string
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    Timeouts NetworkingRouterV2TimeoutsArgs
    ValueSpecs map[string]string
    Map of additional driver-specific options.
    adminStateUp Boolean
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    distributed Boolean
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    enableSnat Boolean
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    externalGateway String
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    name String
    A unique name for the router. Changing this updates the name of an existing router.
    networkingRouterV2Id String
    ID of the router.
    region String
    tenantId String
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    timeouts NetworkingRouterV2Timeouts
    valueSpecs Map<String,String>
    Map of additional driver-specific options.
    adminStateUp boolean
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    distributed boolean
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    enableSnat boolean
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    externalGateway string
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    name string
    A unique name for the router. Changing this updates the name of an existing router.
    networkingRouterV2Id string
    ID of the router.
    region string
    tenantId string
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    timeouts NetworkingRouterV2Timeouts
    valueSpecs {[key: string]: string}
    Map of additional driver-specific options.
    admin_state_up bool
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    distributed bool
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    enable_snat bool
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    external_gateway str
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    name str
    A unique name for the router. Changing this updates the name of an existing router.
    networking_router_v2_id str
    ID of the router.
    region str
    tenant_id str
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    timeouts NetworkingRouterV2TimeoutsArgs
    value_specs Mapping[str, str]
    Map of additional driver-specific options.
    adminStateUp Boolean
    Administrative up/down status for the router (must be true or false if provided). Changing this updates the admin_state_up of an existing router.
    distributed Boolean
    Indicates whether or not to create a distributed router. The default policy setting in Neutron restricts usage of this property to administrative users only.
    enableSnat Boolean
    Enable Source NAT for the router. Valid values are true or false. An external_gateway has to be set in order to set this property. Changing this updates the enable_snat of the router.
    externalGateway String
    The network UUID of an external gateway for the router. A router with an external gateway is required if any compute instances or load balancers will be using floating IPs. Changing this updates the external_gateway of an existing router.
    name String
    A unique name for the router. Changing this updates the name of an existing router.
    networkingRouterV2Id String
    ID of the router.
    region String
    tenantId String
    The owner of the floating IP. Required if admin wants to create a router for another tenant. Changing this creates a new router.
    timeouts Property Map
    valueSpecs Map<String>
    Map of additional driver-specific options.

    Supporting Types

    NetworkingRouterV2Timeouts, NetworkingRouterV2TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud