Policy > Security > Endpoint Protection > Rules

Create or update Endpoint policy

Create or update the Endpoint policy.
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>/endpoint-policies/<endpoint-policy-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
EndpointPolicy+

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/infra/domains/gi_domain/endpoint-policies/map1 { "endpoint_rules": [ { "display_name": "gi-entry-1", "sequence_number": 0, "groups": [ "/infra/domains/gi_domain/groups/test_group" ], "service_profiles": [ "/infra/service-references/SR_1/service-profiles/SP_1" ] } ], "sequence_number": 0 }

Successful Response:

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

Required Permissions:

crud

Feature:

policy_gi

Additional Errors: