Obtain Server Information
Description
Use this request to obtain information about the specified server. The {ve-name}
part of the request URL must contain the server name.
Syntax
GET baseURL/ve/{ve-name}
Request Parameters
None
Response
Element |
Attribute |
Description |
---|---|---|
|
|
Container for server information. |
|
|
Server database ID (used internally). Type: int |
|
|
Previous server database ID. This element is optional and is only included for servers that were recreated in the past. |
|
|
Server UUID. Type: string |
|
|
ID of the hardware node on which this server resides. Type: string |
|
|
ID of the customer account to which the server belongs. Type: int |
|
|
Server name. Type: string |
|
|
Server description. Type: string |
|
|
ID of the subscription to which the server belongs. Type: int |
|
|
Container for CPU information. |
|
|
Number of CPU cores. Type: int |
|
|
CPU clock speed in megahertz. Type: int |
|
|
RAM size in megabytes. Type: int |
|
|
Network bandwidth in kbps. Type: int |
|
|
Container for hard disk information. At the time of writing, a server can have only one hard disk. This will change in the future. |
|
|
Disk database ID (used internally) Type: int |
|
|
Specifies whether this is a local or a network disk. Only local disks are supported at the time of writing. Type: boolean |
|
|
Disk size in gigabytes. Type: int |
|
|
Disk status. Type: boolean Possible values:
|
|
|
Container for the operating system template and related information. |
|
|
Container for OS template information. |
|
|
Template name. Type: string |
|
|
Template vendor ID. Type: string |
|
|
Cloud Infrastructure Automation template ID (used internally). Type: string |
|
|
Container for operating system information. This information is a part of the OS template info. |
|
|
OS type (Linux, Windows, etc.) Type: string |
|
|
Virtualization technology used. Type: string Possible values:
|
|
|
Container for network information. |
|
|
Private IP address and mask. Type: string |
|
|
Container for public IPv4 address info. This element may appear more than once (one for each IP address). |
|
|
Database ID (used internally). Type: int |
|
|
IP address and mask. Type: string |
|
|
Gateway IP address. Type: string |
|
|
Used internally. Type: int |
|
|
Container for public IPv6 address info. This element may appear more than once (one for each IPv6 address). |
|
|
Database ID (used internally). Type: int |
|
|
IPv6 address and mask. Type: string |
|
|
Gateway IPv6 address. Type: string |
|
|
Container for backup schedule info. A backup schedule is created and configured by the system administrator. The user can select one of the existing backup schedules when a server is created. |
|
|
Backup schedule name. Type: string |
|
|
A string describing the server state or transition. Type: string |
|
|
Used internally. Type: int |
|
|
Used internally. Type: int |
|
|
Container for the server administrator credentials. |
|
|
Server administrator login name. Type: string |
|
|
Password. Type: string |
|
|
The returned code of the last operation. Type: int |
|
|
Container for installed application template information. This element may appear more than once (one for each installed template). |
|
|
Application template name. Type: string |
|
|
The name of the OS template for which this application is designed. Type: string |
|
|
The template Cloud Infrastructure Automation version. Type: string |
|
|
Template location. Type: string |
|
|
Specifies whether the template was installed properly. Type: boolean |
|
|
The previous template's location. Type: string |
|
|
Specifies whether the template uninstallation was completed successfully. Type: boolean |
|
|
Application template ID (used internally). Type: int |
|
|
Name of the load balancer attached to this server. If no load balancer is used, the element will be absent. Type: string |
|
|
A string describing the server steady state. This parameter normally never contains transition states that change quickly. When monitoring transitions, look at the Type: string |
Example
Request
GET https://c2u-web:4465/paci/v1.0/ve/Web60
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ve> <id>4</id> <uuid>6733915.132fd360949._7ffe</uuid> <hnId>5</hnId> <customer-id>1</customer-id> <name>server1</name> <description></description> <subscription-id>1</subscription-id> <cpu power="1000" number="1"/> <ram-size>128</ram-size> <bandwidth>100</bandwidth> <ve-disk created="true" size="1" local="true" id="0"/> <platform> <template-info c2uId="1" vendorId="5" name="centos-5-x86"/> <os-info technology="CT" type="linux-free"/> </platform> <network private-ip="10.40.119.201/8"> <public-ip chunk-ref="1" gateway="10.30.0.1" address="10.30.119.201/16" id="3"/> </network> <backup-schedule name="hourly"/> <state>STOPPED</state> <primary-disk-id>0</primary-disk-id> <template-id>1</template-id> <admin password="[hidden]" login="root"/> <steady-state>STOPPED</steady-state> </ve>