要删除配置项,请使用以下URL格式:
http://<servername>:<portnumber>/api/change/cmdb/ci/CI Type:CI Name/delete/
假设您要在本地服务器上删除端口号为8080的请求人CI,则URL应指定为:
http://localhost:8080/api/cmdb/ci/Requester:Mukul/delete/
关键点:
操作名"delete"应通过密钥"OPERATION_NAME"作为"POST attribute"发送。
技术员密钥应通过密钥"TECHNICIAN_KEY"作为"POST attribute"发送。
注意事项: 如果未指定结果格式,则API将以JSON格式返回输出。
|
<?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>
{
"API": {
"response": {
"result": {
"created-date": "Sep 2, 2013 03:10 PM",
"message": "1 records removed successfully.",
"status": "Success",
"statuscode": "200"
}
},
"version": "1.0"
}
}