VMware Networking Community
Yacudzer
Enthusiast
Enthusiast
Jump to solution

Troubles with creating GRE tunnel on NSX edge...

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:

<tunnel>

<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:

<?xml version="1.0" encoding="UTF-8"?>

<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?

Tags (4)
1 Solution

Accepted Solutions
Lalegre
Virtuoso
Virtuoso
Jump to solution

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

View solution in original post

1 Reply
Lalegre
Virtuoso
Virtuoso
Jump to solution

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