routeros.WireguardKeys
Explore with Pulumi AI
# routeros.WireguardKeys (Resource)
Creating key sets for WireGuard tunnels.
Create WireguardKeys Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WireguardKeys(name: string, args?: WireguardKeysArgs, opts?: CustomResourceOptions);
@overload
def WireguardKeys(resource_name: str,
args: Optional[WireguardKeysArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def WireguardKeys(resource_name: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
number: Optional[float] = None,
wireguard_keys_id: Optional[str] = None)
func NewWireguardKeys(ctx *Context, name string, args *WireguardKeysArgs, opts ...ResourceOption) (*WireguardKeys, error)
public WireguardKeys(string name, WireguardKeysArgs? args = null, CustomResourceOptions? opts = null)
public WireguardKeys(String name, WireguardKeysArgs args)
public WireguardKeys(String name, WireguardKeysArgs args, CustomResourceOptions options)
type: routeros:WireguardKeys
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 WireguardKeysArgs
- 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 WireguardKeysArgs
- 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 WireguardKeysArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WireguardKeysArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WireguardKeysArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WireguardKeys 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 WireguardKeys resource accepts the following input properties:
- Number double
- The number of key sets.
- Wireguard
Keys stringId - The ID of this resource.
- ___
id_ double - ___
path_ string
- Number float64
- The number of key sets.
- Wireguard
Keys stringId - The ID of this resource.
- ___
id_ float64 - ___
path_ string
- ___
id_ Double - ___
path_ String - number Double
- The number of key sets.
- wireguard
Keys StringId - The ID of this resource.
- ___
id_ number - ___
path_ string - number number
- The number of key sets.
- wireguard
Keys stringId - The ID of this resource.
- ___
id_ float - ___
path_ str - number float
- The number of key sets.
- wireguard_
keys_ strid - The ID of this resource.
- ___
id_ Number - ___
path_ String - number Number
- The number of key sets.
- wireguard
Keys StringId - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WireguardKeys resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Keys
List<Wireguard
Keys Key>
- Id string
- The provider-assigned unique ID for this managed resource.
- Keys
[]Wireguard
Keys Key
- id String
- The provider-assigned unique ID for this managed resource.
- keys
List<Wireguard
Keys Key>
- id string
- The provider-assigned unique ID for this managed resource.
- keys
Wireguard
Keys Key[]
- id str
- The provider-assigned unique ID for this managed resource.
- keys
Sequence[Wireguard
Keys Key]
- id String
- The provider-assigned unique ID for this managed resource.
- keys List<Property Map>
Look up Existing WireguardKeys Resource
Get an existing WireguardKeys 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?: WireguardKeysState, opts?: CustomResourceOptions): WireguardKeys
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
keys: Optional[Sequence[WireguardKeysKeyArgs]] = None,
number: Optional[float] = None,
wireguard_keys_id: Optional[str] = None) -> WireguardKeys
func GetWireguardKeys(ctx *Context, name string, id IDInput, state *WireguardKeysState, opts ...ResourceOption) (*WireguardKeys, error)
public static WireguardKeys Get(string name, Input<string> id, WireguardKeysState? state, CustomResourceOptions? opts = null)
public static WireguardKeys get(String name, Output<String> id, WireguardKeysState state, CustomResourceOptions options)
resources: _: type: routeros:WireguardKeys 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.
- Keys
List<Wireguard
Keys Key> - Number double
- The number of key sets.
- Wireguard
Keys stringId - The ID of this resource.
- ___
id_ double - ___
path_ string
- Keys
[]Wireguard
Keys Key Args - Number float64
- The number of key sets.
- Wireguard
Keys stringId - The ID of this resource.
- ___
id_ float64 - ___
path_ string
- ___
id_ Double - ___
path_ String - keys
List<Wireguard
Keys Key> - number Double
- The number of key sets.
- wireguard
Keys StringId - The ID of this resource.
- ___
id_ number - ___
path_ string - keys
Wireguard
Keys Key[] - number number
- The number of key sets.
- wireguard
Keys stringId - The ID of this resource.
- ___
id_ float - ___
path_ str - keys
Sequence[Wireguard
Keys Key Args] - number float
- The number of key sets.
- wireguard_
keys_ strid - The ID of this resource.
- ___
id_ Number - ___
path_ String - keys List<Property Map>
- number Number
- The number of key sets.
- wireguard
Keys StringId - The ID of this resource.
Supporting Types
WireguardKeysKey, WireguardKeysKeyArgs
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.