Get Interfaces
Get information about a particular network interface.
Request
URLURL
Path Parameters
Path Parameters
Network interface, for example, “nic0”. The parameter must be an identifier for the resource type: com.vmware.appliance.networking.interfaces.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
Network interface information.
{
"ipv4": {
"address": "string",
"configurable": false,
"default_gateway": "string",
"mode": "DHCP",
"prefix": 0
},
"ipv6": {
"addresses": [
{
"address": "string",
"origin": "DHCP",
"prefix": 0,
"status": "TENTATIVE"
}
],
"autoconf": false,
"configurable": false,
"default_gateway": "string",
"dhcp": false
},
"mac": "string",
"name": "string",
"status": "down"
}
MAC address. For example 00:0C:29:94:BB:5A.
Interface name, for example, “nic0”, “nic1”.
Interfaces.InterfaceStatus enumerated type Defines interface status
down : The interface is down.
up : The interface is up.
Possible values are: down , up
IPv4 Address information. ipv4 This field will be unset if IPv4 is not enabled.
IPv6 Address information. ipv6 This field will be unset if IPv6 is not enabled.
Errors
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: get
x-vmw-doc-deprecated-path: /rest/appliance/networking/interfaces/{interface_name}
x-vmw-doc-operation: get