vm-cli

command module
v0.0.0-...-a406aea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

The state of this project is very much a work in progress.

This is more of a fun thing I want to see if I can do. More information on how to install, use, contribute, etc. is to come.

Go API client for swagger

vmrest 1.3.0 build-21139696

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 1.3.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

import "./swagger"

Documentation for API Endpoints

All URIs are relative to http://localhost/api

Class Method HTTP request Description
HostNetworksManagementApi CreateNetwork Post /vmnets Creates a virtual network
HostNetworksManagementApi DeletePortforward Delete /vmnet/{vmnet}/portforward/{protocol}/{port} Deletes port forwarding
HostNetworksManagementApi GetAllNetworks Get /vmnet Returns all virtual networks
HostNetworksManagementApi GetMACToIPs Get /vmnet/{vmnet}/mactoip Returns all MAC-to-IP settings for DHCP service
HostNetworksManagementApi GetPortforwards Get /vmnet/{vmnet}/portforward Returns all port forwardings
HostNetworksManagementApi UpdateMacToIP Put /vmnet/{vmnet}/mactoip/{mac} Updates the MAC-to-IP binding
HostNetworksManagementApi UpdatePortforward Put /vmnet/{vmnet}/portforward/{protocol}/{port} Updates port forwarding
VMManagementApi ConfigVMParams Put /vms/{id}/configparams update the vm config params
VMManagementApi CreateVM Post /vms Creates a copy of the VM
VMManagementApi DeleteVM Delete /vms/{id} Deletes a VM
VMManagementApi GetAllVMs Get /vms Returns a list of VM IDs and paths for all VMs
VMManagementApi GetVM Get /vms/{id} Returns the VM setting information of a VM
VMManagementApi GetVMParams Get /vms/{id}/params/{name} Get the VM config params
VMManagementApi GetVMRestrictions Get /vms/{id}/restrictions Returns the restrictions information of the VM
VMManagementApi RegisterVM Post /vms/registration Register VM to VM Library
VMManagementApi UpdateVM Put /vms/{id} Updates the VM settings
VMNetworkAdaptersManagementApi CreateNICDevice Post /vms/{id}/nic Creates a network adapter in the VM
VMNetworkAdaptersManagementApi DeleteNICDevice Delete /vms/{id}/nic/{index} Deletes a VM network adapter
VMNetworkAdaptersManagementApi GetAllNICDevices Get /vms/{id}/nic Returns all network adapters in the VM
VMNetworkAdaptersManagementApi GetIPAddress Get /vms/{id}/ip Returns the IP address of a VM
VMNetworkAdaptersManagementApi GetNicInfo Get /vms/{id}/nicips Returns the IP stack configuration of all NICs of a VM
VMNetworkAdaptersManagementApi UpdateNICDevice Put /vms/{id}/nic/{index} Updates a network adapter in the VM
VMPowerManagementApi ChangePowerState Put /vms/{id}/power Changes the VM power state
VMPowerManagementApi GetPowerState Get /vms/{id}/power Returns the power state of the VM
VMSharedFoldersManagementApi CreateSharedFolder Post /vms/{id}/sharedfolders Mounts a new shared folder in the VM
VMSharedFoldersManagementApi DeleteSharedFolder Delete /vms/{id}/sharedfolders/{folder id} Deletes a shared folder
VMSharedFoldersManagementApi GetAllSharedFolders Get /vms/{id}/sharedfolders Returns all shared folders mounted in the VM
VMSharedFoldersManagementApi UpdataSharedFolder Put /vms/{id}/sharedfolders/{folder id} Updates a shared folder mounted in the VM

Documentation For Models

Documentation For Authorization

BasicAuth

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
	UserName: "username",
	Password: "password",
})
r, err := client.Service.Operation(auth, args)

Author

Documentation

Overview

Copyright © 2023 Jonathan Zollinger [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL