Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

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.


Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\