version 1.5, 2001/06/12 14:32:25
|
version 1.6, 2001/06/30 15:28:09
|
|
|
<body bgcolor="#CCCCCC"> | <body bgcolor="#CCCCCC"> |
<table width="100%"> | <table width="100%"> |
<tr> | <tr> |
<td width="50%" align="bottom"><h1>DeleteClass</h1><td> |
<td width="50%" align="bottom"><h1>DeleteClass CIM Operation</h1><td> |
<td width="50%" align="right"> | <td width="50%" align="right"> |
<img border=1 src="/pegasus/icons/OpenGroupLogo.gif"> | <img border=1 src="/pegasus/icons/OpenGroupLogo.gif"> |
</td> | </td> |
</tr> | </tr> |
</table> | </table> |
<hr></hr> |
<hr> |
<form name="DeleteClass" METHOD=GET ACTION="/pegasus/cgi-bin/CGIClient"> | <form name="DeleteClass" METHOD=GET ACTION="/pegasus/cgi-bin/CGIClient"> |
<INPUT TYPE="hidden" NAME="Operation" VALUE="DeleteClass"> | <INPUT TYPE="hidden" NAME="Operation" VALUE="DeleteClass"> |
<input type="hidden" name="hostip" value="localhost"> |
<INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988"> |
<input type="hidden" name="portnum" value="5988"> |
<INPUT TYPE="hidden" NAME="debug" VALUE=""> |
<p>NameSpace <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root/cimv2"> |
<p>This deleteClass CIM Operation deletes a single Class from the target Namespace |
<p>ClassName <INPUT TYPE="text" NAME="ClassName" SIZE=30> |
<p><b>NameSpace</b> <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root/cimv2"> |
<p><INPUT TYPE="submit" VALUE="DeleteClass"> |
String that defines the target namespace. See <a |
<p><INPUT TYPE="reset" VALUE="Reset"> |
href="getnamespaces.html">NameSpace |
|
Operations</a> for more information |
|
<p><b>ClassName</b><b> </b><INPUT TYPE="text" NAME="ClassName" SIZE=30> |
|
Name of the class to be deleted |
|
<p><INPUT TYPE="submit" VALUE="DeleteClass"> |
|
<INPUT TYPE="reset" VALUE="Reset"> |
</form> | </form> |
|
|
|
|
|
<hr> |
|
<h2>Additional Information</h2> |
|
|
|
|
|
The <TT>DeleteClass</TT> method deletes a single CIM Class from the |
|
target Namespace. |
|
<p><b>NameSpace</b> The nameSpace parameter is a string that defines |
|
the target namespace. |
|
<p><b>ClassName</b> The <TT>className</TT> input parameter defines the name |
|
of the Class to be deleted. |
|
<hr> |
|
<h2>Return</h2> |
|
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. |
|
|
|
<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_NOT_FOUND (the CIM Class to be deleted does not exist) |
|
<LI>CIM_ERR_CLASS_HAS_CHILDREN (the CIM Class has one or more |
|
subclasses which cannot be deleted) |
|
<LI>CIM_ERR_CLASS_HAS_INSTANCES (the CIM Class has one or more |
|
instances which cannot be deleted) |
|
<LI>CIM_ERR_FAILED (some other unspecified error occurred) |
|
</UL> |
|
<hr> |
|
<h2> |
|
C++ API</h2> |
|
<pre> |
|
virtual void deleteClass( |
|
const String& nameSpace, |
|
const String& className) = 0; |
|
</pre> |
<script> | <script> |
DeleteClass.hostip.value = opener.top.hostip; |
document.DeleteClass.hostaddress.value = top.hostAddress; |
DeleteClass.portnum.value = opener.top.portnum; |
document.DeleteClass.debug.value = top.debug; |
|
document.DeleteClass.NameSpace.value = top.NameSpace; |
window.focus(); | window.focus(); |
</script> | </script> |
| |