Syntax
grant number units of service-unit for quota-type using mon-key
Parameters
- number
- A numeric value.
Note: If you are using a policy table for this parameter, click Use Policy Table, choose the field (column) representing the parameter.
Click OK.
- service-unit
- One of the following:
- time (seconds)
- total volume (bytes)
- uplink volume (bytes)
- downlink volume (bytes)
- quota-type
- One of the following:
- used (default)—Calculates the quota to grant by subtracting the specified amount in bytes from the initial quota limit minus the quota used so far.
- initial—Calculates the quota to grant by subtracting the specified amount in bytes from the initial quota limit.
Note: If you are using a policy table for this parameter, click Use Policy Table, choose the field (column) representing the parameter.
Click OK.
- mon-key
- Name(s) of a monitoring key in the CMP database.
Note: If you are using a policy table for this parameter, click Use Policy Table, choose the field (column) representing the parameter.
Click OK.
Description
Allows quota profiles to be associated with one or more monitoring keys. This action can be used at the session and rule levels. If two policy actions grant usage for the same monitoring key or usage instance, the last action takes precedence, unless an action grants uplink volume followed by an action that grants downlink volume (or vice versa), which case the actions are grouped as one action when the message is processed. A policy that grants quota for a monitoring key will overwrite any previous grant of quota for that same monitoring key. This includes any subtraction previously enabled for the same monitoring key. See Managing Quotas for information on quotas. See Managing Monitoring Keys for information on monitoring keys.
Example
where the request is creating a new session
grant 50000 units of total volume (bytes) for used using key1
continue processing message