{"id":335,"date":"2011-07-04T18:01:39","date_gmt":"2011-07-05T01:01:39","guid":{"rendered":"http:\/\/blog.networkpresence.co\/?p=335"},"modified":"2013-02-09T17:36:37","modified_gmt":"2013-02-10T00:36:37","slug":"vps-api-available-which-returns-json-is-web-based-for-ease-of-use","status":"publish","type":"post","link":"http:\/\/blog.networkpresence.co\/?p=335","title":{"rendered":"VPS API available which returns JSON &#038; is web-based for ease-of-use"},"content":{"rendered":"<p>Last year (2010) we <a href=\"http:\/\/netpres.com.au\/index.php\/General-Discussion\/112-VPS-API-now-available.html#112\">created an in-house API<\/a> for VPS\/VDS customers to automate management of their Network Presence VPS or VDS through simple web-based URLs that access the API and respond with simple JSON.<\/p>\n<p>Our VPS API allows you to manage &#038; report on (any of) your Network Presence VPS and some information (contact details, VPS Plan information, etc) on the Account that owns &#038; pays for the VPS.<\/p>\n<p>API functionality includes;<\/p>\n<p>+ Display the current status of your running VPS, including memory, CPU and network usage<br \/>\n+ Stop your VPS<br \/>\n+ Start your VPS<br \/>\n+ Get basic information on the VPS Account<br \/>\n+ Regeneratable &#8220;Key&#8221; or code required with each call to the API<\/p>\n<p>The way that the API works is by providing a means to generate a unique Key or code for access to the API, which means that the customer&#8217;s username and password doesn&#8217;t need to be supplied in calls to the API.<\/p>\n<p>The <a href=\"http:\/\/www.networkpresence.com.au\/forum\/3-members\/33-web-vps-management-at-network-presence.html#113\">Network Presence VPS Management page<\/a> has an option to &#8220;Generate and Store an API Key&#8221;, which is returned back on-screen and should be saved for use in calls to the API.<\/p>\n<p>Calling the API is as simple as supplying the &#8220;API Key&#8221; in standard (GET format) URLs, like:<\/p>\n<p>API-URL\/api?key=MyAPIKey?a=command<\/p>\n<p>Note: please <a href=\"http:\/\/netpr.es\/contactus\">contact us<\/a> for the full API-URL, as it&#8217;s not listed here in a public resource..<\/p>\n<p>Where &#8216;command&#8217; can be: status, info, stop, terminate, start<\/p>\n<p>status = list information about the running VPS &#038; whether the VPS is running<\/p>\n<p>info = list some account or contact information on the VPS<\/p>\n<p>stop = perform an &#8216;orderly&#8217; shutdown of the VPS (like &#8220;pressing the power button&#8221;)<\/p>\n<p>terminate = immediately shutdown the VPS (like &#8220;pulling the power cord&#8221;)<\/p>\n<p>start = perform a startup or &#8220;boot up&#8221; of the VPS<\/p>\n<p>All customers are welcome to use the API and please report and problems to us by email (ie: don&#8217;t post here for API Feedback).<\/p>\n<p>FYI &#038; regards,<br \/>\nRichard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last year (2010) we created an in-house API for VPS\/VDS customers to automate management of their Network Presence VPS or VDS through simple web-based URLs that access the API and respond with simple JSON. Our VPS API allows you to &hellip; <a href=\"http:\/\/blog.networkpresence.co\/?p=335\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[59,60,47,9],"class_list":["post-335","post","type-post","status-publish","format-standard","hentry","category-network-presence","tag-api","tag-json","tag-vds","tag-vps"],"_links":{"self":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=335"}],"version-history":[{"count":3,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":2907,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions\/2907"}],"wp:attachment":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}