# Enumerate Instance Names CIM Operation

The `enumerateInstances` CIM Operation enumerates instances of a CIM Class in the target Namespace.

NameSpace String that defines the target namespace. See NameSpace Operations for more information.

ClassName Defines name of the Class for which instance names are to be retrieved. This must be a legal class in the repository

## RETURN

If successful, the method returns zero or more named Instances that meet the required criteria. If unsuccessful, one of the following status codes MUST be returned by this method, where the first applicable error in the list (starting with the first element of the list, and working down) is the error returned. Any additional method-specific interpretation of the error in is given in parentheses.

- CIM_ERR_ACCESS_DENIED
- CIM_ERR_NOT_SUPPORTED
- CIM_ERR_INVALID_NAMESPACE
- CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters)
- CIM_ERR_INVALID_CLASS (the CIM Class that is the basis for this enumeration does not exist)
- CIM_ERR_FAILED (some other unspecified error occurred)

## Additional Information

NameSpace The NameSpace parameter is a string that defines the target namespace.

ClassName The ClassName input parameter defines the Class that is the basis for the enumeration. The ClassName input must be in the repository

Go To Top

## C++ Call

        virtual Array<InstanceDecl> enumerateInstanceNames(
            const String& nameSpace,
            const String& className;

Demonstration Prepared by the OpenGroup Manageability Work Group Pegasus Development Team

See (http://www.opengroup.org/management) for more information on Pegasus

Last Modified Wednesday, January 30, 2002 07:31:56 AM Copyright @ The Open Group 2001