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",
});
import pulumi
import pulumi_routeros as routeros
test = routeros.UserManagerLimitation("test",
download_limit=1024,
upload_limit=1024,
uptime_limit="10d")
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
})
}
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",
});
});
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());
}
}
resources:
test:
type: routeros:UserManagerLimitation
properties:
downloadLimit: 1024
uploadLimit: 1024
uptimeLimit: 10d
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 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 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 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 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 String
- The unique name of the resource.
- args 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:
- Download
Limit double - The total amount of traffic a user can download in bytes.
- Name string
- Unique name of the limitation.
- Rate
Limit doubleBurst Rx - Rate
Limit doubleBurst Threshold Rx - Rate
Limit doubleBurst Threshold Tx - Rate
Limit stringBurst Time Rx - Rate
Limit stringBurst Time Tx - Rate
Limit doubleBurst Tx - Rate
Limit doubleMin Rx - Rate
Limit doubleMin Tx - Rate
Limit doublePriority - Rate
Limit doubleRx - Rate
Limit doubleTx - Reset
Counters stringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - Reset
Counters stringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - Transfer
Limit double - The total amount of aggregated (download+upload) traffic in bytes.
- Upload
Limit double - The total amount of traffic a user can upload in bytes.
- Uptime
Limit string - The total amount of uptime a user can stay active.
- User
Manager stringLimitation Id - 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.
- Download
Limit float64 - The total amount of traffic a user can download in bytes.
- Name string
- Unique name of the limitation.
- Rate
Limit float64Burst Rx - Rate
Limit float64Burst Threshold Rx - Rate
Limit float64Burst Threshold Tx - Rate
Limit stringBurst Time Rx - Rate
Limit stringBurst Time Tx - Rate
Limit float64Burst Tx - Rate
Limit float64Min Rx - Rate
Limit float64Min Tx - Rate
Limit float64Priority - Rate
Limit float64Rx - Rate
Limit float64Tx - Reset
Counters stringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - Reset
Counters stringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - Transfer
Limit float64 - The total amount of aggregated (download+upload) traffic in bytes.
- Upload
Limit float64 - The total amount of traffic a user can upload in bytes.
- Uptime
Limit string - The total amount of uptime a user can stay active.
- User
Manager stringLimitation Id - 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.
- download
Limit Double - The total amount of traffic a user can download in bytes.
- name String
- Unique name of the limitation.
- rate
Limit DoubleBurst Rx - rate
Limit DoubleBurst Threshold Rx - rate
Limit DoubleBurst Threshold Tx - rate
Limit StringBurst Time Rx - rate
Limit StringBurst Time Tx - rate
Limit DoubleBurst Tx - rate
Limit DoubleMin Rx - rate
Limit DoubleMin Tx - rate
Limit DoublePriority - rate
Limit DoubleRx - rate
Limit DoubleTx - reset
Counters StringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - reset
Counters StringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - transfer
Limit Double - The total amount of aggregated (download+upload) traffic in bytes.
- upload
Limit Double - The total amount of traffic a user can upload in bytes.
- uptime
Limit String - The total amount of uptime a user can stay active.
- user
Manager StringLimitation Id - 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.
- download
Limit number - The total amount of traffic a user can download in bytes.
- name string
- Unique name of the limitation.
- rate
Limit numberBurst Rx - rate
Limit numberBurst Threshold Rx - rate
Limit numberBurst Threshold Tx - rate
Limit stringBurst Time Rx - rate
Limit stringBurst Time Tx - rate
Limit numberBurst Tx - rate
Limit numberMin Rx - rate
Limit numberMin Tx - rate
Limit numberPriority - rate
Limit numberRx - rate
Limit numberTx - reset
Counters stringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - reset
Counters stringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - transfer
Limit number - The total amount of aggregated (download+upload) traffic in bytes.
- upload
Limit number - The total amount of traffic a user can upload in bytes.
- uptime
Limit string - The total amount of uptime a user can stay active.
- user
Manager stringLimitation Id - 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_ floatburst_ rx - rate_
limit_ floatburst_ threshold_ rx - rate_
limit_ floatburst_ threshold_ tx - rate_
limit_ strburst_ time_ rx - rate_
limit_ strburst_ time_ tx - rate_
limit_ floatburst_ tx - rate_
limit_ floatmin_ rx - rate_
limit_ floatmin_ tx - rate_
limit_ floatpriority - rate_
limit_ floatrx - rate_
limit_ floattx - reset_
counters_ strinterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - reset_
counters_ strstart_ time - 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_ strlimitation_ id - 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.
- download
Limit Number - The total amount of traffic a user can download in bytes.
- name String
- Unique name of the limitation.
- rate
Limit NumberBurst Rx - rate
Limit NumberBurst Threshold Rx - rate
Limit NumberBurst Threshold Tx - rate
Limit StringBurst Time Rx - rate
Limit StringBurst Time Tx - rate
Limit NumberBurst Tx - rate
Limit NumberMin Rx - rate
Limit NumberMin Tx - rate
Limit NumberPriority - rate
Limit NumberRx - rate
Limit NumberTx - reset
Counters StringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - reset
Counters StringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - transfer
Limit Number - The total amount of aggregated (download+upload) traffic in bytes.
- upload
Limit Number - The total amount of traffic a user can upload in bytes.
- uptime
Limit String - The total amount of uptime a user can stay active.
- user
Manager StringLimitation Id - 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
- 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.
- Download
Limit double - The total amount of traffic a user can download in bytes.
- Name string
- Unique name of the limitation.
- Rate
Limit doubleBurst Rx - Rate
Limit doubleBurst Threshold Rx - Rate
Limit doubleBurst Threshold Tx - Rate
Limit stringBurst Time Rx - Rate
Limit stringBurst Time Tx - Rate
Limit doubleBurst Tx - Rate
Limit doubleMin Rx - Rate
Limit doubleMin Tx - Rate
Limit doublePriority - Rate
Limit doubleRx - Rate
Limit doubleTx - Reset
Counters stringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - Reset
Counters stringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - Transfer
Limit double - The total amount of aggregated (download+upload) traffic in bytes.
- Upload
Limit double - The total amount of traffic a user can upload in bytes.
- Uptime
Limit string - The total amount of uptime a user can stay active.
- User
Manager stringLimitation Id - 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.
- Download
Limit float64 - The total amount of traffic a user can download in bytes.
- Name string
- Unique name of the limitation.
- Rate
Limit float64Burst Rx - Rate
Limit float64Burst Threshold Rx - Rate
Limit float64Burst Threshold Tx - Rate
Limit stringBurst Time Rx - Rate
Limit stringBurst Time Tx - Rate
Limit float64Burst Tx - Rate
Limit float64Min Rx - Rate
Limit float64Min Tx - Rate
Limit float64Priority - Rate
Limit float64Rx - Rate
Limit float64Tx - Reset
Counters stringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - Reset
Counters stringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - Transfer
Limit float64 - The total amount of aggregated (download+upload) traffic in bytes.
- Upload
Limit float64 - The total amount of traffic a user can upload in bytes.
- Uptime
Limit string - The total amount of uptime a user can stay active.
- User
Manager stringLimitation Id - 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.
- download
Limit Double - The total amount of traffic a user can download in bytes.
- name String
- Unique name of the limitation.
- rate
Limit DoubleBurst Rx - rate
Limit DoubleBurst Threshold Rx - rate
Limit DoubleBurst Threshold Tx - rate
Limit StringBurst Time Rx - rate
Limit StringBurst Time Tx - rate
Limit DoubleBurst Tx - rate
Limit DoubleMin Rx - rate
Limit DoubleMin Tx - rate
Limit DoublePriority - rate
Limit DoubleRx - rate
Limit DoubleTx - reset
Counters StringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - reset
Counters StringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - transfer
Limit Double - The total amount of aggregated (download+upload) traffic in bytes.
- upload
Limit Double - The total amount of traffic a user can upload in bytes.
- uptime
Limit String - The total amount of uptime a user can stay active.
- user
Manager StringLimitation Id - 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.
- download
Limit number - The total amount of traffic a user can download in bytes.
- name string
- Unique name of the limitation.
- rate
Limit numberBurst Rx - rate
Limit numberBurst Threshold Rx - rate
Limit numberBurst Threshold Tx - rate
Limit stringBurst Time Rx - rate
Limit stringBurst Time Tx - rate
Limit numberBurst Tx - rate
Limit numberMin Rx - rate
Limit numberMin Tx - rate
Limit numberPriority - rate
Limit numberRx - rate
Limit numberTx - reset
Counters stringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - reset
Counters stringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - transfer
Limit number - The total amount of aggregated (download+upload) traffic in bytes.
- upload
Limit number - The total amount of traffic a user can upload in bytes.
- uptime
Limit string - The total amount of uptime a user can stay active.
- user
Manager stringLimitation Id - 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_ floatburst_ rx - rate_
limit_ floatburst_ threshold_ rx - rate_
limit_ floatburst_ threshold_ tx - rate_
limit_ strburst_ time_ rx - rate_
limit_ strburst_ time_ tx - rate_
limit_ floatburst_ tx - rate_
limit_ floatmin_ rx - rate_
limit_ floatmin_ tx - rate_
limit_ floatpriority - rate_
limit_ floatrx - rate_
limit_ floattx - reset_
counters_ strinterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - reset_
counters_ strstart_ time - 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_ strlimitation_ id - 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.
- download
Limit Number - The total amount of traffic a user can download in bytes.
- name String
- Unique name of the limitation.
- rate
Limit NumberBurst Rx - rate
Limit NumberBurst Threshold Rx - rate
Limit NumberBurst Threshold Tx - rate
Limit StringBurst Time Rx - rate
Limit StringBurst Time Tx - rate
Limit NumberBurst Tx - rate
Limit NumberMin Rx - rate
Limit NumberMin Tx - rate
Limit NumberPriority - rate
Limit NumberRx - rate
Limit NumberTx - reset
Counters StringInterval - The interval from
reset_counters_start_time
when all associated user statistics are cleared. - reset
Counters StringStart Time - Static date and time value from which
reset_counters_interval
is calculated. - transfer
Limit Number - The total amount of aggregated (download+upload) traffic in bytes.
- upload
Limit Number - The total amount of traffic a user can upload in bytes.
- uptime
Limit String - The total amount of uptime a user can stay active.
- user
Manager StringLimitation Id - 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'
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.