routeros.CapsmanProvisioning
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const testConfiguration = new routeros.CapsmanConfiguration("testConfiguration", {});
const testProvisioning = new routeros.CapsmanProvisioning("testProvisioning", {
masterConfiguration: "cfg1",
action: "create-disabled",
namePrefix: "cap-",
}, {
dependsOn: [testConfiguration],
});
import pulumi
import pulumi_routeros as routeros
test_configuration = routeros.CapsmanConfiguration("testConfiguration")
test_provisioning = routeros.CapsmanProvisioning("testProvisioning",
master_configuration="cfg1",
action="create-disabled",
name_prefix="cap-",
opts = pulumi.ResourceOptions(depends_on=[test_configuration]))
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 {
testConfiguration, err := routeros.NewCapsmanConfiguration(ctx, "testConfiguration", nil)
if err != nil {
return err
}
_, err = routeros.NewCapsmanProvisioning(ctx, "testProvisioning", &routeros.CapsmanProvisioningArgs{
MasterConfiguration: pulumi.String("cfg1"),
Action: pulumi.String("create-disabled"),
NamePrefix: pulumi.String("cap-"),
}, pulumi.DependsOn([]pulumi.Resource{
testConfiguration,
}))
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 testConfiguration = new Routeros.CapsmanConfiguration("testConfiguration");
var testProvisioning = new Routeros.CapsmanProvisioning("testProvisioning", new()
{
MasterConfiguration = "cfg1",
Action = "create-disabled",
NamePrefix = "cap-",
}, new CustomResourceOptions
{
DependsOn =
{
testConfiguration,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.CapsmanConfiguration;
import com.pulumi.routeros.CapsmanProvisioning;
import com.pulumi.routeros.CapsmanProvisioningArgs;
import com.pulumi.resources.CustomResourceOptions;
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 testConfiguration = new CapsmanConfiguration("testConfiguration");
var testProvisioning = new CapsmanProvisioning("testProvisioning", CapsmanProvisioningArgs.builder()
.masterConfiguration("cfg1")
.action("create-disabled")
.namePrefix("cap-")
.build(), CustomResourceOptions.builder()
.dependsOn(testConfiguration)
.build());
}
}
resources:
testConfiguration:
type: routeros:CapsmanConfiguration
testProvisioning:
type: routeros:CapsmanProvisioning
properties:
masterConfiguration: cfg1
action: create-disabled
namePrefix: cap-
options:
dependsOn:
- ${testConfiguration}
Create CapsmanProvisioning Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CapsmanProvisioning(name: string, args: CapsmanProvisioningArgs, opts?: CustomResourceOptions);
@overload
def CapsmanProvisioning(resource_name: str,
args: CapsmanProvisioningArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CapsmanProvisioning(resource_name: str,
opts: Optional[ResourceOptions] = None,
master_configuration: Optional[str] = None,
disabled: Optional[bool] = None,
identity_regexp: Optional[str] = None,
capsman_provisioning_id: Optional[str] = None,
comment: Optional[str] = None,
common_name_regexp: Optional[str] = None,
___id_: Optional[float] = None,
hw_supported_modes: Optional[Sequence[str]] = None,
action: Optional[str] = None,
ip_address_ranges: Optional[Sequence[str]] = None,
___path_: Optional[str] = None,
name_format: Optional[str] = None,
name_prefix: Optional[str] = None,
radio_mac: Optional[str] = None,
slave_configurations: Optional[Sequence[str]] = None)
func NewCapsmanProvisioning(ctx *Context, name string, args CapsmanProvisioningArgs, opts ...ResourceOption) (*CapsmanProvisioning, error)
public CapsmanProvisioning(string name, CapsmanProvisioningArgs args, CustomResourceOptions? opts = null)
public CapsmanProvisioning(String name, CapsmanProvisioningArgs args)
public CapsmanProvisioning(String name, CapsmanProvisioningArgs args, CustomResourceOptions options)
type: routeros:CapsmanProvisioning
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 CapsmanProvisioningArgs
- 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 CapsmanProvisioningArgs
- 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 CapsmanProvisioningArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CapsmanProvisioningArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CapsmanProvisioningArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CapsmanProvisioning 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 CapsmanProvisioning resource accepts the following input properties:
- Master
Configuration string - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- Action string
- Provisioning action.
- Capsman
Provisioning stringId - The ID of this resource.
- Comment string
- Common
Name stringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- Disabled bool
- Hw
Supported List<string>Modes - Match radios by supported wireless modes.
- Identity
Regexp string - Regular expression to match radios by router identity.
- Ip
Address List<string>Ranges - Match CAPs with IPs within configured address range.
- Name
Format string - Specify the syntax of the CAP interface name creation.
- Name
Prefix string - Name prefix which can be used in the name-format for creating the CAP interface names.
- Radio
Mac string - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- Slave
Configurations List<string> - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- ___
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.
- Master
Configuration string - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- Action string
- Provisioning action.
- Capsman
Provisioning stringId - The ID of this resource.
- Comment string
- Common
Name stringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- Disabled bool
- Hw
Supported []stringModes - Match radios by supported wireless modes.
- Identity
Regexp string - Regular expression to match radios by router identity.
- Ip
Address []stringRanges - Match CAPs with IPs within configured address range.
- Name
Format string - Specify the syntax of the CAP interface name creation.
- Name
Prefix string - Name prefix which can be used in the name-format for creating the CAP interface names.
- Radio
Mac string - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- Slave
Configurations []string - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- ___
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.
- master
Configuration String - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- ___
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.
- action String
- Provisioning action.
- capsman
Provisioning StringId - The ID of this resource.
- comment String
- common
Name StringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- disabled Boolean
- hw
Supported List<String>Modes - Match radios by supported wireless modes.
- identity
Regexp String - Regular expression to match radios by router identity.
- ip
Address List<String>Ranges - Match CAPs with IPs within configured address range.
- name
Format String - Specify the syntax of the CAP interface name creation.
- name
Prefix String - Name prefix which can be used in the name-format for creating the CAP interface names.
- radio
Mac String - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- slave
Configurations List<String> - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- master
Configuration string - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- ___
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.
- action string
- Provisioning action.
- capsman
Provisioning stringId - The ID of this resource.
- comment string
- common
Name stringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- disabled boolean
- hw
Supported string[]Modes - Match radios by supported wireless modes.
- identity
Regexp string - Regular expression to match radios by router identity.
- ip
Address string[]Ranges - Match CAPs with IPs within configured address range.
- name
Format string - Specify the syntax of the CAP interface name creation.
- name
Prefix string - Name prefix which can be used in the name-format for creating the CAP interface names.
- radio
Mac string - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- slave
Configurations string[] - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- master_
configuration str - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- ___
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.
- action str
- Provisioning action.
- capsman_
provisioning_ strid - The ID of this resource.
- comment str
- common_
name_ strregexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- disabled bool
- hw_
supported_ Sequence[str]modes - Match radios by supported wireless modes.
- identity_
regexp str - Regular expression to match radios by router identity.
- ip_
address_ Sequence[str]ranges - Match CAPs with IPs within configured address range.
- name_
format str - Specify the syntax of the CAP interface name creation.
- name_
prefix str - Name prefix which can be used in the name-format for creating the CAP interface names.
- radio_
mac str - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- slave_
configurations Sequence[str] - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- master
Configuration String - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- ___
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.
- action String
- Provisioning action.
- capsman
Provisioning StringId - The ID of this resource.
- comment String
- common
Name StringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- disabled Boolean
- hw
Supported List<String>Modes - Match radios by supported wireless modes.
- identity
Regexp String - Regular expression to match radios by router identity.
- ip
Address List<String>Ranges - Match CAPs with IPs within configured address range.
- name
Format String - Specify the syntax of the CAP interface name creation.
- name
Prefix String - Name prefix which can be used in the name-format for creating the CAP interface names.
- radio
Mac String - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- slave
Configurations List<String> - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
Outputs
All input properties are implicitly available as output properties. Additionally, the CapsmanProvisioning 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 CapsmanProvisioning Resource
Get an existing CapsmanProvisioning 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?: CapsmanProvisioningState, opts?: CustomResourceOptions): CapsmanProvisioning
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
action: Optional[str] = None,
capsman_provisioning_id: Optional[str] = None,
comment: Optional[str] = None,
common_name_regexp: Optional[str] = None,
disabled: Optional[bool] = None,
hw_supported_modes: Optional[Sequence[str]] = None,
identity_regexp: Optional[str] = None,
ip_address_ranges: Optional[Sequence[str]] = None,
master_configuration: Optional[str] = None,
name_format: Optional[str] = None,
name_prefix: Optional[str] = None,
radio_mac: Optional[str] = None,
slave_configurations: Optional[Sequence[str]] = None) -> CapsmanProvisioning
func GetCapsmanProvisioning(ctx *Context, name string, id IDInput, state *CapsmanProvisioningState, opts ...ResourceOption) (*CapsmanProvisioning, error)
public static CapsmanProvisioning Get(string name, Input<string> id, CapsmanProvisioningState? state, CustomResourceOptions? opts = null)
public static CapsmanProvisioning get(String name, Output<String> id, CapsmanProvisioningState state, CustomResourceOptions options)
resources: _: type: routeros:CapsmanProvisioning 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.
- Action string
- Provisioning action.
- Capsman
Provisioning stringId - The ID of this resource.
- Comment string
- Common
Name stringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- Disabled bool
- Hw
Supported List<string>Modes - Match radios by supported wireless modes.
- Identity
Regexp string - Regular expression to match radios by router identity.
- Ip
Address List<string>Ranges - Match CAPs with IPs within configured address range.
- Master
Configuration string - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- Name
Format string - Specify the syntax of the CAP interface name creation.
- Name
Prefix string - Name prefix which can be used in the name-format for creating the CAP interface names.
- Radio
Mac string - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- Slave
Configurations List<string> - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- ___
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.
- Action string
- Provisioning action.
- Capsman
Provisioning stringId - The ID of this resource.
- Comment string
- Common
Name stringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- Disabled bool
- Hw
Supported []stringModes - Match radios by supported wireless modes.
- Identity
Regexp string - Regular expression to match radios by router identity.
- Ip
Address []stringRanges - Match CAPs with IPs within configured address range.
- Master
Configuration string - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- Name
Format string - Specify the syntax of the CAP interface name creation.
- Name
Prefix string - Name prefix which can be used in the name-format for creating the CAP interface names.
- Radio
Mac string - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- Slave
Configurations []string - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- ___
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.
- action String
- Provisioning action.
- capsman
Provisioning StringId - The ID of this resource.
- comment String
- common
Name StringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- disabled Boolean
- hw
Supported List<String>Modes - Match radios by supported wireless modes.
- identity
Regexp String - Regular expression to match radios by router identity.
- ip
Address List<String>Ranges - Match CAPs with IPs within configured address range.
- master
Configuration String - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- name
Format String - Specify the syntax of the CAP interface name creation.
- name
Prefix String - Name prefix which can be used in the name-format for creating the CAP interface names.
- radio
Mac String - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- slave
Configurations List<String> - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- ___
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.
- action string
- Provisioning action.
- capsman
Provisioning stringId - The ID of this resource.
- comment string
- common
Name stringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- disabled boolean
- hw
Supported string[]Modes - Match radios by supported wireless modes.
- identity
Regexp string - Regular expression to match radios by router identity.
- ip
Address string[]Ranges - Match CAPs with IPs within configured address range.
- master
Configuration string - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- name
Format string - Specify the syntax of the CAP interface name creation.
- name
Prefix string - Name prefix which can be used in the name-format for creating the CAP interface names.
- radio
Mac string - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- slave
Configurations string[] - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- ___
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.
- action str
- Provisioning action.
- capsman_
provisioning_ strid - The ID of this resource.
- comment str
- common_
name_ strregexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- disabled bool
- hw_
supported_ Sequence[str]modes - Match radios by supported wireless modes.
- identity_
regexp str - Regular expression to match radios by router identity.
- ip_
address_ Sequence[str]ranges - Match CAPs with IPs within configured address range.
- master_
configuration str - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- name_
format str - Specify the syntax of the CAP interface name creation.
- name_
prefix str - Name prefix which can be used in the name-format for creating the CAP interface names.
- radio_
mac str - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- slave_
configurations Sequence[str] - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
- ___
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.
- action String
- Provisioning action.
- capsman
Provisioning StringId - The ID of this resource.
- comment String
- common
Name StringRegexp - Regular expression to match radios by common name. Each CAP's common name identifier can be found under "/caps-man radio" as value "REMOTE-CAP-NAME"
- disabled Boolean
- hw
Supported List<String>Modes - Match radios by supported wireless modes.
- identity
Regexp String - Regular expression to match radios by router identity.
- ip
Address List<String>Ranges - Match CAPs with IPs within configured address range.
- master
Configuration String - If action specifies to create interfaces, then a new master interface with its configuration set to this configuration profile will be created
- name
Format String - Specify the syntax of the CAP interface name creation.
- name
Prefix String - Name prefix which can be used in the name-format for creating the CAP interface names.
- radio
Mac String - MAC address of radio to be matched, empty MAC (00:00:00:00:00:00) means match all MAC addresses.
- slave
Configurations List<String> - If action specifies to create interfaces, then a new slave interface for each configuration profile in this list is created.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/caps-man/provisioning get [print show-ids]]
$ pulumi import routeros:index/capsmanProvisioning:CapsmanProvisioning test_provisioning "*B"
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.