3 Replies Latest reply on Sep 10, 2019 11:36 PM by DaleCoghlan

    error thrown when trying to CREATE an nsx-t redirection rule using REST API.

    harish422 Lurker

      PUT https://10.5.145.79/policy/api/v1/infra/domains/default/redirection-policies/adc3aec0-c640-11e9-a529-3be73129f6e9/rules/redirect-rule-1

       

      request payload :

       

      {

                  "action": "REDIRECT",

                  "resource_type": "RedirectionRule",

                  "display_name": "comm-entry-1",

                  "id": "comm-entry-1",

                  "relative_path": "comm-entry-1",

                  "path": "/infra/domains/default/redirection-policies/adc3aec0-c640-11e9-a529-3be73129f6e9/rules/redirect-rule-1",

                  "marked_for_delete": false,

                  "sources_excluded": false,

                  "destinations_excluded": false,

                  "source_groups": [

                      "/infra/domains/default/groups/IT-web-server-F",

                      "/infra/domains/default/groups/IT-app-server-F"

                  ],

                  "destination_groups": [

                      "/infra/domains/default/groups/IT-web-server-F",

                      "/infra/domains/default/groups/IT-app-server-F"

                  ],

                  "services": [

                      "ANY"

                  ],

                  "profiles": [

                      "ANY"

                  ],

                  "logged": false,

                  "scope": [

                      "ANY"

                  ],

       

       

                  "_revision": 1

              }

       

       

       

       

       

       

      Error thrown :

       

      {

          "httpStatus": "NOT_FOUND",

          "error_code": 500090,

          "module_name": "Policy",

          "error_message": "Policy object path=[/infra/domains/default/redirection-policies/adc3aec0-c640-11e9-a529-3be73129f6e9/rules/redirect-rule-1] does not exist."

      }