routeros.Wireguard
Explore with Pulumi AI
# routeros.Wireguard (Resource)
This is an alias for backwards compatibility between plugin versions.
Please see documentation for routeros.InterfaceWireguard
Create Wireguard Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Wireguard(name: string, args: WireguardArgs, opts?: CustomResourceOptions);
@overload
def Wireguard(resource_name: str,
args: WireguardArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Wireguard(resource_name: str,
opts: Optional[ResourceOptions] = None,
listen_port: Optional[float] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
mtu: Optional[str] = None,
name: Optional[str] = None,
private_key: Optional[str] = None,
wireguard_id: Optional[str] = None)
func NewWireguard(ctx *Context, name string, args WireguardArgs, opts ...ResourceOption) (*Wireguard, error)
public Wireguard(string name, WireguardArgs args, CustomResourceOptions? opts = null)
public Wireguard(String name, WireguardArgs args)
public Wireguard(String name, WireguardArgs args, CustomResourceOptions options)
type: routeros:Wireguard
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 WireguardArgs
- 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 WireguardArgs
- 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 WireguardArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WireguardArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WireguardArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Wireguard 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 Wireguard resource accepts the following input properties:
- Listen
Port double - Port for WireGuard service to listen on for incoming sessions.
- Comment string
- Disabled bool
- Mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- Name string
- Private
Key string - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- Wireguard
Id string - ___
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.
- Listen
Port float64 - Port for WireGuard service to listen on for incoming sessions.
- Comment string
- Disabled bool
- Mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- Name string
- Private
Key string - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- Wireguard
Id string - ___
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.
- listen
Port Double - Port for WireGuard service to listen on for incoming sessions.
- ___
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.
- comment String
- disabled Boolean
- mtu String
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name String
- private
Key String - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- wireguard
Id String
- listen
Port number - Port for WireGuard service to listen on for incoming sessions.
- ___
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.
- comment string
- disabled boolean
- mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name string
- private
Key string - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- wireguard
Id string
- listen_
port float - Port for WireGuard service to listen on for incoming sessions.
- ___
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.
- comment str
- disabled bool
- mtu str
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name str
- private_
key str - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- wireguard_
id str
- listen
Port Number - Port for WireGuard service to listen on for incoming sessions.
- ___
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.
- comment String
- disabled Boolean
- mtu String
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name String
- private
Key String - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- wireguard
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the Wireguard resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- public_
key str - A base64 public key is calculated from the private key.
- running bool
Look up Existing Wireguard Resource
Get an existing Wireguard 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?: WireguardState, opts?: CustomResourceOptions): Wireguard
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
listen_port: Optional[float] = None,
mtu: Optional[str] = None,
name: Optional[str] = None,
private_key: Optional[str] = None,
public_key: Optional[str] = None,
running: Optional[bool] = None,
wireguard_id: Optional[str] = None) -> Wireguard
func GetWireguard(ctx *Context, name string, id IDInput, state *WireguardState, opts ...ResourceOption) (*Wireguard, error)
public static Wireguard Get(string name, Input<string> id, WireguardState? state, CustomResourceOptions? opts = null)
public static Wireguard get(String name, Output<String> id, WireguardState state, CustomResourceOptions options)
resources: _: type: routeros:Wireguard 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.
- Comment string
- Disabled bool
- Listen
Port double - Port for WireGuard service to listen on for incoming sessions.
- Mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- Name string
- Private
Key string - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- Public
Key string - A base64 public key is calculated from the private key.
- Running bool
- Wireguard
Id string - ___
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.
- Comment string
- Disabled bool
- Listen
Port float64 - Port for WireGuard service to listen on for incoming sessions.
- Mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- Name string
- Private
Key string - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- Public
Key string - A base64 public key is calculated from the private key.
- Running bool
- Wireguard
Id string - ___
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.
- ___
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.
- comment String
- disabled Boolean
- listen
Port Double - Port for WireGuard service to listen on for incoming sessions.
- mtu String
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name String
- private
Key String - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- public
Key String - A base64 public key is calculated from the private key.
- running Boolean
- wireguard
Id String
- ___
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.
- comment string
- disabled boolean
- listen
Port number - Port for WireGuard service to listen on for incoming sessions.
- mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name string
- private
Key string - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- public
Key string - A base64 public key is calculated from the private key.
- running boolean
- wireguard
Id string
- ___
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.
- comment str
- disabled bool
- listen_
port float - Port for WireGuard service to listen on for incoming sessions.
- mtu str
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name str
- private_
key str - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- public_
key str - A base64 public key is calculated from the private key.
- running bool
- wireguard_
id str
- ___
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.
- comment String
- disabled Boolean
- listen
Port Number - Port for WireGuard service to listen on for incoming sessions.
- mtu String
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name String
- private
Key String - A base64 private key. If not specified, it will be automatically generated upon interface creation.
- public
Key String - A base64 public key is calculated from the private key.
- running Boolean
- wireguard
Id String
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.