routeros.CapsmanManagerInterface
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const testManagerInterface = new routeros.CapsmanManagerInterface("testManagerInterface", {
forbid: true,
"interface": "ether1",
});
import pulumi
import pulumi_routeros as routeros
test_manager_interface = routeros.CapsmanManagerInterface("testManagerInterface",
forbid=True,
interface="ether1")
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.NewCapsmanManagerInterface(ctx, "testManagerInterface", &routeros.CapsmanManagerInterfaceArgs{
Forbid: pulumi.Bool(true),
Interface: pulumi.String("ether1"),
})
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 testManagerInterface = new Routeros.CapsmanManagerInterface("testManagerInterface", new()
{
Forbid = true,
Interface = "ether1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.CapsmanManagerInterface;
import com.pulumi.routeros.CapsmanManagerInterfaceArgs;
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 testManagerInterface = new CapsmanManagerInterface("testManagerInterface", CapsmanManagerInterfaceArgs.builder()
.forbid(true)
.interface_("ether1")
.build());
}
}
resources:
testManagerInterface:
type: routeros:CapsmanManagerInterface
properties:
forbid: true
interface: ether1
Create CapsmanManagerInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CapsmanManagerInterface(name: string, args: CapsmanManagerInterfaceArgs, opts?: CustomResourceOptions);
@overload
def CapsmanManagerInterface(resource_name: str,
args: CapsmanManagerInterfaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CapsmanManagerInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
interface: Optional[str] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
capsman_manager_interface_id: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
forbid: Optional[bool] = None)
func NewCapsmanManagerInterface(ctx *Context, name string, args CapsmanManagerInterfaceArgs, opts ...ResourceOption) (*CapsmanManagerInterface, error)
public CapsmanManagerInterface(string name, CapsmanManagerInterfaceArgs args, CustomResourceOptions? opts = null)
public CapsmanManagerInterface(String name, CapsmanManagerInterfaceArgs args)
public CapsmanManagerInterface(String name, CapsmanManagerInterfaceArgs args, CustomResourceOptions options)
type: routeros:CapsmanManagerInterface
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 CapsmanManagerInterfaceArgs
- 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 CapsmanManagerInterfaceArgs
- 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 CapsmanManagerInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CapsmanManagerInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CapsmanManagerInterfaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CapsmanManagerInterface 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 CapsmanManagerInterface resource accepts the following input properties:
- Interface string
- Name of the interface.
- Capsman
Manager stringInterface Id - The ID of this resource.
- Comment string
- Disabled bool
- Forbid bool
- Disable interface listening.
- ___
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.
- Interface string
- Name of the interface.
- Capsman
Manager stringInterface Id - The ID of this resource.
- Comment string
- Disabled bool
- Forbid bool
- Disable interface listening.
- ___
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.
- interface_ String
- Name of the interface.
- ___
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.
- capsman
Manager StringInterface Id - The ID of this resource.
- comment String
- disabled Boolean
- forbid Boolean
- Disable interface listening.
- interface string
- Name of the interface.
- ___
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.
- capsman
Manager stringInterface Id - The ID of this resource.
- comment string
- disabled boolean
- forbid boolean
- Disable interface listening.
- interface str
- Name of the interface.
- ___
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.
- capsman_
manager_ strinterface_ id - The ID of this resource.
- comment str
- disabled bool
- forbid bool
- Disable interface listening.
- interface String
- Name of the interface.
- ___
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.
- capsman
Manager StringInterface Id - The ID of this resource.
- comment String
- disabled Boolean
- forbid Boolean
- Disable interface listening.
Outputs
All input properties are implicitly available as output properties. Additionally, the CapsmanManagerInterface resource produces the following output properties:
Look up Existing CapsmanManagerInterface Resource
Get an existing CapsmanManagerInterface 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?: CapsmanManagerInterfaceState, opts?: CustomResourceOptions): CapsmanManagerInterface
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
capsman_manager_interface_id: Optional[str] = None,
comment: Optional[str] = None,
default: Optional[bool] = None,
disabled: Optional[bool] = None,
dynamic: Optional[bool] = None,
forbid: Optional[bool] = None,
interface: Optional[str] = None) -> CapsmanManagerInterface
func GetCapsmanManagerInterface(ctx *Context, name string, id IDInput, state *CapsmanManagerInterfaceState, opts ...ResourceOption) (*CapsmanManagerInterface, error)
public static CapsmanManagerInterface Get(string name, Input<string> id, CapsmanManagerInterfaceState? state, CustomResourceOptions? opts = null)
public static CapsmanManagerInterface get(String name, Output<String> id, CapsmanManagerInterfaceState state, CustomResourceOptions options)
resources: _: type: routeros:CapsmanManagerInterface 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.
- Capsman
Manager stringInterface Id - The ID of this resource.
- Comment string
- Default bool
- It's the default item.
- Disabled bool
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Forbid bool
- Disable interface listening.
- Interface string
- Name of the interface.
- ___
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.
- Capsman
Manager stringInterface Id - The ID of this resource.
- Comment string
- Default bool
- It's the default item.
- Disabled bool
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Forbid bool
- Disable interface listening.
- Interface string
- Name of the interface.
- ___
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.
- capsman
Manager StringInterface Id - The ID of this resource.
- comment String
- default_ Boolean
- It's the default item.
- disabled Boolean
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forbid Boolean
- Disable interface listening.
- interface_ String
- Name of the interface.
- ___
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.
- capsman
Manager stringInterface Id - The ID of this resource.
- comment string
- default boolean
- It's the default item.
- disabled boolean
- dynamic boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forbid boolean
- Disable interface listening.
- interface string
- Name of the interface.
- ___
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.
- capsman_
manager_ strinterface_ id - The ID of this resource.
- comment str
- default bool
- It's the default item.
- disabled bool
- dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forbid bool
- Disable interface listening.
- interface str
- Name of the interface.
- ___
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.
- capsman
Manager StringInterface Id - The ID of this resource.
- comment String
- default Boolean
- It's the default item.
- disabled Boolean
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- forbid Boolean
- Disable interface listening.
- interface String
- Name of the interface.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/caps-man/manager/interface get [print show-ids]]
$ pulumi import routeros:index/capsmanManagerInterface:CapsmanManagerInterface test_manager_interface "*6"
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.