Changed1
[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Get DHCP Bindings

Description

Retrieves all DHCP bindings for an Org vDC Network.

Request

Request

URL

URL


get
https://{api_host}/cloudapi/1.0.0/orgVdcNetworks/{vdcNetworkId}/dhcp/bindings
Copy

Path Parameters

Path Parameters

string
vdcNetworkId Required

Query Parameters

Query Parameters

string
cursor Optional

Field used for getting next page of records. The value is supplied by the current result page. If not set, the first page is retrieved. If cursor is set, then all other pagination query parameters such as pageSize, sortDesc, sortAsc, queryFilter are ignored.


integer
pageSize Required

Results per page to fetch.


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns DhcpBindings of type(s) application/json;version=37.0
{
	"values": [
		{
			"bindingType": "string",
			"description": "string",
			"dhcpV4BindingConfig": {
				"gatewayIpAddress": "string",
				"hostName": "string"
			},
			"dhcpV6BindingConfig": {
				"domainNames": [
					"string"
				],
				"sntpServers": [
					"string"
				]
			},
			"dnsServers": [
				"string"
			],
			"id": "string",
			"ipAddress": "string",
			"leaseTime": 0,
			"macAddress": "string",
			"name": "string",
			"version": {
				"version": 0
			}
		}
	]
}
array of DhcpBinding
values Optional

The list of DHCP Bindings.

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl https://{api_host}/cloudapi/1.0.0/orgVdcNetworks/{vdcNetworkId}/dhcp/bindings?pageSize=10


[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
What's changed in v37.0?
INTRODUCED
Availability
Added in 36.1
Org VDC Network DHCP Operations
Feedback

Was this page helpful?