beautypg.com

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

Page 25

background image

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

“Retrieving FC fabrics”

). The only difference is the URI that you use.

To retrieve all switches, use the following URI:

http:///rest/resourcegroups/All/fcswitches

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:///rest/resourcegroups/All/fcports

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"