03-06-2018 06:04 AM
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?
03-06-2018 08:27 AM
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: