1. Packages
  2. Routeros Provider
  3. API Docs
  4. UserManagerAttribute
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

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",
});
Copy
import pulumi
import pulumi_routeros as routeros

mikrotik_wireless_comment = routeros.UserManagerAttribute("mikrotikWirelessComment",
    packet_types=["access-accept"],
    type_id=21,
    value_type="string")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  mikrotikWirelessComment:
    type: routeros:UserManagerAttribute
    properties:
      packetTypes:
        - access-accept
      typeId: 21
      valueType: string
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. UserManagerAttributeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. UserManagerAttributeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. UserManagerAttributeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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:

TypeId This property is required. double
Attribute identification number from the specific vendor's attribute database.
Name string
The attribute's name.
PacketTypes List<string>
A set of access-accept and access-challenge.
UserManagerAttributeId string
The ID of this resource.
ValueType string
The attribute's value type.
VendorId 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.
TypeId This property is required. float64
Attribute identification number from the specific vendor's attribute database.
Name string
The attribute's name.
PacketTypes []string
A set of access-accept and access-challenge.
UserManagerAttributeId string
The ID of this resource.
ValueType string
The attribute's value type.
VendorId 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.
typeId This property is required. 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.
packetTypes List<String>
A set of access-accept and access-challenge.
userManagerAttributeId String
The ID of this resource.
valueType String
The attribute's value type.
vendorId String
IANA allocated a specific enterprise identification number.
typeId This property is required. 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.
packetTypes string[]
A set of access-accept and access-challenge.
userManagerAttributeId string
The ID of this resource.
valueType string
The attribute's value type.
vendorId string
IANA allocated a specific enterprise identification number.
type_id This property is required. 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 and access-challenge.
user_manager_attribute_id str
The ID of this resource.
value_type str
The attribute's value type.
vendor_id str
IANA allocated a specific enterprise identification number.
typeId This property is required. 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.
packetTypes List<String>
A set of access-accept and access-challenge.
userManagerAttributeId String
The ID of this resource.
valueType String
The attribute's value type.
vendorId 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.
DefaultName string
The attribute's default name.
Id string
The provider-assigned unique ID for this managed resource.
StandardName string
Default bool
It's the default item.
DefaultName string
The attribute's default name.
Id string
The provider-assigned unique ID for this managed resource.
StandardName string
defaultName String
The attribute's default name.
default_ Boolean
It's the default item.
id String
The provider-assigned unique ID for this managed resource.
standardName String
default boolean
It's the default item.
defaultName string
The attribute's default name.
id string
The provider-assigned unique ID for this managed resource.
standardName 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.
defaultName String
The attribute's default name.
id String
The provider-assigned unique ID for this managed resource.
standardName 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Default bool
It's the default item.
DefaultName string
The attribute's default name.
Name string
The attribute's name.
PacketTypes List<string>
A set of access-accept and access-challenge.
StandardName string
TypeId double
Attribute identification number from the specific vendor's attribute database.
UserManagerAttributeId string
The ID of this resource.
ValueType string
The attribute's value type.
VendorId 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.
DefaultName string
The attribute's default name.
Name string
The attribute's name.
PacketTypes []string
A set of access-accept and access-challenge.
StandardName string
TypeId float64
Attribute identification number from the specific vendor's attribute database.
UserManagerAttributeId string
The ID of this resource.
ValueType string
The attribute's value type.
VendorId 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.
defaultName String
The attribute's default name.
default_ Boolean
It's the default item.
name String
The attribute's name.
packetTypes List<String>
A set of access-accept and access-challenge.
standardName String
typeId Double
Attribute identification number from the specific vendor's attribute database.
userManagerAttributeId String
The ID of this resource.
valueType String
The attribute's value type.
vendorId 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.
defaultName string
The attribute's default name.
name string
The attribute's name.
packetTypes string[]
A set of access-accept and access-challenge.
standardName string
typeId number
Attribute identification number from the specific vendor's attribute database.
userManagerAttributeId string
The ID of this resource.
valueType string
The attribute's value type.
vendorId 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 and access-challenge.
standard_name str
type_id float
Attribute identification number from the specific vendor's attribute database.
user_manager_attribute_id str
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.
defaultName String
The attribute's default name.
name String
The attribute's name.
packetTypes List<String>
A set of access-accept and access-challenge.
standardName String
typeId Number
Attribute identification number from the specific vendor's attribute database.
userManagerAttributeId String
The ID of this resource.
valueType String
The attribute's value type.
vendorId 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.