Nas
API Key Scope: nas / index
Pass the username and password of a user in the authorization header. This currently gives full access.
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
Pass the username and password of a user in the authorization header. This currently gives full access.
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
Pass the username and password of a user in the authorization header. This currently gives full access.
Numeric ID or name of NAS.
A specific NAS.
GET /api/v2/nas/{nas_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
A specific NAS.
{
"id": 2,
"name": "samba",
"host": "samba.local",
"type": "smb_v3",
"comment": "Local NAS",
"price": "120.0"
}API Key Scope: nas / update
Pass the username and password of a user in the authorization header. This currently gives full access.
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
Pass the username and password of a user in the authorization header. This currently gives full access.
Numeric ID or name of NAS.
NAS destroyed.
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?