(Created page with "COMMAND DETAILS HERE ==Path== */server/network/{$serverid} ==Method== *GET ==Availability== *Dedicated Server *Dynamic Server *Private Cloud *Public Cloud =...") |
|||
Line 1: | Line 1: | ||
− | + | The network command will return information for both the public and private networks of a specific server. | |
==Path== | ==Path== | ||
*/server/network/{$serverid} | */server/network/{$serverid} | ||
Line 45: | Line 45: | ||
[dc] => The datacenter the block of IP addresses belong to (dupont,cimco). | [dc] => The datacenter the block of IP addresses belong to (dupont,cimco). | ||
[updated] => The last time and date the IP information was updated. | [updated] => The last time and date the IP information was updated. | ||
− | [gateway] => The gateway IP address. | + | [gateway] => The gateway IP address of the assigned IP block. |
− | [ip] => The network IP address. | + | [ip] => The network IP address of the assigned IP block. |
[netmask] => The subnet mask of the assigned IP block. | [netmask] => The subnet mask of the assigned IP block. | ||
− | [wildcard] => Wildcard mask of the | + | [wildcard] => Wildcard mask of the of the assigned IP block. |
− | [broadcast] => The broadcast IP address. | + | [broadcast] => The broadcast IP address of the assigned IP block. |
[allips] => An array of all the IP addresses that are in the assignment. | [allips] => An array of all the IP addresses that are in the assignment. | ||
[allusable] => An array of all the usable IP addresses that are in the assignment. | [allusable] => An array of all the usable IP addresses that are in the assignment. | ||
Line 59: | Line 59: | ||
) | ) | ||
[private] => stdClass Object( | [private] => stdClass Object( | ||
− | [vlan_id] => | + | [vlan_id] => The ID number of the assigned private network VLAN. |
[dc] => The CIDR of the assigned IP block. | [dc] => The CIDR of the assigned IP block. | ||
− | [vlan] => The | + | [vlan] => The number of the assigned VLAN. |
[type] => | [type] => | ||
[uberid] => The assigned client ID. | [uberid] => The assigned client ID. | ||
Line 68: | Line 68: | ||
[0] => stdClass Object( | [0] => stdClass Object( | ||
[id] => The ID number of the assigned VLAN. | [id] => The ID number of the assigned VLAN. | ||
− | [network] => | + | [network] => The network address of the assigned IP block. |
[cidr] => The CIDR of the assigned IP block. | [cidr] => The CIDR of the assigned IP block. | ||
[dc] => The datacenter the block of IP addresses belong to (dupont,cimco). | [dc] => The datacenter the block of IP addresses belong to (dupont,cimco). | ||
− | [vlan_id] => | + | [vlan_id] => The ID number of the assigned private network VLAN. |
[usable] => An array of all the usable IP addresses that are in the assignment. | [usable] => An array of all the usable IP addresses that are in the assignment. | ||
) | ) | ||
Line 77: | Line 77: | ||
[ip] => The private IP that is assigned the server. | [ip] => The private IP that is assigned the server. | ||
[cidr] => The CIDR of the assigned IP address. | [cidr] => The CIDR of the assigned IP address. | ||
− | [network] => The network of the assigned IP address. | + | [network] => The network address of the assigned IP address. |
[netmask] => The subnet mask of the assigned IP address. | [netmask] => The subnet mask of the assigned IP address. | ||
− | [gateway] => The gateway of the assigned IP address. | + | [gateway] => The gateway address of the assigned IP address. |
[speed] => The speed of the NIC used with the private network. | [speed] => The speed of the NIC used with the private network. | ||
) | ) |
The network command will return information for both the public and private networks of a specific server.
Contents |
stdClass Object( [success] => TRUE/FALSE [data] => stdClass Object( [public] => Array( [0] => stdClass Object( [ip_id] => The ID number of the assigned IP block. [prefix] => The network IP address. [cidr] => The CIDR of the assigned IP block. [parent_id] => [parent_prefix] => [parent_cidr] => [uberid] => [assigned_to] => The ID number of the assigned server. [staticrouting] => [last_router] => Hostname of the switch in the server rack. [last_vlan] => The VLAN of the "last_router". [last_destination] => [filterdev] => [guard_zone] => [hsrp_ip1] => [hsrp_ip2] => [netboot] => [spamscore] => [dc] => The datacenter the block of IP addresses belong to (dupont,cimco). [updated] => The last time and date the IP information was updated. [gateway] => The gateway IP address of the assigned IP block. [ip] => The network IP address of the assigned IP block. [netmask] => The subnet mask of the assigned IP block. [wildcard] => Wildcard mask of the of the assigned IP block. [broadcast] => The broadcast IP address of the assigned IP block. [allips] => An array of all the IP addresses that are in the assignment. [allusable] => An array of all the usable IP addresses that are in the assignment. [firstip] => The first usable IP address that is in the assignment. [secondip] => The second usable IP address that is in the assignment. [lastip] => The last usable IP address that is in the assignment. [range] => The range of usable IP addresses that are in the assignment. ) ) [private] => stdClass Object( [vlan_id] => The ID number of the assigned private network VLAN. [dc] => The CIDR of the assigned IP block. [vlan] => The number of the assigned VLAN. [type] => [uberid] => The assigned client ID. [name] => [networks] => Array( [0] => stdClass Object( [id] => The ID number of the assigned VLAN. [network] => The network address of the assigned IP block. [cidr] => The CIDR of the assigned IP block. [dc] => The datacenter the block of IP addresses belong to (dupont,cimco). [vlan_id] => The ID number of the assigned private network VLAN. [usable] => An array of all the usable IP addresses that are in the assignment. ) ) [ip] => The private IP that is assigned the server. [cidr] => The CIDR of the assigned IP address. [network] => The network address of the assigned IP address. [netmask] => The subnet mask of the assigned IP address. [gateway] => The gateway address of the assigned IP address. [speed] => The speed of the NIC used with the private network. ) ) )