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

XML API optimization

For the XML API only, the following are two ways to optimize performance:
  • Use embedded objects. This allows one object to contain not only properties but also other objects. In general, parsing a structure such as this is easier as the association between objects is simpler. This is an alternative to using COMP elements.

  • Use brief mode. In brief mode, which is disabled by default, returns a subset of attributes of object properties. The name and type attributes are always returned. Other properties can be obtained by using the meta command with the basetype of the object. This optimization reduces the number of bytes transmitted for each request and allows caching of CLI metadata. Brief mode can be enabled or disabled by using the set cli-parameters command.

The following example shows brief mode output, in which a subset of attributes is returned, and use of embedded objects:
# show ports
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RESPONSE VERSION="L100" REQUEST="show ports">
<OBJECT basetype="port" name="ports" oid="1" format="rows">
<PROPERTY name="durable-id" type="string">hostport_A0</PROPERTY>
<PROPERTY name="controller" key="true" type="string">A</PROPERTY>
<PROPERTY name="controller-numeric" key="true" type="string">1</PROPERTY>
<PROPERTY name="port" key="true" type="string">A0</PROPERTY>
<PROPERTY name="port-type" type="string">FC</PROPERTY>
...
<OBJECT basetype="fc-port" name="port-details" oid="2" format="rows">
<PROPERTY name="configured-topology" type="string">PTP</PROPERTY>
<PROPERTY name="primary-loop-id" type="string">N/A</PROPERTY>
<PROPERTY name="sfp-status" type="string">Not present</PROPERTY>
...
</OBJECT>
</OBJECT>
...
<OBJECT basetype="status" name="status" oid="17">
<PROPERTY name="response-type" type="string">Success</PROPERTY>
...
</OBJECT>
</RESPONSE>

For the JSON API, embedding objects is the only way to show relationships and brief mode is not applicable.


É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 : <>()\