ServerList

(Difference between revisions)
Jump to: navigation, search
(JSON)
Line 1: Line 1:
Lists all server.
+
This operation will list all servers.
  
 
'''GET''' /servers?''name=serverName&status=serverStatus&image=imageRef''
 
'''GET''' /servers?''name=serverName&status=serverStatus&image=imageRef''

Revision as of 13:38, 2 February 2012

This operation will list all servers.

GET /servers?name=serverName&status=serverStatus&image=imageRef

Parameters

name - string
Optional Server name to search for.
status - string
Optional Server status to search for. Values: BUILD, ACTIVE, SUSPENDED, DELETED, UNKNOWN
image - string
Optional Absolute URL of the image to filter servers by. e.g. http://127.0.0.1:6543/images/debian_lenny_template/

Result

JSON

{
   "servers":[
      {
         "id":"michalski275226-AUS001-0005",
         "links":[
            {
               "href":"http://127.0.0.1:6543/servers/michalski275226-AUS001-0005/",
               "rel":"self"
            }
         ]
      },
      {
         "id":"michalski275226-AUS001-0001",
         "links":[
            {
               "href":"http://127.0.0.1:6543/servers/michalski275226-AUS001-0001/",
               "rel":"self"
            }
         ]
      },
      {
         "id":"michalski275226-AUS001-0003",
         "links":[
            {
               "href":"http://127.0.0.1:6543/servers/michalski275226-AUS001-0003/",
               "rel":"self"
            }
         ]
      }
   ]
}


id - string
Unique identifier for this server.
links - array
Hypermedia for this resource.


blog comments powered by Disqus


Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox