Retrieve Host Memory Usage operation
The Retrieve Host Memory Usage operation enables you to retrieve the memory size and current memory usage for the specified host system.
The following table describes the elements for the adapter request.
Adapter request elements for the Retrieve Host Memory Usage operation
Element | Definition | Required |
---|---|---|
<operation-type> | Defines the type of operation: Host | Yes |
<operation-name> | Defines the name of operation: Retrieve_Host_Memory_Usage | Yes |
<soap-url> | Specifies the URL for the remote SOAP service running on the VMware VirtualCenter | No |
<transport> | Specifies the transport protocol for the message | No |
<user-name> | Specifies the user name that is used for HTTP basic authentication on the VMware Virtual Center | No |
<password> | Specifies the password corresponding to <user-name> | Conditional; required if <user-name> is specified |
<parameters> | Contains the <host-system> element required to execute the operation | Yes |
<host-system> | DNS name of the host for which the network configuration details are to be retrieved | Yes |
The following code sample shows the sample adapter request for the Retrieve Host Memory Usage operation.
Sample adapter request for the Retrieve Host Memory Usage operation
<operation-type>Host</operation-type>
<operation-name>Retrieve_Host_Memory_Usage</operation-name>
<soap-url></soap-url>
<transport></transport>
<user-name></user-name>
<password></password>
<parameters>
<host-system>xyz.bmc.com</host-system>
</parameters>
</vmware-infrastructure-request>
The following code sample shows the response for the sample Retrieve Host Memory Usage operation.
Sample adapter response for the Retrieve Host Memory Usage operation
<metadata>
<status>success</status>
</metadata>
<RetrieveHostMemoryUsage>
<returnval>
<HostSystem>host-649</HostSystem>
<propSet>
<name>hardware.memorySize</name>
<val>111663587328</val>
</propSet>
<propSet>
<name>summary.quickStats.overallMemoryUsage</name>
<val>56573820928</val>
</propSet>
<propSet>
<name>systemResources.config.memoryAllocation.reservation</name>
<val>98249</val>
</propSet>
</returnval>
</RetrieveHostMemoryUsage>
</vmware-infrastructure-response>
The following table shows the response elements for the Retrieve Host Memory Usage operation:
Adapter response elements for the Retrieve Host Memory Usage operation
Element | Definition |
---|---|
<name> | Contains specific physical memory properties on the host system
|