Get List of Blacklisted Domains

To view the list of blacklisted domains, use the following request:

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

XML Request Example

curl -i -X GET http://onapp.test/virtual_machines/xungcyuakcyyeb/blacklist_domains.xml  -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

curl -i -X GET http://onapp.test/virtual_machines/xungcyuakcyyeb/blacklist_domains.json  -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output Example

<hash>
  <blacklist_domains type="array">
    <blacklist_domain>site4.com</blacklist_domain>
    <blacklist_domain>site5.com</blacklist_domain>
  </blacklist_domains>
</hash>

Where:

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