Return to createNameSpace.html CVS log | Up to [Pegasus] / pegasus / cgi / htdocs |
File: [Pegasus] / pegasus / cgi / htdocs / Attic / createNameSpace.html
(download)
/
(as text)
Revision: 1.3, Wed Feb 21 01:53:08 2001 UTC (23 years, 4 months ago) by karl Branch: MAIN CVS Tags: version_0_8 Changes since 1.2: +4 -1 lines Namespaces stuff |
<html> <body bgcolor="#CCCCCC"> <table width="100%"> <tr> <td width="50%" align="bottom"><h1>Create NameSpace CIM Operation</h1><td> <td width="50%" align="right"> <img border=1 src="/pegasus/icons/OpenGroupLogo.gif"> </td> </tr> </table> <hr> <form METHOD=GET ACTION="/pegasus/cgi-bin/CGIClient"> <INPUT TYPE="hidden" NAME="Operation" VALUE="CreateNameSpace"> <p>The <tt>CreateNameSpace</tt> method creates a new namespace in the Pegasus repository. <p><b><a href="#NameSpace">NameSpace</a></b> <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root"> Defines the root namespace where the __Namespace class is defined. (DO NOT CHANGE) <p><b>New NameSpace Name</b> <INPUT TYPE="text" NAME="NewNameSpace" SIZE=30> String that defines the namespace to be created. <p><INPUT TYPE="submit" VALUE="Submit Request"> <INPUT TYPE="reset" VALUE="Reset Form"> <p> <b>RETURN - </b>If successful, the return value is a single CIM Class.If unsuccessful, one of the CIM status codes show below 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. <UL> <LI>CIM_ERR_INVALID_NAMESPACE <LI>CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters) <LI>CIM_ERR_ACCESS_DENIED <LI>CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified namespace) <LI>CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM Instance does not exist in the specified namespace) <LI>CIM_ERR_FAILED (some other unspecified error occurred) </LI> </UL> </form> <p><b> ADDDITIONAL Description of Fields</b> <hr> <p>Create Namespace is not an intrinsic CIM operation today. In accordance with the current CIM operations over HTTP specification, the creation of namespaces is executed instances of the class __Namespace. This class is defined with a single property, the name property which is the key. Creation of an instance of of this class causes a new namespace to be defined. If the namespace already exists, the create namespace returns the error CIM_ERR_ALREADY_EXISTS.</p> <p>NOTE: In the next version of CIM Operations over HTTP, the technique will be changed to allow for intrinsic methods that permit both creation an deletion of namespaces.</p> <p>In the Pegasus implementaiton, namespace manipulation is managed through a special provider __Namespace that is registered for the __Namespace class and returns creates and deletes namespaces as well as returning instances of __Namespace corresponding to the current set of namespaces.</p> <p><b>Return - </b>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 the CIM specification), 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.</p> <UL> <LI>CIM_ERR_ACCESS_DENIED <LI>CIM_ERR_NOT_SUPPORTED <LI>CIM_ERR_INVALID_NAMESPACE <LI>CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters) <LI>CIM_ERR_INVALID_CLASS (the CIM Class of which this is to be a new Instance does not exist) <LI>CIM_ERR_ALREADY_EXISTS (the CIM Instance already exists) <LI>CIM_ERR_FAILED (some other unspecified error occurred) </UL> The following is the CIM operation that is used to create a new namespace. <PRE> virtual void createInstance( const String& nameSpace, CIMInstance& newInstance) = </PRE> </body> </html>
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |