Enumerate

Filters results depending on the arguments you pass in.

Several arguments perform generic operations that are implemented in another class, as described in Generic CIM Operations with WSMan::GenericOps. Other arguments implement enumeration for non-standard-compliant servers. This document discusses the most common arguments. Look at the Perl code for information on other arguments.

Arguments

Accepts the following arguments.

Argument Description
class_name Specifies the class that you want to enumerate. This argument is passed as a string.
namespace Default CIM namespace. Default is root/cimv2.

If the namespace is not root/cimv2, you must pass in the namespace of the class in this argument.

enummode (optional) Specifies an enumeration mode such as EnumerateEPR or EnumerateEPRandObject. This argument is passed as a string.
polymorphism (optional) Specifies polymorphism modes, passed in as a string. For example IncludeSubClassProperties, ExcludeSubClassProperties, and None.

Returns

Returns a SOAP::SOM object that can be used to either check for errors ($result->fault) or to parse the results ($result->result). The SOAP object includes a header and data in XML format.