PUT Service ostor-limits
Description
Sets limit values for the specified user or bucket. Either operations count or bandwidth limits can be specified in a single request.
Requests
Syntax
| |
| |
Parameters
| Parameter | Description | Required |
|---|---|---|
emailAddress | User email address. Type: string. Default value: none. | Yes* |
id | User ID. Type: string. Default value: none. | Yes* |
bucket | Bucket name. Type: string. Default value: none. | Yes |
bandwidth | Enables bandwidth limits. Bandwidth limits types: { out | kb/s } Type: flag. | Yes** |
ops | Enables operations limits. If set, all unspecified bandwidth limits are set to 0. Operations limits types: { default | ops/min, put | ops/min , get | ops/min, list | ops/min, delete | ops/min } Type: flag. | Yes** |
default | Sets the default value for operations limits. If set, all unspecified operations limits are set to Requires the Type: integer. Default: 0. | No |
put | Sets the Requires the Type: integer. Default: | No |
get | Sets the Requires the Type: integer. Default: | No |
delete | Sets the Requires the Type: integer. Default: | No |
list | Sets the Requires the Type: integer. Default: | No |
out | Sets an outgoing bandwidth limit. Requires the Type: integer. Default: 0. | No |
* Only one of the required parameters can be set in a single request.
** Either ops or bandwidth can be set in a single request.
Headers
This implementation uses only common request headers.
Responses
Headers
This implementation uses only common response headers.
Body
Empty.
Errors
Returns Error Code 400, if a wrong set of parameters is specified.
Examples
Sample Request #1
Sets all operations limits for the user with the email user1@email.com to zero.
| |
Sample Response #1
| |
Sample Request #2
Sets all operations limits for the user with the email user1@email.com to 1 ops/sec.
| |
Sample Response #2
| |
Sample Request #3
Sets all badwidth.out limit for the bucket testbucket to 50 kb/s.
| |
Sample Response #3
| |
Sample Request #4
Sets operations limits for the bucket testbucket. The new PUT operations limit is 60 ops/s, LIST limit is 0.5 ops/s, GET and DELETE limits are 1 ops/s.
| |
Sample Response #4
| |