Policy > Security > Service Insertion > Virtual Endpoints > Tier-1 Gateways

Create or update virtual endpoint

Create or update virtual endpoint.
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/tier-1s/<tier-1-id>/locale-services/<locale-service-id>/endpoints/virtual-endpoints/<virtual-endpoint-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
VirtualEndpoint+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tier-1s/avi/locale-services/default/endpoints/virtual-endpoints/VEP_1 { "resource_type": "VirtualEndpoint", "display_name": "VEP_1", "target_ips": [ { "ip_addresses": [ "111.111.112.11" ], "prefix_length": 32 } ], "service_names": [ "AVI_Service" ] }

Successful Response:

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

Example Response:

{ "resource_type": "VirtualEndpoint", "id": "VEP_1", "display_name": "VEP_1", "path": "/infra/tier-1s/avi/locale-services/default/endpoints/virtual-endpoints/VEP_1", "parent_path": "/infra/tier-1s/avi", "relative_path": "VEP_1", "marked_for_delete": false, "target_ips": [ { "ip_addresses": [ "111.111.112.11" ], "prefix_length": 32 } ], "service_names": [ "AVI_Service" ], "_create_user": "admin", "_create_time": 1526676234605, "_last_modified_user": "admin", "_last_modified_time": 1526676234605, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_si

Additional Errors: