Edit Blacklisted Domains

To edit blacklisted domains, 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="array"><hostname_blacklist>site4.com</hostname_blacklist></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":["site4.com"]}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

Where:

hostname_blacklist - the label of the domain to be blacklisted from being accelerated