Nas_shares
API Key Scope: nas_shares / index Optional API Key Explicit Scope: nas_shares / get_password
Numeric ID or name of NAS.
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 path
Filter on options
Filter on username
Filter on a pool id
List of NAS shares.
GET /api/v2/nas/{nas_id}/nas_shares HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
List of NAS shares.
{
"count": 1,
"nas_shares": [
{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}
]
}API Key Scope: nas_shares / create
Numeric ID or name of NAS.
1026archives_generalarchives/generalrsize=1048576,wsize=1048576admin[censored]A specific NAS share.
The received resource was not correctly formatted.
POST /api/v2/nas/{nas_id}/nas_shares HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]"
}{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}API Key Scope: nas_shares / test
Numeric ID or name of NAS.
ID of active job
An active job that may be queued, working, completed or failed.
An active job that may be queued, working, completed or failed.
GET /api/v2/nas/{nas_id}/nas_shares/-/test?job_id=text HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
{
"job_id": "6f4d759d-48e9-43c8-ab24-640f5ea63922",
"status": "queued"
}API Key Scope: nas_shares / test
Numeric ID or name of NAS.
1026archives_generalarchives/generalrsize=1048576,wsize=1048576admin[censored]An active job that may be queued, working, completed or failed.
PUT /api/v2/nas/{nas_id}/nas_shares/-/test HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]"
}An active job that may be queued, working, completed or failed.
{
"job_id": "6f4d759d-48e9-43c8-ab24-640f5ea63922",
"status": "queued"
}API Key Scope: nas_shares / show Optional API Key Explicit Scope: nas_shares / get_password
Numeric ID or name of NAS.
Numeric ID or name of NAS share.
A specific NAS share.
GET /api/v2/nas/{nas_id}/nas_shares/{nas_share_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
A specific NAS share.
{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}API Key Scope: nas_shares / update
Numeric ID or name of NAS.
Numeric ID or name of NAS share.
1026archives_generalarchives/generalrsize=1048576,wsize=1048576admin[censored]A specific NAS share.
The received resource was not correctly formatted.
PUT /api/v2/nas/{nas_id}/nas_shares/{nas_share_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]"
}{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}API Key Scope: nas_shares / destroy
Numeric ID or name of NAS.
Numeric ID or name of NAS share.
NAS share destroyed.
No content
DELETE /api/v2/nas/{nas_id}/nas_shares/{nas_share_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
NAS share destroyed.
No content
API Key Scope: nas_shares / mount_status
Numeric ID or name of NAS.
Numeric ID or name of NAS share.
Mount status of storage.
The requested resource was not found. The detailed error will be of type not_found.
GET /api/v2/nas/{nas_id}/nas_shares/{nas_share_id}/mount HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
{
"mounted": true,
"message": "text",
"status": {
"id": 123,
"major_minor": "0:189",
"target": "/mnt/MOUNT_POINTS/folder",
"source": "//server.local/shared_folder",
"options": "vers=3.0,rsize=1048576,wsize=1048576",
"type": "cifs",
"pool_id": 1,
"pool_name": "text",
"nas_id": 1,
"nas_name": "text",
"nas_share_id": 1,
"nas_share_name": "text",
"cloud_connector_id": 1,
"cloud_connector_name": "text",
"cloud_bucket_id": 1,
"cloud_bucket_name": "text",
"tape_id": 1,
"tape_barcode": "text",
"tape_library_id": 1,
"tape_library_name": "text",
"tape_library_serial": "text"
}
}API Key Scope: nas_shares / index Optional API Key Explicit Scope: nas_shares / get_password
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 path
Filter on options
Filter on username
Filter on NAS id
Filter on a pool id
List of NAS shares.
GET /api/v2/nas_shares HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
List of NAS shares.
{
"count": 1,
"nas_shares": [
{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}
]
}API Key Scope: nas_shares / show Optional API Key Explicit Scope: nas_shares / get_password
Numeric ID or name of NAS share.
A specific NAS share.
GET /api/v2/nas_shares/{nas_share_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
A specific NAS share.
{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}API Key Scope: nas_shares / update
Numeric ID or name of NAS share.
1026archives_generalarchives/generalrsize=1048576,wsize=1048576admin[censored]A specific NAS share.
The received resource was not correctly formatted.
PUT /api/v2/nas_shares/{nas_share_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]"
}{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}API Key Scope: nas_shares / destroy
Numeric ID or name of NAS share.
NAS share destroyed.
No content
DELETE /api/v2/nas_shares/{nas_share_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
NAS share destroyed.
No content
API Key Scope: nas_shares / mount_status
Numeric ID or name of NAS share.
Mount status of storage.
The requested resource was not found. The detailed error will be of type not_found.
GET /api/v2/nas_shares/{nas_share_id}/mount HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
{
"mounted": true,
"message": "text",
"status": {
"id": 123,
"major_minor": "0:189",
"target": "/mnt/MOUNT_POINTS/folder",
"source": "//server.local/shared_folder",
"options": "vers=3.0,rsize=1048576,wsize=1048576",
"type": "cifs",
"pool_id": 1,
"pool_name": "text",
"nas_id": 1,
"nas_name": "text",
"nas_share_id": 1,
"nas_share_name": "text",
"cloud_connector_id": 1,
"cloud_connector_name": "text",
"cloud_bucket_id": 1,
"cloud_bucket_name": "text",
"tape_id": 1,
"tape_barcode": "text",
"tape_library_id": 1,
"tape_library_name": "text",
"tape_library_serial": "text"
}
}API Key Scope: nas_shares / index Optional API Key Explicit Scope: nas_shares / get_password
Numeric ID, or name of pool.
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 path
Filter on options
Filter on username
Filter on NAS id
List of NAS shares.
GET /api/v2/pools/{pool_id}/nas_shares HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
List of NAS shares.
{
"count": 1,
"nas_shares": [
{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}
]
}API Key Scope: nas_shares / show Optional API Key Explicit Scope: nas_shares / get_password
Numeric ID, or name of pool.
Numeric ID or name of NAS share.
A specific NAS share.
GET /api/v2/pools/{pool_id}/nas_shares/{nas_share_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
A specific NAS share.
{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}API Key Scope: nas_shares / update
Numeric ID, or name of pool.
Numeric ID or name of NAS share.
1026archives_generalarchives/generalrsize=1048576,wsize=1048576admin[censored]A specific NAS share.
The received resource was not correctly formatted.
PUT /api/v2/pools/{pool_id}/nas_shares/{nas_share_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]"
}{
"id": 10,
"nas_id": 2,
"pool_id": 6,
"name": "archives_general",
"path": "archives/general",
"options": "rsize=1048576,wsize=1048576",
"username": "admin",
"password": "[censored]",
"file_count": 1,
"file_size_sum": 1
}API Key Scope: nas_shares / destroy
Numeric ID, or name of pool.
Numeric ID or name of NAS share.
NAS share destroyed.
No content
DELETE /api/v2/pools/{pool_id}/nas_shares/{nas_share_id} HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
NAS share destroyed.
No content
API Key Scope: nas_shares / mount_status
Numeric ID, or name of pool.
Numeric ID or name of NAS share.
Mount status of storage.
The requested resource was not found. The detailed error will be of type not_found.
GET /api/v2/pools/{pool_id}/nas_shares/{nas_share_id}/mount HTTP/1.1
Host: localhost
Authorization: Basic username:password
Accept: */*
{
"mounted": true,
"message": "text",
"status": {
"id": 123,
"major_minor": "0:189",
"target": "/mnt/MOUNT_POINTS/folder",
"source": "//server.local/shared_folder",
"options": "vers=3.0,rsize=1048576,wsize=1048576",
"type": "cifs",
"pool_id": 1,
"pool_name": "text",
"nas_id": 1,
"nas_name": "text",
"nas_share_id": 1,
"nas_share_name": "text",
"cloud_connector_id": 1,
"cloud_connector_name": "text",
"cloud_bucket_id": 1,
"cloud_bucket_name": "text",
"tape_id": 1,
"tape_barcode": "text",
"tape_library_id": 1,
"tape_library_name": "text",
"tape_library_serial": "text"
}
}Last updated
Was this helpful?