Create Network
Creates a virtual network
Request
URI
POST
https://{api_host}/api/vmnets
COPY
Request Body
Host network to be created
CreateVmnetParameter of type(s) application/vnd.vmware.vmw.rest-v1+json
Required
{
"name": "string",
"type": "string"
}
string
name
Required
The host network name
string
type
Optional
The host network type
Possible values are : nat, hostOnly,
Responses
201
Virtual network
Returns Network of type(s) application/vnd.vmware.vmw.rest-v1+json
{
"name": "string",
"type": "string",
"dhcp": "string",
"subnet": "string",
"mask": "string"
}
string
name
Required
Name of virtual network
string
type
Required
type
Possible values are : bridged, nat, hostOnly,
string
dhcp
Required
dhcp
Possible values are : true, false,
string
subnet
Required
subnet
string
mask
Required
mask
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
406
Content type was not supported
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
409
Resource state conflicts
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
Host Networks Management Operations
POST
Create Network
DELETE
Delete Portforward
GET
Get All Networks
GET
Get MAC To I Ps
GET
Get Portforwards
PUT
Update Mac To IP
PUT
Update Portforward