Methods for Quotas
Set and clear quotas and check on quota statuses using the Content Management API in addition to specifying quota policies directly in the Content Portal:
See Setting Quotas and Content Metering.
Legend:
{M} = metric name, one of “bandwidth”, “rawstorage”, “storage”
{T} = tenant name
{D} = domain name
{B} = bucket name
Method and Suffix | Query Arguments | Policy Action | Notes |
---|---|---|---|
PUT /_admin/manage/tenants/{T}/
| limit={integer}{KB|MB|GB|TB} state={ok|notify|nowrite|read|lock} None removes current values | PutQuota | Sets or clears a limit and state. If this results in a state change, then email notifications are sent. Affected headers:
|
PUT /_admin/manage/tenants/{T}/
| duration={number}{s|m|d|w} deadline={timestamp} statduration={ok|notify|nowrite|read|lock} None removes current values | PutQuota | Sets or clears an override. If this results in a state change, then email notifications are send. Duration is a number plus a unit suffix for seconds, minutes, days, or weeks. Deadline is a timestamp in ISO 8601 format, such as 2016-07-01T00:00:00Z, which specifies when the override expires. Affected headers:
|
PUT /_admin/manage/tenants/{T}/
| addresses={email}[,{email},...] None removes current values | PutQuota | Sets or clears one or more email recipients for quota notifications. Updates the header on the context object, where multiple email addresses are collapsed into a single comma-separated list. The list is always replaced as a whole. Affected headers:
|
HEAD /_admin/manage/tenants/{T}/
| - | GetQuota | Retrieves quota information for a single metric or all (*) metrics of a specific context (tenant, domain, bucket). If a metric {M} has no limit or override configured, then the corresponding current/limit/override headers are not present in the response. If the context has no quota config for any metric, no quota headers are returned. Affected headers:
|
HEAD /_admin/manage/tenants/{T}/
| - | GetQuota | Performs a quota status check, which takes into account parent/child context relationships and overrides. Affected headers:
|
GET /_admin/manage/quota/status | - | ListDomain | Performs a check whether the quota feature is enabled. Returns JSON body {“enabled”:true} |
GET /_admin/manage/tenants/{T}/
| from={timestamp} to={timestamp} | Retrieves the current bandwidth usage between a date range. The bandwidth metric is a special case; it is reset at the beginning of each month. The corresponding Elasticsearch queries must adapt the from/to interval to take this into account. Each argument is a timestamp in ISO 8601 format, such as 2016-07-01T00:00:00Z. | |
GET /_admin/manage/tenants/{T}/
| - | Retrieves the current logical or raw storage through a point-in-time query. |
© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.