要删除 CI,请使用以下 URL 格式:
http://<servername>:<portnumber>/api/change/cmdb/ci/CI 类型:CI 名称/delete/
假设您要在端口号为 8080 的本地服务器中删除一个 requester CI,则 URL 应为:
http://localhost:8080/api/cmdb/ci/Requester:Mukul/delete/
要点:
| 注意: 如果未指定结果格式,则 API 将以 JSON 格式返回输出。
|
示例 XML 输出:
<?xml version="1.0" encoding="UTF-8"?>
<API version="1.0">
<response>
<result>
<statuscode>200</statuscode>
<status>成功</status>
<message>已成功删除 1 条记录。</message>
<created-date>2013 年 3 月 22 日 上午 10:58</created-date>
</result>
</response>
</API>
示例 JSON 输出:
{
"API": {
"response": {
"result": {
"created-date": "2013 年 9 月 2 日 下午 03:10",
"message": "已成功删除 1 条记录。",
"status": "成功",
"statuscode": "200"
}
},
"version": "1.0"
}
}