Policy > Networking > Network Services > Forwarding Policies

Update forwarding 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 forwarding 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//forwarding-policies/
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>/forwarding-policies/<forwarding-policy-id>/rules/<rule-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ForwardingRule+

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/infra/domains/domain-1/forwarding-policies/forwarding-policy-1 /rules/forwarding-rule-1 { "resource_type": "ForwardingRule", "description": "s3 rule", "id": "rule-1", "display_name": "rule-1", "action":"FORWARD_TO_UNDERLAY", "tags": [], "path": "/infra/domains/domain1/forwarding-policies/forwarding-policy-1000/rules/forwarding-rule-1", "relative_path": "rule-1", "sequence_number": 0, "source_groups": [ "/infra/domains/domain1/groups/srcgrp" ], "services": [ "ANY" ], "logged": false, "destination_groups": [ "/infra/domains/default/groups/S3" ] }

Successful Response:

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

Required Permissions:

crud

Feature:

policy_forwarding

Additional Errors: