Deleting a policy
The delete API uses the DELETE method to remove a policy. You must provide authentication credentials by using the login API before accessing the data. For information about the authentication process, see Web services authentication.
URL to access the delete API
The generic format of a URL for the delete API is as follows:
http://<TSPShostname:port#>/tsws/10.0/api/unifiedadmin/Policy/<id>/delete?idType=id
Response information for the delete API
A sample JSON response is as follows:
{
"response": [
{
"name": "policy203",
"statusCode": "200",
"statusMsg": "Successfully deleted policy",
"resultHandle": "724"
},
{
"name": "policy203_blackout",
"statusCode": "200",
"statusMsg": "Successfully deleted policy",
"resultHandle": "725"
}
],
"statusCode": "200",
"statusMsg": "OK",
"responseTimeStamp": "2012-06-20T10:36:50",
}
"response": [
{
"name": "policy203",
"statusCode": "200",
"statusMsg": "Successfully deleted policy",
"resultHandle": "724"
},
{
"name": "policy203_blackout",
"statusCode": "200",
"statusMsg": "Successfully deleted policy",
"resultHandle": "725"
}
],
"statusCode": "200",
"statusMsg": "OK",
"responseTimeStamp": "2012-06-20T10:36:50",
}
Related topics
Creating-a-policy-using-web-services
Managing-policies-using-web-services
Performing-Central-Monitoring-Administration-functions-with-web-services
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*