All URIs are relative to http://localhost/api
| Method | HTTP request | Description |
|---|---|---|
| CreateNetwork | Post /vmnets | Creates a virtual network |
| DeletePortforward | Delete /vmnet/{vmnet}/portforward/{protocol}/{port} | Deletes port forwarding |
| GetAllNetworks | Get /vmnet | Returns all virtual networks |
| GetMACToIPs | Get /vmnet/{vmnet}/mactoip | Returns all MAC-to-IP settings for DHCP service |
| GetPortforwards | Get /vmnet/{vmnet}/portforward | Returns all port forwardings |
| UpdateMacToIP | Put /vmnet/{vmnet}/mactoip/{mac} | Updates the MAC-to-IP binding |
| UpdatePortforward | Put /vmnet/{vmnet}/portforward/{protocol}/{port} | Updates port forwarding |
Network CreateNetwork(ctx, parameters) Creates a virtual network
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| parameters | CreateVmnetParameter | Host network to be created |
No authorization required
- Content-Type: application/vnd.vmware.vmw.rest-v1+json
- Accept: application/vnd.vmware.vmw.rest-v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeletePortforward(ctx, vmnet, protocol, port) Deletes port forwarding
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| vmnet | string | NAT type of virtual network | |
| protocol | string | Protocol type: tcp, udp | |
| port | int32 | Host port number |
(empty response body)
No authorization required
- Content-Type: application/vnd.vmware.vmw.rest-v1+json
- Accept: application/vnd.vmware.vmw.rest-v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Networks GetAllNetworks(ctx, ) Returns all virtual networks
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/vnd.vmware.vmw.rest-v1+json
- Accept: application/vnd.vmware.vmw.rest-v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MactoIps GetMACToIPs(ctx, vmnet) Returns all MAC-to-IP settings for DHCP service
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| vmnet | string | Virtual network that has DHCP enabled |
No authorization required
- Content-Type: application/vnd.vmware.vmw.rest-v1+json
- Accept: application/vnd.vmware.vmw.rest-v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Portforwards GetPortforwards(ctx, vmnet) Returns all port forwardings
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| vmnet | string | NAT type of virtual network |
No authorization required
- Content-Type: application/vnd.vmware.vmw.rest-v1+json
- Accept: application/vnd.vmware.vmw.rest-v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ErrorModel UpdateMacToIP(ctx, vmnet, mac, parameters) Updates the MAC-to-IP binding
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| vmnet | string | Virtual network that enabled DHCP | |
| mac | string | Mac address that want to be mapped with a given IP | |
| parameters | MacToIpParameter | IP that will be assigned to given Mac address. If empty IP, the original Mac to IP binding will be deleted |
No authorization required
- Content-Type: application/vnd.vmware.vmw.rest-v1+json
- Accept: application/vnd.vmware.vmw.rest-v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ErrorModel UpdatePortforward(ctx, vmnet, protocol, port, parameters) Updates port forwarding
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| vmnet | string | NAT type of virtual network | |
| protocol | string | Protocol type: tcp, udp | |
| port | int32 | Host port number | |
| parameters | PortforwardParameter | Guest to forward to |
No authorization required
- Content-Type: application/vnd.vmware.vmw.rest-v1+json
- Accept: application/vnd.vmware.vmw.rest-v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]