API / Endpoints

The Zare API exposes all functionality of the manager via a RESTful API


Single Server


POST https://manager.zare.com/api/v1/dedicated
Parameter Description
HTTP_AUTHORIZATION (header) Your secret key from the API section of the manager. This must be sent as a header.
server_id This is your servers unique ID, you can find this by listing all dedicated servers over the API or via the URL bar in the Zare manager.

All Servers


POST https://manager.zare.com/api/v1/dedicated
Parameter Description
HTTP_AUTHORIZATION (header) Your secret key from the API section of the manager. This must be sent as a header.

Power Cycle Server


POST https://manager.zare.com/api/v1/dedicated/powercycle
Parameter Description
HTTP_AUTHORIZATION (header) Your secret key from the API section of the manager. This must be sent as a header.
server_id This is your servers unique ID, you can find this by listing all dedicated servers over the API or via the URL bar in the Zare manager.

Power On Server


POST https://manager.zare.com/api/v1/dedicated/poweron
Parameter Description
HTTP_AUTHORIZATION (header) Your secret key from the API section of the manager. This must be sent as a header.
server_id This is your servers unique ID, you can find this by listing all dedicated servers over the API or via the URL bar in the Zare manager.

Power Off Server


POST https://manager.zare.com/api/v1/dedicated/poweroff
Parameter Description
HTTP_AUTHORIZATION (header) Your secret key from the API section of the manager. This must be sent as a header.
server_id This is your servers unique ID, you can find this by listing all dedicated servers over the API or via the URL bar in the Zare manager.

Server Graphs


POST https://manager.zare.com/api/v1/dedicated/graphs
Parameter Description
HTTP_AUTHORIZATION (header) Your secret key from the API section of the manager. This must be sent as a header.
server_id This is your servers unique ID, you can find this by listing all dedicated servers over the API or via the URL bar in the Zare manager.
type Type of data to display. Valid values are port_bits, port_percent, port_errors, port_upkts.
scale The amount of data to display. Valid values are day, week, month.
Response
{"success" : true, "graph_binary" : ""}

Firewall History


POST https://manager.zare.com/api/v1/dedicated/firewall
Parameter Description
HTTP_AUTHORIZATION (header) Your secret key from the API section of the manager. This must be sent as a header.
server_id This is your servers unique ID, you can find this by listing all dedicated servers over the API or via the URL bar in the Zare manager.
ip Optional - if you want results from a specific IP assigned to your server, otherwise it will display data from all IPs.
scale The amount of data to display. Valid values are hour, day, week.
Response
{"success" : true, "firewall" : ""}

Got any questions? Contact us today.