flexibleengine.NetworkingRouterV2
Explore with Pulumi AI
Manages a V2 router resource within FlexibleEngine. The router is the top-level resource for the VPC within FlexibleEngine.
!> Warning: It has been deprecated, use flexibleengine.VpcV1
instead.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const router1 = new flexibleengine.NetworkingRouterV2("router1", {externalGateway: "f67f0d72-0ddf-11e4-9d95-e1f29f417e2f"});
import pulumi
import pulumi_flexibleengine as flexibleengine
router1 = flexibleengine.NetworkingRouterV2("router1", external_gateway="f67f0d72-0ddf-11e4-9d95-e1f29f417e2f")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewNetworkingRouterV2(ctx, "router1", &flexibleengine.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 Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var router1 = new Flexibleengine.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.flexibleengine.NetworkingRouterV2;
import com.pulumi.flexibleengine.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: flexibleengine:NetworkingRouterV2
properties:
externalGateway: f67f0d72-0ddf-11e4-9d95-e1f29f417e2f
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: flexibleengine: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 Flexibleengine.NetworkingRouterV2("networkingRouterV2Resource", new()
{
AdminStateUp = false,
Distributed = false,
EnableSnat = false,
ExternalGateway = "string",
Name = "string",
NetworkingRouterV2Id = "string",
Region = "string",
TenantId = "string",
Timeouts = new Flexibleengine.Inputs.NetworkingRouterV2TimeoutsArgs
{
Create = "string",
Delete = "string",
},
ValueSpecs =
{
{ "string", "string" },
},
});
example, err := flexibleengine.NewNetworkingRouterV2(ctx, "networkingRouterV2Resource", &flexibleengine.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: &flexibleengine.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 = flexibleengine.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 flexibleengine.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: flexibleengine: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:
- Admin
State boolUp - 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 theenable_snat
of the router. - External
Gateway 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. - Networking
Router stringV2Id - ID of the router.
- Region string
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - Tenant
Id 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
Networking
Router V2Timeouts - Value
Specs Dictionary<string, string> - Map of additional driver-specific options.
- Admin
State boolUp - 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 theenable_snat
of the router. - External
Gateway 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. - Networking
Router stringV2Id - ID of the router.
- Region string
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - Tenant
Id 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
Networking
Router V2Timeouts Args - Value
Specs map[string]string - Map of additional driver-specific options.
- admin
State BooleanUp - 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.
- enable
Snat 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 theenable_snat
of the router. - external
Gateway 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. - networking
Router StringV2Id - ID of the router.
- region String
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - tenant
Id 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
Networking
Router V2Timeouts - value
Specs Map<String,String> - Map of additional driver-specific options.
- admin
State booleanUp - 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.
- enable
Snat 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 theenable_snat
of the router. - external
Gateway 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. - networking
Router stringV2Id - ID of the router.
- region string
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - tenant
Id 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
Networking
Router V2Timeouts - value
Specs {[key: string]: string} - Map of additional driver-specific options.
- admin_
state_ boolup - 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 theenable_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_ strv2_ id - ID of the router.
- region str
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - 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
Networking
Router V2Timeouts Args - value_
specs Mapping[str, str] - Map of additional driver-specific options.
- admin
State BooleanUp - 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.
- enable
Snat 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 theenable_snat
of the router. - external
Gateway 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. - networking
Router StringV2Id - ID of the router.
- region String
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - tenant
Id 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
- value
Specs 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: flexibleengine: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.
- Admin
State boolUp - 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 theenable_snat
of the router. - External
Gateway 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. - Networking
Router stringV2Id - ID of the router.
- Region string
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - Tenant
Id 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
Networking
Router V2Timeouts - Value
Specs Dictionary<string, string> - Map of additional driver-specific options.
- Admin
State boolUp - 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 theenable_snat
of the router. - External
Gateway 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. - Networking
Router stringV2Id - ID of the router.
- Region string
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - Tenant
Id 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
Networking
Router V2Timeouts Args - Value
Specs map[string]string - Map of additional driver-specific options.
- admin
State BooleanUp - 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.
- enable
Snat 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 theenable_snat
of the router. - external
Gateway 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. - networking
Router StringV2Id - ID of the router.
- region String
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - tenant
Id 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
Networking
Router V2Timeouts - value
Specs Map<String,String> - Map of additional driver-specific options.
- admin
State booleanUp - 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.
- enable
Snat 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 theenable_snat
of the router. - external
Gateway 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. - networking
Router stringV2Id - ID of the router.
- region string
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - tenant
Id 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
Networking
Router V2Timeouts - value
Specs {[key: string]: string} - Map of additional driver-specific options.
- admin_
state_ boolup - 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 theenable_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_ strv2_ id - ID of the router.
- region str
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - 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
Networking
Router V2Timeouts Args - value_
specs Mapping[str, str] - Map of additional driver-specific options.
- admin
State BooleanUp - 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.
- enable
Snat 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 theenable_snat
of the router. - external
Gateway 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. - networking
Router StringV2Id - ID of the router.
- region String
- The region in which to obtain the V2 networking client.
A networking client is needed to create a router. If omitted, the
region
argument of the provider is used. Changing this creates a new router. - tenant
Id 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
- value
Specs Map<String> - Map of additional driver-specific options.
Supporting Types
NetworkingRouterV2Timeouts, NetworkingRouterV2TimeoutsArgs
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.