WaveCDN API

Fetch a setup

Fetch the setup specified by id.

Request

GET https://api.wavecdn.com/v3/setup/{id}

Response

On success, you get the status code 200 and the specified setup. The main characteristic of the setup is the source. See the following examples.

A setup with source=storage has an additional storage tag:

<?xml version="1.0" encoding="UTF-8"?>
<setup>
  <id>100</id>
  <domain>testsetup.wavecdn.net</domain>
  <source>storage</source>
  <storage>
    <host>testsetup.wavestorage.net</host>
    <space>1073741824</space>
    <user>testsetup.wavecdn.net</user>
    <password>VnaGpiCSbb</password>
  </storage>
  <cnames>
  </cnames>
  <rules>
  </rules>
</setup>

A setup with source=origin has the addiontal tags origin_host_header and origins:

<?xml version="1.0" encoding="UTF-8"?>
<setup>
  <id>100</id>
  <domain>testsetup.wavecdn.net</domain>
  <source>origin</source>
  <origin_host_header>testsetup.wavecdn.net</origin_host_header>
  <origins>
  </origins>
  <cnames>
  </cnames>
  <rules>
  </rules>
</setup>

If a setup with the given id could not be found, the status code 404 is returned.