Storiq One API
v1.0
API for Storiq One
|
To get pool by its id use GET method
path : /storiqone-backend/api/v1/pool/
id | : pool id |
Pool information is returned
To get pools id list, use GET method : without reference to specific id or ids
path : /storiqone-backend/api/v1/pool/
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 |
To delete a pool, use DELETE method : with pool id
To create a pool, use POST method with pool parameters (see table below). Mandatory parameters : name, archiveformat, mediaformat
To create a pool based on a pool template, use POST method with the id of the pool template to use to create the pool, plus pool parameters (name, archiveformat, mediaformat, Pool template information)
To update a pool, use PUT method with pool parameters (id, uuid, name, archiveformat, mediaformat, Pool Scripts)
path : /storiqone-backend/api/v1/pool/
Name | Type | Value |
---|---|---|
id | integer | non NULL Default value, nextval('pool_id_seq'::regclass) |
uuid | uuid | non NULL API generated if not provided |
name | character varying(64) | non NULL |
archiveformat | integer | non NULL |
mediaformat | integer | non NULL |
autocheck | autocheckmode | non NULL Default value, 'none'::autocheckmode |
lockcheck | boolean | non NULL Default value, false |
growable | boolean | non NULL Default value, false |
unbreakablelevel | unbreakablelevel | non NULL Default value, 'none'::unbreakablelevel |
rewritable | boolean | non NULL Default value, true |
metadata | json | non NULL Default value, '{}'::json |
backuppool | boolean | non NULL Default value, false |
poolmirror | integer | _ |
scripts | array of script | _ |
deleted | boolean | non NULL Default value, false |
Pool Scripts are executed for each job of the appropriate type, in sequence order.
Name | Type | Value |
---|---|---|
sequence | integer | non NULL |
jobtype | integer | non NULL |
script | integer | _ |
scripttype | scripttype | non NULL |
Parameters
Name | Type | Description | Constraint |
---|---|---|---|
sequence | integer | sequence number of the script | sequence >= 0 |
jobtype | integer | jobtype of the script | |
script | integer | script number of the script | |
scripttype | integer | type of the script (one of "on error", "pre job" or "post job") |