NSX-T Data Center REST API
Patch VPC Service Profile
Create VPC Service Profile if not already present,otherwise update the VPC Service Profile.
This API is only available when using VMware NSX.
Request:
Method:
PATCH
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpc-service-profiles/{vpc-service-profile-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
VpcServiceProfile+
Example Request:
{ "id": "vpc-service-profile-id1", "display_name": "vpc-service-profile-id1", "resource_type": "VpcServiceProfile", "spoof_guard_profile": "/infra/spoofguard-profiles/default-spoofguard-profile", "ip_discovery_profile": "/infra/ip-discovery-profiles/default-evpn-ip-discovery-profile", "mac_discovery_profile": "/infra/mac-discovery-profiles/default-mac-discovery-profile", "security_profile": "/infra/segment-security-profiles/default-non-vif-segment-security-profile-for-ens", "qos_profile": "/infra/qos-profiles/default-qos-profile", "dhcp_config": { "dhcp_server_config": { "lease_time": 86400, "dns_client_config": { "dns_server_ips": [ "8.8.8.8" ] }, "ntp_servers": [ "192.168.1.27", "192.168.1.28" ], "advanced_config" { "is_distributed_dhcp": true } }, "dhcp_relay_config": { "server_addresses": [ "192.168.11.1" ] } } }Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a