NSX-T Data Center REST API
Update redirection rule
Create a rule with the rule-id is not already present, otherwise update the rule.Performance Note: If you want to edit several rules in a redirection
policy, prefer below mentioned API for optimal performance.
Pass all the rules which you wish to edit as embedded rules to it.
Use this API - PATCH (or PUT)
/infra/domains/<domain-id>/redirection-policies/<red-policy-id>
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.
Request:
Method:
              PATCH
            URI Path(s):
              
              
                  
                  /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>/rules/<rule-id>
                  
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    RedirectionRule+
  Example Request:
PATCH https://<policy-mgr>/policy/api/v1/infra/domains/default/redirection-policies/rcm-1/rules/rule-1 { "resource_type": "RedirectionRule", "description": "Updating the comm entry", "id": "comm-entry-1", "display_name": "comm-entry-1", "action":"REDIRECT", "tags": [], "path": "/infra/domains/domain1/redirection-policies/redirect-policy-1000/rules/redirec-rule-1", "relative_path": "comm-entry-1", "sequence_number": 0, "source_groups": [ "/infra/domains/domain1/groups/srcgrp" ], "services": [ "/infra/services/ORACLE_TNS" ], "logged": false, "destination_groups": [ "/infra/domains/domain1/groups/destgrp" ], "_create_user": "admin", "_create_time": 1509362026134, "_last_modified_user": "admin", "_last_modified_time": 1509362026135, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 1, "scope" : [ "ANY" ] }Successful Response:
Response Code:
                200 OK
              Response Headers:
                  n/a
                Response Body:
    n/a