Hello everybody.
I trying to create gre tunnel on edge (NSX-V 6.4.6.14819921) using Rest API.
Post request to https://nsx-manager/api/4.0/edges/edge-15/tunnels
XML for creating:
<name>GRE-T1</name>
<description>GRE Tunnel 1</description>
<type>gre</type>
<enabled>true</enabled>
<sourceAddress>x.x.x.x</sourceAddress>
<destinationAddress>y.y.y.y</destinationAddress>
<tunnelInterface>
<mtu>1380</mtu>
<tunnelAddresses>
<tunnelAddress>z.z.z.1/30</tunnelAddress>
</tunnelAddresses>
</tunnelInterface>
<greConfig>
<enableKeepAliveAck>true</enableKeepAliveAck>
</greConfig>
<tunnelHealthCheck>
<enabled>false</enabled>
<type>ping</type>
<interval>3</interval>
<deadTimeMultiplier>4</deadTimeMultiplier>
</tunnelHealthCheck>
</tunnel>
But I recieved this error:
<error>
<errorCode>254</errorCode>
<details>User is not authorized to access object edge-15 and feature edge.tunnel, please check object access scope and feature permissions for the user.</details>
<moduleName>core-services</moduleName>
</error>
I using user with Enterprize administrator rights.
Why I cannot to create GRE tunnel?
Hey Yacudzer,
Your issue is because you are using a SSO user, you should use admin user to modify using API. One guy had this same issue in the past: NSX API and GRE Tunnels
Hey Yacudzer,
Your issue is because you are using a SSO user, you should use admin user to modify using API. One guy had this same issue in the past: NSX API and GRE Tunnels