NSX-T Data Center REST API

Create or update VPC Subnet DHCP static binding

If binding with the binding-id is not already present,
create a new VPC Subnet DHCP static binding instance. If it already exists, replace
the existing VPC Subnet DHCP static binding instance with specified attributes.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/subnets/{subnet-id}/dhcp-static-binding-configs/{binding-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
DhcpV4StaticBindingConfig+
DhcpV6StaticBindingConfig+

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/orgs/org-1/projects/project-1/vpcs/vpc-1/subnets/subnet-1/dhcp-static-binding-configs/binding-1 { "resource_type": "DhcpV4StaticBindingConfig", "gateway_address": "10.1.1.1", "mac_address": "11:22:33:44:55:67", "host_name": "vm1.vmware.com", "ip_address": "30.30.30.175", "options": { "option121": { "static_routes": [ { "network": "10.22.12.1/23", "next_hop": "2.2.2.2" }, { "network": "129.0.0.1/32", "next_hop": "0.0.0.0" } ] } } }

Successful Response:

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

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_vpc_subnet

Additional Errors: