1 Reply Latest reply on Dec 17, 2015 1:30 PM by 2cool2touch

    ISSUE: placing an "edge" firewall rule with REST API above another one... (not working)

    i1wan Novice
    vExpert

      Hi,

       

      I just created an (edge) firewall rule with REST API:

       

        POSThttps://<nsx-manager-ip>/api/4.0/edges/edge-5/firewall/config/rules

       

      <firewallRules>

          <firewallRule>

              <name>rule1</name>

              <ruleType>user</ruleType>

              <enabled>true</enabled>

              <loggingEnabled>false</loggingEnabled>

              <action>accept</action>

              <source>any</source>

              <destination>any</destination>

          </firewallRule>

      </firewallRules>

       

      I now want to create ANOTHER rule and place this ABOVE the rule I just created...

      But somehow if I do that with the correct REST API link syntax it palaces this other rule BELOW the first rule that I created.

       

      POSThttps://<nsx-manager-ip>/api/4.0/edges/edge-5/firewall/config/rules?aboveruleid=133124

       

      <firewallRules>

          <firewallRule>

              <name>rule0</name>

              <ruleType>user</ruleType>

              <enabled>true</enabled>

              <loggingEnabled>false</loggingEnabled>

              <action>accept</action>

              <source>any</source>

              <destination>any</destination>

          </firewallRule>

      </firewallRules>

       

      What am I doing wrong here?