ServerListDetails

(Difference between revisions)
Jump to: navigation, search
Line 15: Line 15:
 
== Result ==
 
== Result ==
 
=== JSON ===
 
=== JSON ===
 
 
<big><source lang="javascript">
 
<big><source lang="javascript">
 
{
 
{
Line 27: Line 26:
 
               {
 
               {
 
                   "version":4,
 
                   "version":4,
                   "addr":"216.185.158.89"
+
                   "addr":"{ip_address}"
 
               }
 
               }
 
             ],
 
             ],
Line 33: Line 32:
 
               {
 
               {
 
                   "version":4,
 
                   "version":4,
                   "addr":"172.16.2.143"
+
                   "addr":"{ip_address}"
 
               }
 
               }
 
             ]
 
             ]
Line 39: Line 38:
 
         "links":[
 
         "links":[
 
             {
 
             {
               "href":"http://127.0.0.1:6543/servers/michalski275226-AUS001-0005/",
+
               "href":"http://{server_name}/servers/{server_id}/",
 
               "rel":"self"
 
               "rel":"self"
 
             }
 
             }
Line 47: Line 46:
 
             "links":[
 
             "links":[
 
               {
 
               {
                   "href":"http://127.0.0.1:6543/images/20GB_Ubuntu%2010.10%20x64%20R1soft/",
+
                   "href":"http://{server_name}/images/20GB_Ubuntu%2010.10%20x64%20R1soft/",
 
                   "rel":"self"
 
                   "rel":"self"
 
               }
 
               }
Line 53: Line 52:
 
             "id":"20GB_Ubuntu 10.10 x64 R1soft"
 
             "id":"20GB_Ubuntu 10.10 x64 R1soft"
 
         },
 
         },
         "userId":"michalski275226",
+
         "userId":"{user_account_id}",
 
         "flavor":{
 
         "flavor":{
 
             "name":"1024MB Server3",
 
             "name":"1024MB Server3",
 
             "links":[
 
             "links":[
 
               {
 
               {
                   "href":"http://127.0.0.1:6543/flavors/3/",
+
                   "href":"http://{server_name}/flavors/3/",
 
                   "rel":"self"
 
                   "rel":"self"
 
               }
 
               }
Line 64: Line 63:
 
             "id":3
 
             "id":3
 
         },
 
         },
         "id":"michalski275226-AUS001-0005",
+
         "id":"{server_id}",
         "name":"michalski275226-AUS001-0005",
+
         "name":"{descriptive_server_name}",
 
         "created":"2011-12-05T12:51:28",
 
         "created":"2011-12-05T12:51:28",
 
         "tenantId":"",
 
         "tenantId":"",
         "accessIPv4":"216.185.158.89",
+
         "accessIPv4":"{ip_address}",
 
         "accessIPv6":"",
 
         "accessIPv6":"",
 
         "progress":100,
 
         "progress":100,
Line 83: Line 82:
 
               {
 
               {
 
                   "version":4,
 
                   "version":4,
                   "addr":"207.150.204.164"
+
                   "addr":"{ip_address}"
 
               }
 
               }
 
             ],
 
             ],
Line 89: Line 88:
 
               {
 
               {
 
                   "version":4,
 
                   "version":4,
                   "addr":"172.16.1.30"
+
                   "addr":"{ip_address}"
 
               }
 
               }
 
             ]
 
             ]
Line 95: Line 94:
 
         "links":[
 
         "links":[
 
             {
 
             {
               "href":"http://127.0.0.1:6543/servers/michalski275226-AUS001-0001/",
+
               "href":"http://{server_name}/servers/{server_id}/",
 
               "rel":"self"
 
               "rel":"self"
 
             }
 
             }
Line 103: Line 102:
 
             "links":[
 
             "links":[
 
               {
 
               {
                   "href":"http://127.0.0.1:6543/images/20GB_Windows%202008%20R2%20Standard%20with%20R1soft/",
+
                   "href":"http://{server_name}/images/20GB_Windows%202008%20R2%20Standard%20with%20R1soft/",
 
                   "rel":"self"
 
                   "rel":"self"
 
               }
 
               }
Line 109: Line 108:
 
             "id":"20GB_Windows 2008 R2 Standard with R1soft"
 
             "id":"20GB_Windows 2008 R2 Standard with R1soft"
 
         },
 
         },
         "userId":"michalski275226",
+
         "userId":"{user_account_id}",
 
         "flavor":{
 
         "flavor":{
 
             "name":"1024MB Server3",
 
             "name":"1024MB Server3",
 
             "links":[
 
             "links":[
 
               {
 
               {
                   "href":"http://127.0.0.1:6543/flavors/3/",
+
                   "href":"http://{server_name}/flavors/3/",
 
                   "rel":"self"
 
                   "rel":"self"
 
               }
 
               }
Line 120: Line 119:
 
             "id":3
 
             "id":3
 
         },
 
         },
         "id":"michalski275226-AUS001-0001",
+
         "id":"{server_id}",
         "name":"michalski275226-AUS001-0001",
+
         "name":"{descriptive_server_name}",
 
         "created":"2011-11-17T10:14:58",
 
         "created":"2011-11-17T10:14:58",
 
         "tenantId":"",
 
         "tenantId":"",
         "accessIPv4":"207.150.204.164",
+
         "accessIPv4":"{ip_address}",
 
         "accessIPv6":"",
 
         "accessIPv6":"",
 
         "progress":100,
 
         "progress":100,
Line 153: Line 152:
  
 
; name - ''string''
 
; name - ''string''
: Name for this server.
+
: Descriptive name for this server.
  
 
; created - ''string''
 
; created - ''string''
Line 208: Line 207:
 
; flavor.id - ''string''
 
; flavor.id - ''string''
 
: Unique identifier for flavor this server is based on.
 
: Unique identifier for flavor this server is based on.
 +
  
 
<!--  THIS CODE ENABLES DISQUS COMMENTS ON THE PAGE - DELETE TO DISABLE COMMENTING-->
 
<!--  THIS CODE ENABLES DISQUS COMMENTS ON THE PAGE - DELETE TO DISABLE COMMENTING-->

Revision as of 19:40, 12 April 2012

This operation will list all servers including their details.

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

Contents

Parameters

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

Result

JSON

{
   "servers":[
      {
         "status":"ACTIVE",
         "updated":"",
         "hostId":"host012-aus01.hyperv.hostway",
         "addresses":{
            "public":[
               {
                  "version":4,
                  "addr":"{ip_address}"
               }
            ],
            "private":[
               {
                  "version":4,
                  "addr":"{ip_address}"
               }
            ]
         },
         "links":[
            {
               "href":"http://{server_name}/servers/{server_id}/",
               "rel":"self"
            }
         ],
         "image":{
            "name":"Ubuntu 10.10 x64",
            "links":[
               {
                  "href":"http://{server_name}/images/20GB_Ubuntu%2010.10%20x64%20R1soft/",
                  "rel":"self"
               }
            ],
            "id":"20GB_Ubuntu 10.10 x64 R1soft"
         },
         "userId":"{user_account_id}",
         "flavor":{
            "name":"1024MB Server3",
            "links":[
               {
                  "href":"http://{server_name}/flavors/3/",
                  "rel":"self"
               }
            ],
            "id":3
         },
         "id":"{server_id}",
         "name":"{descriptive_server_name}",
         "created":"2011-12-05T12:51:28",
         "tenantId":"",
         "accessIPv4":"{ip_address}",
         "accessIPv6":"",
         "progress":100,
         "metadata":{
 
         }
      },
      {
         "status":"ACTIVE",
         "updated":"",
         "hostId":"host008-aus01.hyperv.hostway",
         "addresses":{
            "public":[
               {
                  "version":4,
                  "addr":"{ip_address}"
               }
            ],
            "private":[
               {
                  "version":4,
                  "addr":"{ip_address}"
               }
            ]
         },
         "links":[
            {
               "href":"http://{server_name}/servers/{server_id}/",
               "rel":"self"
            }
         ],
         "image":{
            "name":"Windows 2008 R2 Standard ",
            "links":[
               {
                  "href":"http://{server_name}/images/20GB_Windows%202008%20R2%20Standard%20with%20R1soft/",
                  "rel":"self"
               }
            ],
            "id":"20GB_Windows 2008 R2 Standard with R1soft"
         },
         "userId":"{user_account_id}",
         "flavor":{
            "name":"1024MB Server3",
            "links":[
               {
                  "href":"http://{server_name}/flavors/3/",
                  "rel":"self"
               }
            ],
            "id":3
         },
         "id":"{server_id}",
         "name":"{descriptive_server_name}",
         "created":"2011-11-17T10:14:58",
         "tenantId":"",
         "accessIPv4":"{ip_address}",
         "accessIPv6":"",
         "progress":100,
         "metadata":{
 
         }
      }
   ]
}


server

id - string
Unique identifier for this server.
links - list
Hypermedia for this resource.
status - string
Current state of the server. Values: BUILD, ACTIVE, SUSPENDED, DELETED, UNKNOWN
hostId - string
Id of the physical host this virtual machine is running on.
userId - string
Unique identifier for the owner of this server.
name - string
Descriptive name for this server.
created - string
The date and time this server was created. ISO 8601 format, YYYY-MM-DDTHH:MM:SS.
accessIPv4 - string
The default included public IPv4 address.
progress - number
The progress of the current this server while in the BUILD status. The value is in the range of 0 - 100, but currently will only even be 0, 50, 100.
metadata - object
Unused always an empty object.
tenantId
Unused always always null.
accessIPv6
Unused always null.
updated
Unused always null.

addresses

addresses.public.version - number
IP version of this address. Values: 4
addresses.public.addr = string
Public IP address of this server
addresses.private.version - number
IP version of this address. Values: 4
addresses.private.addr - string
Private IP address of this server

image

image.name - string
The display name of the image this server is based on.
image.links - list
Hypermedia for the image.
image.id - string
Unique identifier for image this server is based on.

flavor

flavor.name - string
The display name of the flavor this server is based on.
flavor.links - list
Hypermedia for the flavor.
flavor.id - string
Unique identifier for flavor this server is based on.


blog comments powered by Disqus


Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox