Retrieves a particular instance of a class.

Accepts the following named arguments.

Argument

Description

class_name

Name of the class whose instance you want to retrieve, passed as a string

options

Keys for the instance on which you want to perform the GetInstance operation. The argument is passed as a reference to a hash containing the keys in name-value pairs.

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.

Prints a fault string or returns the result in a hash.