Zu den Hauptinhalten
  • Bestellungen schnell und einfach aufgeben
  • Bestellungen anzeigen und den Versandstatus verfolgen
  • Profitieren Sie von exklusiven Prämien und Rabatten für Mitglieder
  • Erstellen Sie eine Liste Ihrer Produkte, auf die Sie jederzeit zugreifen können.

Dell PowerVault ME5 Series Storage System CLI Reference 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",
 "meta":"/meta/versions",
 "sc-cpu-type":"Broadwell 2200MHz",
"bundle-version":"bundle-version",
...
},
{
"object-name":"controller-b-versions",
...
}
],
"status":[
{
 "object-name":"status",
 "meta":"/meta/status",
 "response-type":"Success",
 "response-type-numeric":0,
"response":"Command completed successfully. (2020-01-29 10:34:38)",
 "return-code":0,
"component-id":"",
"time-stamp":"2020-01-29 10:34:38",
"time-stamp-numeric":1580294078
}
]
}
NOTE:If the system has warnings or other messages to report, there can be more than one status object returned in this list, so the command status might not appear in the first element of the list.

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


Diesen Inhalt bewerten

Präzise
Nützlich
Leicht verständlich
War dieser Artikel hilfreich?
0/3000 characters
  Bitte geben Sie eine Bewertung ab (1 bis 5 Sterne).
  Bitte geben Sie eine Bewertung ab (1 bis 5 Sterne).
  Bitte geben Sie eine Bewertung ab (1 bis 5 Sterne).
  Bitte geben Sie an, ob der Artikel hilfreich war.
  Die folgenden Sonderzeichen dürfen in Kommentaren nicht verwendet werden: <>()\