NSX-T Data Center REST API
Create Or Replace VPC Service Profile
If the VPC Service Profile is not already present,create a VPC Service Profile instance. If it already exists, replace
the VPC Service Profile instance with this object.
This API is only available when using VMware NSX.
Request:
Method:
PUT
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:
Content-type: application/json
Response Body:
VpcServiceProfile+