List file storage directory quotas
curl --request GET \
--url https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas \
--header 'Authorization: Bearer <token>'import requests
url = "https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"metadata": {
"name": "<string>",
"id": "<string>",
"creationTime": "2023-11-07T05:31:56Z",
"provisioningStatus": "pending",
"healthStatus": "unknown",
"organizationId": "<string>",
"projectId": "<string>",
"description": "<string>",
"tags": [
{
"name": "<string>",
"value": "<string>"
}
],
"createdBy": "<string>",
"modifiedTime": "2023-11-07T05:31:56Z",
"modifiedBy": "<string>",
"deletionTime": "2023-11-07T05:31:56Z",
"provisioningStatusDetail": {
"reason": "Provisioning",
"message": "<string>"
},
"healthStatusDetail": {
"reason": "Healthy",
"message": "<string>"
}
},
"spec": {
"fileStorageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": "home/example-1",
"directoryLimits": {
"capacityBytes": 10737418240,
"inodes": 1000000
},
"defaultUserLimits": {
"capacityBytes": 10737418240,
"inodes": 1000000
},
"defaultGroupLimits": {
"capacityBytes": 10737418240,
"inodes": 1000000
},
"rules": [
{
"subject": {
"kind": "user",
"name": "user1",
"id": 65534
},
"limits": {
"capacityBytes": 10737418240,
"inodes": 1000000
}
}
]
},
"status": {
"usage": {
"usedBytes": 2239325517172,
"usedInodes": 4169748,
"updatedAt": "2023-11-07T05:31:56Z"
},
"rules": [
{
"subject": {
"kind": "user",
"name": "user1",
"id": 65534
},
"provisioningStatus": "pending",
"message": "<string>",
"usage": {
"usedBytes": 2239325517172,
"usedInodes": 4169748
}
}
]
}
}
]{
"error": "invalid_request",
"error_description": "request body invalid",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "access_denied",
"error_description": "authentication failed",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "forbidden",
"error_description": "user credentials do not have the required privileges",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "not_found",
"error_description": "the requested resource does not exist",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "server_error",
"error_description": "failed to token claim",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}File storage directory quotas
List file storage directory quotas
List Directory Quotas of a File Storage, ordered by name then ID. Inaccessible quotas are omitted.
GET
/
api
/
v2
/
filestorage
/
{filestorageID}
/
directoryquotas
List file storage directory quotas
curl --request GET \
--url https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas \
--header 'Authorization: Bearer <token>'import requests
url = "https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://region.nks.europe-west4.nscale.com/api/v2/filestorage/{filestorageID}/directoryquotas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"metadata": {
"name": "<string>",
"id": "<string>",
"creationTime": "2023-11-07T05:31:56Z",
"provisioningStatus": "pending",
"healthStatus": "unknown",
"organizationId": "<string>",
"projectId": "<string>",
"description": "<string>",
"tags": [
{
"name": "<string>",
"value": "<string>"
}
],
"createdBy": "<string>",
"modifiedTime": "2023-11-07T05:31:56Z",
"modifiedBy": "<string>",
"deletionTime": "2023-11-07T05:31:56Z",
"provisioningStatusDetail": {
"reason": "Provisioning",
"message": "<string>"
},
"healthStatusDetail": {
"reason": "Healthy",
"message": "<string>"
}
},
"spec": {
"fileStorageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": "home/example-1",
"directoryLimits": {
"capacityBytes": 10737418240,
"inodes": 1000000
},
"defaultUserLimits": {
"capacityBytes": 10737418240,
"inodes": 1000000
},
"defaultGroupLimits": {
"capacityBytes": 10737418240,
"inodes": 1000000
},
"rules": [
{
"subject": {
"kind": "user",
"name": "user1",
"id": 65534
},
"limits": {
"capacityBytes": 10737418240,
"inodes": 1000000
}
}
]
},
"status": {
"usage": {
"usedBytes": 2239325517172,
"usedInodes": 4169748,
"updatedAt": "2023-11-07T05:31:56Z"
},
"rules": [
{
"subject": {
"kind": "user",
"name": "user1",
"id": 65534
},
"provisioningStatus": "pending",
"message": "<string>",
"usage": {
"usedBytes": 2239325517172,
"usedInodes": 4169748
}
}
]
}
}
]{
"error": "invalid_request",
"error_description": "request body invalid",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "access_denied",
"error_description": "authentication failed",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "forbidden",
"error_description": "user credentials do not have the required privileges",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "not_found",
"error_description": "the requested resource does not exist",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "server_error",
"error_description": "failed to token claim",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}Authorizations
Query Parameters
Response
A list of File Storage Directory Quotas.
Was this page helpful?