Récupérer une liste d'informations détaillées concernant un volume
/api/v1/vol/info?app=application&vol=volume&vdc=nom-contrôleur
Nom de l'application
Nom du volume
Nom du centre de données virtuel cible
Synchrone
GET
Pour récupérer une liste d'informations détaillées concernant test:vol1 :
GET http://192.168.123.200/api/v1/vol/info?app=test&vol=vol1&vdc=mygrid
<volume> <name>vol1</name> [comment(string) | comment ] \\ <filesystem>ext3</filesystem> <link></link> <mirror srv1.v-f13f4c46-b84a-496b-9288-188be464ab56> <server>srv1</server> <state>ok</state> </mirror srv1.v-f13f4c46-b84a-496b-9288-188be464ab56> <mount_path>none</mount_path> <mount_state>available</mount_state> <n_mirrors>1</n_mirrors> <n_users>0</n_users> <size>1073741824</size> <state>ok</state> <time_accessed>1272052234</time_accessed> <time_created>1272052031</time_created> <time_written>1272052032</time_written> <uuid>cf432100-63fc-450d-8eb7-2da6deca8627</uuid> </volume>
{
"link" : "",
"time_created" : "1272052031",
"time_accessed" : "1272052240",
"name" : "vol1",
"uuid" : "cf432100-63fc-450d-8eb7-2da6deca8627",
"mount_state" : "available",
"mirror srv1.v-f13f4c46-b84a-496b-9288-188be464ab56" : {
"server" : "srv1",
"state" : "ok"
},
"size" : "1073741824",
"state" : "ok",
"n_users" : "0",
"time_written" : "1272052032",
"mount_path" : "none",
"comment" : "",
"filesystem" : "ext3",
"n_mirrors" : "1"
}
L'entité vdc mygrid est introuvable - Le nom de VDC spécifié n'est pas configuré dans l'application WS_API.
Missing required arguments (app). - La requête ne contient pas l'argument app=application.
Missing required arguments (vol). - La requête ne contient pas l'argument vol=volume.
Le volume test:data n'existe pas. - Une application ou un volume non valide a été spécifié dans la requête.
| Copyright © 2012 CA. Tous droits réservés. |
|