beautypg.com

Retrieving a specific fc fabric, Retrieving switches in the context of a fabric – Brocade Network Advisor REST API Guide (Supporting Network Advisor 12.3.0) User Manual

Page 23

background image

Brocade Network Advisor REST API Guide

9

53-1003160-01

Retrieving a specific FC fabric

2

Retrieving a specific FC fabric

In the previous section, you retrieved a list of all FC fabrics. Every fabric in the list has a unique
identifier specified by the

key

parameter. You can use it to retrieve information about a specific

fabric.

To retrieve information about the fabric with the 10:00:00:05:1E:A7:1F:EB key, complete the
following steps.

1. Enter the following URI in the URL field:

http:///rest/resourcegroups/All/fcfabrics/10:00:00:05:1E:A7:1F:EB

2. Define the following HTTP request headers.

3. Set the HTTP request method to GET.

4. Send the request.

The following is an example of the response returned by Network Advisor:

{

fcFabrics: [1]

0: {

key: "10:00:00:05:1E:A7:1F:EB"

seedSwitchWwn: "10:00:00:05:1E:A7:1F:EB"

name: "10:00:00:05:1E:A7:1F:EB"

secure: false

adEnvironment: false

contact: null

location: null

description: null

principalSwitchWwn: "10:00:00:05:1E:A7:1F:EB"

fabricName: ""

virtualFabricId: -1

seedSwitchIpAddress: "10.24.33.195"

}

}

Retrieving switches in the context of a fabric

To retrieve the switches under a fabric, send a GET request with the following URI:

http:///rest/resourcegroups/All/fcfabrics/fcfkey/fcswitches

For example, to retrieve the switches in the context of the fabric with key 10:00:00:05:1E:A7:1F:EB,
use the following URI:

http:///rest/resourcegroups/All/fcfabrics/10:00:00:05:1E:A7:1F:EB/fcs

witches

TABLE 4

Request headers

Header name

Value

WStoken

The session token header returned after a successful login.

Accept

application/vnd.brocade.networkadvisor+json;version=v1