...
Format
TipoMethod | GET |
---|---|
URL | /mediastorages/$MEDIA_STORAGE_ID |
Contenido de la petición | Vacío |
Respuesta con éxito | Objeto MediaStorageInfo |
Respuesta con error controlado | Objeto ErrorMessage |
Request contents | Empty |
Successful answer | MediaStorageInfo Object |
Non-successful answer | ErrorMessage Object |
Unexpected error | HTTP 500 |
...
MediaStorageInfo Object
...
Schema
media_storage_id | String | Identificador único del MediaStorageMediaStorage's unique identifier |
---|---|---|
host_list | String Array de String | Listado de Hosts vinculados a este List of Hosts linked to this MediaStorage |
ip_address | String | Dirección IP del servidor CIFS de este MediaStorageCIFS IP Server |
path | StringPath | del recurso compartido del servidor CIFS de este MediaStorageCIFS resource path |
username | String | Nombre de usuario del servidor CIFS de este MediaStorageCIFS username |
status | String | Estado del MediaStorage. Puede ser 's current status. Either "unknown", "error", "ok" o or "disabled" |
status_msg | StringMensaje | de estado del MediaStorage, obtenido en la última encuestaMediaStorage's current status message, obtained from last pool |
file_list | FileInfo Array de FileInfo | Listado de todos los ficheros visibles en el servidor CIFS de este MediaStorage |
...
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 | Nombre del ficheroFilename |
---|---|---|
ctime | StringFecha de creación del fichero | File creation time |
size | Integer | Tamaño del fichero, en bytes |
File size (bytes) |
JSON example
{ "size" : 1487339520, "ctime" : "2016-01-05 09:45:21" , "filepath" : "xenial-desktop-amd64.iso" } |