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

routeros.UserManagerLimitation

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";

const test = new routeros.UserManagerLimitation("test", {
    downloadLimit: 1024,
    uploadLimit: 1024,
    uptimeLimit: "10d",
});
Copy
import pulumi
import pulumi_routeros as routeros

test = routeros.UserManagerLimitation("test",
    download_limit=1024,
    upload_limit=1024,
    uptime_limit="10d")
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.NewUserManagerLimitation(ctx, "test", &routeros.UserManagerLimitationArgs{
			DownloadLimit: pulumi.Float64(1024),
			UploadLimit:   pulumi.Float64(1024),
			UptimeLimit:   pulumi.String("10d"),
		})
		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 test = new Routeros.UserManagerLimitation("test", new()
    {
        DownloadLimit = 1024,
        UploadLimit = 1024,
        UptimeLimit = "10d",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.UserManagerLimitation;
import com.pulumi.routeros.UserManagerLimitationArgs;
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 test = new UserManagerLimitation("test", UserManagerLimitationArgs.builder()
            .downloadLimit(1024)
            .uploadLimit(1024)
            .uptimeLimit("10d")
            .build());

    }
}
Copy
resources:
  test:
    type: routeros:UserManagerLimitation
    properties:
      downloadLimit: 1024
      uploadLimit: 1024
      uptimeLimit: 10d
Copy

Create UserManagerLimitation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new UserManagerLimitation(name: string, args?: UserManagerLimitationArgs, opts?: CustomResourceOptions);
@overload
def UserManagerLimitation(resource_name: str,
                          args: Optional[UserManagerLimitationArgs] = None,
                          opts: Optional[ResourceOptions] = None)

@overload
def UserManagerLimitation(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          ___id_: Optional[float] = None,
                          ___path_: Optional[str] = None,
                          download_limit: Optional[float] = None,
                          name: Optional[str] = None,
                          rate_limit_burst_rx: Optional[float] = None,
                          rate_limit_burst_threshold_rx: Optional[float] = None,
                          rate_limit_burst_threshold_tx: Optional[float] = None,
                          rate_limit_burst_time_rx: Optional[str] = None,
                          rate_limit_burst_time_tx: Optional[str] = None,
                          rate_limit_burst_tx: Optional[float] = None,
                          rate_limit_min_rx: Optional[float] = None,
                          rate_limit_min_tx: Optional[float] = None,
                          rate_limit_priority: Optional[float] = None,
                          rate_limit_rx: Optional[float] = None,
                          rate_limit_tx: Optional[float] = None,
                          reset_counters_interval: Optional[str] = None,
                          reset_counters_start_time: Optional[str] = None,
                          transfer_limit: Optional[float] = None,
                          upload_limit: Optional[float] = None,
                          uptime_limit: Optional[str] = None,
                          user_manager_limitation_id: Optional[str] = None)
func NewUserManagerLimitation(ctx *Context, name string, args *UserManagerLimitationArgs, opts ...ResourceOption) (*UserManagerLimitation, error)
public UserManagerLimitation(string name, UserManagerLimitationArgs? args = null, CustomResourceOptions? opts = null)
public UserManagerLimitation(String name, UserManagerLimitationArgs args)
public UserManagerLimitation(String name, UserManagerLimitationArgs args, CustomResourceOptions options)
type: routeros:UserManagerLimitation
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 UserManagerLimitationArgs
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 UserManagerLimitationArgs
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 UserManagerLimitationArgs
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 UserManagerLimitationArgs
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. UserManagerLimitationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

UserManagerLimitation 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 UserManagerLimitation resource accepts the following input properties:

DownloadLimit double
The total amount of traffic a user can download in bytes.
Name string
Unique name of the limitation.
RateLimitBurstRx double
RateLimitBurstThresholdRx double
RateLimitBurstThresholdTx double
RateLimitBurstTimeRx string
RateLimitBurstTimeTx string
RateLimitBurstTx double
RateLimitMinRx double
RateLimitMinTx double
RateLimitPriority double
RateLimitRx double
RateLimitTx double
ResetCountersInterval string
The interval from reset_counters_start_time when all associated user statistics are cleared.
ResetCountersStartTime string
Static date and time value from which reset_counters_interval is calculated.
TransferLimit double
The total amount of aggregated (download+upload) traffic in bytes.
UploadLimit double
The total amount of traffic a user can upload in bytes.
UptimeLimit string
The total amount of uptime a user can stay active.
UserManagerLimitationId string
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.
DownloadLimit float64
The total amount of traffic a user can download in bytes.
Name string
Unique name of the limitation.
RateLimitBurstRx float64
RateLimitBurstThresholdRx float64
RateLimitBurstThresholdTx float64
RateLimitBurstTimeRx string
RateLimitBurstTimeTx string
RateLimitBurstTx float64
RateLimitMinRx float64
RateLimitMinTx float64
RateLimitPriority float64
RateLimitRx float64
RateLimitTx float64
ResetCountersInterval string
The interval from reset_counters_start_time when all associated user statistics are cleared.
ResetCountersStartTime string
Static date and time value from which reset_counters_interval is calculated.
TransferLimit float64
The total amount of aggregated (download+upload) traffic in bytes.
UploadLimit float64
The total amount of traffic a user can upload in bytes.
UptimeLimit string
The total amount of uptime a user can stay active.
UserManagerLimitationId string
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.
downloadLimit Double
The total amount of traffic a user can download in bytes.
name String
Unique name of the limitation.
rateLimitBurstRx Double
rateLimitBurstThresholdRx Double
rateLimitBurstThresholdTx Double
rateLimitBurstTimeRx String
rateLimitBurstTimeTx String
rateLimitBurstTx Double
rateLimitMinRx Double
rateLimitMinTx Double
rateLimitPriority Double
rateLimitRx Double
rateLimitTx Double
resetCountersInterval String
The interval from reset_counters_start_time when all associated user statistics are cleared.
resetCountersStartTime String
Static date and time value from which reset_counters_interval is calculated.
transferLimit Double
The total amount of aggregated (download+upload) traffic in bytes.
uploadLimit Double
The total amount of traffic a user can upload in bytes.
uptimeLimit String
The total amount of uptime a user can stay active.
userManagerLimitationId String
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.
downloadLimit number
The total amount of traffic a user can download in bytes.
name string
Unique name of the limitation.
rateLimitBurstRx number
rateLimitBurstThresholdRx number
rateLimitBurstThresholdTx number
rateLimitBurstTimeRx string
rateLimitBurstTimeTx string
rateLimitBurstTx number
rateLimitMinRx number
rateLimitMinTx number
rateLimitPriority number
rateLimitRx number
rateLimitTx number
resetCountersInterval string
The interval from reset_counters_start_time when all associated user statistics are cleared.
resetCountersStartTime string
Static date and time value from which reset_counters_interval is calculated.
transferLimit number
The total amount of aggregated (download+upload) traffic in bytes.
uploadLimit number
The total amount of traffic a user can upload in bytes.
uptimeLimit string
The total amount of uptime a user can stay active.
userManagerLimitationId string
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.
download_limit float
The total amount of traffic a user can download in bytes.
name str
Unique name of the limitation.
rate_limit_burst_rx float
rate_limit_burst_threshold_rx float
rate_limit_burst_threshold_tx float
rate_limit_burst_time_rx str
rate_limit_burst_time_tx str
rate_limit_burst_tx float
rate_limit_min_rx float
rate_limit_min_tx float
rate_limit_priority float
rate_limit_rx float
rate_limit_tx float
reset_counters_interval str
The interval from reset_counters_start_time when all associated user statistics are cleared.
reset_counters_start_time str
Static date and time value from which reset_counters_interval is calculated.
transfer_limit float
The total amount of aggregated (download+upload) traffic in bytes.
upload_limit float
The total amount of traffic a user can upload in bytes.
uptime_limit str
The total amount of uptime a user can stay active.
user_manager_limitation_id str
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.
downloadLimit Number
The total amount of traffic a user can download in bytes.
name String
Unique name of the limitation.
rateLimitBurstRx Number
rateLimitBurstThresholdRx Number
rateLimitBurstThresholdTx Number
rateLimitBurstTimeRx String
rateLimitBurstTimeTx String
rateLimitBurstTx Number
rateLimitMinRx Number
rateLimitMinTx Number
rateLimitPriority Number
rateLimitRx Number
rateLimitTx Number
resetCountersInterval String
The interval from reset_counters_start_time when all associated user statistics are cleared.
resetCountersStartTime String
Static date and time value from which reset_counters_interval is calculated.
transferLimit Number
The total amount of aggregated (download+upload) traffic in bytes.
uploadLimit Number
The total amount of traffic a user can upload in bytes.
uptimeLimit String
The total amount of uptime a user can stay active.
userManagerLimitationId String
The ID of this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the UserManagerLimitation 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 UserManagerLimitation Resource

Get an existing UserManagerLimitation 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?: UserManagerLimitationState, opts?: CustomResourceOptions): UserManagerLimitation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ___id_: Optional[float] = None,
        ___path_: Optional[str] = None,
        download_limit: Optional[float] = None,
        name: Optional[str] = None,
        rate_limit_burst_rx: Optional[float] = None,
        rate_limit_burst_threshold_rx: Optional[float] = None,
        rate_limit_burst_threshold_tx: Optional[float] = None,
        rate_limit_burst_time_rx: Optional[str] = None,
        rate_limit_burst_time_tx: Optional[str] = None,
        rate_limit_burst_tx: Optional[float] = None,
        rate_limit_min_rx: Optional[float] = None,
        rate_limit_min_tx: Optional[float] = None,
        rate_limit_priority: Optional[float] = None,
        rate_limit_rx: Optional[float] = None,
        rate_limit_tx: Optional[float] = None,
        reset_counters_interval: Optional[str] = None,
        reset_counters_start_time: Optional[str] = None,
        transfer_limit: Optional[float] = None,
        upload_limit: Optional[float] = None,
        uptime_limit: Optional[str] = None,
        user_manager_limitation_id: Optional[str] = None) -> UserManagerLimitation
func GetUserManagerLimitation(ctx *Context, name string, id IDInput, state *UserManagerLimitationState, opts ...ResourceOption) (*UserManagerLimitation, error)
public static UserManagerLimitation Get(string name, Input<string> id, UserManagerLimitationState? state, CustomResourceOptions? opts = null)
public static UserManagerLimitation get(String name, Output<String> id, UserManagerLimitationState state, CustomResourceOptions options)
resources:  _:    type: routeros:UserManagerLimitation    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:
DownloadLimit double
The total amount of traffic a user can download in bytes.
Name string
Unique name of the limitation.
RateLimitBurstRx double
RateLimitBurstThresholdRx double
RateLimitBurstThresholdTx double
RateLimitBurstTimeRx string
RateLimitBurstTimeTx string
RateLimitBurstTx double
RateLimitMinRx double
RateLimitMinTx double
RateLimitPriority double
RateLimitRx double
RateLimitTx double
ResetCountersInterval string
The interval from reset_counters_start_time when all associated user statistics are cleared.
ResetCountersStartTime string
Static date and time value from which reset_counters_interval is calculated.
TransferLimit double
The total amount of aggregated (download+upload) traffic in bytes.
UploadLimit double
The total amount of traffic a user can upload in bytes.
UptimeLimit string
The total amount of uptime a user can stay active.
UserManagerLimitationId string
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.
DownloadLimit float64
The total amount of traffic a user can download in bytes.
Name string
Unique name of the limitation.
RateLimitBurstRx float64
RateLimitBurstThresholdRx float64
RateLimitBurstThresholdTx float64
RateLimitBurstTimeRx string
RateLimitBurstTimeTx string
RateLimitBurstTx float64
RateLimitMinRx float64
RateLimitMinTx float64
RateLimitPriority float64
RateLimitRx float64
RateLimitTx float64
ResetCountersInterval string
The interval from reset_counters_start_time when all associated user statistics are cleared.
ResetCountersStartTime string
Static date and time value from which reset_counters_interval is calculated.
TransferLimit float64
The total amount of aggregated (download+upload) traffic in bytes.
UploadLimit float64
The total amount of traffic a user can upload in bytes.
UptimeLimit string
The total amount of uptime a user can stay active.
UserManagerLimitationId string
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.
downloadLimit Double
The total amount of traffic a user can download in bytes.
name String
Unique name of the limitation.
rateLimitBurstRx Double
rateLimitBurstThresholdRx Double
rateLimitBurstThresholdTx Double
rateLimitBurstTimeRx String
rateLimitBurstTimeTx String
rateLimitBurstTx Double
rateLimitMinRx Double
rateLimitMinTx Double
rateLimitPriority Double
rateLimitRx Double
rateLimitTx Double
resetCountersInterval String
The interval from reset_counters_start_time when all associated user statistics are cleared.
resetCountersStartTime String
Static date and time value from which reset_counters_interval is calculated.
transferLimit Double
The total amount of aggregated (download+upload) traffic in bytes.
uploadLimit Double
The total amount of traffic a user can upload in bytes.
uptimeLimit String
The total amount of uptime a user can stay active.
userManagerLimitationId String
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.
downloadLimit number
The total amount of traffic a user can download in bytes.
name string
Unique name of the limitation.
rateLimitBurstRx number
rateLimitBurstThresholdRx number
rateLimitBurstThresholdTx number
rateLimitBurstTimeRx string
rateLimitBurstTimeTx string
rateLimitBurstTx number
rateLimitMinRx number
rateLimitMinTx number
rateLimitPriority number
rateLimitRx number
rateLimitTx number
resetCountersInterval string
The interval from reset_counters_start_time when all associated user statistics are cleared.
resetCountersStartTime string
Static date and time value from which reset_counters_interval is calculated.
transferLimit number
The total amount of aggregated (download+upload) traffic in bytes.
uploadLimit number
The total amount of traffic a user can upload in bytes.
uptimeLimit string
The total amount of uptime a user can stay active.
userManagerLimitationId string
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.
download_limit float
The total amount of traffic a user can download in bytes.
name str
Unique name of the limitation.
rate_limit_burst_rx float
rate_limit_burst_threshold_rx float
rate_limit_burst_threshold_tx float
rate_limit_burst_time_rx str
rate_limit_burst_time_tx str
rate_limit_burst_tx float
rate_limit_min_rx float
rate_limit_min_tx float
rate_limit_priority float
rate_limit_rx float
rate_limit_tx float
reset_counters_interval str
The interval from reset_counters_start_time when all associated user statistics are cleared.
reset_counters_start_time str
Static date and time value from which reset_counters_interval is calculated.
transfer_limit float
The total amount of aggregated (download+upload) traffic in bytes.
upload_limit float
The total amount of traffic a user can upload in bytes.
uptime_limit str
The total amount of uptime a user can stay active.
user_manager_limitation_id str
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.
downloadLimit Number
The total amount of traffic a user can download in bytes.
name String
Unique name of the limitation.
rateLimitBurstRx Number
rateLimitBurstThresholdRx Number
rateLimitBurstThresholdTx Number
rateLimitBurstTimeRx String
rateLimitBurstTimeTx String
rateLimitBurstTx Number
rateLimitMinRx Number
rateLimitMinTx Number
rateLimitPriority Number
rateLimitRx Number
rateLimitTx Number
resetCountersInterval String
The interval from reset_counters_start_time when all associated user statistics are cleared.
resetCountersStartTime String
Static date and time value from which reset_counters_interval is calculated.
transferLimit Number
The total amount of aggregated (download+upload) traffic in bytes.
uploadLimit Number
The total amount of traffic a user can upload in bytes.
uptimeLimit String
The total amount of uptime a user can stay active.
userManagerLimitationId String
The ID of this resource.

Import

#The ID can be found via API or the terminal

#The command for the terminal is -> :put [/user-manager/limitation get [print show-ids]]

$ pulumi import routeros:index/userManagerLimitation:UserManagerLimitation test '*1'
Copy

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.