Connectrix Brocade: REST API Script Zoning Sample
Summary: Fabric OS v8.2.0 and later support an application programming interface (API) for managing Brocade storage area network (SAN) switches.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
Hardware Support:
TheFOS REST API supports all Brocade Gen 6 Fibre Channel devices that are supported for Fabric OS 8.2.0 and later and Gen 7 devices that are supported for Fabric OS 9.0.0 and later. For a complete list of these platforms, see Supported Hardware and Software. The FOS REST API is not supported on the Brocade FX8-24 blade.
Software Support:
The FOS REST API allows a user, application, or script to control certain aspects of a Brocade Gen 6 storage area network (SAN) device running Fabric OS 8.2.0 and later or a Gen 7 SAN device running Fabric OS 9.0.0 and later. Fabric OS 8.2.0 and later includes CLI commands that control the API functionality, including REST session management.
Brocade
FABOS REST API documents provide the information to create aliases, zones, and more. As an example:
# Create a zone echo "Creating zone…" curl -X POST \ https://${SWITCH_IP}/api/zones \ -H 'Content-Type: application/json' \ -u ${USERNAME}:${PASSWORD} \ -d '{"name": "new_zone", "members": ["port_1", "port_2"]}' # Create an alias echo "Creating an alias…" curl -X POST \ https://${SWITCH_IP}/api/aliases \ -H 'Content-Type: application/json' \ -u ${USERNAME}:${PASSWORD} \ -d '{"name": "new_alias", "members": ["port_5", "port_6"]}'
Note: We do not suggest this, it is the customer's responsibility to create their own scripts according to their specific needs and environment. See the product documents.
Affected Products
Connectrix B-Series Hardware, Connectrix B-Series SoftwareArticle Properties
Article Number: 000279356
Article Type: How To
Last Modified: 14 Apr 2025
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.