Policy > Security > Service Insertion > Redirection Policies

Create or update redirection policy

Create or update the redirection policy.
Performance Note: If you want to edit several rules in a redirection policy
use this API. It will perform better than several individual rule APIs.
Just pass all the rules which you wish to edit as embedded rules to it.
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>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
RedirectionPolicy+

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/infra/domains/default/redirection-policies/RedirectionPolicy_1 { "resource_type": "RedirectionPolicy", "description": "RedirectionPolicy_1", "display_name": "RedirectionPolicy_1", "rules": [{ "resource_type": "RedirectionRule", "description": "Rule 1 - ANY to Web", "id": "Rule-1", "display_name": "Rule-1", "action": "REDIRECT", "disabled": true, "sequence_number": 1, "source_groups": [ "ANY" ], # Scope for redirection rule "scope": ["/infra/tier-0s/tier0/locale-services/1-policyconnectivity-1303/interfaces/1-policyconnectivity-1310"], "logged": false, "destination_groups": [ "/infra/domains/default/groups/web" ], "services": [ "/infra/services/ORACLE-FORM-SERVICES" ] } ], "redirect_to": ["/infra/tier-0s/tier0/locale-services/1-policyconnectivity-1303/service-instances/PSI-1"] # Scope not provided for policy. It will be internally decided based on redirect to path. Here, it will be tier0. }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Required Permissions:

crud

Feature:

policy_ni

Additional Errors: