beautypg.com

Using the brocade network advisor rest api, Introduction, Logging in and out – Brocade Network Advisor REST API Guide (Supporting Network Advisor 12.3.0) User Manual

Page 35: Logging in, Chapter 3, Login request headers

background image

Brocade Network Advisor REST API Guide

21

53-1003160-01

Chapter

3

Using the Brocade Network Advisor REST API

In this chapter

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Logging in and out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Specifying content type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Versioning (backward compatibility). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Using the Topology API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Using the SAN Fabric Discovery API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Using the Traffic Flow API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Using the Summary Data API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Using the Events API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Using the Zoning API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Using the Historical Performance Data API . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Fibre Channel Routing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Handling errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Introduction

This chapter describes how to use the Brocade Network Advisor REST API.

Logging in and out

The Network Advisor REST API provides URIs for logging in and out.

Logging in

Use the /login POST URI to log in. This URI returns the BNA Server credentials in a LoginResponse.

/login

Login request headers

A valid user name and password are required for login and this is sent through the HTTP request
headers. You must add the headers while forming the HTTP POST request.