Nas
API Key Scope: nas / index
The number of items to display for pagination.
The number of items to skip for pagination.
Sort results by attribute.
Can sort on multiple attributes, separated by |.
Order direction can be suffixing the attribute by either :asc (default) or :desc.
Filter on id
Filter on name
Filter on comment
Filter on host
Filter on type
Filter on price
List of NAS.
GET /api/v2/nas HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
List of NAS.
{
"count": 1,
"nas": [
{
"id": 2,
"name": "samba",
"host": "samba.local",
"type": "smb_v3",
"comment": "Local NAS",
"price": "120.0"
}
]
}API Key Scope: nas / create
2sambasamba.localsmb_v3Possible values: Local NAS120.0A specific NAS.
The received resource was not correctly formatted.
POST /api/v2/nas HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"name": "samba",
"host": "samba.local",
"type": "smb_v3",
"comment": "Local NAS",
"price": "120.0"
}{
"id": 2,
"name": "samba",
"host": "samba.local",
"type": "smb_v3",
"comment": "Local NAS",
"price": "120.0"
}API Key Scope: nas / show
Numeric ID or name of NAS.
A specific NAS.
The requested resource was not found. The detailed error will be of type not_found.
GET /api/v2/nas/{nas_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
{
"id": 2,
"name": "samba",
"host": "samba.local",
"type": "smb_v3",
"comment": "Local NAS",
"price": "120.0"
}API Key Scope: nas / update
Numeric ID or name of NAS.
2sambasamba.localsmb_v3Possible values: Local NAS120.0A specific NAS.
The received resource was not correctly formatted.
PUT /api/v2/nas/{nas_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"name": "samba",
"host": "samba.local",
"type": "smb_v3",
"comment": "Local NAS",
"price": "120.0"
}{
"id": 2,
"name": "samba",
"host": "samba.local",
"type": "smb_v3",
"comment": "Local NAS",
"price": "120.0"
}API Key Scope: nas / destroy
Numeric ID or name of NAS.
NAS destroyed.
No content
DELETE /api/v2/nas/{nas_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
NAS destroyed.
No content
Last updated
Was this helpful?