routeros.IpNatPmpInterfaces
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const test = new routeros.IpNatPmpInterfaces("test", {
forcedIp: "0.0.0.0",
"interface": "ether1",
type: "external",
});
import pulumi
import pulumi_routeros as routeros
test = routeros.IpNatPmpInterfaces("test",
forced_ip="0.0.0.0",
interface="ether1",
type="external")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := routeros.NewIpNatPmpInterfaces(ctx, "test", &routeros.IpNatPmpInterfacesArgs{
ForcedIp: pulumi.String("0.0.0.0"),
Interface: pulumi.String("ether1"),
Type: pulumi.String("external"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;
return await Deployment.RunAsync(() =>
{
var test = new Routeros.IpNatPmpInterfaces("test", new()
{
ForcedIp = "0.0.0.0",
Interface = "ether1",
Type = "external",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.IpNatPmpInterfaces;
import com.pulumi.routeros.IpNatPmpInterfacesArgs;
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 test = new IpNatPmpInterfaces("test", IpNatPmpInterfacesArgs.builder()
.forcedIp("0.0.0.0")
.interface_("ether1")
.type("external")
.build());
}
}
resources:
test:
type: routeros:IpNatPmpInterfaces
properties:
forcedIp: 0.0.0.0
interface: ether1
type: external
Create IpNatPmpInterfaces Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpNatPmpInterfaces(name: string, args: IpNatPmpInterfacesArgs, opts?: CustomResourceOptions);@overload
def IpNatPmpInterfaces(resource_name: str,
args: IpNatPmpInterfacesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IpNatPmpInterfaces(resource_name: str,
opts: Optional[ResourceOptions] = None,
interface: Optional[str] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
___unset_: Optional[str] = None,
disabled: Optional[bool] = None,
forced_ip: Optional[str] = None,
ip_nat_pmp_interfaces_id: Optional[str] = None,
type: Optional[str] = None)func NewIpNatPmpInterfaces(ctx *Context, name string, args IpNatPmpInterfacesArgs, opts ...ResourceOption) (*IpNatPmpInterfaces, error)public IpNatPmpInterfaces(string name, IpNatPmpInterfacesArgs args, CustomResourceOptions? opts = null)
public IpNatPmpInterfaces(String name, IpNatPmpInterfacesArgs args)
public IpNatPmpInterfaces(String name, IpNatPmpInterfacesArgs args, CustomResourceOptions options)
type: routeros:IpNatPmpInterfaces
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 IpNatPmpInterfacesArgs
- 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 IpNatPmpInterfacesArgs
- 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 IpNatPmpInterfacesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpNatPmpInterfacesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpNatPmpInterfacesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IpNatPmpInterfaces 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 IpNatPmpInterfaces resource accepts the following input properties:
- Interface string
- Interface name on which PMP will be running on
- Disabled bool
- Forced
Ip string - Allow specifying what public IP to use if the external interface has more than one IP available.
- Ip
Nat stringPmp Interfaces Id - Type string
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- Interface string
- Interface name on which PMP will be running on
- Disabled bool
- Forced
Ip string - Allow specifying what public IP to use if the external interface has more than one IP available.
- Ip
Nat stringPmp Interfaces Id - Type string
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- interface_ String
- Interface name on which PMP will be running on
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ String - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- disabled Boolean
- forced
Ip String - Allow specifying what public IP to use if the external interface has more than one IP available.
- ip
Nat StringPmp Interfaces Id - type String
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- interface string
- Interface name on which PMP will be running on
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- disabled boolean
- forced
Ip string - Allow specifying what public IP to use if the external interface has more than one IP available.
- ip
Nat stringPmp Interfaces Id - type string
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- interface str
- Interface name on which PMP will be running on
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ str - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- disabled bool
- forced_
ip str - Allow specifying what public IP to use if the external interface has more than one IP available.
- ip_
nat_ strpmp_ interfaces_ id - type str
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- interface String
- Interface name on which PMP will be running on
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ String - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- disabled Boolean
- forced
Ip String - Allow specifying what public IP to use if the external interface has more than one IP available.
- ip
Nat StringPmp Interfaces Id - type String
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
Outputs
All input properties are implicitly available as output properties. Additionally, the IpNatPmpInterfaces resource produces the following output properties:
Look up Existing IpNatPmpInterfaces Resource
Get an existing IpNatPmpInterfaces 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?: IpNatPmpInterfacesState, opts?: CustomResourceOptions): IpNatPmpInterfaces@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
___unset_: Optional[str] = None,
disabled: Optional[bool] = None,
dynamic: Optional[bool] = None,
forced_ip: Optional[str] = None,
interface: Optional[str] = None,
ip_nat_pmp_interfaces_id: Optional[str] = None,
type: Optional[str] = None) -> IpNatPmpInterfacesfunc GetIpNatPmpInterfaces(ctx *Context, name string, id IDInput, state *IpNatPmpInterfacesState, opts ...ResourceOption) (*IpNatPmpInterfaces, error)public static IpNatPmpInterfaces Get(string name, Input<string> id, IpNatPmpInterfacesState? state, CustomResourceOptions? opts = null)public static IpNatPmpInterfaces get(String name, Output<String> id, IpNatPmpInterfacesState state, CustomResourceOptions options)resources: _: type: routeros:IpNatPmpInterfaces 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.
- Disabled bool
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Forced
Ip string - Allow specifying what public IP to use if the external interface has more than one IP available.
- Interface string
- Interface name on which PMP will be running on
- Ip
Nat stringPmp Interfaces Id - Type string
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- Disabled bool
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Forced
Ip string - Allow specifying what public IP to use if the external interface has more than one IP available.
- Interface string
- Interface name on which PMP will be running on
- Ip
Nat stringPmp Interfaces Id - Type string
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ String - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- disabled Boolean
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forced
Ip String - Allow specifying what public IP to use if the external interface has more than one IP available.
- interface_ String
- Interface name on which PMP will be running on
- ip
Nat StringPmp Interfaces Id - type String
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- disabled boolean
- dynamic boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forced
Ip string - Allow specifying what public IP to use if the external interface has more than one IP available.
- interface string
- Interface name on which PMP will be running on
- ip
Nat stringPmp Interfaces Id - type string
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ str - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- disabled bool
- dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forced_
ip str - Allow specifying what public IP to use if the external interface has more than one IP available.
- interface str
- Interface name on which PMP will be running on
- ip_
nat_ strpmp_ interfaces_ id - type str
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
unset_ String - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- disabled Boolean
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forced
Ip String - Allow specifying what public IP to use if the external interface has more than one IP available.
- interface String
- Interface name on which PMP will be running on
- ip
Nat StringPmp Interfaces Id - type String
- NAT-PMP interface type: * external - the interface a global IP address is assigned to * internal - router's local interface the clients are connected to
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/ip/nat-pmp/interfaces get [print show-ids]]
$ pulumi import routeros:index/ipNatPmpInterfaces:IpNatPmpInterfaces test '*1'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routerosTerraform Provider.
