routeros.UserManagerAttribute
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const mikrotikWirelessComment = new routeros.UserManagerAttribute("mikrotikWirelessComment", {
packetTypes: ["access-accept"],
typeId: 21,
valueType: "string",
});
import pulumi
import pulumi_routeros as routeros
mikrotik_wireless_comment = routeros.UserManagerAttribute("mikrotikWirelessComment",
packet_types=["access-accept"],
type_id=21,
value_type="string")
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.NewUserManagerAttribute(ctx, "mikrotikWirelessComment", &routeros.UserManagerAttributeArgs{
PacketTypes: pulumi.StringArray{
pulumi.String("access-accept"),
},
TypeId: pulumi.Float64(21),
ValueType: pulumi.String("string"),
})
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 mikrotikWirelessComment = new Routeros.UserManagerAttribute("mikrotikWirelessComment", new()
{
PacketTypes = new[]
{
"access-accept",
},
TypeId = 21,
ValueType = "string",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.UserManagerAttribute;
import com.pulumi.routeros.UserManagerAttributeArgs;
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 mikrotikWirelessComment = new UserManagerAttribute("mikrotikWirelessComment", UserManagerAttributeArgs.builder()
.packetTypes("access-accept")
.typeId(21)
.valueType("string")
.build());
}
}
resources:
mikrotikWirelessComment:
type: routeros:UserManagerAttribute
properties:
packetTypes:
- access-accept
typeId: 21
valueType: string
Create UserManagerAttribute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserManagerAttribute(name: string, args: UserManagerAttributeArgs, opts?: CustomResourceOptions);
@overload
def UserManagerAttribute(resource_name: str,
args: UserManagerAttributeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UserManagerAttribute(resource_name: str,
opts: Optional[ResourceOptions] = None,
type_id: Optional[float] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
name: Optional[str] = None,
packet_types: Optional[Sequence[str]] = None,
user_manager_attribute_id: Optional[str] = None,
value_type: Optional[str] = None,
vendor_id: Optional[str] = None)
func NewUserManagerAttribute(ctx *Context, name string, args UserManagerAttributeArgs, opts ...ResourceOption) (*UserManagerAttribute, error)
public UserManagerAttribute(string name, UserManagerAttributeArgs args, CustomResourceOptions? opts = null)
public UserManagerAttribute(String name, UserManagerAttributeArgs args)
public UserManagerAttribute(String name, UserManagerAttributeArgs args, CustomResourceOptions options)
type: routeros:UserManagerAttribute
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 UserManagerAttributeArgs
- 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 UserManagerAttributeArgs
- 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 UserManagerAttributeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserManagerAttributeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserManagerAttributeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
UserManagerAttribute 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 UserManagerAttribute resource accepts the following input properties:
- Type
Id double - Attribute identification number from the specific vendor's attribute database.
- Name string
- The attribute's name.
- Packet
Types List<string> - A set of
access-accept
andaccess-challenge
. - User
Manager stringAttribute Id - The ID of this resource.
- Value
Type string - The attribute's value type.
- Vendor
Id string - IANA allocated a specific enterprise identification number.
- ___
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.
- Type
Id float64 - Attribute identification number from the specific vendor's attribute database.
- Name string
- The attribute's name.
- Packet
Types []string - A set of
access-accept
andaccess-challenge
. - User
Manager stringAttribute Id - The ID of this resource.
- Value
Type string - The attribute's value type.
- Vendor
Id string - IANA allocated a specific enterprise identification number.
- ___
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.
- type
Id Double - Attribute identification number from the specific vendor's attribute database.
- ___
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.
- name String
- The attribute's name.
- packet
Types List<String> - A set of
access-accept
andaccess-challenge
. - user
Manager StringAttribute Id - The ID of this resource.
- value
Type String - The attribute's value type.
- vendor
Id String - IANA allocated a specific enterprise identification number.
- type
Id number - Attribute identification number from the specific vendor's attribute database.
- ___
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.
- name string
- The attribute's name.
- packet
Types string[] - A set of
access-accept
andaccess-challenge
. - user
Manager stringAttribute Id - The ID of this resource.
- value
Type string - The attribute's value type.
- vendor
Id string - IANA allocated a specific enterprise identification number.
- type_
id float - Attribute identification number from the specific vendor's attribute database.
- ___
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.
- name str
- The attribute's name.
- packet_
types Sequence[str] - A set of
access-accept
andaccess-challenge
. - user_
manager_ strattribute_ id - The ID of this resource.
- value_
type str - The attribute's value type.
- vendor_
id str - IANA allocated a specific enterprise identification number.
- type
Id Number - Attribute identification number from the specific vendor's attribute database.
- ___
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.
- name String
- The attribute's name.
- packet
Types List<String> - A set of
access-accept
andaccess-challenge
. - user
Manager StringAttribute Id - The ID of this resource.
- value
Type String - The attribute's value type.
- vendor
Id String - IANA allocated a specific enterprise identification number.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserManagerAttribute resource produces the following output properties:
- Default bool
- It's the default item.
- Default
Name string - The attribute's default name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Standard
Name string
- Default bool
- It's the default item.
- Default
Name string - The attribute's default name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Standard
Name string
- default
Name String - The attribute's default name.
- default_ Boolean
- It's the default item.
- id String
- The provider-assigned unique ID for this managed resource.
- standard
Name String
- default boolean
- It's the default item.
- default
Name string - The attribute's default name.
- id string
- The provider-assigned unique ID for this managed resource.
- standard
Name string
- default bool
- It's the default item.
- default_
name str - The attribute's default name.
- id str
- The provider-assigned unique ID for this managed resource.
- standard_
name str
- default Boolean
- It's the default item.
- default
Name String - The attribute's default name.
- id String
- The provider-assigned unique ID for this managed resource.
- standard
Name String
Look up Existing UserManagerAttribute Resource
Get an existing UserManagerAttribute 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?: UserManagerAttributeState, opts?: CustomResourceOptions): UserManagerAttribute
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
default: Optional[bool] = None,
default_name: Optional[str] = None,
name: Optional[str] = None,
packet_types: Optional[Sequence[str]] = None,
standard_name: Optional[str] = None,
type_id: Optional[float] = None,
user_manager_attribute_id: Optional[str] = None,
value_type: Optional[str] = None,
vendor_id: Optional[str] = None) -> UserManagerAttribute
func GetUserManagerAttribute(ctx *Context, name string, id IDInput, state *UserManagerAttributeState, opts ...ResourceOption) (*UserManagerAttribute, error)
public static UserManagerAttribute Get(string name, Input<string> id, UserManagerAttributeState? state, CustomResourceOptions? opts = null)
public static UserManagerAttribute get(String name, Output<String> id, UserManagerAttributeState state, CustomResourceOptions options)
resources: _: type: routeros:UserManagerAttribute 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.
- Default bool
- It's the default item.
- Default
Name string - The attribute's default name.
- Name string
- The attribute's name.
- Packet
Types List<string> - A set of
access-accept
andaccess-challenge
. - Standard
Name string - Type
Id double - Attribute identification number from the specific vendor's attribute database.
- User
Manager stringAttribute Id - The ID of this resource.
- Value
Type string - The attribute's value type.
- Vendor
Id string - IANA allocated a specific enterprise identification number.
- ___
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.
- Default bool
- It's the default item.
- Default
Name string - The attribute's default name.
- Name string
- The attribute's name.
- Packet
Types []string - A set of
access-accept
andaccess-challenge
. - Standard
Name string - Type
Id float64 - Attribute identification number from the specific vendor's attribute database.
- User
Manager stringAttribute Id - The ID of this resource.
- Value
Type string - The attribute's value type.
- Vendor
Id string - IANA allocated a specific enterprise identification number.
- ___
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.
- default
Name String - The attribute's default name.
- default_ Boolean
- It's the default item.
- name String
- The attribute's name.
- packet
Types List<String> - A set of
access-accept
andaccess-challenge
. - standard
Name String - type
Id Double - Attribute identification number from the specific vendor's attribute database.
- user
Manager StringAttribute Id - The ID of this resource.
- value
Type String - The attribute's value type.
- vendor
Id String - IANA allocated a specific enterprise identification number.
- ___
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.
- default boolean
- It's the default item.
- default
Name string - The attribute's default name.
- name string
- The attribute's name.
- packet
Types string[] - A set of
access-accept
andaccess-challenge
. - standard
Name string - type
Id number - Attribute identification number from the specific vendor's attribute database.
- user
Manager stringAttribute Id - The ID of this resource.
- value
Type string - The attribute's value type.
- vendor
Id string - IANA allocated a specific enterprise identification number.
- ___
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.
- default bool
- It's the default item.
- default_
name str - The attribute's default name.
- name str
- The attribute's name.
- packet_
types Sequence[str] - A set of
access-accept
andaccess-challenge
. - standard_
name str - type_
id float - Attribute identification number from the specific vendor's attribute database.
- user_
manager_ strattribute_ id - The ID of this resource.
- value_
type str - The attribute's value type.
- vendor_
id str - IANA allocated a specific enterprise identification number.
- ___
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.
- default Boolean
- It's the default item.
- default
Name String - The attribute's default name.
- name String
- The attribute's name.
- packet
Types List<String> - A set of
access-accept
andaccess-challenge
. - standard
Name String - type
Id Number - Attribute identification number from the specific vendor's attribute database.
- user
Manager StringAttribute Id - The ID of this resource.
- value
Type String - The attribute's value type.
- vendor
Id String - IANA allocated a specific enterprise identification number.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/user-manager/attribute get [print show-ids]]
terraform routeros_user_manager_attribute.mikrotik_wireless_comment ‘*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.