LMIInstanceName
is a object, which holds a set of primary keys and
their values. This type of object exactly identifies an instance.
To get a list of key properties, see following example:
> instance_name.print_key_properties()
...
> instance_name.key_properties()
...
> instance_name.SomeKeyProperty
...
>
This type of object may be returned from a method call. Each instance name can be converted into the instance, see next example:
> instance = instance_name.to_instance()
>
Following part describes LMIInstanceName
useful properties.
The property returns a string representation of the class name. See next example:
> instance_name.classname
ClassName
>
The property returns a string representation of namesapce. See next example:
> instance_name.namespace
Namespace
>
This property returns a string representation of the host name, where the CIM instance is located.
> instance_name.hostname
Hostname
>
This property returns a connection object, which was used to retrieve the instance name (refer to Establish a connection). See next example:
> instance.connection
LMIConnection(URI='uri', user='user'...)
>
This property returns a wrapped pywbem
object. See the example:
> instance.wrapped_object
CIMInstanceName(classname=u'ClassName', keybindings=NocaseDict(...), host=u'hostname', namespace='namespace')
>