List Guest Networking Interfaces
Released in v7.0.0 DescriptionReturns information about the networking interfaces in the guest operating system.
Request
URLURL
https://{api_host}/rest/vcenter/vm/{vm}/guest/networking/interfaces
Parameters
Parameters
string
vm
Required
Virtual machine ID
The parameter must be an identifier for the resource type: VirtualMachine.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
VmGuestNetworkingInterfacesListResponseBody
of type application/json
Information about the interfaces configured in the guest operating system. Interfaces are ordered in a guest operating system specific determined order.
{
"value": [
{
"dns": {
"ip_addresses": [
"string"
],
"search_domains": [
"string"
]
},
"dns_values": {
"domain_name": "string",
"host_name": "string"
},
"ip": {
"dhcp": {
"ipv4_enabled": false,
"ipv6_enabled": false
},
"ip_addresses": [
{
"ip_address": "string",
"origin": "enum",
"prefix_length": 0,
"state": "enum"
}
]
},
"mac_address": "string",
"nic": "string",
"wins_servers": [
"string"
]
}
]
}
array of
VmGuestNetworkingInterfacesInfo
value
Optional
Information about the interfaces configured in the guest operating system. Interfaces are ordered in a guest operating system specific determined order.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/vcenter/vm/{vm}/guest/networking/interfaces
Errors
404
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request. | com.vmware.vapi.std.errors.not_found : if the virtual machine is not found.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.