GetInstance
Last Updated December 16, 2024

Retrieves a particular instance of a class.

Arguments

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.

Returns

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