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.
The id of the setup for which an origin should be added.
The origin host. This must be a valid ip.
The interfaced used for communication. Possible values are normal (HTTP), ssl (HTTPS) and hybrid (both).
The origin's normal port. You probably want port 80 here. Only needed if the interface is normal or hybrid.
The origin's ssl port. You probably want port 443 here. Only needed if the interface is ssl or hybrid.
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>220.127.116.11</host> <interface>normal</interface> <normal_port>80</normal_port> </origin>