For more details, please see ourCookie Policy.


Management Software

Reply
New Contributor
Posts: 3
Registered: ‎12-08-2015

Possible to create a wwn alias via REST call?

I am working on creating orchestration scripts using REST calls and am unable to find the proper method to create a wwn alias?  Essentially the script will enable a port get the initiator wwn and create an alias which I will then use to create a zone.  Am I missing something in the REST documents?

New Contributor
Posts: 3
Registered: ‎12-08-2015

Re: Possible to create a wwn alias via REST call?

So going back through previous REST API docs I found some examples that do show how to create a zoneAliases using the createzoningobject call.  However when I attempt to create an aliase I get the following error:

 

Invoke-RestMethod : RSError [errorCode=16103, errorMsg=Transaction does not exist]

 

This is my powerhsell call:

Invoke-RESTMethod -uri http://$bserver/rest/resourcegroups/$rgkey/fcfabrics/$fcindex/createzoningobject -method POST -headers $creds -body $fbody -ContentType 'application/vnd.brocade.networkadvisor+json;version=v1'

 

the body is as follows:

 

{
     "zoneAliases": [
          {

               "name": "TestAlias",
               "memberNames": [
                                              "50:01:00:00:00:00:00:01",
                                              "50:01:00:00:00:00:00:00"
                                            ]
          }
     ]
}

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.