WaveCDN API

Add an origin

Add an origin with the specified parameters to a given setup. This only works for setups with source=origin. You can add up to 3 origins per setup.

Request

POST https://api.wavecdn.com/v3/origin

Request content

setup_id={..}

The id of the setup for which an origin should be added.

host={..}

The origin host. This must be a valid ip.

interface={..}

The interfaced used for communication. Possible values are normal (HTTP), ssl (HTTPS) and hybrid (both).

normal_port={..}

The origin's normal port. You probably want port 80 here. Only needed if the interface is normal or hybrid.

ssl_port={..}

The origin's ssl port. You probably want port 443 here. Only needed if the interface is ssl or hybrid.

Response

On success, the status code is 201 and the new origin is returned. If you already have 3 origins and you try to add another, you get the status code 403.

<?xml version="1.0" encoding="UTF-8"?>
<origin>
  <id>200</id>
  <setup_id>100</setup_id>
  <host>1.2.3.4</host>
  <interface>normal</interface>
  <normal_port>80</normal_port>
</origin>