Passer au contenu principal
  • Passer des commandes rapidement et facilement
  • Afficher les commandes et suivre l’état de votre expédition
  • Profitez de récompenses et de remises réservées aux membres
  • Créez et accédez à une liste de vos produits

Dell PowerVault ME4 Series Storage System CLI Guide

PDF

Using JSON API output

The simplest mechanism to handle JSON output is by using either a JavaScript or a Python parser to interpret the data.

The JSON output is organized according to the basetypes defined for the system. All basetype objects are returned in an array. The JSON object uses the same name for the key as the XML API uses in the name attribute. Objects can also be embedded inside of other objects are always presented as an array as well. This is different from the XML API where the default output uses associations. The JSON output always uses a hierarchical presentation of objects to identify relationships between objects.

Each object also has an object-name property that may be used in some cases to identify the object uniquely. For example, the show versions command uses the object-name property to identify the version for controller A and controller B:

{
"versions":[
{
"object-name":"controller-a-versions",
 "sc-cpu-type":"SC-CPU-type",
"bundle-version":"bundle-version",
"bundle-base-version":"bundle-base-version",
 "build-date":"Mon Jul 17 14:15:44 MDT 2017",
...
},
{
"object-name":"controller-b-versions",
...
}
],
"status":[
{
"object-name":"status",
 "response-type":"Success",
 "response-type-numeric":0,
"response":"Command completed successfully. (2017-07-27 10:21:36)",
 "return-code":0,
"component-id":"",
"time-stamp":"2017-07-27 10:21:36",
"time-stamp-numeric":1501150896
}
]
}

Other basetypes may use the durable ID to uniquely identify the objects.


Évaluez ce contenu

Précis
Utile
Facile à comprendre
Avez-vous trouvé cet article utile ?
0/3000 characters
  Veuillez attribuer une note (1 à 5 étoiles).
  Veuillez attribuer une note (1 à 5 étoiles).
  Veuillez attribuer une note (1 à 5 étoiles).
  Veuillez indiquer si l’article a été utile ou non.
  Les commentaires ne doivent pas contenir les caractères spéciaux : <>()\