删除配置项类型

要删除配置项类型,请使用以下URL格式:

http://<servername>:<portnumber>/api/cmdb/citype/CI Type Name/delete

假设您要删除端口号为8080的本地服务器的CI类型服务器,则URL应指定为:

http://localhost:8080/api/cmdb/citype/My Server/delete/

关键点:

  1. 操作名"delete"应通过密钥"OPERATION_NAME"作为"POST attribute"发送。

  2. 技术员密钥应通过密钥"TECHNICIAN_KEY"作为"POST attribute"发送。

注意事项

如果未指定结果格式,则API将以JSON格式返回输出

  • 参数Result Format - Optional指定返回格式(XML或JSON),如果未指定返回格式,则API将以JSON格式返回输出。


XML输出格式示例


<?xml version="1.0" encoding="UTF-8"?>
<API version="1.0">
<response>
<result>
<statuscode>200</statuscode>
<status>Success</status>
<message>1 records removed successfully.</message>
<created-date>Mar 22, 2013 10:58 AM</created-date>
</result>
</response>
</API>


JSON输出格式示例


{
"API": {
"response": {
"result": {
"created-date": "Sep 2, 2013 03:23 PM",
"message": "1 records removed successfully.",
"status": "Success",
"statuscode": "200"
}
},
"version": "1.0"
}
}