Delete Resource from Access Control for VPC Server Type

If you remove a compute/data store/network zone from the Access Control, it will not be possible to edit the resources of the servers running in this zone(s).

To delete resources 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/344/access_controls/delete.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<access_control><type>data_store_zone_resource</type><bucket_id>344</bucket_id><server_type>vpc</server_type><target_id>105</target_id></access_control>'

JSON Request Example

1
curl -i -X DELETE http://onapp.test/billing/buckets/344/access_controls/delete.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"access_control": {"type": "data_store_zone_resource", "bucket_id": 344, "server_type": "vpc", "target_id": 105}}'

Where:

type - the type of the resource for which configuration is set, it can be one of the following values:

  • virtual_servers_resource
  • application_servers_resource
  • compute_zone_resource
  • data_store_zone_resource
  • network_zone_resource

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. For VPS resources, it is vpc.

target_id - the ID of the resource which is deleted