Storiq One API
v1.0
API for Storiq One
|
If the user inputs an id, the function returns information concerning the corresponding media format, regardless of the other parameters.
Else if the user only inputs a name, the id of the corresponding media format is returned.
Else (user leaves both fields blank), an array of supported formats is returned.
To get an media format by its id use GET method :
path : /storiqone-backend/api/v1/mediaformat/?id=<integer>
id | : id of an existing media format |
Example of request :
GET http://api.storiqone/storiqone-backend/api/v1/mediaformat/?id=1
Response :
{ "mediaformat" : { "blocksize" : 32768, "capacity" : 2620446998528, "datatype" : "data", "densitycode" : 90, "id" : 1, "lifespan" : "10 years", "maxloadcount" : 4096, "maxopcount" : 40960, "maxreadcount" : 40960, "maxwritecount" : 40960, "mode" : "linear", "name" : "LTO-6", "supportmam" : true, "supportpartition" : true }, "message" : "Query succeeded" }
To get an media format id by its name use GET method :
path : /storiqone-backend/api/v1/mediaformat/?name=<string>
name | : name of an existing media format |
Example of request :
GET http://api.storiqone/storiqone-backend/api/v1/mediaformat/?name=LTFS
Response :
{ "message":"Query succeeded", "mediaformat id":2 }
To get media format id list, use GET method : without reference to specific id or ids
path : /storiqone-backend/api/v1/mediaformat/
Optional parameters
Name | Type | Description | Constraint |
---|---|---|---|
order_by | enum | order by column | value in : 'id', 'name' |
order_asc | boolean | TRUE will perform an ascending order and FALSE will perform an descending order. order_asc is ignored if order_by is missing. | |
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 |
Media format id list is returned { "media formats" : [ 1, 2, 3, 4, 5, 6, 7 ], "message":"Query successful", "total_rows" : 7 }