# GetClassProperty

NameSpace

ClassName

PropertyName

## Return Results

If successful, the return value specifies the value of the requested CIMProperty. If the value is NULL then no element is returned. 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_INVALID_NAMESPACE
- CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters)
- CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified namespace)
- CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM Instance does not exist in the specified namespace)
- CIM_ERR_NO_SUCH_PROPERTY (the CIM Instance does exist, but the requested CIMProperty does not)
- CIM_ERR_FAILED (some other unspecified error occurred)

## Additional Description of the Operation

This operation is used to retrieve a single property value from a CIM Instance in the target Namespace.

NameSpace - The NameSpace parameter is a string that defines the target namespace \Ref{NAMESPACE}

InstanceName - The InstanceName input parameter specifies the name of the Instance (model path) from which the CIMProperty value is requested. \\Ref{INSTANCENAME}

PropertyName - The PropertyName input parameter specifies the name of the CIMProperty whose value is to be returned.

## Pegasus API in Operations.h

        virtual CIMValue getProperty(
        	const String& nameSpace,
        	const CIMReference& instanceName,
        	const String& propertyName) = 0;

Demonstration Prepared by the OpenGroup Manageability Work Group Pegasus Development Team

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

Last Modified Friday, June 29, 2001 06:45:16 PM Copyright @ The Open Group 2001