Brocade, the B-wing symbol, Brocade Assurance, ADX, AnyIO, DCX, Fabric OS, FastIron, HyperEdge, ICX, MLX, MyBrocade, NetIron,
OpenScript, VCS, VDX, and Vyatta are registered trademarks, and The Effortless Network and the On-Demand Data Center are
trademarks of Brocade Communications Systems, Inc., in the United States and in other countries. Other brands and product
names mentioned may be trademarks of others.
Notice: This document is for informational purposes only and does not set forth any warranty, expressed or implied, concerning
any equipment, equipment feature, or service offered or to be offered by Brocade. Brocade reserves the right to make changes to
this document at any time, without notice, and assumes no responsibility for its use. This informational document describes
features that may not be currently available. Contact a Brocade sales office for information on feature and product availability.
Export of technical data contained in this document may require an export license from the United States government.
The authors and Brocade Communications Systems, Inc. assume no liability or responsibility to any person or entity with respect
to the accuracy of this document or any loss, cost, liability, or damages arising from the information contained herein or the
computer programs that accompany it.
The product described by this document may contain open source software covered by the GNU General Public License or other
open source license agreements. To find out which open source software is included in Brocade products, view the licensing
terms applicable to the open source software, and obtain a copy of the programming source code, please visit http://
www.brocade.com/support/oscd.
Brocade Communications Systems, Incorporated
Corporate and Latin American Headquarters
Brocade Communications Systems, Inc.
130 Holger Way
San Jose, CA 95134
Tel: 1-408-333-8000
Fax: 1-408-333-8101
E-mail: info@brocade.com
European Headquarters
Brocade Communications Switzerland Sàrl
Centre Swissair
Tour B - 4ème étage
29, Route de l'Aéroport
Case Postale 105
CH-1215 Genève 15
Switzerland
Tel: +41 22 799 5640
Fax: +41 22 799 5641
E-mail: emea-info@brocade.com
Asia-Pacific Headquarters
Brocade Communications Systems China HK, Ltd.
No. 1 Guanghua Road
Chao Yang District
Units 2718 and 2818
Beijing 100020, China
Tel: +8610 6588 8888
Fax: +8610 6588 9999
E-mail: china-info@brocade.com
Asia-Pacific Headquarters
Brocade Communications Systems Co., Ltd. (Shenzhen WFOE)
Citic Plaza
No. 233 Tian He Road North
Unit 1308 – 13th Floor
Guangzhou, China
Tel: +8620 3891 2000
Fax: +8620 3891 2111
E-mail: china-info@brocade.com
Brocade Virtual ADX XML API Programmer’s Guidev
53-1003248-01
viBrocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Preface
Document conventions
This section describes text formatting conventions and important notice formats that may be used
in this document.
Text formatting
The following text formatting conventions may be used in the flow of the text to highlight specific
words or phrases.
FormatDescription
bold textIdentifies command names
Identifies keywords
Identifies the names of user-manipulated GUI elements
Identifies text to enter at the GUI or CLI
italic textProvides emphasis
Identifies variables and modifiers
Identifies paths and Internet addresses
Identifies document titles
code
Identifies CLI output
Identifies command syntax examples
Brocade Virtual ADX XML API Programmer’s Guidevii
53-1003248-01
Command syntax conventions
NOTE
ATTENTION
CAUTION
DANGER
ConventionDescription
bold textIdentifies command names, keywords, and command options.
italic textIdentifies variables.
[ ]
{ x | y |z }
Syntax components displayed within square brackets are optional.
A choice of required parameters is enclosed in curly braces separated
byvertical bars. You must select one.
x | y
< >
A vertical bar separates mutually exclusive elements.
Nonprinting characters, for example, passwords, are enclosed in angle
brackets.
...
\
Repeat the previous element. For example, member [member...].
Indicates a “soft” line break in command examples. If a backslash
separates two lines of a command input, enter the entire command at the
prompt without the backslash.
Notes, cautions, and warnings
The following notices and statements may be used in this document. They are listed below in order
of increasing severity of potential hazards.
A note provides a tip, guidance or advice, emphasizes important information, or provides a reference
to related information.
An Attention statement indicates a stronger note, for example, to alert you when traffic might be
interrupted or the device might reboot.
A Caution statement alerts you to situations that can be potentially hazardous to you or cause
damage to hardware, firmware, software, or data.
A Danger statement indicates conditions or situations that can be potentially lethal or extremely
hazardous to you. Safety labels are also attached directly to products to warn of these conditions
or situations.
viiiBrocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Brocade resources
To get up-to-the-minute information, go to http://my.brocade.com to register at no cost for a user ID
and password.
Release notes are available at http://my.brocade.com.
White papers, online demonstrations, and data sheets are available through the Brocade website
at:
Select Application Delivery Switches on this page to navigate to the relevant product information.
Contacting Brocade Technical Support
As a Brocade customer, you can contact Brocade Technical Support 24x7 online, by telephone, or
by e-mail. Brocade OEM customers contact their OEM/Solutions provider.
For product support information and the latest information on contacting the Technical Assistance
Center, go to http://www.brocade.com/services-support/index.html
If you have purchased Brocade product support directly from Brocade, use one of the following
methods to contact the Brocade Technical Assistance Center 24x7.
OnlineTelephoneEmail
Preferred method of contact
for non-urgent issues:
• My Cases through
MyBrocade
• Software downloads &
licensing tools
• Knowledge Base
Required for Sev 1-Critical and
Sev 2-High issues:
• Continental US:
1-800-752-8061
• Europe, Middle East, Africa,
and Asia Pacific: +800-AT
FIBREE (+800 28 34 27
33)
support@brocade.com
Please include:
• Problem summary
• Serial number
• Installation details
• Environment description
• For areas unable to access
toll free number:
+1-408-333-6061
• Toll-free numbers are
available in many countries.
If you have purchased Brocade product support from a Brocade OEM/Solution Provider, contact
your OEM/Solution Provider for all of your product support needs.
• OEM/Solution Providers are trained and certified by Brocade to support Brocade® products.
• Brocade provides backline support for issues that cannot be resolved by the OEM/Solution
Provider.
• Brocade Supplemental Support augments your existing OEM support contract, providing direct
access to Brocade expertise. For more information, contact Brocade or your OEM.
Brocade Virtual ADX XML API Programmer’s Guideix
53-1003248-01
Document feedback
• For questions regarding service levels and response times, contact your OEM/Solution
Provider.
Document feedback
Quality is our first concern at Brocade and we have made every effort to ensure the accuracy and
completeness of this document. However, if you find an error or an omission, or you think that a
topic needs further development, we want to hear from you. You can provide feedback in two ways:
• Through the online feedback form in the HTML documents posted on
http://www.brocade.com.
• By sending your feedback to documentation@brocade.com
Provide the publication title, part number, and as much detail as possible, including the topic
heading and page number if applicable, as well as your suggestions for improvement.
•Enabling a web service on a Brocade Virtual ADX . . . . . . . . . . . . . . . . . . . . . 6
Programmatic interface to Brocade Virtual ADX : XML APIs
XML APIs are a programmatic interface to access Brocade Virtual ADX. It uses the SOAP protocol
over HTTP and allows customers an automated management of their Brocade Virtual ADX devices.
1
The fundamental entity in the XML API programming is the WSDL – an XML based text file which
specifies the methods exposed by the device, and the ways to access it. Client applications have to
be written to access the device using XML API based on the specifications in the WSDL.
Brocade Virtual ADX XML API Programmer’s Guide1
53-1003248-01
Purpose of the WSDL
1
The following diagram is a pictorial description of the XML API framework.
FIGURE 1XML API Framework
Purpose of the WSDL
Simple Object Access Protocol
Web Service Definition Language (Application Programming Interface)
XML SOAP interface overview
An XML SOAP interface for Brocade Virtual ADX application delivery controllers gives application
administrators a programmatic way to access and manage ADX platforms through published APIs.
It allows customers to achieve better orchestration and control over their application delivery
infrastructure. Application administrators can create custom scripts using the XML SOAP interface
to conduct several configuration tasks, gather system statistics, and simplify day-to-day operational
tasks.
2Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Users have access to documented input and output characteristics for each XML SOAP method, the
NOTE
data types, and their values in a platform-independent way. The platform independence is achieved
through use of XML (SOAP over HTTP) as the medium for information exchange. One major
advantage of the XML-API is significant improvement in latency for accessing information from your
ADX devices. The reason for this advantage is that HTTP is optimized for bulk data transfer, unlike
SSH or Telnet, which are traditionally used for data access. Latency is measured as the time
difference between a request sent to the ADX and a meaningful response becoming available at
the client for further action. Such low latency environments are extremely useful in large
application delivery deployments, where latency is expected to be as low as possible.
WSDL location
You can obtain the four WSDL files by accessing a Brocade Virtual ADX through the HTTP interface
using the following URLs:
The <device-ip> variable in the URL refers to the IP address of the management port on the
Brocade Virtual ADX.
Accessing the client API using SOAP
The client application must send an HTTP authentication header before invoking every SOAP
request. The username and password in the authentication header must have super user privileges
on the Brocade Virtual ADX. The HTTP authentication header must also contain context information
along with the username and password.
Creating client-specific APIs from client stubs
Use cases
The following examples provide a framework for developing ADX-specific programs.
Adding and binding a real server and a VIP
1. Add a real server.
2. Add a real server port.
3. Add a virtual server and virtual server port.
Brocade Virtual ADX XML API Programmer’s Guide3
53-1003248-01
Creating client-specific APIs from client stubs
1
4. Bind the real server to the virtual server.
5. Save the configuration.
Each request is authenticated independently.
Refer to “Example: Adding and binding a real server and a VIP” for examples in Perl, Java, and C#.
Unbinding a real server from a VIP
1. Unbind a previously added real server from the virtual server.
2. Remove the real server and the virtual server.
3. Save the configuration.
Refer to “Example: Unbinding a real server from a VIP” for examples in Perl, Java, and C#.
Provisioning real and virtual servers
1. Add a list of real servers with common parameters.
2. Add a virtual server and real server ports to the VIP.
3. Remove or disable a list of real servers that has a given string in its name, using regular
expressions or wild cards if needed.
4. Remove a real server and reuse its IP address for another real server.
Refer to “Example - Provisioning real and virtual servers” for examples in C#.
Monitoring the system
1. List all failed real server ports and real servers.
2. List all failed VIP ports and VIPs.
3. List all unplugged real servers (where the MAC address is unknown in the show server real
output).
4. Monitor the status of a given real server port.
5. Monitor the status of a VIP port.
6. Monitor the current connections of a real server.
7. Monitor the current connections of a VIP.
8. Monitor the total current connections of the system.
9. Monitor the CPU and the memory of the system.
Code for simple SOAP clients
The following code examples illustrate how to work with the SOAP protocol.
Perl example
This example shows the output from the script "getChassisInfo.pl" and then shows the contents of
the script.
4Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Creating client-specific APIs from client stubs
The following output results from the execution of the "getChassisInfo.pl" script:
C:\>getChassisInfo.pl
Chassis Model : SI-1216-4-PREM
Chassis Serial : E2SA02F038
The contents of the “getChassisInfo.pl” script are as follows:
Before a Brocade Virtual ADX can acknowledge any SOAP requests, it must have the
web-management command configured with at least the soap-service option:
web-managment
Syntax: web-managment [option[ ...]]
Options:
allow-no-password Allow web server to have no password
connection-receive-timeout Web connection receive timeout
enable Enable web management
frame Allow to disable or enable a frame
front-panel Enable front panel
hp-top-tools Enable the support of HP TOP Tools
http Enable the support of http server
list-menu Show web menu as a list
page-menu Enable page menu
page-size Maximum number of entries in a page
refresh Page refresh (polling time) in seconds
session-timeout Web session timeout in minutes (value 0 means no
timeout)
soap-service Enable SOAP Services
You can use the XML API in this guide to perform operations on the various features and functions
that are supported on the ADX platform.
Most APIs begin with one of the listed keywords in column 1 of the table below. The keyword
indicates the type of operation that can be performed using the API. The arguments to these APIs
form the various inputs for the operations. For greater flexibility, each API expects a minimum
number of mandatory attributes.
2
The following table contains the basic operations, their descriptions, and examples.
TABLE 1API operations
Basic API
operations
createThese APIs are used to create objects such as a real server or a virtual
deleteThese APIs are used to delete objects such as a real server on the
enableThese APIs are used to enable objects after they are created on the
disableThese APIs are used to disable objects after they are created and
updateThese APIs are used to update the configuration of an existing object.
clearThese APIs are used to clear an attribute value of an object and set it
setThese APIs are used to set one or more specific attributes of an object
getThese APIs are used to obtain the configuration and statistics of an
DescriptionExample
createVlan
server on the Brocade Virtual ADX platform. All of the create APIs
require a few mandatory attributes.
deleteIPSubnetVlans
Brocade Virtual ADX platform.
enableGlobalFlowCo
Brocade Virtual ADX platform. The objects that need to be enabled are
the inputs to these APIs.
enabled on the Brocade Virtual ADX platform. The objects can be
disabled without adjusting their current configuration.
If the value of an attribute is not set, it is removed from the
configuration of the object.
back to the default value.
to a user-defined value.
object.
ntrol
disableInterfaces
updateIPSubnetVlan
s
clearIPRoute
setInterfaceConfig.
getConfiguration
Brocade Virtual ADX XML API Programmer’s Guide7
53-1003248-01
API naming conventions
2
TABLE 1API operations
Basic API
operations
DescriptionExample
getAllThese APIs are used to obtain the configuration and statistics of more
than one object. The Brocade Virtual ADX device has a maximum
number of objects that can be returned on the buffer. The resultant
number of objects could be less then the total number of objects
available on the Brocade Virtual ADX device. To facilitate the collection
of details of all of the objects, these APIs contain "startIndex" and
"numRetrieved" inputs.
The “startIndex” is an index value with which you can retrieve the
information.
The "numRetrieved" is the number of entries that you want to retrieve.
The response is limited to the number of objects that can be retrieved.
bindThese APIs are used to bind one object to another object in the
Brocade Virtual ADX device, for example, binding a real server to a
virtual server configured on the Brocade Virtual ADX platform.
unbindThese APIs are similar to the bind APIs, and they are used to unbind an
object from another object on the Brocade Virtual ADX platform.
API naming conventions
All of the APIs and enumerations follow the CamelCase naming convention. The API name is formed
by multiple words that are joined together as a single word. The APIs begin with a lowercase letter.
The first letter of subsequent words is capitalized so that each word that makes up the name can
be read easily. Two letter abbreviations are also capitalized if not the first word in the API name, for
example, addAcl.
getAllIPSubnetVlans
bindSipPolicyToFilter
unbindSipServers
The names of data structures begin with a capital letter, but all of the other API naming convention
rules apply, for example, RealServerMonitoringDetails and AclID.
Request and response XML
Most APIs make a query or a request and expect a response to the query. These requests and
responses have a data structure in which they are sent and received respectively. The data
structures contain the names of the data required and their respective data types.
Tab le 28 contains the parameters required for the method.
TABLE 28Parameters
NameTypePresenceRulesDescription
reloadConfigReloadConfiguration MandatoryIdentifies the configuration of the Brocade
Virtual ADX reload.
Return value
Tab le 29 contains the return value of the method.
TABLE 29Return value
NameTypeDescription
messagestringMessage
Error messages
List of Error Messages
writeConfig
Description
Saves the system configuration to the startup configuration file.
Error messages
List of Error Messages
18Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
3
System - High Availability
Description
High Availability refers to a system or component that is continuously operational for a long time
without failing. The following APIs configure High Availability system functions on the Brocade
Virtual ADX.
addHABackupPort
Description
Adds a backup port in the hot standby mode.
Parameters
Tab le 30 contains the parameters required for the method.
TABLE 30Parameters
NameTypePresenceRulesDescription
backupPortHAbackupPortOptionalIdentifies the physical Ethernet port which is
used as the backup port. A system reload is
required after invoking this API.
Error messages
List of Error Messages
addHARouterPort
Description
Adds a router port in the hot standby mode.
Parameters
Tab le 31 contains the parameters required for the method.
TABLE 31Parameters
NameTypePresenceRulesDescription
routerPortHARouterPort[ ]OptionalIdentifies the physical Ethernet port which is
used as the router port. A system reload is
required after invoking this API.
Error messages
List of Error Messages
clearBackupNodeConfiguration
Description
Clears the configuration of the backup node.
Brocade Virtual ADX XML API Programmer’s Guide19
53-1003248-01
3
Methods
Parameters
Tab le 32 contains the parameters required for the method.
TABLE 32Parameters
NameTypePresenceRulesDescription
attributehaNodeAttributeEnum[ ] OptionalIdentifies the configuration information for the
backup server.
Error messages
List of Error Messages
createVipGroup
Description
Creates the VIP group and add it to VRID configuration.
Parameters
Tab le 33 contains the parameters required for the method.
TABLE 33Parameters
NameTypePresenceRulesDescription
configHAVipGroupConfiguration MandatoryIdentifies the configuration required for the
VIP group.
Error messages
List of Error Messages
deleteHABackupPort
Description
Deletes the backup port and removes the hot standby HA configuration.
Parameters
Tab le 34 contains the parameters required for the method.
TABLE 34Parameters
NameTypePresenceRulesDescription
backupPortHAbackupPortOptionalIdentifies the physical Ethernet port which will be
used as backup port.
Error messages
List of Error Messages
deleteHARouterPort
Description
Deletes a router port.
20Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
Parameters
Tab le 35 contains the parameters required for the method.
TABLE 35Parameters
NameTypePresenceRulesDescription
routerPortHARouterPort[ ]OptionalIdentifies the physical Ethernet port to be
deleted from the router port list of the HA node.
Error messages
List of Error Messages
deleteVipGroup
Description
Delete a VIP group.
Parameters
Tab le 36 contains the parameters required for the method.
TABLE 36Parameters
NameTypePresenceRulesDescription
3
vipGroupIDunsignedInt[ ]MandatoryIdentifies the VIP group to be deleted.
Error messages
List of Error Messages
getAllVipGroup
Description
Retrieves all the VIP groups configured on the system
Parameters
Tab le 37 contains the parameters required for the method.
TABLE 37Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalStart index
numRetrievedunsignedIntOptionalNumber retrieved. Maximum value allowed is 8.
Return value
Tab le 38 contains the return value of the method.
TABLE 38Return value
NameTypeDescription
genericInfoResponseInformationGeneric information
configHAVipGroupConfiguration[ ] Identifies the configuration information for symmetric server.
Brocade Virtual ADX XML API Programmer’s Guide21
53-1003248-01
3
Methods
Error messages
List of Error Messages
getHABackupNodeConfiguration
Description
Retrieves the backup server configuration information.
Return value
Tab le 39 contains the return value of the method.
TABLE 39Return value
NameTypeDescription
backupNodeConfig HABackupNodeConfigurationIdentifies the configuration information for the backup
server.
Error messages
List of Error Messages
getHABackupNodeStats
Description
Retrieves the statistics of the backup node in the hot standby configuration.
Return value
Tab le 40 contains the return value of the method.
TABLE 40Return value
NameTypeDescription
backupNodeStatsHABackupNodeStatsIdentifies the configuration information for the backup server.
Error messages
List of Error Messages
getHABackupNodeStats
Description
Retrieves the statistics of the backup node in the hot standby configuration.
Return value
Tab le 41 contains the return value of the method.
TABLE 41Return value
NameTypeDescription
backupNodeStatsHABackupNodeStatsIdentifies the configuration information for the backup server.
Error messages
List of Error Messages
22Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
getHaNodeStatus
Description
Retrieves the High Availability (HA) status of the device.
Return value
Tab le 42 contains the return value of the method.
TABLE 42Return value
NameTypeDescription
genericInfoResponseInformationGeneric information
haNodeStatusHaNodeStatusReturns the high availability status of the device, which can be one
of the following states:
• Hot standby
• Symmetric-active standby
• Symmetric active-active
Error messages
List of Error Messages
3
getHAStatusSummary
Description
Retrieves the type of HA that is configured on the device.
Return value
Tab le 43 contains the return value of the method.
TABLE 43Return value
NameTypeDescription
haStatusHAStatusSummaryProvides the type of HA that has been enabled on this device and the
number of VIPs for which the sym is active.
Error messages
List of Error Messages
getHAVIPStatus
Description
Retrieves the HA status of a virtual server.
Brocade Virtual ADX XML API Programmer’s Guide23
53-1003248-01
3
Methods
Parameters
Tab le 44 contains the parameters required for the method.
TABLE 44Parameters
NameTypePresenceRulesDescription
vipServerOptionalIdentifies the name and IP address of the virtual
server for which the high availability status is
obtained.
Return value
Tab le 45 contains the return value of the method.
TABLE 45Return value
NameTypeDescription
genericInfoResponseInformationGeneric information
haVIPStatusHaVipStatusReturns the high availability status of the virtual server, which can be
one of the following states:
• Hot standby
• Symmetric-active standby
• Symmetric active-active
Error messages
List of Error Messages
getVipGroup
Description
Retrieves the details on the VIP group.
Parameters
Tab le 46 contains the parameters required for the method.
TABLE 46Parameters
NameTypePresenceRulesDescription
vipGroupunsignedIntMandatoryDefines the VIP group.
Return value
Tab le 47 contains the return value of the method.
TABLE 47Return value
NameTypeDescription
configHAVipGroupConfigurationIdentifies the configuration information for Symmetric server.
Error messages
List of Error Messages.
24Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
setHABackupNodeConfiguration
Description
Sets the backup port configuration.
Parameters
Tab le 48 contains the parameters required for the method.
TABLE 48Parameters
NameTypePresenceRulesDescription
backupNodeConfig HABackupNodeConfiguration OptionalIdentifies the configuration information
for the backup server.
Error messages
List of Error Messages
updateVipGroup
Description
Update any configuration associated with VIP groups.
3
Parameters
Tab le 49 contains the parameters required for the method.
TABLE 49Parameters
NameTypePresenceRulesDescription
configHAVipGroupConfiguration MandatoryIdentifies the VIP group configuration.
Error messages
List of Error Messages
Device Management
These APIs are used by the developer client to configure and monitor Device Management services
on a Brocade Virtual ADX device.
Brocade Virtual ADX performs load balancing among application servers. The High Availability
feature ensures that application servers are always available even if a Brocade Virtual ADX device
goes down, and that a single point of failure does not cause a connectivity failure.
Device Management covers the following:
• SNMP server management
• SNTP server managment
• SSH server management
• Telnet server management
• RADIUS server management
• TACACS server management
Brocade Virtual ADX XML API Programmer’s Guide25
53-1003248-01
3
Methods
• TFTP server management
• USB operations
• System defaults
• Banner Messages
• AAA configuration
addRadiusServersWithConfiguration
Description
This method adds one or more RADIUS servers.
Parameters
Tab le 50 contains the parameters required for the method.
Specifies one or more Telnet clients for
deletion.
53-1003248-01
Error messages
List of Error Messages
disableSnmpAccessOnPorts
Description
This method disables one or more Ethernet ports for SNMP access.
Parameters
Tab le 78 contains the parameters required for the method.
TABLE 78Parameters
NameTypePresenceRulesDescription
Methods
3
portsPortListMandatoryOnly Ethernet port numbers
are allowed.
Error messages
List of Error Messages
Specifies one or more Ethernet port
numbers.
disableSnmpTraps
Description
This method disables one or more SNMP traps.
Parameters
Tab le 79 contains the parameters required for the method.
TABLE 79Parameters
NameTypePresenceRulesDescription
trapListsnmpTrapsEnum[ ]MandatorySpecifies one or more SNMP traps.
Error messages
List of Error Messages
enableSnmpAccessOnPorts
Description
This method enables one or more Ethernet ports for SNMP access.
Parameters
Tab le 80 contains the parameters required for the method.
TABLE 80Parameters
NameTypePresenceRulesDescription
portsPortListMandatoryOnly Ethernet port
numbers are allowed.
Brocade Virtual ADX XML API Programmer’s Guide37
53-1003248-01
Specifies one or more Ethernet port numbers.
3
Methods
Error messages
List of Error Messages
enableSnmpTraps
Description
This method enables one or more SNMP traps.
Parameters
Tab le 81 contains the parameters required for the method.
TABLE 81Parameters
NameTypePresenceRulesDescription
trapListsnmpTrapsEnum[ ] MandatorySpecifies one or more SNMP traps.
Error messages
List of Error Messages
generateCryptoRandomNumberSeed()
Description
This method creates a seed for generating a random number. This is an asynchronous operation
and will not complete immediately.
Parameters
None.
Error messages
List of Error Messages
getAllFilesAndDirectories
Description
This method retrieves all the files and/or directories listings and displays the contents of the root
level of code flash, USB0, and USB1.
38Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Parameters
Tab le 82 contains the parameters required for the method.
TABLE 82Parameters
NameTypePresenceRulesDescription
Methods
3
startIndexunsignedIntOptionalSets the start
index for
retrieving the
files and/or
directories.
numRetrievedunsignedIntOptionalSpecifies the number of files and/or directories
FilterFileFilterOptionalFilter criteria.
When both startIndex and numRetrieved
parameters are not present, then all the
possible files and/or directories are returned.
to be retrieved. The maximum value allowed is
1024. When both startIndex and numRetrieved
parameters are not present, then all possible
files and/or directories are returned.
Return values
Tab le 83 contains the return values of the method.
TABLE 83Return values
NameTypeDescription
genericInfoResponseInformationGeneric information. This provides the information - total entries available
and the time at which the values are retrieved.
fileListFileInfo[]Retrieves the files and/or directories (First-level) from Code flash or USB
drives.
Error messages
List of Error Messages
getAllRadiusServersConfiguration
Description
This method retrieves all the configured RADIUS servers.
Parameters
Tab le 84 contains the parameters required for the method.
TABLE 84Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalThe start index.
numRetrievedunsignedIntOptionalSpecifies the number of configured RADIUS
servers to be retrieved. The maximum value
allowed is 8. When both startIndex and
numRetrieved parameters are not present,
then all possible configured RADIUS servers
will be returned.
FilterRadiusServerFilterOptionalFilter criteria.
Brocade Virtual ADX XML API Programmer’s Guide39
53-1003248-01
3
Methods
Return values
Tab le 85 contains the return values of the method.
TABLE 85Return values
NameTypeDescription
genericInfo ResponseInformationGeneric information. This provides the information - total entries
available and the time at which the values are retrieved.
serverListRadiusServerConfiguration[ ] Retrieves all the configured RADIUS servers.
Error messages
List of Error Messages
getAllSnmpClients
Description
This method retrieves all the configured SNMP clients.
Parameters
Tab le 86 contains the parameters required for the method.
TABLE 86Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalSets the start index for retrieving the configured
SNMP clients.When both startIndex and
numRetrieved parameters are not present, then
all the possible configured SNMP clients will be
returned.
numRetrievedunsignedIntOptionalSpecifies the number of configured SNMP clients
to be retrieved. The maximum value allowed is 64.
When both startIndex and numRetrieved
parameters are not present, then all possible
configured SNMP clients will be returned.
FilterSnmpClientFilter OptionalFilter criteria.
Return values
Tab le 87 contains the return values of the method.
TABLE 87Parameters
NameTypeDescription
genericInfoResponseInformation This provides the information - total entries available and the time at which
the values are retrieved.
clientListSnmpClient[ ]Retrieves all the IPv4 and IPv6 configured SNMP clients.
Error messages
List of Error Messages
40Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
getAllSnmpCommunityStrings
Description
This method retrieves all the configured SNMP community strings.
Parameters
Tab le 88 contains the parameters required for the method.
TABLE 88Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalSets the start index for retrieving the configured
SNMP clients. When both startIndex and
numRetrieved parameters are not present, then
all the possible configured SNMP clients will be
returned.
numRetrieved unsignedIntOptionalSpecifies the number of configured SNMP clients
to be retrieved. The maximum value allowed is 64.
When both startIndex and numRetrieved
parameters are not present, then all possible
configured SNMP clients will be returned.
Tab le 89 contains the return values of the method.
TABLE 89Parameters
NameTypeDescription
genericInfoResponseInformationGeneric information. This provides the information - total entries
available and the time at which the values are retrieved.
commStrListSnmpServerCommStrConfig[ ] Retrieves all the configured SNMP community strings.
Error messages
List of Error Messages
getAllSnmpGroups
Description
This method retrieves all the configured SNMP groups.
Brocade Virtual ADX XML API Programmer’s Guide41
53-1003248-01
3
Methods
Parameters
Tab le 90 contains the parameters required for the method.
TABLE 90Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalSets the start index for retrieving the SNMP
groups. When both startIndex and
numRetrieved parameters are not present, then
all the possible SNMP groups will be returned.
numRetrievedunsignedIntOptionalSpecifies the number of SNMP groups to be
retrieved. The maximum value allowed is 64.
When both startIndex and numRetrieved
parameters are not present, then all possible
SNMP groups will be returned.
FilterSnmpGroupFilterOptionalFilter criteria.
Return values
Tab le 91 contains the return values of the method.
TABLE 91Return values
NameTypeDescription
genericInfoResponseInformationGeneric information. This provides the information - total entries
available and the time at which the values are retrieved.
groupListSnmpGroupConfig[ ]Retrieves all the SNMP groups configuration information.
Error messages
List of Error Messages.
getAllTacacsServersConfiguration
Description
This method retrieves all the configured TACACS servers.
Parameters
Tab le 92 contains the parameters required for the method.
TABLE 92Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalSets the start
index for
retrieving the
configured
TACACS servers.
numRetrieved unsignedIntOptionalSpecifies the number of configured TACACS
FilterTacacsServerFilter OptionalFilter criteria.
When both startIndex and numRetrieved
parameters are not present, then all the
possible configured TACACS servers will be
returned.
servers to be retrieved. The maximum value
allowed is 8. When both startIndex and
numRetrieved parameters are not present,
then all possible configured TACACS servers
will be returned.
42Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
Return values
Tab le 93 contains the return values of the method.
TABLE 93Return values
NameTypeDescription
genericInfo ResponseInformationThis provides the total entries available and the time at which the
values are retrieved.
serverListTacacsServerConfiguration[ ] Retrieves all the configured TACACS servers.
Error messages
List of Error Messages
getAllSnmpTrapReceivers
Description
This method retrieves all the configured SNMP trap receivers.
Parameters
Tab le 94 contains the parameters required for the method.
TABLE 94Parameters
NameTypePresenceRulesDescription
3
startIndexunsignedIntOptionalSets the start index for retrieving the SNMP trap
receivers. When both startIndex and numRetrieved
parameters are not present, then all the possible SNMP
trap receivers will be returned.
numRetrievedunsignedIntOptionalSpecifies the number of SNMP trap receivers to be
retrieved. The maximum value allowed is 64. When both
startIndex and numRetrieved parameters are not
present, then all possible SNMP trap receivers will be
returned.
FilterSnmpTrapFilter OptionalFilter criteria.
Return values
Tab le 95 contains the return values of the method.
TABLE 95Return values
NameTypeDescription
genericInfoResponseInformationGeneric information. This provides the information - total entries
available and the time at which the values are retrieved.
receiverListSnmpTrapReceiverConfig[ ] Retrieves all the SNMP trap receivers configuration information.
Error messages
List of Error Messages
Brocade Virtual ADX XML API Programmer’s Guide43
53-1003248-01
3
Methods
getAllSnmpv3Users
Description
This method retrieves all the configured SNMPv3 users.
Parameters
Tab le 96 contains the parameters required for the method.
TABLE 96Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalSets the start index for retrieving the SNMPv3
users. When both the startIndex and the
numRetrieved parameters are not present,
then all the possible SNMPv3 users will be
returned.
numRetrievedunsignedIntOptionalSpecifies the number of SNMPv3 users to be
retrieved. The maximum value allowed is 64.
When both startIndex and numRetrieved
parameters are not present, then all possible
SNMPv3 users are returned.
FilterSnmpv3UserFilterOptionalFilter criteria.
Return values
Tab le 97 contains the return values of the method.
TABLE 97Return values
NameTypeDescription
genericInfoResponseInformationGeneric information. This provides the information - total entries
available and the time at which the values are retrieved.
userListSnmpv3UserConfig[ ]Retrieves all the SNMPv3 users configuration information.
Error messages
List of Error Messages
getAllSnmpViews
Description
This method retrieves all the configured SNMP views.
Parameters
Tab le 98 contains the parameters required for the method.
TABLE 98Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalSets the start index for retrieving the SNMP
views. When both the startIndex and
numRetrieved parameters are not present, then
all the possible SNMP views will be returned.
44Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
TABLE 98Parameters
NameTypePresenceRulesDescription
numRetrievedunsignedIntOptionalSpecifies the number of SNMP views to be
retrieved. The maximum value allowed is 64.
When both startIndex and numRetrieved
parameters are not present, then all possible
SNMP views will be returned.
FilterSnmpViewFilterOptionalFilter criteria.
Return values
Tab le 99 contains the return values of the method.
TABLE 99Return values
NameTypeDescription
genericInfoResponseInformation Generic information. This provides the information - total entries
available and the time at which the values are retrieved.
viewListSnmpViewConfig[ ]Retrieves all the SNMP views configuration information.
Error messages
List of Error Messages
3
getAllSshConnections
Description
This method retrieves all the established SSH connections information.
Parameters
Tab le 100 contains the parameters required for the method.
TABLE 100Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalSets the start index for retrieving the SSH
connections information. When both startIndex
and numRetrieved parameters are not present,
then all the possible SSH connections information
will be returned.
numRetrievedunsignedIntOptionalSpecifies the number of SSH connections to be
retrieved. The maximum value allowed is 20.
When both startIndex and numRetrieved
parameters are not present, then all possible SSH
connections will be returned.
FilterSshConnectionFilterOptionalFilter criteria.
Brocade Virtual ADX XML API Programmer’s Guide45
53-1003248-01
3
Methods
Return values
Table 101 contains the return values of the method.
TABLE 101Return values
NameTypeDescription
genericInfoResponseInformationGeneric information. This provides the information - total entries
available and the time at which the values are retrieved.
connectionList SshServerConnection[ ] Retrieves all the established SSH connections information.
Error messages
List of Error Messages
getAllTelnetClients
Description
This method retrieves all the configured Telnet clients information.
Parameters
Tab le 102 contains the parameters required for the method.
TABLE 102Parameters
NameTypePresenceRulesDescription
startIndexunsignedIntOptionalSets the start
index for retrieving
the configured
Telnet clients.
numRetrieved unsignedIntOptionalSpecifies the number of configured Telnet
FilterTelnetClientFilter OptionalFilter criteria.
When both startIndex and numRetrieved
parameters are not present, then all the
possible configured Telnet clients will be
returned.
clients to be retrieved. The maximum
value allowed is 64. When both startIndex
and numRetrieved parameters are not
present, then all possible configured
Telnet clients will be returned.
Return values
Tab le 103 contains the return values of the method.
TABLE 103Return values
NameTypeDescription
genericInfoResponseInformation Generic information. This provides the information - total entries available
and the time at which the values are retrieved.
clientListTelnetClient[ ]Retrieves all the configured Telnet clients information.
Error messages
List of Error Messages
46Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
getAAAConfiguration
Description
This method retrieves the AAA configuration.
Return values
Tab le 104 contains the return values of the method.
TABLE 104Return values
NameTypeDescription
authenticationConfigAuthenticationConfiguration Retrieves the Authentication configuration.
authorizationConfigAuthorizationConfigurationRetrieves the Authorization configuration.
accountingConfigAccountingConfigurationRetrieves the Accounting configuration.
initiateRetrievalbooleanOptionalRetrieving the config-sync status is an
asynchronous action, as communication
happens between sender and receiver.
When the value of this parameter is set to TRUE,
then the status retrieval is initiated; when set to
FALSE (or not present), then last retrieved
status (if present) is sent as part of the
response.
Return values
TABLE 108Return values
ParametersTypeDescription
retrievalState configSyncRetrievalStateEnum Current state of the retrieval of config-sync status information.
Description
This method sets the RADIUS server global configuration.
Parameters
Tab le 149 contains the parameters required for the method.
TABLE 149Parameters
Name TypePresenceRulesDescription
config RadiusServerGlobalConfiguration MandatorySpecifies the RADIUS server global
configuration.
Error messages
List of Error Messages
setRadiusServersConfiguration
Description
This method sets one or more existing RADIUS servers parameters i.e authentication port and/or
accounting port number.
60Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
Parameters
Tab le 150 contains the parameters required for the method.
TABLE 150Parameters
NameTypePresenceRulesDescription
3
serverList RadiusServerConfiguration[ ] Mandatory Allowed parameters for set are
“authenticationPort”,
“accountingPort”, “serverRole”,
“key” and “isEncryption”.
Maximum 8 RADIUS servers
allowed.
Specifies one or
more RADIUS
servers for updation.
Error messages
List of Error Messages
setSnmpServerGlobalConfiguration
Description
This method sets the SNMP server configuration.
Parameters
Tab le 151 contains the parameters required for the method.
TABLE 151Parameters
NameTypePresenceRulesDescription
configSnmpServerGlobalConfigurationMandatorySpecifies the SNMP server
configuration.
Error messages
List of Error Messages
setSshServerGlobalConfiguration
Description
This method sets the SSH server configuration.
Parameters
Tab le 152 contains the parameters required for the method.
TABLE 152Parameters
NameTypePresenceRulesDescription
configSshServerGlobalConfigurationMandatorySpecifies the SSH server configuration
Error messages
List of Error Messages
Brocade Virtual ADX XML API Programmer’s Guide61
53-1003248-01
3
Methods
setTacacsServerGlobalConfiguration
Description
This method sets the TACACS server global configuration.
Parameters
Tab le 153 contains the parameters required for the method.
TABLE 153Parameters
NameTypePresenceRulesDescription
config TacacsServerGlobalConfigurationMandatorySpecifies the TACACS server configuration.
Error messages
List of Error Messages
setTacacsServersConfiguration
Description
This method sets one or more existing TACACS configuration.
Parameters
Tab le 154 contains the parameters required for the method.
TABLE 154Parameters
NameTypePresenceRulesDescription
serverList TacacsServerConfiguration[ ] Mandatory The parameters
“authenticationPort”,
“serverRole”, “key” and
“isEncryption” are allowed.
A maximum of 8 TACACS servers
are allowed.
Specifies one or
more TACACS servers
to be updated.
Error messages
List of Error Messages
setTelnetServerGlobalConfiguration
Description
This method sets the Telnet server configuration.
Parameters
Tab le 155 contains the parameters required for the method.
TABLE 155Parameters
NameTypePresenceRulesDescription
configTelnetServerGlobalConfigurationMandatorySpecifies the Telnet server
configuration.
62Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Error messages
List of Error Messages
setVlanOnTftp
Description
This method enables the access restriction of TFTP on a VLAN.
Return values
Tab le 156 contains the return values of the method.
TABLE 156Return values
NameTypeDescription
vlanunsignedIntSpecifies a VLAN ID from which TFTP is accessible.
Error messages
List of Error Messages
updateAAAConfiguration
Methods
3
Description
This method updates the AAA configuration.
Parameters
Tab le 157 contains the parameters required for the method.
TABLE 157Parameters
NameTypePresenceRulesDescription
authenticationConfigAuthenticationConfigurationOptionalSpecifies the Authentication
configuration.
authorizationConfigAuthorizationConfigurationOptionalSpecifies the Authorization
configuration.
accountingConfigAccountingConfigurationOptionalSpecifies the Accounting
configuration.
enableAaaConsoleLogin booleanOptionalEnables or disables console login
AAA configuration.
Error messages
List of Error Messages
updateBannerMessage
Description
This method updates the banner messages.
Brocade Virtual ADX XML API Programmer’s Guide63
53-1003248-01
3
Methods
Parameters
Tab le 158 contains the parameters required for the method.
TABLE 158Parameters
NameTypePresenceRulesDescription
messageBannerMessageMandatorySpecifies the banner message.
Error messages
List of Error Messages
updateRadiusServerGlobalConfiguration
Description
This method updates the existing RADIUS server global configuration.
Parameters
Tab le 159 contains the parameters required for the method.
TABLE 159Parameters
NameTypePresenceRulesDescription
configRadiusServerGlobalConfigurationMandatorySpecifies the RADIUS Server
configuration.
Error messages
List of Error Messages
updateSnmpCommunityStrings
Description
This method updates one or more existing SNMP community strings.
Parameters
Tab le 160 contains the parameters required for the method.
TABLE 160Parameters
NameTypePresenceRulesDescription
commStrListSnmpServerCommStrConfig[ ] Mandatory The parameter
“viewName” can only
be updated.
Error messages
List of Error Messages
Specifies one or more
existing SNMP community
strings.
updateSnmpServerGlobalConfiguration
Description
This method specifies the SNMP server configuration.
64Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
Parameters
Tab le 161 contains the parameters required for the method.
TABLE 161Parameters
NameTypePresenceRulesDescription
configSnmpServerGlobalConfigurationMandatorySpecifies the SNMP server configuration.
Error messages
List of Error Messages
updateSshServerGlobalConfiguration
Description
This method updates the existing SSH server configuration.
Parameters
Tab le 162 contains the parameters required for the method.
TABLE 162Parameters
NameTypePresenceRulesDescription
3
configSshServerGlobalConfigurationMandatorySpecifies the existing SSH Server
configuration.
Error messages
List of Error Messages
updateTacacsServerGlobalConfiguration
Description
This method updates the existing TACACS server global configuration.
Parameters
Tab le 163 contains the parameters required for the method.
TABLE 163Parameters
NameTypePresenceRulesDescription
config TacacsServerGlobalConfigurationMandatorySpecifies the existing TACACS server
configuration.
Error messages
List of Error Messages
updateTelnetServerGlobalConfiguration
Description
This method updates the existing Telnet server configuration.
Brocade Virtual ADX XML API Programmer’s Guide65
53-1003248-01
3
Methods
Parameters
Tab le 164 contains the parameters required for the method.
TABLE 164Parameters
NameTypePresenceRulesDescription
configTelnetServerGlobalConfigurationMandatorySpecifies the Telnet server configuration.
Error messages
List of Error Messages
Role Based Management
Description
The Role Based Management (RBM) APIs allows user to create different administrative domains
and enable user-based access privileges for XML APIs.
addContextsToUsers
Description
Add one or more contexts to multiple users.
Parameters
Tab le 165 contains the parameters required for the method.
TABLE 165Parameters
NameTypePresenceRulesDescription
contextContexts[ ] OptionalMaximum 32
characters
usernames string[ ]MandatoryIdentifies the usernames.
Return values
Not applicable.
Error messages
List of Error Messages
Identifies the context information to be retrieved.
addRoleTemplatesToUsers
Description
Adds one or more templates to multiple users.
66Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
Parameters
Tab le 166 contains the parameters required for the method.
3
TABLE 166Parameters
NameTypePresenceRulesDescription
usernamesstring[ ]MandatoryIdentifies the usernames.
roleTemplateNames stringMandatoryIdentifies the role template names.
Return values
Not applicable.
Error messages
List of Error Messages
createContext
Description
Creates one or more contexts on the system. This request takes array of contexts as input. If the
operation fails in the middle, it stops the operation and returns an error to the user.
Parameters
Tab le 167 contains the parameters required for the method.
TABLE 167Parameters
NameTypePresenceRulesDescription
contextstring[ ]Mandatory Maximum 32 charactersIdentifies the context information to be retrieved.
Return values
Not applicable.
Error messages
List of Error Messages
createRoleTemplate
Description
Creates one or more new role templates on the system with the given template parameters. If the
operation fails in the middle, the rollback is performed only for the failed operation.
Parameters
Tab le 168 contains the parameters required for the method.
TABLE 168Parameters
NameTypePresenceRulesDescription
roleTemplatesRoleTemplate[ ]OptionalIdentifies the role template data structure.
Return values
Not applicable.
Brocade Virtual ADX XML API Programmer’s Guide67
53-1003248-01
3
Methods
Error messages
List of Error Messages
createUser
Description
Creates one or more users with the given user specific information such as username, type of user,
and password etc. If the operation fails in the middle, it returns an appropriate error message and
terminates the operation, rollback is not supported.
Parameters
Tab le 169 contains the parameters required for the method.
TABLE 169Parameters
NameTypePresenceRulesDescription
usersUser[ ]MandatoryIdentifies the user specific information.
Return values
Not applicable.
Error messages
List of Error Messages
deleteAllContexts
Description
Deletes all the contexts configured on the system.
Parameters
Not applicable.
Return values
Not applicable.
Error messages
List of Error Messages
deleteContext
Description
Deletes one or more contexts configured on the system.
Parameters
Tab le 170 contains the parameters required for the method.
TABLE 170Parameters
NameTypePresenceRulesDescription
contextstring[ ]Mandatory Maximum 32 characters.Identifies the context information to be deleted.
68Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
Return values
Not applicable.
Error messages
List of Error Messages
deleteRoleTemplate
Description
Deletes one or more role templates on the system.
Parameters
Tab le 171 contains the parameters required for the method.
TABLE 171Parameters
NameTypePresenceRulesDescription
roleTemplateNames string[ ]OptionalIdentifies the names of the role template.
Return values
Not applicable.
3
Error messages
List of Error Messages
deleteUser
Description
Deletes one or more users in the system.
Parameters
Tab le 172 contains the parameters required for the method.
TABLE 172Parameters
NameTypePresenceRulesDescription
userNames string[ ]MandatoryIdentifies the usernames in the system.
Return values
Not applicable.
Error messages
List of Error Messages
enableUserPasswordAging
Description
This method enables user password aging.
Brocade Virtual ADX XML API Programmer’s Guide69
53-1003248-01
3
Methods
Parameters
Tab le 173 contains the parameters required for the method.
TABLE 173Parameters
NameTypePresenceRulesDescription
enablePasswordAging boolean OptionalBoolean to identify if password aging is required.
Return values
None.
Error messages
List of Error Messages
getAllContexts
Description
Retrieves all the contexts configured on the system. Total number of contexts added as part of the
response header field "totalEntriesAvailable". Return the total number of contexts configured on
the device if startIndex and numRetrieved values are zero.
Parameters
Tab le 174 contains the parameters required for the method.
filterContextFilter OptionalSpecifies the filter criteria.
Identifies the start index for retrieving the
contexts information.
Identifies the number of contexts to be
retrieved. Maximum value allowed is 256.
Return values
Tab le 175 contains the return values of the method.
TABLE 175Return values
NameTypeDescription
genericInfo ResponseInformation Generic information
contextsContextSummary[ ]Identifies the context information to be retrieved.
Error messages
List of Error Messages
70Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
3
getAllRoleTemplates
Description
Retrieves all the role templates configured on the system. Total number of templates filed added as
part of the response header (field “total Entries Available”).Returns all the role templates
configured on the device, if ‘startIndex’ and ‘numRetrieved’ values are zero.
Parameters
Table 176 contains the parameters required for the method.
TABLE 176Parameters
NameTypePresence RulesDescription
startIndexunsignedIntOptionalIdentifies the starting index for retrieving the
contexts information.
numRetrieved unsignedIntOptionalIdentifies the number of contexts to be retrieved.
Maximum value allowed is 256.
filterRoleTemplateFilter OptionalSpecifies the filter criteria.
Return values
Tab le 177 contains the return values of the method.
TABLE 177Return values
NameTypeDescription
genericInfoResponseInformation Identifies the generic information about all the role
templates configured on the system.
roleTemplates RoleTemplate[ ]Identifies the role template information retrieved
and the total number of role templates.
Error messages
List of Error Messages
getAllUsers
Description
Retrieves all the users based on the filter criteria specified. Total number of users added to
response information header (field - totalEntriesAvailable). Returns the total number of users in the
response header, if the numRetrieved and startIndex fields are zero.
Parameters
Tab le 178 contains the parameters required for the method.
TABLE 178Parameters
NameTypePresence RulesDescription
startIndexunsignedInt Optional Any positive integer value
1 through 1024.
Identifies the start index for retrieving the
contexts information.
Brocade Virtual ADX XML API Programmer’s Guide71
53-1003248-01
3
Methods
TABLE 178Parameters
NameTypePresence RulesDescription
numRetrievedunsignedInt Optional Any positive integer value
1 through 1024.
filterUserFilterOptional Filter type (user type or
context)
Specifies the number of contexts to
retrieve. Maximum value allowed is 32.
Identifies the filtering criteria based on
which the users will be retrieved.
Return values
Tab le 179 contains the return values of the method.
TABLE 179Return values
NameTypeDescription
genericInfo ResponseInformation Identifies the generic information about all the users who meet the specified
filter criteria.
usersUser[ ]Identifies the user details retrieved.
Error messages
List of Error Messages
getContextConfiguration
Description
Retrieves the running configurations of the given context.
Parameters
Tab le 180 contains the parameters required for the method.
TABLE 180Parameters
NameTypePresenceRulesDescription
context string MandatoryMaximum 32 charactersIdentifies the context information to be retrieved.
Return values
Tab le 181 contains the return values of the method.
TABLE 181Return values
NameTypeDescription
genericInfoResponseInformation Identifies the generic information about the running configurations of the
given context.
contextConfig stringIdentifies the running configuration of the given context.
Error messages
List of Error Messages
getRoleTemplate
Description
Retrieves a specific template information from the system.
72Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
Parameters
Tab le 182 contains the parameters required for the method.
TABLE 182Parameters
NameTypePresenceRulesDescription
roleTemplateNamestringOptionalIdentifies the name of the role template.
Return values
Tab le 183 contains the return values of the method.
TABLE 183Return values
NameTypeDescription
genericInfoResponseInformation Identifies the generic information about the role template.
roleTemplate RoleTemplateDisplays the role template information retrieved.
Error messages
List of Error Messages
getUser
3
Description
Retrieves the user specific information for the specified user.
Parameters
Tab le 184 contains the parameters required for the method.
TABLE 184Parameters
NameTypePresenceRulesDescription
userNamestringMandatoryIdentifies the username.
Return values
Tab le 185 contains the return values of the method
TABLE 185Return values
NameTypeDescription
genericInfo ResponseInformation Identifies the generic information about the specified user.
userUserIdentifies the user information for the given user.
Error messages
List of Error Messages
getUserPasswordAgingStatus
Description
Retrieves the enable user password aging status.
Brocade Virtual ADX XML API Programmer’s Guide73
53-1003248-01
3
Methods
Return values
Tab le 186 contains the return values of the method
TABLE 186Return values
NameTypeDescription
statusbooleanStatus of user password aging.
Error messages
List of Error Messages
updateRoleTemplate
Description
Updates one or more existing role templates on the system with the given template parameters.
This operation performs the full update. If the update fails in the middle, there is no rollback
mechanism to revert the changes.
Parameters
Tab le 187 contains the parameters required for the method.
TABLE 187Parameters
NameTypePresenceRulesDescription
roleTemplateRoleTemplate[ ]OptionalIdentifies the role template data structure.
Return values
Not applicable.
Error messages
List of Error Messages
updateUser
Description
Updates one or more users with the given user specific information. This method updates the
inputs provided with the current request. A full update is performed for the specified user. There is
no rollback for the failed updates.
Parameters
Tab le 188 contains the parameters required for the method.
TABLE 188Parameters
NameTypePresenceRulesDescription
usersUser[ ] MandatoryIdentifies the user specific information.
Return values
Not applicable.
74Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
3
Error messages
List of Error Messages
Config Template basic operations
Description
Config Template basic operations provides a set of operations to add, execute, validate, and upload
the Config Templates in the following template storage areas as expressed by an enumeration.
• Read-only predefined area
• Mutable user-defined templates area
• Ready-to-use area for templates that can be executed without any further input
The following APIs configure the Config Template basic operations on the Brocade Virtual ADX.
addInputToTemplateFile
Description
Adds inputs to a named template file and saves a "cooked" copy in the "ready-to-use" storage area.
Parameters
Tab le 189 contains the parameters for this method.
TABLE 189addInputToTemplateFile parameters
ParameterTypePresenceRulesDescription
sourceNamestringMandatoryMust match the DOS
8.3 filename format.
sourceAreatemplateStorageAreaEnum Mandatory"ALL_AREAS" is not
allowed.
inputsTempl ate Var iab le[ ]MandatoryOnly "variableName"
and "defaultValue"
fields are used.
destinationNamestringMandatoryMust match the DOS
8.3 filename format.
The file name of the
source template.
The storage area
where the source
template is found.
Input values to add
into the template
content.
The file name of the
resultant template
(which will have the
input data included).
Return values
Tab le 190 contains the return values for this method.
TABLE 190addInputToTemplateFile return values
NameTypeDescription
statustemplateOperationStatusEnumThe status of the operation.
Brocade Virtual ADX XML API Programmer’s Guide75
53-1003248-01
3
Methods
TABLE 190addInputToTemplateFile return values
NameTypeDescription
overallRe
sult
resultTemplateSummaryFilter[ ]Returns a collection of messages about the template operation
templateResultTypeEnumThe overall result of the operation.
results.
Error messages
List of Error Messages
addTemplate
Description
Creates a new template with directly-provided content.
Parameters
Tab le 191 contains the parameters for this method.
TABLE 191addTemplate parameters
ParameterTypePresenceRulesDescription
namestringMandatoryMust match the DOS
8.3 filename format.
areatemplateStorageAreaEnum Mandatory"ALL_AREAS" and
"PRE_DEFINED_ARE
A" not allowed. If
"READY_TO_USE_AR
EA" is used, the
template must not
be "raw" (lacking
user input required
to execute)
checkForRawbooleanMandatoryIf false, bypass the
check for preventing
"raw" templates in
the ready-to-use"
area.
templateContentstringMandatoryMaximum size is
expected to be
approx 750k.
The file name under
which the template
will be stored.
The storage area
where the template
will be stored.
The template
content to be
verified to see
whether it is “raw”.
The XML content of
the template
protected in a
"CDATA" wrapper.
Return values
None.
Error messages
List of Error Messages
76Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Methods
deleteTemplate
Description
Deletes a template file from an ADX template storage area.
Parameters
Tab le 192 contains the parameters for this method.
TABLE 192deleteTemplate parameters
ParameterTypePresenceRulesDescription
3
namestringMandatoryMust match the DOS
8.3 filename format.
areatemplateStorageAreaEnum Mandatory"ALL_AREAS" and
"PRE_DEFINED_ARE
A" are not allowed.
The file name of the
template.
The storage area
where the template
is found.
Return values
None.
Error messages
List of Error Messages
executeTemplateContent
Description
Executes a directly-provided template with optional inputs.
Parameters
Tab le 193 contains the parameters for this method.
“aaaMethodList
” takes only the
values: NONE,
RADIUS and
TACACS+.
Brocade Virtual ADX XML API Programmer’s Guide87
53-1003248-01
This parameter
specifies the default
authorization method
list. The EXEC
authorization
determines a user’s
privilege level when
they are authenticated.
This parameter
specifies the command
authorization
configuration for
different privilege-level
users.
Data structures
3
BannerMessage
This structure is a high-level description for configuring the banner messages on Brocade Virtual
ADX.
is allowed. The string can be
from 1 – 2548 characters in
length.
execMessagestringOptionalMaximum 2548 characters
is allowed. The string can be
from 1 – 2548 characters in
length.
This parameter specifies an ASCII
string message to be displayed on a
User’s terminal whenever a Telnet
CLI session is established.
This parameter specifies an ASCII
string message to be displayed on
the Console when a user
establishes a Telnet session. This
message indicates where the user is
connecting from and displays a
configurable text message.
This parameter specifies an ASCII
string message to be displayed
when a user enters the Privileged
EXEC CLI level.
boardID
This structure is the high-level description of the chassis board.
TABLE 215Attributes
NameTypeRequiredRulesDescription
bootPromMacstringYesThe MAC address of the boot PROM.
modelstringYesThe chassis model.
serialNumstringYesThe serial number of the chassis.
BpID
This structure is the high-level description of BP number.
TABLE 216Attributes
NameTypeRequiredRulesDescription
asmSlotNumberunsignedIntThe chassis slot containing the module.
bpNumberunsignedIntThe BP (numbered from 1 – 8 maximum).
88Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Data structures
BpNameAndState
This structure is the high-level description of BP name with state.
TABLE 217Attributes
NameTypeRequiredRulesDescription
bpNumberunsignedIntOptionalThe name of the BP.
bpStatebpStateEnumOptionalThe state of the ASMs.
ConfigSyncConfiguration
This structure is the high-level description of config-sync configuration.