Remove All Domains from Blacklist.

To remove all IP addresses from a blacklist, use the following request:

PUT /virtual_machines/:virtual_machine_id/blacklist_domains.xml
PUT /virtual_machines/:virtual_machine_id/blacklist_domains.json

XML Request Example

curl -i -X PUT http://onapp.test/virtual_machines/xungcyuakcyyeb/blacklist_domains.xml -d '<blacklist_domains><hostname_blacklists type="string"></hostname_blacklists></blacklist_domains>' -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

curl -i -X PUT http://onapp.test/virtual_machines/xungcyuakcyyeb/blacklist_domains -d '{"blacklist_domains":{"hostname_blacklists":""}}' -u user:usepass -H 'Accept: application/json' -H 'Content-type: application/json'