NSX-T Data Center REST API
Update Endpoint rule
Create a Endpoint rule with the endpoint-rule-id is not already present,otherwise update the Endpoint Rule.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.
Request:
Method:
              PUT
            URI Path(s):
              
              
                  
                  /policy/api/v1/infra/domains/<domain-id>/endpoint-policies/<endpoint-policy-id>/endpoint-rules/<endpoint-rule-id>
                  
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    EndpointRule+
  Example Request:
PUT https://<policy-mgr>/policy/api/v1/infra/domains/gi_domain/endpoint-policies/map1/endpoint-rules/gi-entry-1 { "display_name": "gi-entry-1", "sequence_number": 10, "groups": [ "/infra/domains/gi_domain/groups/test_group" ], "service_profiles": [ "/infra/service-references/SR_1/service-profiles/SP_1" ] }Successful Response:
Response Code:
                200 OK
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    EndpointRule+