Delete Resource from Access Control for Other Server Type
To delete a resource from access controls, use the following request:
1
2
| DELETE /billing/buckets/:bucket_id/access_controls.xml
DELETE /billing/buckets/:bucket_id/access_controls.json
|
XML Request Example
1
| curl -i -X DELETE http://onapp.test/billing/buckets/331/access_controls/delete.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<access_control><type>recipe_groups_resource</type><bucket_id>331</bucket_id><server_type>other</server_type><target_id>2</target_id></access_control>'
|
JSON Request Example
1
| curl -i -X DELETE http://onapp.test/billing/buckets/331/access_controls/delete.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"access_control": {"type": "recipe_groups_resource", "bucket_id": 331, "server_type": "other", "target_id": 2}}'
|
Where:
type - the type of the resource to be deleted from access control, it can be one of the following values:
bucket_id - the ID of the bucket with which this access control is associated
server_type - the server type this access control is applicable to, in this case, other
target_id - the ID of the resource to be deleted