routeros.ZerotierController
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
import * as zerotier from "@pulumi/zerotier";
const identity = new zerotier.index.Zerotier_identity("identity", {});
const zt1 = new routeros.Zerotier("zt1", {
comment: "ZeroTier Central",
identity: identity.privateKey,
interfaces: ["all"],
});
const test = new routeros.ZerotierController("test", {
instance: zt1.name,
network: "1234567812345678",
"private": true,
});
import pulumi
import pulumi_routeros as routeros
import pulumi_zerotier as zerotier
identity = zerotier.index.Zerotier_identity("identity")
zt1 = routeros.Zerotier("zt1",
comment="ZeroTier Central",
identity=identity["privateKey"],
interfaces=["all"])
test = routeros.ZerotierController("test",
instance=zt1.name,
network="1234567812345678",
private=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
"github.com/pulumi/pulumi-zerotier/sdk/go/zerotier"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
identity, err := zerotier.NewZerotier_identity(ctx, "identity", nil)
if err != nil {
return err
}
zt1, err := routeros.NewZerotier(ctx, "zt1", &routeros.ZerotierArgs{
Comment: pulumi.String("ZeroTier Central"),
Identity: identity.PrivateKey,
Interfaces: pulumi.StringArray{
pulumi.String("all"),
},
})
if err != nil {
return err
}
_, err = routeros.NewZerotierController(ctx, "test", &routeros.ZerotierControllerArgs{
Instance: zt1.Name,
Network: pulumi.String("1234567812345678"),
Private: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;
using Zerotier = Pulumi.Zerotier;
return await Deployment.RunAsync(() =>
{
var identity = new Zerotier.Index.Zerotier_identity("identity");
var zt1 = new Routeros.Zerotier("zt1", new()
{
Comment = "ZeroTier Central",
Identity = identity.PrivateKey,
Interfaces = new[]
{
"all",
},
});
var test = new Routeros.ZerotierController("test", new()
{
Instance = zt1.Name,
Network = "1234567812345678",
Private = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zerotier.zerotier_identity;
import com.pulumi.routeros.Zerotier;
import com.pulumi.routeros.ZerotierArgs;
import com.pulumi.routeros.ZerotierController;
import com.pulumi.routeros.ZerotierControllerArgs;
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 identity = new Zerotier_identity("identity");
var zt1 = new Zerotier("zt1", ZerotierArgs.builder()
.comment("ZeroTier Central")
.identity(identity.privateKey())
.interfaces("all")
.build());
var test = new ZerotierController("test", ZerotierControllerArgs.builder()
.instance(zt1.name())
.network("1234567812345678")
.private_(true)
.build());
}
}
resources:
identity:
type: zerotier:zerotier_identity
zt1:
type: routeros:Zerotier
properties:
comment: ZeroTier Central
identity: ${identity.privateKey}
interfaces:
- all
test:
type: routeros:ZerotierController
properties:
instance: ${zt1.name}
network: '1234567812345678'
private: true
Create ZerotierController Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZerotierController(name: string, args: ZerotierControllerArgs, opts?: CustomResourceOptions);
@overload
def ZerotierController(resource_name: str,
args: ZerotierControllerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZerotierController(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance: Optional[str] = None,
network: Optional[str] = None,
ip6_rfc4193: Optional[bool] = None,
ip_range: Optional[str] = None,
disabled: Optional[bool] = None,
broadcast: Optional[bool] = None,
ip66plane: Optional[bool] = None,
ip6_range: Optional[str] = None,
___id_: Optional[float] = None,
comment: Optional[str] = None,
mtu: Optional[float] = None,
multicast_limit: Optional[float] = None,
name: Optional[str] = None,
___path_: Optional[str] = None,
private: Optional[bool] = None,
routes: Optional[Sequence[str]] = None,
zerotier_controller_id: Optional[str] = None)
func NewZerotierController(ctx *Context, name string, args ZerotierControllerArgs, opts ...ResourceOption) (*ZerotierController, error)
public ZerotierController(string name, ZerotierControllerArgs args, CustomResourceOptions? opts = null)
public ZerotierController(String name, ZerotierControllerArgs args)
public ZerotierController(String name, ZerotierControllerArgs args, CustomResourceOptions options)
type: routeros:ZerotierController
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 ZerotierControllerArgs
- 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 ZerotierControllerArgs
- 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 ZerotierControllerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZerotierControllerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZerotierControllerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ZerotierController 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 ZerotierController resource accepts the following input properties:
- Instance string
- The ZeroTier instance name.
- Network string
- The ZeroTier network identifier.
- Broadcast bool
- An option to allow receiving broadcast packets.
- Comment string
- Disabled bool
- Ip66plane bool
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - Ip6Range string
- The IPv6 range of the ZeroTier network.
- Ip6Rfc4193 bool
- An option to assign every member a
/128
address within a/88
network. - Ip
Range string - The IP range of the ZeroTier network.
- Mtu double
- Layer2 Maximum transmission unit. See.
- Multicast
Limit double - An option to limit the maximum recipients of a multicast packet.
- Name string
- Name of the ZeroTier controller.
- Private bool
- The ZeroTier network access control.
- Routes List<string>
- The routes list that will be pushed to the client.
- Zerotier
Controller stringId - The ID of this resource.
- ___
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.
- Instance string
- The ZeroTier instance name.
- Network string
- The ZeroTier network identifier.
- Broadcast bool
- An option to allow receiving broadcast packets.
- Comment string
- Disabled bool
- Ip66plane bool
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - Ip6Range string
- The IPv6 range of the ZeroTier network.
- Ip6Rfc4193 bool
- An option to assign every member a
/128
address within a/88
network. - Ip
Range string - The IP range of the ZeroTier network.
- Mtu float64
- Layer2 Maximum transmission unit. See.
- Multicast
Limit float64 - An option to limit the maximum recipients of a multicast packet.
- Name string
- Name of the ZeroTier controller.
- Private bool
- The ZeroTier network access control.
- Routes []string
- The routes list that will be pushed to the client.
- Zerotier
Controller stringId - The ID of this resource.
- ___
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.
- instance String
- The ZeroTier instance name.
- network String
- The ZeroTier network identifier.
- ___
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.
- broadcast Boolean
- An option to allow receiving broadcast packets.
- comment String
- disabled Boolean
- ip66plane Boolean
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - ip6Range String
- The IPv6 range of the ZeroTier network.
- ip6Rfc4193 Boolean
- An option to assign every member a
/128
address within a/88
network. - ip
Range String - The IP range of the ZeroTier network.
- mtu Double
- Layer2 Maximum transmission unit. See.
- multicast
Limit Double - An option to limit the maximum recipients of a multicast packet.
- name String
- Name of the ZeroTier controller.
- private_ Boolean
- The ZeroTier network access control.
- routes List<String>
- The routes list that will be pushed to the client.
- zerotier
Controller StringId - The ID of this resource.
- instance string
- The ZeroTier instance name.
- network string
- The ZeroTier network identifier.
- ___
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.
- broadcast boolean
- An option to allow receiving broadcast packets.
- comment string
- disabled boolean
- ip66plane boolean
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - ip6Range string
- The IPv6 range of the ZeroTier network.
- ip6Rfc4193 boolean
- An option to assign every member a
/128
address within a/88
network. - ip
Range string - The IP range of the ZeroTier network.
- mtu number
- Layer2 Maximum transmission unit. See.
- multicast
Limit number - An option to limit the maximum recipients of a multicast packet.
- name string
- Name of the ZeroTier controller.
- private boolean
- The ZeroTier network access control.
- routes string[]
- The routes list that will be pushed to the client.
- zerotier
Controller stringId - The ID of this resource.
- instance str
- The ZeroTier instance name.
- network str
- The ZeroTier network identifier.
- ___
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.
- broadcast bool
- An option to allow receiving broadcast packets.
- comment str
- disabled bool
- ip66plane bool
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - ip6_
range str - The IPv6 range of the ZeroTier network.
- ip6_
rfc4193 bool - An option to assign every member a
/128
address within a/88
network. - ip_
range str - The IP range of the ZeroTier network.
- mtu float
- Layer2 Maximum transmission unit. See.
- multicast_
limit float - An option to limit the maximum recipients of a multicast packet.
- name str
- Name of the ZeroTier controller.
- private bool
- The ZeroTier network access control.
- routes Sequence[str]
- The routes list that will be pushed to the client.
- zerotier_
controller_ strid - The ID of this resource.
- instance String
- The ZeroTier instance name.
- network String
- The ZeroTier network identifier.
- ___
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.
- broadcast Boolean
- An option to allow receiving broadcast packets.
- comment String
- disabled Boolean
- ip66plane Boolean
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - ip6Range String
- The IPv6 range of the ZeroTier network.
- ip6Rfc4193 Boolean
- An option to assign every member a
/128
address within a/88
network. - ip
Range String - The IP range of the ZeroTier network.
- mtu Number
- Layer2 Maximum transmission unit. See.
- multicast
Limit Number - An option to limit the maximum recipients of a multicast packet.
- name String
- Name of the ZeroTier controller.
- private Boolean
- The ZeroTier network access control.
- routes List<String>
- The routes list that will be pushed to the client.
- zerotier
Controller StringId - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZerotierController resource produces the following output properties:
Look up Existing ZerotierController Resource
Get an existing ZerotierController 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?: ZerotierControllerState, opts?: CustomResourceOptions): ZerotierController
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
broadcast: Optional[bool] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
inactive: Optional[bool] = None,
instance: Optional[str] = None,
ip66plane: Optional[bool] = None,
ip6_range: Optional[str] = None,
ip6_rfc4193: Optional[bool] = None,
ip_range: Optional[str] = None,
mtu: Optional[float] = None,
multicast_limit: Optional[float] = None,
name: Optional[str] = None,
network: Optional[str] = None,
private: Optional[bool] = None,
routes: Optional[Sequence[str]] = None,
zerotier_controller_id: Optional[str] = None) -> ZerotierController
func GetZerotierController(ctx *Context, name string, id IDInput, state *ZerotierControllerState, opts ...ResourceOption) (*ZerotierController, error)
public static ZerotierController Get(string name, Input<string> id, ZerotierControllerState? state, CustomResourceOptions? opts = null)
public static ZerotierController get(String name, Output<String> id, ZerotierControllerState state, CustomResourceOptions options)
resources: _: type: routeros:ZerotierController 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.
- Broadcast bool
- An option to allow receiving broadcast packets.
- Comment string
- Disabled bool
- Inactive bool
- A flag whether the ZeroTier network is inactive.
- Instance string
- The ZeroTier instance name.
- Ip66plane bool
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - Ip6Range string
- The IPv6 range of the ZeroTier network.
- Ip6Rfc4193 bool
- An option to assign every member a
/128
address within a/88
network. - Ip
Range string - The IP range of the ZeroTier network.
- Mtu double
- Layer2 Maximum transmission unit. See.
- Multicast
Limit double - An option to limit the maximum recipients of a multicast packet.
- Name string
- Name of the ZeroTier controller.
- Network string
- The ZeroTier network identifier.
- Private bool
- The ZeroTier network access control.
- Routes List<string>
- The routes list that will be pushed to the client.
- Zerotier
Controller stringId - The ID of this resource.
- ___
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.
- Broadcast bool
- An option to allow receiving broadcast packets.
- Comment string
- Disabled bool
- Inactive bool
- A flag whether the ZeroTier network is inactive.
- Instance string
- The ZeroTier instance name.
- Ip66plane bool
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - Ip6Range string
- The IPv6 range of the ZeroTier network.
- Ip6Rfc4193 bool
- An option to assign every member a
/128
address within a/88
network. - Ip
Range string - The IP range of the ZeroTier network.
- Mtu float64
- Layer2 Maximum transmission unit. See.
- Multicast
Limit float64 - An option to limit the maximum recipients of a multicast packet.
- Name string
- Name of the ZeroTier controller.
- Network string
- The ZeroTier network identifier.
- Private bool
- The ZeroTier network access control.
- Routes []string
- The routes list that will be pushed to the client.
- Zerotier
Controller stringId - The ID of this resource.
- ___
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.
- broadcast Boolean
- An option to allow receiving broadcast packets.
- comment String
- disabled Boolean
- inactive Boolean
- A flag whether the ZeroTier network is inactive.
- instance String
- The ZeroTier instance name.
- ip66plane Boolean
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - ip6Range String
- The IPv6 range of the ZeroTier network.
- ip6Rfc4193 Boolean
- An option to assign every member a
/128
address within a/88
network. - ip
Range String - The IP range of the ZeroTier network.
- mtu Double
- Layer2 Maximum transmission unit. See.
- multicast
Limit Double - An option to limit the maximum recipients of a multicast packet.
- name String
- Name of the ZeroTier controller.
- network String
- The ZeroTier network identifier.
- private_ Boolean
- The ZeroTier network access control.
- routes List<String>
- The routes list that will be pushed to the client.
- zerotier
Controller StringId - The ID of this resource.
- ___
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.
- broadcast boolean
- An option to allow receiving broadcast packets.
- comment string
- disabled boolean
- inactive boolean
- A flag whether the ZeroTier network is inactive.
- instance string
- The ZeroTier instance name.
- ip66plane boolean
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - ip6Range string
- The IPv6 range of the ZeroTier network.
- ip6Rfc4193 boolean
- An option to assign every member a
/128
address within a/88
network. - ip
Range string - The IP range of the ZeroTier network.
- mtu number
- Layer2 Maximum transmission unit. See.
- multicast
Limit number - An option to limit the maximum recipients of a multicast packet.
- name string
- Name of the ZeroTier controller.
- network string
- The ZeroTier network identifier.
- private boolean
- The ZeroTier network access control.
- routes string[]
- The routes list that will be pushed to the client.
- zerotier
Controller stringId - The ID of this resource.
- ___
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.
- broadcast bool
- An option to allow receiving broadcast packets.
- comment str
- disabled bool
- inactive bool
- A flag whether the ZeroTier network is inactive.
- instance str
- The ZeroTier instance name.
- ip66plane bool
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - ip6_
range str - The IPv6 range of the ZeroTier network.
- ip6_
rfc4193 bool - An option to assign every member a
/128
address within a/88
network. - ip_
range str - The IP range of the ZeroTier network.
- mtu float
- Layer2 Maximum transmission unit. See.
- multicast_
limit float - An option to limit the maximum recipients of a multicast packet.
- name str
- Name of the ZeroTier controller.
- network str
- The ZeroTier network identifier.
- private bool
- The ZeroTier network access control.
- routes Sequence[str]
- The routes list that will be pushed to the client.
- zerotier_
controller_ strid - The ID of this resource.
- ___
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.
- broadcast Boolean
- An option to allow receiving broadcast packets.
- comment String
- disabled Boolean
- inactive Boolean
- A flag whether the ZeroTier network is inactive.
- instance String
- The ZeroTier instance name.
- ip66plane Boolean
- An option to assign every member a
/80
address within a/40
network with using NDP emulation. - ip6Range String
- The IPv6 range of the ZeroTier network.
- ip6Rfc4193 Boolean
- An option to assign every member a
/128
address within a/88
network. - ip
Range String - The IP range of the ZeroTier network.
- mtu Number
- Layer2 Maximum transmission unit. See.
- multicast
Limit Number - An option to limit the maximum recipients of a multicast packet.
- name String
- Name of the ZeroTier controller.
- network String
- The ZeroTier network identifier.
- private Boolean
- The ZeroTier network access control.
- routes List<String>
- The routes list that will be pushed to the client.
- zerotier
Controller StringId - The ID of this resource.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/zerotier/controller get [print show-ids]]
$ pulumi import routeros:index/zerotierController:ZerotierController 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
routeros
Terraform Provider.