(Supporting Network Advisor 12.3.0)
Table Of Contents
- Contents
- About This Document
- Overview of the Network Advisor REST API
- Getting Started
- Using the Brocade Network Advisor REST API
- Introduction
- Logging in and out
- Specifying content type
- Versioning (backward compatibility)
- Using the Topology API
- Using the SAN Fabric Discovery API
- Using the Traffic Flow API
- Using the Summary Data API
- Using the Events API
- Using the Zoning API
- Using the Historical Performance Data API
- Fibre Channel Routing
- Handling errors
- Use Cases
- API Reference
- Request and Response Schemas
- Topology
- SAN fabric discovery
- Summary data
- SummaryResponse
- StatusSummary
- AssetClassificationSummary
- NetworkObjectCountSummary
- EventsSummary
- BottleneckViolationsSummary
- OutOfRangeViolationsSummary
- PortHealthViolationsSummary
- VmViolationsSummary
- SummariesResponse
- PortsMonitorSummaryData
- MonitorDistributionData
- ProductsMonitorSummaryData
- FlowMonitorSummaryData
- Events
- Zoning
- Historical performance data
- Authentication and session management
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://<ip_address>/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://<ip_address>/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"