Storiq One API
v1.0
API for Storiq One
|
erase Media Erase
remove a media from a pool and erase it. use POST method
path : /storiqone-backend/api/v1/media/erase/
job | : hash table
|
New job id is returned { "message":"Job created successfully", "job_id":6 }
format Media Format
Format a media and insert it into a pool. use POST method
path : /storiqone-backend/api/v1/media/format/
job | : hash table
|
files | : media files array
|
New job id is returned { "message":"Job created successfully", "job_id":6 }
fragmentation Media Fragmentation
reports media fragmentation. Fragmentation occurs when deleting archives that aren't positionned at end of data. use GET method
path : /storiqone-backend/api/v1/media/fragmentation/
id | : media id (integer) |
Fragmentation is returned { "message":" 'media_size' => 300, 'volume_used' => 50, 'volume_wasted' => 0, 'volume_free' => 250 "}
To get media by its id use GET method
path : /storiqone-backend/api/v1/media/
id | : media id |
Media information is returned
To get medias ids list by pool, use GET method
path : /storiqone-backend/api/v1/media/
pool | : pool id |
Optional parameters
Name | Type | Description | Constraint |
---|---|---|---|
limit | integer | specifies the maximum number of rows to return. | limit > 0 |
offset | integer | specifies the number of rows to skip before starting to return rows. | offset >= 0 |
Medias ids list by pool is returned
To get medias ids list by poolgroup, use GET method
path : /storiqone-backend/api/v1/media/
Optional parameters
Name | Type | Description | Constraint |
---|---|---|---|
limit | integer | specifies the maximum number of rows to return. | limit > 0 |
offset | integer | specifies the number of rows to skip before starting to return rows. | offset >= 0 |
Medias ids list by poolgroup is returned
To get medias ids list without pool, use GET method : without reference to specific id or pool
path : /storiqone-backend/api/v1/media/
mediaformat | : filter by mediaformat id [optional] |
Optional parameters
Name | Type | Description | Constraint |
---|---|---|---|
limit | integer | specifies the maximum number of rows to return. | limit > 0 |
offset | integer | specifies the number of rows to skip before starting to return rows. | offset >= 0 |
Medias ids list without pool is returned