/
Getting full information from a certain Media Storage
Getting full information from a certain Media Storage
Format
Method | GET |
---|---|
URL | /mediastorages/$MEDIA_STORAGE_ID |
Request contents | Empty |
Successful answer | MediaStorageInfo Object |
Non-successful answer | ErrorMessage Object |
Unexpected error | HTTP 500 |
MediaStorageInfo Object
Schema
media_storage_id | String | Media Storage's unique identifier |
---|---|---|
host_list | String Array | List of Hosts linked to this Media Storage |
ip_address | String | CIFS IP Server |
path | String | CIFS resource path |
username | String | CIFS username |
status | String | Media Storage's current status. Either "unknown", "error", "ok" or "disabled" |
status_msg | String | Media Storage's current status message, obtained from last pool |
file_list | FileInfo Array | List of all files present on the CIFS resource |
JSON example
{ "path": "/cifs", "username": "flexvdi", "host_list": ["flexdev01"], "file_list": [{ "size": 96468992, "ctime": "2016-01-14 12:17:21", "filepath": "openSUSE-Tumbleweed-NET-x86_64-Snapshot20151113-Media.iso" }, { "size": 3722847964, "ctime": "2016-01-28 10:02:31", "filepath": "flexvdi-webportal-2.2.4.fvm" }, { "size": 632291328, "ctime": "2016-01-26 11:02:10", "filepath": "CentOS-7-x86_64-Minimal-1511.iso" }], "media_storage_id": "cifs", "ip_address": "127.0.0.1", "status": "ok", "status_msg": "" }
FileInfo Object
Schema
filepath | String | Filename |
---|---|---|
ctime | String | File creation time |
size | Integer | File size (bytes) |
JSON example
{ "size": 1487339520, "ctime": "2016-01-05 09:45:21", "filepath": "xenial-desktop-amd64.iso" }