All URIs are relative to https://{username}:{password}@localhost:{port}/{basePath}
Method | HTTP request | Description |
---|---|---|
api_v2_volumes_get | GET /api/v2/volumes | Volume list |
api_v2_volumes_label_barcodes_get | GET /api/v2/volumes/label/barcodes | Get label barcodes volume output |
api_v2_volumes_label_barcodes_post | POST /api/v2/volumes/label/barcodes | Label volume using barcodes |
api_v2_volumes_label_get | GET /api/v2/volumes/label | Get label volume output |
api_v2_volumes_label_post | POST /api/v2/volumes/label | Label volume |
api_v2_volumes_mediaid_delete | DELETE /api/v2/volumes/{mediaid} | Delete volume by MediaId |
api_v2_volumes_mediaid_get | GET /api/v2/volumes/{mediaid} | Find volume by MediaId |
api_v2_volumes_mediaid_jobs_get | GET /api/v2/volumes/{mediaid}/jobs | Jobs on volume |
api_v2_volumes_mediaid_prune_put | PUT /api/v2/volumes/{mediaid}/prune | Prune volume |
api_v2_volumes_mediaid_purge_put | PUT /api/v2/volumes/{mediaid}/purge | Purge volume |
api_v2_volumes_mediaid_put | PUT /api/v2/volumes/{mediaid} | Update volume properties |
api_v2_volumes_required_jobid_fileid_get | GET /api/v2/volumes/required/{jobid}/{fileid} | Get volumes required to restore file |
api_v2_volumes_update_barcodes_get | GET /api/v2/volumes/update/barcodes | Get update slots output using barcodes |
api_v2_volumes_update_barcodes_put | PUT /api/v2/volumes/update/barcodes | Update slots using barcodes |
api_v2_volumes_update_get | GET /api/v2/volumes/update | Get update slots output |
api_v2_volumes_update_put | PUT /api/v2/volumes/update | Update slots |
InlineResponse20039 api_v2_volumes_get(limit=limit)
Volume list
Get volume list.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
limit = 56 # int | Item limit (optional)
try:
# Volume list
api_response = api_instance.api_v2_volumes_get(limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
limit | int | Item limit | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20046 api_v2_volumes_label_barcodes_get(out_id)
Get label barcodes volume output
Get label barcodes volume output by output identifier
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
out_id = 'out_id_example' # str | Output identifier acquired during label start.
try:
# Get label barcodes volume output
api_response = api_instance.api_v2_volumes_label_barcodes_get(out_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_label_barcodes_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
out_id | str | Output identifier acquired during label start. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20047 api_v2_volumes_label_barcodes_post(slots, drive, storageid, storage, poolid, pool)
Label volume using barcodes
Label volume with specified name (with using barcode).
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
slots = 'slots_example' # str | Slots numbers or slots range (ex. 1-3,5,10)
drive = 56 # int | Drive number
storageid = 56 # int | Storage identifier
storage = 'storage_example' # str | Storage name can be used instead of storageid
poolid = 56 # int | Pool identifier
pool = 'pool_example' # str | Pool name can be used instead of poolid
try:
# Label volume using barcodes
api_response = api_instance.api_v2_volumes_label_barcodes_post(slots, drive, storageid, storage, poolid, pool)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_label_barcodes_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
slots | str | Slots numbers or slots range (ex. 1-3,5,10) | |
drive | int | Drive number | |
storageid | int | Storage identifier | |
storage | str | Storage name can be used instead of storageid | |
poolid | int | Pool identifier | |
pool | str | Pool name can be used instead of poolid |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20046 api_v2_volumes_label_get(out_id)
Get label volume output
Get label volume output by output identifier
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
out_id = 'out_id_example' # str | Output identifier acquired during label start.
try:
# Get label volume output
api_response = api_instance.api_v2_volumes_label_get(out_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_label_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
out_id | str | Output identifier acquired during label start. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20047 api_v2_volumes_label_post(volume, slot, drive, storageid, storage, poolid, pool)
Label volume
Label volume with specified name (without using barcode).
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
volume = 'volume_example' # str | Volume name
slot = 56 # int | Slot number
drive = 56 # int | Drive number
storageid = 56 # int | Storage identifier
storage = 'storage_example' # str | Storage name can be used instead of storageid
poolid = 56 # int | Pool identifier
pool = 'pool_example' # str | Pool name can be used instead of poolid
try:
# Label volume
api_response = api_instance.api_v2_volumes_label_post(volume, slot, drive, storageid, storage, poolid, pool)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_label_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
volume | str | Volume name | |
slot | int | Slot number | |
drive | int | Drive number | |
storageid | int | Storage identifier | |
storage | str | Storage name can be used instead of storageid | |
poolid | int | Pool identifier | |
pool | str | Pool name can be used instead of poolid |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20042 api_v2_volumes_mediaid_delete(mediaid)
Delete volume by MediaId
Delete volume from the Catalog by specific Volume/Media identifier.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
mediaid = 56 # int | Media/volume identifier
try:
# Delete volume by MediaId
api_response = api_instance.api_v2_volumes_mediaid_delete(mediaid)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_mediaid_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mediaid | int | Media/volume identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20040 api_v2_volumes_mediaid_get(mediaid)
Find volume by MediaId
Get volume by specific Volume/Media identifier.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
mediaid = 56 # int | Media/volume identifier
try:
# Find volume by MediaId
api_response = api_instance.api_v2_volumes_mediaid_get(mediaid)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_mediaid_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mediaid | int | Media/volume identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2004 api_v2_volumes_mediaid_jobs_get(mediaid)
Jobs on volume
Get jobs done on volume
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
mediaid = 56 # int | Media/volume identifier
try:
# Jobs on volume
api_response = api_instance.api_v2_volumes_mediaid_jobs_get(mediaid)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_mediaid_jobs_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mediaid | int | Media/volume identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20043 api_v2_volumes_mediaid_prune_put(mediaid)
Prune volume
Do prunning on volume.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
mediaid = 56 # int | Media/volume identifier
try:
# Prune volume
api_response = api_instance.api_v2_volumes_mediaid_prune_put(mediaid)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_mediaid_prune_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mediaid | int | Media/volume identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20044 api_v2_volumes_mediaid_purge_put(mediaid)
Purge volume
Do purging on volume.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
mediaid = 56 # int | Media/volume identifier
try:
# Purge volume
api_response = api_instance.api_v2_volumes_mediaid_purge_put(mediaid)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_mediaid_purge_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mediaid | int | Media/volume identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20041 api_v2_volumes_mediaid_put(mediaid, volstatus=volstatus, poolid=poolid, volretention=volretention, voluseduration=voluseduration, maxvoljobs=maxvoljobs, maxvolfiles=maxvolfiles, maxvolbytes=maxvolbytes, slot=slot, recycle=recycle, enabled=enabled, inchanger=inchanger)
Update volume properties
Update specific volume properties.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
mediaid = 56 # int | Media/volume identifier
volstatus = 'volstatus_example' # str | Volume status (optional)
poolid = 56 # int | Update Volume Pool by Pool identifier (optional)
volretention = 56 # int | Volume retention time (optional)
voluseduration = 56 # int | Volume use duration time (optional)
maxvoljobs = 56 # int | Maximum volume jobs (optional)
maxvolfiles = 56 # int | Maximum volume files (optional)
maxvolbytes = 56 # int | Maximum volume bytes (optional)
slot = 56 # int | Volume slot (optional)
recycle = 56 # int | Volume recycle flag (optional)
enabled = 56 # int | Volume enabled flag (optional)
inchanger = 56 # int | Volume InChanger flag (optional)
try:
# Update volume properties
api_response = api_instance.api_v2_volumes_mediaid_put(mediaid, volstatus=volstatus, poolid=poolid, volretention=volretention, voluseduration=voluseduration, maxvoljobs=maxvoljobs, maxvolfiles=maxvolfiles, maxvolbytes=maxvolbytes, slot=slot, recycle=recycle, enabled=enabled, inchanger=inchanger)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_mediaid_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mediaid | int | Media/volume identifier | |
volstatus | str | Volume status | [optional] |
poolid | int | Update Volume Pool by Pool identifier | [optional] |
volretention | int | Volume retention time | [optional] |
voluseduration | int | Volume use duration time | [optional] |
maxvoljobs | int | Maximum volume jobs | [optional] |
maxvolfiles | int | Maximum volume files | [optional] |
maxvolbytes | int | Maximum volume bytes | [optional] |
slot | int | Volume slot | [optional] |
recycle | int | Volume recycle flag | [optional] |
enabled | int | Volume enabled flag | [optional] |
inchanger | int | Volume InChanger flag | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20045 api_v2_volumes_required_jobid_fileid_get(jobid, fileid)
Get volumes required to restore file
Get volumes required to restore a file from a job
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
jobid = 56 # int | Job identifier
fileid = 56 # int | File identifier
try:
# Get volumes required to restore file
api_response = api_instance.api_v2_volumes_required_jobid_fileid_get(jobid, fileid)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_required_jobid_fileid_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
jobid | int | Job identifier | |
fileid | int | File identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20048 api_v2_volumes_update_barcodes_get(out_id)
Get update slots output using barcodes
Get update barcodes slots output by output identifier (with barcodes)
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
out_id = 'out_id_example' # str | Output identifier acquired during update barcodes slots start.
try:
# Get update slots output using barcodes
api_response = api_instance.api_v2_volumes_update_barcodes_get(out_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_update_barcodes_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
out_id | str | Output identifier acquired during update barcodes slots start. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20049 api_v2_volumes_update_barcodes_put(slots, drive, storageid, storage)
Update slots using barcodes
Update volume slots (with using barcode).
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
slots = 'slots_example' # str | Slots numbers or slots range (ex. 1-3,5,10)
drive = 56 # int | Drive number
storageid = 56 # int | Storage identifier
storage = 'storage_example' # str | Storage name can be used instead of storageid
try:
# Update slots using barcodes
api_response = api_instance.api_v2_volumes_update_barcodes_put(slots, drive, storageid, storage)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_update_barcodes_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
slots | str | Slots numbers or slots range (ex. 1-3,5,10) | |
drive | int | Drive number | |
storageid | int | Storage identifier | |
storage | str | Storage name can be used instead of storageid |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20048 api_v2_volumes_update_get(out_id)
Get update slots output
Get update slots output by output identifier
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
out_id = 'out_id_example' # str | Output identifier acquired during update slots start.
try:
# Get update slots output
api_response = api_instance.api_v2_volumes_update_get(out_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_update_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
out_id | str | Output identifier acquired during update slots start. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20049 api_v2_volumes_update_put(slots, drive, storageid, storage)
Update slots
Update volume slots (without using barcode).
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.VolumesApi()
slots = 'slots_example' # str | Slots numbers or slots range (ex. 1-3,5,10)
drive = 56 # int | Drive number
storageid = 56 # int | Storage identifier
storage = 'storage_example' # str | Storage name can be used instead of storageid
try:
# Update slots
api_response = api_instance.api_v2_volumes_update_put(slots, drive, storageid, storage)
pprint(api_response)
except ApiException as e:
print("Exception when calling VolumesApi->api_v2_volumes_update_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
slots | str | Slots numbers or slots range (ex. 1-3,5,10) | |
drive | int | Drive number | |
storageid | int | Storage identifier | |
storage | str | Storage name can be used instead of storageid |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]