Pegasus Project Working Paper
CIM Operations Processing
AUTHORS:
Last Update 89
Revision Status
Revision |
Date |
Author(s) |
Reason |
0.1 |
16 Feb 2002 |
KS |
Original |
|
|
|
|
|
|
|
|
|
|
|
|
Status: This is an early draft of the document to be
used in discussions to complete the definition of processing.
Table of Contents
1 Introduction................................................................................................................... 9
2 Common Elements of Processing................................................................................... 9
3 Class Operations........................................................................................................... 9
3.1 General Processing For Class Operations.............................................................. 9
3.1.1 Responsibility for Class Information
Persistance............................................. 9
3.1.2 Request Routing............................................................................................ 9
3.1.3 Security Issues.............................................................................................. 9
3.2 Open Issues for Class Operations.......................................................................... 9
3.3 GetClass............................................................................................................. 10
3.3.1 Function...................................................................................................... 10
3.3.2 HTTP Specification Definition...................................................................... 10
3.3.3 Client API................................................................................................... 12
3.3.4 Routing....................................................................................................... 12
3.3.5 CIM OP Request Processor Validation....................................................... 12
3.3.6 CIM Op Request Processing....................................................................... 12
3.3.7 CIM Op Response Processing.................................................................... 12
3.3.8........................................................................................................................... 12
3.4 CreateClass........................................................................................................ 12
3.4.1 Function...................................................................................................... 12
3.4.2 HTTP Spec Definition................................................................................. 13
3.4.3 Client API................................................................................................... 14
3.4.4 Routing....................................................................................................... 15
3.4.5 CIM Operation Request Processor
Validation............................................. 15
3.4.6 CIM Operation Request Processing............................................................. 15
3.4.7 CIM Operation Response Processing.......................................................... 15
3.5 DeleteClass......................................................................................................... 15
3.5.1 Function...................................................................................................... 15
3.5.2 HTTP Operations definition......................................................................... 16
3.5.3 Client API................................................................................................... 16
3.5.4 Routing....................................................................................................... 16
3.5.5 CIM OP Request Processor Validation....................................................... 17
3.5.6 CIM Op Request Processing....................................................................... 17
3.5.7 CIM Op Response Processing.................................................................... 17
3.5.8 Modules Involved........................................................................................ 17
3.5.9 Open Questions.......................................................................................... 17
3.6 ModifyClass........................................................................................................ 17
3.6.1 Function...................................................................................................... 17
3.6.2 HTTP Operation Definition.......................................................................... 17
3.6.3 Client API................................................................................................... 19
3.6.4 Routing....................................................................................................... 20
3.6.5 CIM Operation Request Validation.............................................................. 20
3.6.6 CIM Operations Request Processing........................................................... 20
3.6.7 CIM Operation Response Processing.......................................................... 20
3.6.8 Modules Involved........................................................................................ 20
3.6.9 Open Questions.......................................................................................... 20
3.7 EnumerateClassNames........................................................................................ 20
3.7.1 Function...................................................................................................... 20
3.7.2 HTTP Operation Definition.......................................................................... 20
3.7.3 Client API................................................................................................... 21
3.7.4 Routing....................................................................................................... 22
3.7.5 CIM Operation Request Validation.............................................................. 22
3.7.6 CIM Operations Request Processing........................................................... 22
3.7.7 CIM Operation Response Processing.......................................................... 22
3.7.8 Modules Involved........................................................................................ 22
3.7.9 Open Questions.......................................................................................... 22
3.8 EnumerateClasses............................................................................................... 22
3.8.1 Function...................................................................................................... 22
3.8.2 HTTP Operation Definition.......................................................................... 22
3.8.3 Client API................................................................................................... 23
3.8.4 Routing....................................................................................................... 24
3.8.5 CIM Operation Request Validation.............................................................. 24
3.8.6 CIM Operations Request Processing........................................................... 24
3.8.7 CIM Operation Response Processing.......................................................... 24
3.8.8 Modules Involved........................................................................................ 24
3.8.9 Open Questions.......................................................................................... 24
4 Instance Operations..................................................................................................... 24
4.1 General Processing For Instances........................................................................ 25
4.1.1 Responsibility for Instance Information......................................................... 25
4.1.2 Request Routing.......................................................................................... 25
4.1.3 Security Issues............................................................................................ 25
4.1.4 General Validation....................................................................................... 25
4.2 CreateInstance.................................................................................................... 25
4.2.1 Function...................................................................................................... 25
4.2.2 HTTP Specification Definition...................................................................... 25
4.2.3 Client API................................................................................................... 27
4.2.4 Validation.................................................................................................... 27
4.2.5 Routing....................................................................................................... 27
4.3 GetInstance......................................................................................................... 27
4.3.1 Function...................................................................................................... 27
4.3.2 HTTP Specification Definition...................................................................... 27
4.3.3 Client API................................................................................................... 29
4.3.4 Request Validation...................................................................................... 29
4.3.5 Request Routing.......................................................................................... 30
4.3.6 Request Processing..................................................................................... 30
4.3.7 Response Processing................................................................................... 30
4.3.8 Open Questions.......................................................................................... 30
4.4 DeleteInstance..................................................................................................... 30
4.4.1 Function...................................................................................................... 30
4.4.2 HTTP Specification Definition...................................................................... 30
4.4.3 Client API................................................................................................... 31
4.4.4 Request Routing.......................................................................................... 31
4.4.5 Validation.................................................................................................... 31
4.4.6 Request Processing..................................................................................... 31
4.4.7 Response Processing................................................................................... 31
4.5 ModifyInstance................................................................................................... 31
4.5.1 HTTP Specification Definition...................................................................... 31
4.5.2 Client API................................................................................................... 34
4.5.3 Validation.................................................................................................... 34
4.5.4 Routing....................................................................................................... 34
4.5.5 Request Processing..................................................................................... 34
4.5.6 Response Processing................................................................................... 34
4.5.7 Open Questions.......................................................................................... 34
4.6 EnumerateInstanceNames.................................................................................... 34
4.6.1 HTTP Specification Definition...................................................................... 34
4.6.2 Client API................................................................................................... 35
4.6.3 Validation.................................................................................................... 36
4.6.4 Routing....................................................................................................... 36
4.6.5 Request Processing..................................................................................... 36
4.6.6 Response Processing................................................................................... 36
4.6.7 Open Questions.......................................................................................... 36
4.6.8........................................................................................................................... 36
4.7 EnumerateInstances............................................................................................. 36
4.7.1 HTTP Specification Definition...................................................................... 36
4.7.2 Client API................................................................................................... 38
4.7.3 Validation.................................................................................................... 38
4.7.4 Routing....................................................................................................... 38
4.7.5 Request Processing..................................................................................... 38
4.7.6 Response Processing................................................................................... 38
4.7.7 Open Questions.......................................................................................... 38
4.7.8........................................................................................................................... 38
5 Association Operations................................................................................................ 38
5.1 Associatiors........................................................................................................ 38
5.1.1 Function...................................................................................................... 38
5.1.2 HTTP Specification Definition...................................................................... 38
5.1.3 Request Routing.......................................................................................... 40
5.1.4 Request Validation...................................................................................... 40
5.1.5 TBD........................................................................................................... 40
5.2 Associator Names............................................................................................... 40
5.2.1 HTTP Specification Definition...................................................................... 41
5.2.2 Request Routing.......................................................................................... 42
5.2.3 Validation.................................................................................................... 42
5.2.4 Processing................................................................................................... 42
5.2.5 Response Processing................................................................................... 42
5.3 References.......................................................................................................... 42
5.3.1 Function...................................................................................................... 42
5.3.2 HTTP Specification Definition...................................................................... 42
5.3.3 Routing....................................................................................................... 44
5.3.4 Validation.................................................................................................... 44
5.3.5 Request Processing..................................................................................... 44
5.3.6 Response Processing................................................................................... 44
5.4 ReferenceNames................................................................................................. 44
5.4.1 Function...................................................................................................... 44
5.4.2 HTTP Specification Definition...................................................................... 44
5.4.3 Routing....................................................................................................... 46
5.4.4 Validation.................................................................................................... 46
5.4.5 Request Processing..................................................................................... 46
5.4.6 Response Processing................................................................................... 46
6 Property Operations.................................................................................................... 46
6.1 GetProperty........................................................................................................ 46
6.1.1 Function...................................................................................................... 46
6.1.2 HTTP Specification Definition...................................................................... 46
6.1.3 Client API................................................................................................... 47
6.1.4 Validation.................................................................................................... 47
6.1.5 Routing....................................................................................................... 47
6.1.6 Request Processing..................................................................................... 47
6.1.7 Response Processing................................................................................... 47
6.1.8 Modules Involved........................................................................................ 47
6.1.9 Open Questions.......................................................................................... 47
6.2 SetProperty......................................................................................................... 47
6.2.1 Function...................................................................................................... 47
6.2.2 HTTP Specification Definition...................................................................... 47
6.2.3 Client API................................................................................................... 48
6.2.4 Validation.................................................................................................... 49
6.2.5 Routing....................................................................................................... 49
6.2.6 Request Processing..................................................................................... 49
6.2.7 Response Processing................................................................................... 49
6.2.8 Modules Involved........................................................................................ 49
6.2.9 Open Questions.......................................................................................... 49
6.2.10......................................................................................................................... 49
7 Method Operations..................................................................................................... 49
7.1 InvokeMethod.................................................................................................... 49
8 Qualifier Operations.................................................................................................... 49
8.1 Get Qualifier........................................................................................................ 49
8.1.1 Function...................................................................................................... 49
8.1.2 HTTP Specification Definition...................................................................... 49
8.1.3 Client API................................................................................................... 50
8.1.4 Validation.................................................................................................... 50
8.1.5 Routing....................................................................................................... 50
8.1.6 Request Processing..................................................................................... 50
8.1.7 Response Processing................................................................................... 50
8.1.8 Modules Involved........................................................................................ 50
8.1.9 Open Questions.......................................................................................... 50
8.2 Set Qualifier........................................................................................................ 50
8.2.1 Function...................................................................................................... 50
8.2.2 HTTP Specification Definition...................................................................... 50
8.2.3 Client API................................................................................................... 51
8.2.4 Validation.................................................................................................... 52
8.2.5 Routing....................................................................................................... 52
8.2.6 Request Processing..................................................................................... 52
8.2.7 Response Processing................................................................................... 52
8.2.8 Modules Involved........................................................................................ 52
8.2.9 Open Questions.......................................................................................... 52
8.2.10......................................................................................................................... 52
8.3 Delete Qualifier................................................................................................... 52
8.3.1 Function...................................................................................................... 52
8.3.2 HTTP Specification Definition...................................................................... 52
8.3.3 Client API................................................................................................... 53
8.3.4 Validation.................................................................................................... 53
8.3.5 Routing....................................................................................................... 53
8.3.6 Request Processing..................................................................................... 53
8.3.7 Response Processing................................................................................... 53
8.3.8 Modules Involved........................................................................................ 53
8.3.9 Open Questions.......................................................................................... 53
8.3.10......................................................................................................................... 53
8.4 EnumerateQualifiers............................................................................................. 53
8.4.1 Function...................................................................................................... 53
8.4.2 HTTP Specification Definition...................................................................... 53
8.4.3 Client API................................................................................................... 54
8.4.4 Validation.................................................................................................... 54
8.4.5 Routing....................................................................................................... 54
8.4.6 Request Processing..................................................................................... 54
8.4.7 Response Processing................................................................................... 54
8.4.8 Modules Involved........................................................................................ 54
8.4.9 Open Questions.......................................................................................... 54
8.4.10......................................................................................................................... 54
9 Query Operations........................................................................................................ 54
9.1 ExecQuery.......................................................................................................... 54
9.1.1 Function...................................................................................................... 54
9.1.2 HTTP Specification Definition...................................................................... 54
9.1.3 Client API................................................................................................... 56
9.1.4 Validation.................................................................................................... 56
9.1.5 Routing....................................................................................................... 56
9.1.6 Request Processing..................................................................................... 56
9.1.7 Response Processing................................................................................... 56
9.1.8 Modules Involved........................................................................................ 56
9.1.9 Open Questions.......................................................................................... 56
9.1.10......................................................................................................................... 56
This document defines the characteristics to be used by Pegasus for processing all CIM Operations.
To make this all as understandable as possible we have included:
The DMTF HTTP Specificaiton definitions for each operation. Note that these are the definitions current with version 1.1b of the document (currently under final review for release in March 2002).
The current client API as defined in the Pegasus module client.h
Effective Pegasus Version 2.0
This document is the basis for the definition of processing performed by Pegasus.
The following sections break down the CIM Operations defined in the DMTF document HTTP Operations and define the processing of these functions by the Pegasus system
There are several goals that we are trying to achieve in processing the CIM Operations by Pegasus. Obviously, the overriding objective is to provide valid responses that match the DMTF specifications.
However, this collection includes both read and write operations and operations that affect both the instances and the definitions of objects themselves. One of our objectives that HTTP Operations not corrupt the information integregity of Pegasus. This means that we want to assure that any changes to be made maintain the integregity of the the Pegasus information base and of the information model that is being maintained by Pegasus.
Thus, changes demanded to classes and qualifiers must result in a valid base that continues to observer the rules defined in the CIM specification. For example, (ex propogated, weak) etc. TBD
At the same time there are several tradeoffs in the design of a object management system, particularlay one like Pegasus that has multiple layers within the base itself.
First, complete protection of the base is probably prohibitively expensive. If, for example, the CIMOM itself were to validate all of the CIM defined qualifiers on requests and completely validate the responses generated, Pegasus would probably be reduced to an unacceptable level of performance.
TBD
To define the characteristics of processing for CIM Operations within Pegasus, we have broken processing into several elements including:
Request Routing – This defines the routing of requests within the CIMOM and between the CIMOM and the providers of information (entities like the repository, providers, Pegasus services, etc. are the providers of information)
Request Validation – Requests received by Pegasus must be validated for many things depending on the operation.
Request Processing – Once validated, there may be specific procsssing of requests based on the CIM Operation and the object being processed. This processing can be in the CIMOM and also in the information providers.
Response Processing – TBD
There is some common processing that must occur against ALL operations including that defined in the following sections.
TBD
There appear today to be a couple of categories of valid general processing as follows:
ACTION: Further clarify the logical namespace and our solution.
TBD
TBD
Today the Class repository is the only component responsible for Class information persistence. This repository is maintained by the CIMOM
In general, the routing of class operations is simple. There is only one provider of the information in Pegasus V2, the CIM repository. This is logical since the class repository is the only source of class information in Pegasus. All class operations are routed to this information provider. The CIM repository is also the basis for all response generation.
TBD
TBD
TBD
TBD
There are several issues that have been discussed concerning Class operations and for which, to date, there is no clear solutions this includes:
This operation is used to return a single CIM Class from the target Namespace.
GetClass
<class> GetClass (
[IN] <className> ClassName,
[IN,OPTIONAL] boolean LocalOnly = true,
[IN,OPTIONAL] boolean IncludeQualifiers = true,
[IN,OPTIONAL] boolean IncludeClassOrigin = false,
[IN,OPTIONAL,NULL] string PropertyList [] = NULL
)
The ClassName input parameter defines the name of the Class to be retrieved.
If the LocalOnly input parameter is true, this specifies that only CIM Elements (properties, methods and qualifiers) overridden within the definition of the Class are returned [1]. If false, all elements are returned. This parameter therefore effects a CIM Server-side mechanism to filter certain elements of the returned object based on whether or not they have been propagated from the parent Class (as defined by the PROPAGATED attribute).
If the IncludeQualifiers input parameter is true, this specifies that all Qualifiers for that Class (including Qualifiers on the Class and on any returned Properties, Methods or
Method Parameters) MUST be included as <QUALIFIER> elements in the response. If false no <QUALIFIER> elements are present in the returned Class.
If the IncludeClassOrigin input parameter is true, this specifies that the CLASSORIGIN attribute MUST be present on all appropriate elements in the returned Class. If false, no CLASSORIGIN attributes are present in the returned Class.
If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. The returned Class MUST NOT include elements for any Properties missing from this list. Note that if LocalOnly is specified as true this acts as an additional filter on the set of Properties returned (for example, if Property A is included in the PropertyList but LocalOnly is set to true and A is not local to the requested Class, then it will not be included in the response). If the PropertyList input parameter is an empty array this signifies that no Properties are included in the response. If the PropertyList input parameter is NULL this specifies that all Properties (subject to the conditions expressed by the other parameters) are included in the response.
If the PropertyList contains duplicate elements, the Server MUST ignore the duplicates but otherwise process the request normally. If the PropertyList contains elements which are invalid Property names for the target Class, the Server MUST ignore such entries but otherwise process the request normally.
If successful, the return value is a single CIM Class.
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.
virtual CIMClass getClass(
const String& nameSpace,
const String& className,
Boolean localOnly = true,
Boolean includeQualifiers = true,
Boolean includeClassOrigin = false,
const CIMPropertyList& propertyList = CIMPropertyList());
Same as all other class operations, the class repository.
General validation must include:
Validation (see above)
See the HTTP Specification defined above. TBD.
CreateClass creates a single CIM Class in the target namespace.
This operation is used to create a single CIM Class in the target Namespace. The Class MUST NOT already exist.
CreateClass
void CreateClass (
[IN] <class> NewClass
)
The NewClass input parameter defines the new Class. The proposed definition MUST be a correct Class definition according to the CIM specification [1].
In processing the creation of the new Class, the following rules MUST be conformed to by the CIM Server:
· Any Properties, Methods or Qualifiers in the Subclass not defined in the Superclass are created as new elements of the Subclass. In particular the Server MUST set the CLASSORIGIN attribute on the new Properties and Methods to the name of the Subclass, and ensure that all other Properties and Methods preserve their CLASSORIGIN attribute value from that defined in the Superclass.
· If a Property is defined in the Superclass and in the Subclass, the value assigned to that property in the Subclass (including NULL) becomes the default value of the property for the Subclass.
· If a Property or Method of the Superclass is not specified in the Subclass, then that Property or Method is inherited without modification by the Subclass.
· Any Qualifiers defined in the Superclass with a TOSUBCLASS attribute value of true MUST appear in the resulting Subclass. Qualifiers in the Superclass with a
· TOSUBCLASS attribute value of false MUST NOT be propagated to the Subclass.
· Any Qualifier propagated from the Superclass cannot be modified in the Subclass if the OVERRIDABLE attribute of that Qualifier was set to false in the Superclass. It is a Client error to specify such a Qualifier in the NewClass with a different definition to that in the Superclass (where definition encompasses the name, type and flavor attribute settings of the <QUALIFIER> element, and the value of the Qualifier).
If successful, the specified Class MUST have been created by the CIM Server.
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.
virtual void createClass(
const String& nameSpace,
const CIMClass& newClass) = 0;
As with all Class operations, this is routed to the repository
Validation for createclass is complex because this is the gate for all new classes input into the Pegasus repository and therefore the point of guarantee of the integretity for the repository. Both the HTTP operations and the classes created through the compiler use the same basic set of functions to create new classes.
Validation for all create Class operations includes:
Validation for Association Class Operations includes:
Valid createclass operations are installed in the repository and a response generated.
The routing for this operation is:
CIMOperationProcessor->???Queue->>CIMRepositorys
The processing is performed in the CIMRepository function and
TODO – define classorigin attribute.
Define processing in accord with the spec.
ACTION: Determine if we have any other special processing
The response processing simply returns the compete response. Since the response is small (really only confirms that the operation was performed), there are no concerns over size of returned information, etc.
Delete a single class from the target namespace
This operation is used to delete a single CIM Class from the target Namespace.
DeleteClass
void DeleteClass (
[IN] <className> ClassName
)
The ClassName input parameter defines the name of the Class to be deleted.
If successful, the specified Class (including any subclasses and any instances) MUST have been removed by the CIM Server. The operation MUST fail if any one of these objects cannot be deleted.
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.
virtual void deleteClass(
const String& nameSpace,
const String& className);
Same as all other Class Operations, the CIM repository
Namespace
Valid Namespace
Operation against the CMOM Profile – Returns CIM_ERR_NOT_SUPPORTED.
Class exists – Returns CIM_ERR_NOT_FOUND
Under what conditions could subclasses or operations not be deleted? Exactly what our our rules for class deletion.
What about deleting class that are participating in associations?
This operation is used to modify an existing CIM Class in the target Namespace. The Class MUST already exist.
ModifyClass
void ModifyClass (
[IN] <class> ModifiedClass
)
The ModifiedClass input parameter defines the set of changes (which MUST be correct amendments to the CIM Class as defined by the CIM Specification [1]) to be made to the current class definition.
In processing the modification of the Class, the following rules MUST be conformed to by the CIM Server:
If successful, the specified Class MUST have been updated by the CIM Server.
The request to modify the Class MUST fail if the Server cannot update any existing Subclasses or Instances of that Class in a consistent manner.
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.
virtual void modifyClass(
const String& nameSpace,
const CIMClass& modifiedClass) = 0;
Same as other class operations
Validation required:
Operation against the CMOM Profile – Returns CIM_ERR_NOT_SUPPORTED.
Namespace
Is is possible to update class children?
??? What about existing instances?
No modification to key properties.
This operation gets messy because it modifies an existing entity. It must also modify subclasses and possibly existing instances????
Within the existing Pegasus Structure how much modification should we allow?
This operation is used to enumerate the names of subclasses of a CIM Class in the target Namespace.
EnumerateClassNames
<className>* EnumerateClassNames (
[IN,OPTIONAL,NULL] <className> ClassName = NULL,
[IN,OPTIONAL] boolean DeepInheritance = false
)
The ClassName input parameter defines the Class that is the basis for the enumeration.
If the DeepInheritance input parameter is true, this specifies that the names of all subclasses of the specified Class should be returned (if the ClassName input parameter is absent, this implies that the names of all Classes in the target Namespace should be returned). If false, only the names of immediate child subclasses are returned (if the ClassName input parameter is NULL, this implies that the names of all base Classes in the target Namespace should be returned).
If successful, the method returns zero or more names of Classes that meet the requested 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.
virtual Array<String> enumerateClassNames(
const String& nameSpace,
const String& className = String::EMPTY,
Boolean deepInheritance = false);
Same as other class operations.
TBD
TBD
TBD
TBD
There are no known open questions with this operation.
This operation is used to enumerate subclasses of a CIM Class in the target Namespace.
EnumerateClasses
<class>* EnumerateClasses (
[IN,OPTIONAL,NULL] <className> ClassName=NULL,
[IN,OPTIONAL] boolean DeepInheritance = false,
[IN,OPTIONAL] boolean LocalOnly = true,
[IN,OPTIONAL] boolean IncludeQualifiers = true,
[IN,OPTIONAL] boolean IncludeClassOrigin = false
)
The ClassName input parameter defines the Class that is the basis for the enumeration.
If the DeepInheritance input parameter is true, this specifies that all subclasses of the specified Class should be returned (if the ClassName input parameter is absent, this
implies that all Classes in the target Namespace should be returned). If false, only immediate child subclasses are returned (if the ClassName input parameter is NULL, this implies that all base Classes in the target Namespace should be returned).
If the LocalOnly input parameter is true, it specifies that, for each returned Class, only elements (properties, methods and qualifiers) overridden within the definition of that Class are included [1]. If false, all elements are returned. This parameter therefore effects a CIM Server-side mechanism to filter certain elements of the returned object based on whether or not they have been propagated from the parent Class (as defined by the PROPAGATED attribute).
If the IncludeQualifiers input parameter is true, this specifies that all Qualifiers for each Class (including Qualifiers on the Class and on any returned Properties, Methods or
Method Parameters) MUST be included as <QUALIFIER> elements in the response. If false no <QUALIFIER> elements are present in each returned Class.
If the IncludeClassOrigin input parameter is true, this specifies that the CLASSORIGIN attribute MUST be present on all appropriate elements in each returned Class. If false, no CLASSORIGIN attributes are present in each returned Class.
If successful, the method returns zero or more Classes 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.
virtual Array<CIMClass> enumerateClasses(
const String& nameSpace,
const String& className = String::EMPTY,
Boolean deepInheritance = false,
Boolean localOnly = true,
Boolean includeQualifiers = true,
Boolean includeClassOrigin = false);
The operation is processed by the CIMrepository function so that all routing is directly to the CIMRepository
Validation includes:
Operations Profile
Namespace validity
The classname that is the base for the opration is a valid classname – Returns CIM_ERR_INVALID_CLASS
The response must include the definition of the subclasses of the target class that exist in the class repository. If the className is NULL, all classes in the target namespace are enumerated.
The response includes the information for subclasses of the target class with qualifier information is includeQualifiers=true and ClassOrigin information if includeClassORigin is true. Further, if localOnly=true only elements (properties, methods and qualifiers) overridden within the definition of that Class are included.
If deepInheritance=true all classes that are subclasses of the specified class are returned.
CIM Operation Processor
CIM Repository
CIM Operation Response Processor
Possible size of returned information. An enumeration of a complete namespace can generate a response of many megabytes. This leads us to require some means to separate the response into smaller segments for transmission.
Unlike classes, the responsibility for instance information is divided between
Whereas the request routing for classes is fixed (repository), instance requests routing is data driven, the routing is determined based on the operation, the class defined for the operation, and the existence of information providers for the target instance(s).
Generally an operation is routed to one or more of the instance information generators (providers, or Pegasus services) based on a routing definition associated with the class defined for the instance.
The routing algorithm is clearly implementation dependent and is not specified in DMTF standards.
The
Routing based on instances
Hieaarchy expansion – CIM is an
object system and as such, requests for object information demand that more
than simply the class being directly addressed
Routing to Instance repository – Originally the instance repository was considered the default “provider” if there was no provider specified (no provider qualifier defined a provider to process for the class). However, that was considered unacceptable for a number of reasons (See xxx). Thus
Routing is based on
Multiple providers for a single class – One of the significant discussions to date in the implementation of providers has been the issue of multiple providers for a single class and the possible algorithims, response aggregation and response validation for this possibility.
QUESTION: Do we have a use case for multiple providers for a single class in Pegasus V 2.0?
This operation is used to create a single CIM Instance in the target Namespace. The Instance MUST NOT already exist.
CreateInstance
<instanceName> CreateInstance (
[IN] <instance> NewInstance
)
The NewInstance input parameter defines the new Instance. The proposed definition MUST be a correct Instance definition for the underlying CIM Class according to the CIM specification [1].
In processing the creation of the new Instance, the following rules MUST be conformed to by the CIM Server:
· Any Qualifiers in the Instance not defined in the Class are created as new elements of the Instance.
· All Properties of the Instance preserve their CLASSORIGIN attribute value from that defined in the Class.
· If a Property is specified in the ModifiedInstance parameter, the value assigned to that property in the Instance (including NULL) becomes the value of the property
· for the Instance. Note that it is a Client error to specify a Property that does not belong to the Class.
· If a Property of the Class is not specified in the Instance, then that Property is inherited without modification by the Instance.
· Servers MAY choose to ignore TOINSTANCE. Servers that do not ignore TOINSTANCE MUST interpret it as follows. Any Qualifiers defined in the Class with a TOINSTANCE attribute value of true appear in the Instance. Qualifiers in the Class with a TOINSTANCE attribute value of false MUST NOT be propagated to the instance.
· Any Qualifier propagated from the Class cannot be modified in the Instance if the OVERRIDABLE attribute of that Qualifier was set to false in the Class. It is a Client error to specify such a Qualifier in the NewInstance with a different definition to that in the Class (where definition encompasses the name, type and flavor attribute settings of the <QUALIFIER> element, and the value of the Qualifier).
If successful, the return value defines the object path of the new CIM Instance relative to the target Namespace (i.e. the Model Path as defined by [1]), created by the CIM Server. It is returned in case one or more of the new keys of the Instance are allocated dynamically during the creation process rather than specified in the request.
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.
virtual CIMReference createInstance(
const String& nameSpace,
const CIMInstance& newInstance);
CIMOM
Valid Namespace
ClassName is valid and the class for which this instance is to be created is valid – Returns CIM_ERR_INVALID_CLASS on error
There is a valid provider for this class. This is a Pegasus validation requirement (see earlier discussion of the repository as default provider). Since Pegasus will not support the concept of the repository as default provider, an instance creation for which there is no provider must be refused.
Not an instance for an abstract class.
Determining prior existence of an instance. It is illegal to to create multiple copies of a single instance. However, it is the provider that knows if an instance already exists, not the CIMOM. Therefore, the issue for Pegasus processing is whether the CIMOM should valid the lack of prior existence of the instance by making a request to the provider or simply pass the operation to the provider and expect the provider to refuse any duplicates.
QUESTION: Should we validate duplication of instances in the CIMOM????
Verify that there is a value for all properties that have the required Qualifier.
This operation is used to return a single CIM Instance from the target Namespace.
GetInstance
<instance> GetInstance (
[IN] <instanceName> InstanceName,
[IN,OPTIONAL] boolean LocalOnly = true,
[IN,OPTIONAL] boolean IncludeQualifiers = false,
[IN,OPTIONAL] boolean IncludeClassOrigin = false,
[IN,OPTIONAL,NULL] string PropertyList [] = NULL
)
The InstanceName input parameter defines the name of the Instance to be retrieved.
If the LocalOnly input parameter is true, this specifies that only elements (properties and qualifiers) overridden within the definition of the Instance are returned [1]. If false, all elements are returned. This parameter therefore effects a CIM Server-side mechanism to filter certain elements of the returned object based on whether or not they have been propagated from the parent Class (as defined by the PROPAGATED attribute).
If the IncludeQualifiers input parameter is true, this specifies that all Qualifiers for that Instance (including Qualifiers on the Instance and on any returned Properties) MUST be included as <QUALIFIER> elements in the response. If false no <QUALIFIER> elements are present in the returned Instance.
If the IncludeClassOrigin input parameter is true, this specifies that the CLASSORIGIN attribute MUST be present on all appropriate elements in the returned Instance. If false, no CLASSORIGIN attributes are present in the returned Instance.
If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. The returned Instance MUST NOT include elements for any
Properties missing from this list. Note that if LocalOnly is specified as true this acts as an additional filter on the set of Properties returned (for example, if Property A is included in the PropertyList but LocalOnly is set to true and A is not local to the requested Instance, then it will not be included in the response). If the PropertyList input parameter is an empty array this signifies that no Properties are included in the response. If the PropertyList input parameter is NULL this specifies that all Properties (subject to the conditions expressed by the other parameters) are included in the response.
If the PropertyList contains duplicate elements, the Server MUST ignore the duplicates but otherwise process the request normally. If the PropertyList contains elements which are invalid Property names for the target Instance, the Server MUST ignore such entries but otherwise process the request normally.
If successful, the return value is a single CIM Instance.
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.
virtual CIMInstance getInstance(
const String& nameSpace,
const CIMReference& instanceName,
Boolean localOnly = true,
Boolean includeQualifiers = false,
Boolean includeClassOrigin = false,
const CIMPropertyList& propertyList = CIMPropertyList());
Validation is distributed, part in the CIMOM and part in the “provider”
CIMOM Processing
What the CIMOM cannot validate:
That the instances do exist.
Validation required in the processor
Instance exists
Question: Do we need to validate that there is a value for all properties that have the required qualifier?
TBD
TBD
This operation is used to delete a single CIM Instance from the target Namespace.
DeleteInstance
void DeleteInstance (
[IN] <instanceName> InstanceName
)
The InstanceName input parameter defines the name (model path) of the Instance to be deleted.
If successful, the specified Instance MUST have been removed by the CIM Server.
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.
virtual void deleteInstance(
const String& nameSpace,
const CIMReference& instanceName);
This operation is used to modify an existing CIM Instance in the target Namespace. The Instance MUST already exist.
ModifyInstance
void ModifyInstance (
[IN] <namedInstance> ModifiedInstance,
[IN, OPTIONAL] boolean IncludeQualifiers = true,
[IN, OPTIONAL, NULL] string propertyList[] = NULL
)
The ModifiedInstance input parameter identifies the name of the Instance to be modified, and defines the set of changes (which MUST be correct amendments to the Instance as defined by the CIM Specification [1]) to be made to the current Instance definition.
If the IncludeQualifiers input parameter is true, this specifies that the Qualifiers are modified as specified in the ModifiedInstance.If false, Qualifiers in the ModifiedInstance are ignored and no Qualifiers are explicitly modified in the specified Instance.
If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. Only those properties specified in the PropertyList are modified as specified in the ModifiedInstance.Properties of the ModifiedInstance that are missing from the PropertyList are ignored.If the PropertyList input parameter is an empty array this signifies that no Properties are explicitly modified in the specified Instance. If the PropertyList input parameter is NULL this specifies that all Properties are updated in the specified Instance.
If the PropertyList contains duplicate elements, the Server MUST ignore the duplicates but otherwise process the request normally. If the PropertyList contains elements which are invalid Property names for the target Instance, the Server MUST ignore such entries but otherwise process the request normally.
In processing the modification of the Instance, the following rules MUST be conformed to by the CIM Server:
If successful, the specified Instance MUST have been updated by the CIM Server.
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.
virtual void modifyInstance(
const String& nameSpace,
const CIMNamedInstance& modifiedInstance,
Boolean includeQualifiers = true,
const CIMPropertyList& propertyList = CIMPropertyList());
This operation is used to enumerate the names (model paths) of the instances of a CIM Class in the target Namespace.
EnumerateInstanceNames
<instanceName>* EnumerateInstanceNames (
[IN] <className> ClassName
)
The ClassName input parameter defines the Class that is the basis for the enumeration.
If successful, the method returns zero or more names of Instances (model paths) that meet the requsted 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.
virtual Array<CIMReference> enumerateInstanceNames(
const String& nameSpace,
const String& className);
This operation is used to enumerate instances of a CIM Class in the target Namespace.
EnumerateInstances
<namedInstance>* EnumerateInstances (
[IN] <className> ClassName,
[IN,OPTIONAL] boolean LocalOnly = true,
[IN,OPTIONAL] boolean DeepInheritance = true,
[IN,OPTIONAL] boolean IncludeQualifiers = false,
[IN,OPTIONAL] boolean IncludeClassOrigin = false,
[IN,OPTIONAL,NULL] string PropertyList [] = NULL
)
The ClassName input parameter defines the Class that is the basis for the enumeration.
If the LocalOnly input parameter is true, this specifies that, for each returned Instance, only elements (properties and qualifiers) overridden within the definition of that Instance are included [1]. If false, all elements are returned. This parameter therefore effects a CIM Server-side mechanism to filter certain elements of the returned object based on whether or not they have been propagated from the parent Class (as defined by the PROPAGATED attribute).
If the DeepInheritance input parameter is true, this specifies that, for each returned Instance of the Class, all properties of the Instance MUST be present (subject to constraints imposed by the other parameters), including any which were added by subclassing the specified Class. If false, each returned Instance includes only properties defined for the specified Class.
If the IncludeQualifiers input parameter is true, this specifies that all Qualifiers for each Instance (including Qualifiers on the Instance and on any returned Properties) MUST be included as <QUALIFIER> elements in the response. If false no <QUALIFIER> elements are present in each returned Instance.
If the IncludeClassOrigin input parameter is true, this specifies that the CLASSORIGIN attribute MUST be present on all appropriate elements in each returned Instance. If false, no CLASSORIGIN attributes are present in each returned Instance.
If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. Each returned Instance MUST NOT include elements for any Properties missing from this list. Note that if LocalOnly is specified as true (or DeepInheritance is specified as false) this acts as an additional filter on the set of Properties returned (for example, if Property A is included in the PropertyList but LocalOnly is set to true and A is not local to a returned Instance, then it will not be included in that Instance). If the PropertyList input parameter is an empty array this signifies that no Properties are included in each returned Instance. If the PropertyList input parameter is NULL this specifies that all Properties (subject to the conditions expressed by the other parameters) are included in each returned Instance.
If the PropertyList contains duplicate elements, the Server MUST ignore the duplicates but otherwise process the request normally. If the PropertyList contains elements which are invalid Property names for any target Instance, the Server MUST ignore such entries but otherwise process the request normally.
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.
virtual Array<CIMNamedInstance> enumerateInstances(
const String& nameSpace,
const String& className,
Boolean deepInheritance = true,
Boolean localOnly = true,
Boolean includeQualifiers = false,
Boolean includeClassOrigin = false,
const CIMPropertyList& propertyList = CIMPropertyList());
This operation is used to enumerate CIM Objects (Classes or Instances) that are associated to a particular source CIM Object.
Associators
<objectWithPath>* Associators (
[IN] <objectName> ObjectName,
[IN,OPTIONAL,NULL] <className> AssocClass = NULL,
[IN,OPTIONAL,NULL] <className> ResultClass = NULL,
[IN,OPTIONAL,NULL] string Role = NULL,
[IN,OPTIONAL,NULL] string ResultRole = NULL,
[IN,OPTIONAL] boolean IncludeQualifiers = false,
[IN,OPTIONAL] boolean IncludeClassOrigin = false,
[IN,OPTIONAL,NULL] string PropertyList [] = NULL
)
The ObjectName input parameter defines the source CIM Object whose associated Objects are to be returned. This may be either a Class name or Instance name (model path).
The AssocClass input parameter, if not NULL, MUST be a valid CIM Association Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Instance of this Class or one of its subclasses.
The ResultClass input parameter, if not NULL, MUST be a valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be either an Instance of this Class (or one of its subclasses) or be this Class (or one of its subclasses).
The Role input parameter, if not NULL, MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the source Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the source Object MUST match the value of this parameter).
The ResultRole input parameter, if not NULL, MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the returned Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the returned Object MUST match the value of this parameter).
If the IncludeQualifiers input parameter is true, this specifies that all Qualifiers for each Object (including Qualifiers on the Object and on any returned Properties) MUST be included as <QUALIFIER> elements in the response. If false no <QUALIFIER> elements are present in each returned Object.
If the IncludeClassOrigin input parameter is true, this specifies that the CLASSORIGIN attribute MUST be present on all appropriate elements in each returned Object. If false, no CLASSORIGIN attributes are present in each returned Object.
If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. Each returned Object MUST NOT include elements for any
Properties missing from this list. Note that if LocalOnly is specified as true (or DeepInheritance is specified as false) this acts as an additional filter on the set of Properties returned (for example, if Property A is included in the PropertyList but LocalOnly is set to true and A is not local to a returned Instance, then it will not be included in that Instance). If the PropertyList input parameter is an empty array this signifies that no Properties are included in each returned Object. If the PropertyList input parameter is NULL this specifies that all Properties (subject to the conditions expressed by the other parameters) are included in each returned Object.
If the PropertyList contains duplicate elements, the Server MUST ignore the duplicates but otherwise process the request normally. If the PropertyList contains elements which are invalid Property names for any target Object, the Server MUST ignore such entries but otherwise process the request normally.
Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-NULL value for the ResultClass parameter.
If successful, the method returns zero or more CIM Classes or Instances meeting the requested criteria. Since it is possible for CIM Objects from different hosts or namespaces to be associated, each returned Object includes location information.
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.
The associatorNames operation enumerates the names of CIM Objects that are associated to a particular source CIM Object.
This operation is used to enumerate the names of CIM Objects (Classes or Instances) that are associated to a particular source CIM Object.
AssociatorNames
<objectPath>* AssociatorNames (
[IN] <objectName> ObjectName,
[IN,OPTIONAL,NULL] <className> AssocClass = NULL,
[IN,OPTIONAL,NULL] <className> ResultClass = NULL,
[IN,OPTIONAL,NULL] string Role = NULL,
[IN,OPTIONAL,NULL] string ResultRole = NULL
)
The ObjectName input parameter defines the source CIM Object whose associated names are to be returned. This is either a Class name or Instance name (model path).
The AssocClass input parameter, if not NULL, MUST be a valid CIM Association Class name. It acts as a filter on the returned set of names by mandating that each returned name identifies an Object that MUST be associated to the source Object via an Instance of this Class or one of its subclasses.
The ResultClass input parameter, if not NULL, MUST be a valid CIM Class name. It acts as a filter on the returned set of names by mandating that each returned name identifies an Object that MUST be either an Instance of this Class (or one of its subclasses) or be this Class (or one of its subclasses).
The Role input parameter, if not NULL, MUST be a valid Property name. It acts as a filter on the returned set of names by mandating that each returned name identifies an Object that MUST be associated to the source Object via an Association in which the source Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the source Object MUST match the value of this parameter).
The ResultRole input parameter, if not NULL, MUST be a valid Property name. It acts as a filter on the returned set of names by mandating that each returned name identifies an Object that MUST be associated to the source Object via an Association in which the named returned Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the returned Object MUST match the value of this parameter).
If successful, the method returns zero or more full CIM Class paths or Instance paths of Objects meeting the requested criteria. Since it is possible for CIM Objects from different hosts or namespaces to be associated, each returned path is an absolute path that includes host and namespace information.
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.
This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).
References
<objectWithPath>* References (
[IN] <objectName> ObjectName,
[IN,OPTIONAL,NULL] <className> ResultClass = NULL,
[IN,OPTIONAL,NULL] string Role = NULL,
[IN,OPTIONAL] boolean IncludeQualifiers = false,
[IN,OPTIONAL] boolean IncludeClassOrigin = false,
[IN,OPTIONAL,NULL] string PropertyList [] = NULL
)
The ObjectName input parameter defines the target CIM Object whose referring Objects are to be returned. This is either a Class name or Instance name (model path).
The ResultClass input parameter, if not NULL, MUST be a valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be an Instance of this Class (or one of its subclasses), or this Class (or one of its subclasses).
The Role input parameter, if not NULL, MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Objects MUST refer to the target Object via a Property whose name matches the value of this parameter.
If the IncludeQualifiers input parameter is true, this specifies that all Qualifiers for each Object (including Qualifiers on the Object and on any returned Properties) MUST be included as <QUALIFIER> elements in the response. If false no <QUALIFIER> elements are present in each returned Object.
If the IncludeClassOrigin input parameter is true, this specifies that the CLASSORIGIN attribute MUST be present on all appropriate elements in each returned Object. If false, no CLASSORIGIN attributes are present in each returned Object.
If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. Each returned Object MUST NOT include elements for any
Properties missing from this list. Note that if LocalOnly is specified as true (or DeepInheritance is specified as false) this acts as an additional filter on the set of
Properties returned (for example, if Property A is included in the PropertyList but LocalOnly is set to true and A is not local to a returned Instance, then it will not be included in that Instance). If the PropertyList input parameter is an empty array this signifies that no Properties are included in each returned Object. If the PropertyList input parameter is NULL this specifies that all Properties (subject to the conditions expressed by the other parameters) are included in each returned Object.
If the PropertyList contains duplicate elements, the Server MUST ignore the duplicates but otherwise process the request normally. If the PropertyList contains elements
which are invalid Property names for any target Object, the Server MUST ignore such entries but otherwise process the request normally.
Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-NULL value for the ResultClass parameter.
If successful, the method returns zero or more CIM Classes or Instances meeting the requested criteria. Since it is possible for CIM Objects from different hosts or namespaces to be associated, each returned Object includes location information.
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.
This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).
ReferenceNames
<objectPath>* ReferenceNames (
[IN] <objectName> ObjectName,
[IN,OPTIONAL,NULL] <className> ResultClass = NULL,
[IN,OPTIONAL,NULL] string Role = NULL
)
The ObjectName input parameter defines the target CIM Object whose referring object names are to be returned. It may be either a Class name or an Instance name (model path).
The ResultClass input parameter, if not NULL, MUST be a valid CIM Class name. It acts as a filter on the returned set of Object Names by mandating that each returned Object Name MUST identify an Instance of this Class (or one of its subclasses), or this Class (or one of its subclasses).
The Role input parameter, if not NULL, MUST be a valid Property name. It acts as a filter on the returned set of Object Names by mandating that each returned Object Name MUST identify an Object that refers to the target Instance via a Property whose name matches the value of this parameter.
If successful, the method returns the names of zero or more full CIM Class paths or Instance paths of Objects meeting the requested criteria. Since it is possible for CIM Objects from different hosts or namespaces to be associated, each returned path is an absolute path that includes host and namespace information.
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.
This operation is used to retrieve a single property value from a CIM Instance in the target Namespace.
GetProperty
<propertyValue>?GetProperty (
[IN] <instanceName> InstanceName,
[IN] string PropertyName
)
The InstanceName input parameter specifies the name of the Instance (model path) from which the Property value is requested.
The PropertyName input parameter specifies the name of the Property whose value is to be returned.
If successful, the return value specifies the value of the requested Property. 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.
virtual CIMValue getProperty(
const String& nameSpace,
const CIMReference& instanceName,
const String& propertyName);
This operation is used to set a single property value in a CIM Instance in the target Namespace.
SetProperty
void SetProperty (
[IN] <instanceName> InstanceName,
[IN] string PropertyName,
[IN,OPTIONAL,NULL] <propertyValue> NewValue = NULL
)
The InstanceName input parameter specifies the name of the Instance (model path) for which the Property value is to be updated.
The PropertyName input parameter specifies the name of the Property whose value is to be updated.
The NewValue input parameter specifies the new value for the Property (which may be NULL).
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.
virtual void setProperty(
const String& nameSpace,
const CIMReference& instanceName,
const String& propertyName,
const CIMValue& newValue = CIMValue());
This operation is used to retrieve a single Qualifier declaration from the target Namespace.
GetQualifier
<qualifierDecl> GetQualifier (
[IN] string QualifierName
)
The QualifierName input parameter identifies the Qualifier whose declaration to be retrieved.
If successful, the method returns the Qualifier declaration for the named Qualifier.
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.
virtual CIMQualifierDecl getQualifier(
const String& nameSpace,
const String& qualifierName);
This operation is used to create or update a single Qualifier declaration in the target Namespace. If the Qualifier declaration already exists it is overwritten.
SetQualifier
void SetQualifier (
[IN] <qualifierDecl> QualifierDeclaration
)
The QualifierDeclaration input parameter defines the Qualifier Declaration to be added to the Namespace.
If successful, the Qualifier declaration MUST have been added to the target Namespace. If a Qualifier declaration with the same Qualifier name already existed, then it MUST have been replaced by the new declaration.
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.
virtual void setQualifier(
const String& nameSpace,
const CIMQualifierDecl& qualifierDeclaration);
This operation is used to delete a single Qualifier declaration from the target Namespace.
DeleteQualifier
void DeleteQualifier (
[IN] string QualifierName
)
The QualifierName input parameter identifies the Qualifier whose declaration to be deleted.
If successful, the specified Qualifier declaration MUST have been deleted from the Namespace.
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.
virtual void deleteQualifier(
const String& nameSpace,
const String& qualifierName);
This operation is used to enumerate Qualifier declarations from the target Namespace.
EnumerateQualifiers
<qualifierDecl>* EnumerateQualifiers (
)
If successful, the method returns zero or more Qualifier declarations.
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.
virtual Array<CIMQualifierDecl> enumerateQualifiers(
const String& nameSpace);
This operation is used to execute a query against the target Namespace.
ExecQuery
<object>* ExecQuery (
[IN] string QueryLanguage,
[IN] string Query
)
The QueryLanguage input parameter defines the query language in which the Query parameter is expressed.
The Query input parameter defines the query to be executed.
Neither the Query language nor the format of the Query are defined by this specification. It is anticipated that Query languages will be submitted to the DMTF as separate proposals.
A mechanism whereby CIM Servers can declare which query languages they support (if any) is defined in Determining CIM Server Capabilities.
If successful, the method returns zero or more CIM Classes or Instances that correspond to the results set of the query.
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.
/// ATTN: should return Array<CIMObject>
virtual Array<CIMInstance> execQuery(
const String& queryLanguage,
const String& query) ;
---END OF DOCUMENT--