Policy > Networking > Network Services > Forwarding Policies

Create or update forwarding policy

Create or update the forwarding policy.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost) or VMware NSX-T.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/domains/<domain-id>/forwarding-policies/<forwarding-policy-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ForwardingPolicy+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/domains/domain-1/forwarding-policies/forwarding-policy-1 { "resource_type": "ForwardingPolicy", "description": "forwarding-policy-1", "id": "forwarding-policy-1", "display_name": "forwarding-policy", "path": "/infra/domains/domain1/forwarding-policies/forwarding-policy-1", "relative_path": "forwarding-policy-1", "service_instance_path": "/infra/service/PAN", "_create_user": "admin", "_create_time": 1513751042428, "_last_modified_user": "admin", "_last_modified_time": 1513856178337, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 4 }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ForwardingPolicy+

Example Response:

{ "resource_type": "ForwardingPolicy", "description": "forwarding-policy-1", "id": "forwarding-policy-1", "display_name": "forwarding-policy", "path": "/infra/domains/domain1/forwarding-policies/forwarding-policy-1", "relative_path": "forwarding-policy-1", "service_instance_path": "/infra/service/PAN", "_create_user": "admin", "_create_time": 1513751042428, "_last_modified_user": "admin", "_last_modified_time": 1513856178337, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 4 }

Required Permissions:

crud

Feature:

policy_forwarding

Additional Errors: