Resource
We'll assume you've already got the API authentication settled and you have our API token with you.
You can check your team resources by making GET
request to the /api/resource
endpoint. This endpoint is cached for 5 seconds.
curl https://privasfer.com/api/resource \
-H 'Authorization: Bearer 7xcB5XlinBWGzajPdSW7bHr12erWZICIJN4jk0RpasoLYLpoiD6ErYnVSzld' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json'
If the API call succeeded, you'll be given output like this.
{
"data": {
"storage_total": 5368709120,
"storage_total_formatted": "5 GB",
"storage_used": 43450638,
"storage_used_formatted": "41.44 MB",
"nodes_total": 50000,
"nodes_used": 25,
"api": true,
"api_requests_total": 5000,
"api_requests_used": 5,
"updated_at": "2019-05-15 11:03:48"
}
}
Return properties #
- storage_total: total storage in bytes.
- storage_total_formatted: total storage in human readable format.
- storage_used: used storage in bytes.
- storage_used_formatted: used storage in human readable format.
- nodes_total: total files count.
- nodes_used: used files count.
- api: always true.
- api_requests_total: total API request per day.
- api_requests_used: used API request.
- updated_at: date and time when was the last time resources has been recalculated