API

SeFlow Valhalla CP support http based API that allows you and your clients to interact directly with SeFlow customer portal. API can be disabled at any time and access is only granted with proper key and username.


Index

>> Check Autorization

>> Setup Reverse DNS

Dedicated Servers

>> Dedicated Server Bandwidth Graph

>> Reboot Dedicated Server

>> Check Server Status

>> Suspend Server

>> Reactivate Server

>> Update Portable IP

>> List Portable IP

 

Check Authorization

Action checkauth
Method GET
Variables -
Example Output

JSON

Success:

{"status":"success","statusmsg":"Login OK"}

Error:

{"status":"error","statusmsg":"Wrong Username or Password"}

 

 

Setup Reverse DNS

Action changerdns
Method GET
Variables ip (ip address to change rdns)
rdns (Host of reverse dns)
Example Output

JSON

Success:

{"status":"success","statusmsg":"Operation completed. rDNS will be avaiable within 24 hours"}

Error:

{"status":"error","statusmsg":"No such server or server not yet active"}

 

 

Dedicated Server Bandwidth Graph

Action dserver-graph
Method GET
Variables serverid (server name visible in the customer portal)
Example Output

JSON

Success:

{"status":"success","statusmsg":"","loadgraph":null,"dailygraph":"FULL-DAILY-GRAPH-PATH", "weekgraph":"FULL-WEEK-GRAPH-PATH","monthgraph":"FULL-DAILY-MONTH-PATH", "yeargraph":"FULL-YEAR-GRAPH-PATH"}

Error:

{"status":"error","statusmsg":"No such server or server not yet active","loadgraph":null}

 

 

Reboot Dedicated Server

Action reboot-dserver
Method GET
Variables serverid (server name visible in the customer portal)
Example Output

JSON

Success:

{"status":"success","statusmsg":"Reboot in Progress"}

Error:

{"status":"error","statusmsg":"No such server or server not yet active"}

 

 

Check Server Status

Action checkstatus
Method GET
Variables serverid (server name visible in the customer portal)
Example Output

JSON

Success:

{"status":"success","statusmsg":"Server is active"}

Success:

{"status":"success","statusmsg":"Server is canceled"}

Success:

{"status":"success","statusmsg":"Server is suspended by SeFlow"}

Success:

{"status":"success","statusmsg":"Server is suspended by customer"}

Error:

{"status":"error","statusmsg":"No such server or server not yet active"}

 

 

Suspend Server

Action suspendserver
Method GET
Variables serverid (server name visible in the customer portal)
Example Output

JSON

Success:

{"status":"success","statusmsg":"Server Suspended"}

Error:

{"status":"error","statusmsg":"No such server or server not yet active"}

 

 

Reactivate Server

Action activateserver
Method GET
Variables serverid (server name visible in the customer portal)
Example Output

JSON

Success:

{"status":"success","statusmsg":"Server reactivated"}

Error:

{"status":"error","statusmsg":"No such server or server not yet active"}

 

 

Update Portable IP

Action changeiproute
Method GET
Variables portableip (assigned portable IP)
target_ip (destination primary server IP)
Example Output

JSON

Success:

{"status":"success","statusmsg":"Portable IP route was update succesfully"}

Error:

{"status":"error","statusmsg":"No such ip"}
{"status":"error","statusmsg":"No such target server"}

 

 

List Portable IP

Action showportableip
Method GET
Variables -
Example Output

JSON

Success:

{"status":"success","statusmsg":"1st_portableip:iprouted 2st_portableip:iprouted "}
example: {"status":"success","statusmsg":"192.168.0.1:10.0.10.1 192.168.0.2:10.0.3.14 "}

Error:

{"status":"error","statusmsg":"No Portable IP"}
Posted - Fri, Sep 13, 2013 12:24 AM. This article has been viewed 3149 times.
Online URL: http://kb.seflow.it/article/api-28.html