Troubles with creating GRE tunnel on NSX edge…

This post was originally published on this site

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?

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.