connectivity

Contents
casp101
Contents
Use the Connectivity resource to retrieve connectivity, and device and port condition information for a specified device model based on its IP address.
  • Base URL
    http://<
    hostname
    ><:
    portnumber
    >/spectrum/restful/connectivity
GET connectivity
GET connectivity returns XML describing all the connectivity from a requested end point.
  • URL
    http://<hostname><:portnumber>/spectrum/restful/connectivity/[ip_address][model_handle]
  • HTTP Method
    GET
  • Body
    None
  • Body Content
    application/xml, application
  • Header
    application/xml, application/json
  • Output
    XML describing the connectivity
URL Parameters
  • ip_address
    Specifies the IP address to retrieve connectivity information for.
Example
The following URL requests connectivity, and device and port condition information for the specified IP address:
http://chave10-w7:80/spectrum/restful/connectivity/138.42.94.149
The following is returned for the request:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <connection-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response"> - <connection-response> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100259</mh> <name>junM7i-96.20</name> <type>JuniperJUNOSRtr</type> <class>Router</class> <condition>0</condition> </connection-element-left> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100d73</mh> <name>junM7i-96.20_fxp1.0</name> <type>Gen_IF_Port</type> <class>Port</class> <condition>0</condition> </connection-element-left> - <connection-element-right> <mh>0x100f59</mh> <name>10.0.0.0</name> <type>Unplaced</type> <class>Link</class> <condition>0</condition> </connection-element-right> - <connection-element-right> <mh>0x0</mh> <class /> </connection-element-right> </connection-response> - <connection-response> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100259</mh> <name>junM7i-96.20</name> <type>JuniperJUNOSRtr</type> <class>Router</class> <condition>0</condition> </connection-element-left> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100d84</mh> <name>junM7i-96.20_fe-0/0/0.0</name> <type>Gen_IF_Port</type> <class>Port</class> <condition>0</condition> </connection-element-left> - <connection-element-right> <mh>0x100f5b</mh> <name>192.168.95.96</name> <type>Unplaced</type> <class>Link</class> <condition>0</condition> </connection-element-right> - <connection-element-right> <mh>0x0</mh> <class /> </connection-element-right> </connection-response> - <connection-response> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100259</mh> <name>junM7i-96.20</name> <type>JuniperJUNOSRtr</type> <class>Router</class> <condition>0</condition> </connection-element-left> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100d89</mh> <name>junM7i-96.20_fe-0/0/2.0</name> <type>Gen_IF_Port</type> <class>Port</class> <condition>0</condition> </connection-element-left> - <connection-element-right> <ipaddress>138.42.94.150</ipaddress> <mh>0x100252</mh> <name>cis3640-96.44</name> <type>Rtr_Cisco</type> <class>Switch-Router</class> <condition>0</condition> </connection-element-right> - <connection-element-right> <ipaddress>138.42.94.150</ipaddress> <mh>0x100667</mh> <name>cis3640-96.44_Fa0/0</name> <type>Gen_IF_Port</type> <class>Port</class> <condition>0</condition> </connection-element-right> </connection-response> - <connection-response> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100259</mh> <name>junM7i-96.20</name> <type>JuniperJUNOSRtr</type> <class>Router</class> <condition>0</condition> </connection-element-left> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100d8b</mh> <name>junM7i-96.20_fe-0/0/3.0</name> <type>VLAN_If</type> <class>Port</class> <condition>0</condition> </connection-element-left> - <connection-element-right> <ipaddress>138.42.94.158</ipaddress> <mh>0x100248</mh> <name>junM20-96.18</name> <type>JuniperJUNOSRtr</type> <class>Switch-Router</class> <condition>0</condition> </connection-element-right> - <connection-element-right> <ipaddress>138.42.94.158</ipaddress> <mh>0x10077b</mh> <name>junM20-96.18_em0.0</name> <type>Gen_IF_Port</type> <class>Port</class> <condition>0</condition> </connection-element-right> </connection-response> - <connection-response> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100259</mh> <name>junM7i-96.20</name> <type>JuniperJUNOSRtr</type> <class>Router</class> <condition>0</condition> </connection-element-left> - <connection-element-left> <ipaddress>138.42.94.149</ipaddress> <mh>0x100d92</mh> <name>junM7i-96.20_t1-0/1/0.0</name> <type>Serial_IF_Port</type> <class>Port</class> <condition>0</condition> </connection-element-left> - <connection-element-right> <mh>0x100f4b</mh> <name>138.42.94.212</name> <type>WA_Segment</type> <class>Link</class> <condition>0</condition> </connection-element-right> - <connection-element-right> <mh>0x0</mh> <class /> </connection-element-right> </connection-response> </connection-response-list>