Endpoints
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- reportUsage boolean
The Boolean flag indicating whether quota usage shall be part of the response. The default value is false (only limits returned).
Responses
200
OK Response
- application/json object
application/json properties
- data array of objectsRequired
Array of quota items.
data properties
- id stringRequired
The unique identifier of the quota item. For example, "app_mem_size", "app_upload_disk_size", or "shared_spaces".
- type stringRequired
The resource type of the quota item. Always equal to "quotas".
- attributes objectRequired
The attributes of the quota.
attributes properties
- unit stringRequired
The unit of the quota limit. For memory quotas, the unit is always "bytes". For other discrete units, the item counted is used as unit, for example "spaces".
- quota numberRequired
The quota limit. If there is no quota limit, -1 is returned.
- usage number
The current quota usage, if applicable. This attribute is only present if it is requested using the reportUsage query parameter.
- warningThresholds array of numbers
The warning thresholds at which "close to quota" warnings can be issued when exceeded. If omitted, no warning threshold shall be used. Currently, the array will contain only one threshold value. In the future, this may be extended. The threshold is a number between 0 and 1, relating to the quota limit. For example, a value of 0.9 means that a warning should be issued when exceeding 90% of the quota limit.
-
-
-
401
Unauthorized
- application/json object
application/json properties
- errors array of objects
A specific error.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
-
-
500
Internal Server Error
- application/json object
application/json properties
- errors array of objects
A specific error.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.quotas.getQuotas({})qlik quota lscurl "https://{tenant}.{region}.qlikcloud.com/api/v1/quotas" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "string", "type": "string", "attributes": { "unit": "string", "quota": 42, "usage": 42, "warningThresholds": [ 0.9 ] } } ]}Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Query Parameters
- reportUsage boolean
The Boolean flag indicating whether quota usage shall be part of the response. The default value is false (usage not included).
Path Parameters
- id stringRequired
The unique identifier of the quota item. For example, "app_mem_size", "app_upload_disk_size", or "shared_spaces".
Responses
200
OK Response
- application/json object
application/json properties
- data array of objectsRequired
Quota item.
data properties
- id stringRequired
The unique identifier of the quota item. For example, "app_mem_size", "app_upload_disk_size", or "shared_spaces".
- type stringRequired
The resource type of the quota item. Always equal to "quotas".
- attributes objectRequired
The attributes of the quota.
attributes properties
- unit stringRequired
The unit of the quota limit. For memory quotas, the unit is always "bytes". For other discrete units, the item counted is used as unit, for example "spaces".
- quota numberRequired
The quota limit. If there is no quota limit, -1 is returned.
- usage number
The current quota usage, if applicable. This attribute is only present if it is requested using the reportUsage query parameter.
- warningThresholds array of numbers
The warning thresholds at which "close to quota" warnings can be issued when exceeded. If omitted, no warning threshold shall be used. Currently, the array will contain only one threshold value. In the future, this may be extended. The threshold is a number between 0 and 1, relating to the quota limit. For example, a value of 0.9 means that a warning should be issued when exceeding 90% of the quota limit.
-
-
-
401
Unauthorized
- application/json object
application/json properties
- errors array of objects
A specific error.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
-
-
404
Not Found
- application/json object
application/json properties
- errors array of objects
A specific error.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
-
-
500
Internal Server Error
- application/json object
application/json properties
- errors array of objects
A specific error.
errors properties
- code stringRequired
The error code.
- title stringRequired
Summary of the problem.
-
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.quotas.getQuota('string', {})qlik quota get 'string'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/quotas/{id}" \-H "Authorization: Bearer <access_token>"Example Response
{ "data": [ { "id": "string", "type": "string", "attributes": { "unit": "string", "quota": 42, "usage": 42, "warningThresholds": [ 0.9 ] } } ]}