Delete Provider
Deleting a single Provider
Request:
DELETE /api/provider/105
Or via the delete action as follows:
POST /api/provider/105
{
"action" : "delete"
}
Response:
{
"success": true,
"message": "Provider id:106 name:'rhevm102' deleting",
"task_id": 625,
"task_href": "http://localhost:3000/api/tasks/625",
"href": "http://localhost:3000/api/providers/106"
}
Delete actions are done asynchronously as it could take a while to complete. The delete task can be queried if needed as follows |
Deleting multiple Providers
Request:
POST /api/providers
{
"action" : "delete",
"resources" : [
{ "href" : "http://localhost:3000/api/providers/107" },
{ "href" : "http://localhost:3000/api/providers/108" }
]
}
Response:
{
"results": [
{
"success": true,
"message": "Provider id:107 name:'rhevm102' deleting",
"task_id": 626,
"task_href": "http://localhost:3000/api/tasks/626",
"href": "http://localhost:3000/api/providers/107"
},
{
"success": true,
"message": "Provider id:108 name:'rhevm103' deleting",
"task_id": 627,
"task_href": "http://localhost:3000/api/tasks/627",
"href": "http://localhost:3000/api/providers/108"
}
]
}