Retrieving switches and ports – Brocade Network Advisor REST API Guide (Supporting Network Advisor 12.3.0) User Manual
Page 25

Brocade Network Advisor REST API Guide
11
53-1003160-01
Retrieving switches and ports
2
Retrieving switches and ports
Retrieving switches and ports in the context of a resource group is similar to retrieving fabrics (refer
to
). The only difference is the URI that you use.
To retrieve all switches, use the following URI:
http://
The following is a sample response:
{
fcSwitches: [11]
0: {
key: "10:00:00:14:C9:E5:56:AB"
name: "REST_6520_33_189"
wwn: "10:00:00:14:C9:E5:56:AB"
virtualFabricId: -1
domainId: 2
baseSwitch: false
role: "SUBORDINATE"
fcsRole: "None"
adCapable: true
operationalStatus: "MARGINAL"
state: "ONLINE"
statusReason: "Switch Status is MARGINAL. Contributors: * Power Supply: 1 bad.
(MARGINAL). * Fan: 1 bad (MARGINAL)."
cryptoCapable: false
fcrCapable: false
fcipCapable: false
lfEnabled: false
defaultLogicalSwitch: true
fmsMode: false
dynamicLoadSharingCapable: true
portBasedRoutingPresent: false
inOrderDeliveryCapable: false
persistentDidEnabled: false
fcipCircuitCapable: false
maxFcipTunnels: 0
maxFcipCircuits: 0
fcipLicensed: false
autoSnmpEnabled: true
}
...
To retrieve all ports, use the following URI:
http://
The following is a sample response:
{
fcPorts: [325]
0: {
key: "20:22:00:27:F8:A7:A1:25"
wwn: "20:22:00:27:F8:A7:A1:25"
name: "port34"
slotNumber: 0
portNumber: 34
userPortNumber: 34
portId: "1c2200"