DELETE service ostor-quotas
Description
Sets a quota value to 0 (unlimited) for the specified user/bucket or for all users/buckets.
Requests
Syntax
DELETE /?ostor-quotas&emailAddress=<value> HTTP/1.1 Host: <host> Date: <date> Authorization: <authorization_string>
DELETE /?ostor-quotas&bucket=<value> HTTP/1.1 Host: <host> Date: <date> Authorization: <authorization_string>
DELETE /?ostor-quotas&default=<value> HTTP/1.1 Host: <host> Date: <date> Authorization: <authorization_string>
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* |
default
|
Removes the default value for quotas. If set to Type: string. Default: none. |
No |
* Only one of the required parameters 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.
Status204NoContent
is returned.Examples
Sample request #1
Deletes a quota for the user with the email user1@email.com
.
DELETE /?ostor-quotas&emailAddress=user1@email.com HTTP/1.1 Host: s3.example.com Date: Thu, 09 Sep 2021 21:13:49 GMT Authorization: <authorization_string>
Sample response #1
HTTP/1.1 204 No Content Transfer-encoding : chunked Server : nginx/1.8.1 Connection: closed x-amz-request-id : 80000000000000030005c8caec96d65b Date : Thu, 09 Sep 2021 21:14:03 GMT Content-type : application/json
Sample request #2
Deletes a quota for the bucket bucket1
.
DELETE /?ostor-quotas&bucket=bucket1 HTTP/1.1 Host: s3.example.com Date: Thu, 09 Sep 2021 21:14:35 GMT Authorization: <authorization_string>
Sample response #2
HTTP/1.1 204 No Content Transfer-encoding : chunked Server : nginx/1.8.1 Connection: closed x-amz-request-id : 80000000000000030005c8caec96d65b Date : Thu, 09 Sep 2021 21:14:39 GMT Content-type : application/json
Sample request #3
Removes the default user quotas.
DELETE /?ostor-quotas&default=user HTTP/1.1 Host: s3.example.com Date: Thu, 09 Sep 2021 21:16:18 GMT Authorization: <authorization_string>
Sample response #3
HTTP/1.1 204 No Content Transfer-encoding : chunked Server : nginx/1.8.1 Connection: closed x-amz-request-id : 80000000000000030005c8caec96d65b Date : Thu, 09 Sep 2021 21:16:22 GMT Content-type : application/json
Sample request #4
Removes the default bucket quotas.
DELETE /?ostor-quotas&default=bucket HTTP/1.1 Host: s3.example.com Date: Thu, 09 Sep 2021 21:17:01 GMT Authorization: <authorization_string>
Sample response #4
HTTP/1.1 204 No Content Transfer-encoding : chunked Server : nginx/1.8.1 Connection: closed x-amz-request-id : 80000000000000030005c8caec96d65b Date : Thu, 09 Sep 2021 21:17:05 GMT Content-type : application/json