Server

From INAP Dropzone API
(Difference between revisions)
Jump to: navigation, search
(/server/list)
Line 1: Line 1:
 
==Dedicated Server & Cloud Commands==
 
==Dedicated Server & Cloud Commands==
 
===/server/list===
 
===/server/list===
the list command will return a list of all the servers that are associated with your account, those being dedicated, dynamic and cloud servers.
+
The list command will return a list of all the servers that are associated with your account, those being dedicated, dynamic and cloud servers.
  
 
'''Required Data Parameters'''
 
'''Required Data Parameters'''
Line 18: Line 18:
 
       [type] => Type of server (server,vmnode,vm).
 
       [type] => Type of server (server,vmnode,vm).
 
       [cputype] => Type of CPU that is currently installed.
 
       [cputype] => Type of CPU that is currently installed.
       [cpuspeed] => Speed of the CPU in GHz.
+
       [cpuspeed] => Speed of the installed CPU in GHz.
 
     )
 
     )
 
   )
 
   )
Line 25: Line 25:
  
 
===/server/view===
 
===/server/view===
 +
The view command will return basic server information along with it's current hardware configuration.
 +
 
'''Required Data Parameters'''
 
'''Required Data Parameters'''
 +
*None
 
'''Returned Data Parameters'''
 
'''Returned Data Parameters'''
 +
<pre>
 +
stdClass Object(
 +
  [success] => TRUE/FALSE
 +
  [data] => Array(
 +
    [serverid] => Server ID number.
 +
    [type] => Type of server (server,vmnode,vm).
 +
    [status] => Server status (online,offline,provisioning).
 +
    [hostname] => Server host name, as in "leap.singlehop.com".
 +
    [password] => Root username password.
 +
    [location] => Server rack and slot number.
 +
    [datacenter] => Server datacenter (dupont,cimco)
 +
    [primaryip] => Primary public IP Address.
 +
    [privateip] => Private IP Address.
 +
    [os] => Currently installed operating system.
 +
    [osdetails] => stdClass Object(
 +
      [id] => Currently installed operating system id.
 +
      [name] => Currently installed operating system name.
 +
      [arch] => Currently installed operating system architecture.
 +
      [controlpanel] => Currently installed control panel (cpanel,plesk).
 +
    )
 +
    [firewall] => TRUE/FALSE
 +
    [privatenetwork] => TRUE/FALSE
 +
    [network] => Current speed of the servers public uplink port(100Mbit,1Gbit).
 +
    [hardware] => stdClass Object(
 +
      [ramslots] => Number of RAM slots on the motherboard.
 +
      [ram] => Amount of RAM in GB.
 +
      [diskslots] => Number of hard drives the server can hold
 +
      [disks] => Array() Size of each hard drive installed (GB,TB).
 +
      [cpuslots] => Number of CPU sockets on the motherboard.
 +
      [cpucount] => Number of installed CPUs on the motherboard.
 +
      [cputype] => Type of CPU that is currently installed.
 +
      [cpuspeed] => Speed of the installed CPU in GHz.
 +
      [disktotal] => Total hard drive space installed in GB.
 +
    )
 +
    [bandwidth] => 10,000GB
 +
    [backup] => stdClass Object(
 +
      [type] => Backup server type (r1soft).
 +
      [user] => Backup server username.
 +
      [host] => Backup server hostname.
 +
      [pass] => Backup server password.
 +
    )
 +
  )
 +
)
 +
</pre>
  
 
==Dedicated Server Only Commands==
 
==Dedicated Server Only Commands==
===/server/view/SERVERID===
+
===/server/list/SERVERID===
  
  

Revision as of 18:24, 9 March 2012

Contents

Dedicated Server & Cloud Commands

/server/list

The list command will return a list of all the servers that are associated with your account, those being dedicated, dynamic and cloud servers.

Required Data Parameters

  • None

Returned Data Parameters

stdClass Object(
  [success] => TRUE/FALSE
  [data] => Array(
    [0] => stdClass Object(
      [status] => Server status (online,offline,provisioning).
      [serverid] => Server ID number.
      [os] => Currently installed operating system.
      [hostname] => Server host name, as in "leap.singlehop.com".
      [ram] => Amount of RAM and type installed.
      [type] => Type of server (server,vmnode,vm).
      [cputype] => Type of CPU that is currently installed.
      [cpuspeed] => Speed of the installed CPU in GHz.
    )
  )
)

/server/view

The view command will return basic server information along with it's current hardware configuration.

Required Data Parameters

  • None

Returned Data Parameters

stdClass Object(
  [success] => TRUE/FALSE
  [data] => Array(
    [serverid] => Server ID number.
    [type] => Type of server (server,vmnode,vm).
    [status] => Server status (online,offline,provisioning).
    [hostname] => Server host name, as in "leap.singlehop.com".
    [password] => Root username password.
    [location] => Server rack and slot number.
    [datacenter] => Server datacenter (dupont,cimco)
    [primaryip] => Primary public IP Address.
    [privateip] => Private IP Address.
    [os] => Currently installed operating system.
    [osdetails] => stdClass Object(
      [id] => Currently installed operating system id.
      [name] => Currently installed operating system name.
      [arch] => Currently installed operating system architecture.
      [controlpanel] => Currently installed control panel (cpanel,plesk).
    )
    [firewall] => TRUE/FALSE
    [privatenetwork] => TRUE/FALSE
    [network] => Current speed of the servers public uplink port(100Mbit,1Gbit).
    [hardware] => stdClass Object(
      [ramslots] => Number of RAM slots on the motherboard.
      [ram] => Amount of RAM in GB.
      [diskslots] => Number of hard drives the server can hold
      [disks] => Array() Size of each hard drive installed (GB,TB).
      [cpuslots] => Number of CPU sockets on the motherboard.
      [cpucount] => Number of installed CPUs on the motherboard.
      [cputype] => Type of CPU that is currently installed.
      [cpuspeed] => Speed of the installed CPU in GHz.
      [disktotal] => Total hard drive space installed in GB.
    )
    [bandwidth] => 10,000GB
    [backup] => stdClass Object(
      [type] => Backup server type (r1soft).
      [user] => Backup server username.
      [host] => Backup server hostname.
      [pass] => Backup server password.
    )
  )
)

Dedicated Server Only Commands

/server/list/SERVERID

Dynamic Server Only Commands

Private/Public Cloud Only Commands

Personal tools