Get All NIC Devices

Get All NIC Devices

Returns all network adapters in the VM

Request
URI
GET
https://{api_host}/api/vms/{id}/nic
COPY
Path Parameters
string
id
Required

ID of VM


Authentication
This operation uses the following authentication methods.
Responses
200

Network adapters in the VM

Returns NICDevices of type(s) application/vnd.vmware.vmw.rest-v1+json
{
    "num": 0,
    "nics": [
        {
            "index": 0,
            "type": "string",
            "vmnet": "string",
            "macAddress": "string"
        }
    ]
}
num
Required

num

array of NICDevice
nics
Required

The network adapter added to this VM


400

Invalid parameters

Returns ErrorModel of type(s) application/vnd.vmware.vmw.rest-v1+json
{
    "code": 0,
    "message": "string"
}
integer As int32 As int32
code
Required

code

string
message
Required

message


401

Authentication failed

Returns ErrorModel of type(s) application/vnd.vmware.vmw.rest-v1+json
{
    "code": 0,
    "message": "string"
}
integer As int32 As int32
code
Required

code

string
message
Required

message


403

Permission denied

Returns ErrorModel of type(s) application/vnd.vmware.vmw.rest-v1+json
{
    "code": 0,
    "message": "string"
}
integer As int32 As int32
code
Required

code

string
message
Required

message


404

No such resource

Returns ErrorModel of type(s) application/vnd.vmware.vmw.rest-v1+json
{
    "code": 0,
    "message": "string"
}
integer As int32 As int32
code
Required

code

string
message
Required

message


500

Server error

Returns ErrorModel of type(s) application/vnd.vmware.vmw.rest-v1+json
{
    "code": 0,
    "message": "string"
}
integer As int32 As int32
code
Required

code

string
message
Required

message


default

Unexpected error

Returns ErrorModel of type(s) application/vnd.vmware.vmw.rest-v1+json
{
    "code": 0,
    "message": "string"
}
integer As int32 As int32
code
Required

code

string
message
Required

message