Accountstring`json:"account,omitempty" doc:"the account associated with the virtual machine"`
AccountID*UUID`json:"accountid,omitempty" doc:"the account ID associated with the virtual machine"`
AffinityGroup[]AffinityGroup`json:"affinitygroup,omitempty" doc:"list of affinity groups associated with the virtual machine"`
ClusterID*UUID`json:"clusterid,omitempty" doc:"the ID of the vm's cluster"`
ClusterNamestring`json:"clustername,omitempty" doc:"the name of the vm's cluster"`
CPUNumberint`json:"cpunumber,omitempty" doc:"the number of cpu this virtual machine is running with"`
CPUSpeedint`json:"cpuspeed,omitempty" doc:"the speed of each cpu"`
CPUUsedstring`json:"cpuused,omitempty" doc:"the amount of the vm's CPU currently used"`
Createdstring`json:"created,omitempty" doc:"the date when this virtual machine was created"`
Detailsmap[string]string`json:"details,omitempty" doc:"Vm details in key/value pairs."`
DiskIoReadint64`json:"diskioread,omitempty" doc:"the read (io) of disk on the vm"`
DiskIoWriteint64`json:"diskiowrite,omitempty" doc:"the write (io) of disk on the vm"`
DiskKbsReadint64`json:"diskkbsread,omitempty" doc:"the read (bytes) of disk on the vm"`
DiskKbsWriteint64`json:"diskkbswrite,omitempty" doc:"the write (bytes) of disk on the vm"`
DiskOfferingID*UUID`json:"diskofferingid,omitempty" doc:"the ID of the disk offering of the virtual machine"`
DiskOfferingNamestring`json:"diskofferingname,omitempty" doc:"the name of the disk offering of the virtual machine"`
DisplayNamestring`json:"displayname,omitempty" doc:"user generated name. The name of the virtual machine is returned if no displayname exists."`
DisplayVMbool`json:"displayvm,omitempty" doc:"an optional field whether to the display the vm to the end user or not."`
Domainstring`json:"domain,omitempty" doc:"the name of the domain in which the virtual machine exists"`
DomainID*UUID`json:"domainid,omitempty" doc:"the ID of the domain in which the virtual machine exists"`
ForVirtualNetworkbool`json:"forvirtualnetwork,omitempty" doc:"the virtual network for the service offering"`
Groupstring`json:"group,omitempty" doc:"the group name of the virtual machine"`
GroupID*UUID`json:"groupid,omitempty" doc:"the group ID of the virtual machine"`
HAEnablebool`json:"haenable,omitempty" doc:"true if high-availability is enabled, false otherwise"`
HostID*UUID`json:"hostid,omitempty" doc:"the ID of the host for the virtual machine"`
HostNamestring`json:"hostname,omitempty" doc:"the name of the host for the virtual machine"`
Hypervisorstring`json:"hypervisor,omitempty" doc:"the hypervisor on which the template runs"`
ID*UUID`json:"id,omitempty" doc:"the ID of the virtual machine"`
InstanceNamestring`json:"instancename,omitempty" doc:"instance name of the user vm; this parameter is returned to the ROOT admin only"`
IsDynamicallyScalablebool`json:"isdynamicallyscalable,omitempty" doc:"true if vm contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory."`
IsoDisplayTextstring`json:"isodisplaytext,omitempty" doc:"an alternate display text of the ISO attached to the virtual machine"`
IsoID*UUID`json:"isoid,omitempty" doc:"the ID of the ISO attached to the virtual machine"`
IsoNamestring`json:"isoname,omitempty" doc:"the name of the ISO attached to the virtual machine"`
Memoryint`json:"memory,omitempty" doc:"the memory allocated for the virtual machine"`
Namestring`json:"name,omitempty" doc:"the name of the virtual machine"`
NetworkKbsReadint64`json:"networkkbsread,omitempty" doc:"the incoming network traffic on the vm"`
NetworkKbsWriteint64`json:"networkkbswrite,omitempty" doc:"the outgoing network traffic on the host"`
Nic[]Nic`json:"nic,omitempty" doc:"the list of nics associated with vm"`
OSCategoryID*UUID`json:"oscategoryid,omitempty" doc:"Os category ID of the virtual machine"`
OSCategoryNamestring`json:"oscategoryname,omitempty" doc:"Os category name of the virtual machine"`
Passwordstring`json:"password,omitempty" doc:"the password (if exists) of the virtual machine"`
PasswordEnabledbool`json:"passwordenabled,omitempty" doc:"true if the password rest feature is enabled, false otherwise"`
PCIDevices[]PCIDevice`json:"pcidevices,omitempty" doc:"list of PCI devices"`
PodID*UUID`json:"podid,omitempty" doc:"the ID of the vm's pod"`
PodNamestring`json:"podname,omitempty" doc:"the name of the vm's pod"`
PublicIPstring`json:"publicip,omitempty" doc:"public IP address id associated with vm via Static nat rule"`
PublicIPID*UUID`json:"publicipid,omitempty" doc:"public IP address id associated with vm via Static nat rule"`
RootDeviceIDint64`json:"rootdeviceid,omitempty" doc:"device ID of the root volume"`
RootDeviceTypestring`json:"rootdevicetype,omitempty" doc:"device type of the root volume"`
SecurityGroup[]SecurityGroup`json:"securitygroup,omitempty" doc:"list of security groups associated with the virtual machine"`
ServiceOfferingID*UUID`json:"serviceofferingid,omitempty" doc:"the ID of the service offering of the virtual machine"`
ServiceOfferingNamestring`json:"serviceofferingname,omitempty" doc:"the name of the service offering of the virtual machine"`
ServiceStatestring`json:"servicestate,omitempty" doc:"State of the Service from LB rule"`
Statestring`json:"state,omitempty" doc:"the state of the virtual machine"`
Tags[]ResourceTag`json:"tags,omitempty" doc:"the list of resource tags associated with vm"`
TemplateDisplayTextstring`json:"templatedisplaytext,omitempty" doc:"an alternate display text of the template for the virtual machine"`
TemplateID*UUID`json:"templateid,omitempty" doc:"the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file."`
TemplateNamestring`json:"templatename,omitempty" doc:"the name of the template for the virtual machine"`
ZoneID*UUID`json:"zoneid,omitempty" doc:"the ID of the availablility zone for the virtual machine"`
ZoneNamestring`json:"zonename,omitempty" doc:"the name of the availability zone for the virtual machine"`
// PCIDevice represents a PCI card present in the host
typePCIDevicestruct{
PCIVendorNamestring`json:"pcivendorname,omitempty" doc:"Device vendor name of pci card"`
DeviceID*UUID`json:"deviceid,omitempty" doc:"Device model ID of pci card"`
RemainingCapacityint`json:"remainingcapacity,omitempty" doc:"Remaining capacity in terms of no. of more VMs that can be deployped with this vGPU type"`
MaxCapacityint`json:"maxcapacity,omitempty" doc:"Maximum vgpu can be created with this vgpu type on the given pci group"`
PCIVendorID*UUID`json:"pcivendorid,omitempty" doc:"Device vendor ID of pci card"`
PCIDeviceNamestring`json:"pcidevicename,omitempty" doc:"Device model name of pci card"`
}
// Password represents an encrypted password
//
// TODO: method to decrypt it, https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=34014652
typePasswordstruct{
EncryptedPasswordstring`json:"encryptedpassword"`
}
// VirtualMachineUserData represents the base64 encoded user-data
typeVirtualMachineUserDatastruct{
UserDatastring`json:"userdata,omitempty" doc:"Base 64 encoded VM user data"`
VirtualMachineID*UUID`json:"virtualmachineid,omitempty" doc:"the ID of the virtual machine"`
// Regarding the UserData field, the client is responsible to base64 (and probably gzip) it. Doing it within this library would make the integration with other tools, e.g. Terraform harder.
Accountstring`json:"account,omitempty" doc:"an optional account for the virtual machine. Must be used with domainId."`
AffinityGroupIDs[]UUID`json:"affinitygroupids,omitempty" doc:"comma separated list of affinity groups id that are going to be applied to the virtual machine. Mutually exclusive with affinitygroupnames parameter"`
AffinityGroupNames[]string`json:"affinitygroupnames,omitempty" doc:"comma separated list of affinity groups names that are going to be applied to the virtual machine.Mutually exclusive with affinitygroupids parameter"`
CustomID*UUID`json:"customid,omitempty" doc:"an optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only"`
DeploymentPlannerstring`json:"deploymentplanner,omitempty" doc:"Deployment planner to use for vm allocation. Available to ROOT admin only"`
Detailsmap[string]string`json:"details,omitempty" doc:"used to specify the custom parameters."`
DiskOfferingID*UUID`json:"diskofferingid,omitempty" doc:"the ID of the disk offering for the virtual machine. If the template is of ISO format, the diskOfferingId is for the root disk volume. Otherwise this parameter is used to indicate the offering for the data disk volume. If the templateId parameter passed is from a Template object, the diskOfferingId refers to a DATA Disk Volume created. If the templateId parameter passed is from an ISO object, the diskOfferingId refers to a ROOT Disk Volume created."`
DisplayNamestring`json:"displayname,omitempty" doc:"an optional user generated name for the virtual machine"`
DisplayVM*bool`json:"displayvm,omitempty" doc:"an optional field, whether to the display the vm to the end user or not."`
DomainID*UUID`json:"domainid,omitempty" doc:"an optional domainId for the virtual machine. If the account parameter is used, domainId must also be used."`
Groupstring`json:"group,omitempty" doc:"an optional group for the virtual machine"`
HostID*UUID`json:"hostid,omitempty" doc:"destination Host ID to deploy the VM to - parameter available for root admin only"`
Hypervisorstring`json:"hypervisor,omitempty" doc:"the hypervisor on which to deploy the virtual machine"`
IP4*bool`json:"ip4,omitempty" doc:"True to set an IPv4 to the default interface"`
IP6*bool`json:"ip6,omitempty" doc:"True to set an IPv6 to the default interface"`
IP6Addressnet.IP`json:"ip6address,omitempty" doc:"the ipv6 address for default vm's network"`
IPAddressnet.IP`json:"ipaddress,omitempty" doc:"the ip address for default vm's network"`
IPToNetworkList[]IPToNetwork`json:"iptonetworklist,omitempty" doc:"ip to network mapping. Can't be specified with networkIds parameter. Example: iptonetworklist[0].ip=10.10.10.11&iptonetworklist[0].ipv6=fc00:1234:5678::abcd&iptonetworklist[0].networkid=uuid - requests to use ip 10.10.10.11 in network id=uuid"`
Keyboardstring`json:"keyboard,omitempty" doc:"an optional keyboard device type for the virtual machine. valid value can be one of de,de-ch,es,fi,fr,fr-be,fr-ch,is,it,jp,nl-be,no,pt,uk,us"`
KeyPairstring`json:"keypair,omitempty" doc:"name of the ssh key pair used to login to the virtual machine"`
Namestring`json:"name,omitempty" doc:"host name for the virtual machine"`
NetworkIDs[]UUID`json:"networkids,omitempty" doc:"list of network ids used by virtual machine. Can't be specified with ipToNetworkList parameter"`
RootDiskSizeint64`json:"rootdisksize,omitempty" doc:"Optional field to resize root disk on deploy. Value is in GB. Only applies to template-based deployments. Analogous to details[0].rootdisksize, which takes precedence over this parameter if both are provided"`
SecurityGroupIDs[]UUID`json:"securitygroupids,omitempty" doc:"comma separated list of security groups id that going to be applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support. Mutually exclusive with securitygroupnames parameter"`
SecurityGroupNames[]string`json:"securitygroupnames,omitempty" doc:"comma separated list of security groups names that going to be applied to the virtual machine. Should be passed only when vm is created from a zone with Basic Network support. Mutually exclusive with securitygroupids parameter"`
ServiceOfferingID*UUID`json:"serviceofferingid" doc:"the ID of the service offering for the virtual machine"`
Sizeint64`json:"size,omitempty" doc:"the arbitrary size for the DATADISK volume. Mutually exclusive with diskOfferingId"`
StartVM*bool`json:"startvm,omitempty" doc:"true if start vm after creating. Default value is true"`
TemplateID*UUID`json:"templateid" doc:"the ID of the template for the virtual machine"`
UserDatastring`json:"userdata,omitempty" doc:"an optional binary data that can be sent to the virtual machine upon a successful deployment. This binary data must be base64 encoded before adding it to the request. Using HTTP GET (via querystring), you can send up to 2KB of data after base64 encoding. Using HTTP POST(via POST body), you can send up to 32K of data after base64 encoding."`
ZoneID*UUID`json:"zoneid" doc:"availability zone for the virtual machine"`
_bool`name:"deployVirtualMachine" description:"Creates and automatically starts a virtual machine based on a service offering, disk offering, and template."`
ID*UUID`json:"id" doc:"The ID of the virtual machine"`
Forced*bool`json:"forced,omitempty" doc:"Force stop the VM (vm is marked as Stopped even when command fails to be send to the backend). The caller knows the VM is stopped."`
_bool`name:"stopVirtualMachine" description:"Stops a virtual machine."`
TemplateID*UUID`json:"templateid,omitempty" doc:"an optional template Id to restore vm from the new template. This can be an ISO id in case of restore vm deployed using ISO"`
RootDiskSizeint64`json:"rootdisksize,omitempty" doc:"Optional field to resize root disk on restore. Value is in GB. Only applies to template-based deployments."`
_bool`name:"restoreVirtualMachine" description:"Restore a VM to original template/ISO or new template/ISO"`
DisplayVM*bool`json:"displayvm,omitempty" doc:"an optional field, whether to the display the vm to the end user or not."`
Groupstring`json:"group,omitempty" doc:"group of the virtual machine"`
HAEnable*bool`json:"haenable,omitempty" doc:"true if high-availability is enabled for the virtual machine, false otherwise"`
IsDynamicallyScalable*bool`json:"isdynamicallyscalable,omitempty" doc:"true if VM contains XS/VMWare tools inorder to support dynamic scaling of VM cpu/memory"`
Namestring`json:"name,omitempty" doc:"new host name of the vm. The VM has to be stopped/started for this update to take affect"`
SecurityGroupIDs[]UUID`json:"securitygroupids,omitempty" doc:"list of security group ids to be applied on the virtual machine."`
UserDatastring`json:"userdata,omitempty" doc:"an optional binary data that can be sent to the virtual machine upon a successful deployment. This binary data must be base64 encoded before adding it to the request. Using HTTP GET (via querystring), you can send up to 2KB of data after base64 encoding. Using HTTP POST(via POST body), you can send up to 32K of data after base64 encoding."`
_bool`name:"updateVirtualMachine" description:"Updates properties of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect. UpdateVirtualMachine does not first check whether the VM is stopped. Therefore, stop the VM manually before issuing this call."`
ID*UUID`json:"id" doc:"The ID of the virtual machine"`
ServiceOfferingID*UUID`json:"serviceofferingid" doc:"the ID of the service offering for the virtual machine"`
Detailsmap[string]string`json:"details,omitempty" doc:"name value pairs of custom parameters for cpu,memory and cpunumber. example details[i].name=value"`
_bool`name:"scaleVirtualMachine" description:"Scales the virtual machine to a new service offering."`
// ChangeServiceForVirtualMachine changes the service offering for a virtual machine. The virtual machine must be in a "Stopped" state for this command to take effect.
typeChangeServiceForVirtualMachinestruct{
ID*UUID`json:"id" doc:"The ID of the virtual machine"`
ServiceOfferingID*UUID`json:"serviceofferingid" doc:"the service offering ID to apply to the virtual machine"`
Detailsmap[string]string`json:"details,omitempty" doc:"name value pairs of custom parameters for cpu, memory and cpunumber. example details[i].name=value"`
_bool`name:"changeServiceForVirtualMachine" description:"Changes the service offering for a virtual machine. The virtual machine must be in a \"Stopped\" state for this command to take effect."`
// ResetPasswordForVirtualMachine resets the password for virtual machine. The virtual machine must be in a "Stopped" state...
typeResetPasswordForVirtualMachinestruct{
ID*UUID`json:"id" doc:"The ID of the virtual machine"`
_bool`name:"resetPasswordForVirtualMachine" description:"Resets the password for virtual machine. The virtual machine must be in a \"Stopped\" state and the template must already support this feature for this command to take effect."`
Accountstring`json:"account,omitempty" doc:"list resources by account. Must be used with the domainId parameter."`
AffinityGroupID*UUID`json:"affinitygroupid,omitempty" doc:"list vms by affinity group"`
Details[]string`json:"details,omitempty" doc:"comma separated list of host details requested, value can be a list of [all, group, nics, stats, secgrp, tmpl, servoff, diskoff, iso, volume, min, affgrp]. If no parameter is passed in, the details will be defaulted to all"`
DisplayVM*bool`json:"displayvm,omitempty" doc:"list resources by display flag; only ROOT admin is eligible to pass this parameter"`
DomainID*UUID`json:"domainid,omitempty" doc:"list only resources belonging to the domain specified"`
ForVirtualNetwork*bool`json:"forvirtualnetwork,omitempty" doc:"list by network type; true if need to list vms using Virtual Network, false otherwise"`
GroupID*UUID`json:"groupid,omitempty" doc:"the group ID"`
Hypervisorstring`json:"hypervisor,omitempty" doc:"the target hypervisor for the template"`
ID*UUID`json:"id,omitempty" doc:"the ID of the virtual machine"`
IDs[]string`json:"ids,omitempty" doc:"the IDs of the virtual machines, mutually exclusive with id"`
IPAddressnet.IP`json:"ipaddress,omitempty" doc:"an IP address to filter the result"`
IsoID*UUID`json:"isoid,omitempty" doc:"list vms by iso"`
IsRecursive*bool`json:"isrecursive,omitempty" doc:"defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves."`
Keywordstring`json:"keyword,omitempty" doc:"List by keyword"`
ListAll*bool`json:"listall,omitempty" doc:"If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false"`
Namestring`json:"name,omitempty" doc:"name of the virtual machine"`
NetworkID*UUID`json:"networkid,omitempty" doc:"list by network id"`
Pageint`json:"page,omitempty"`
PageSizeint`json:"pagesize,omitempty"`
ServiceOfferindID*UUID`json:"serviceofferingid,omitempty" doc:"list by the service offering"`
Statestring`json:"state,omitempty" doc:"state of the virtual machine"`
Tags[]ResourceTag`json:"tags,omitempty" doc:"List resources by tags (key/value pairs)"`
TemplateID*UUID`json:"templateid,omitempty" doc:"list vms by template"`
ZoneID*UUID`json:"zoneid,omitempty" doc:"the availability zone ID"`
_bool`name:"listVirtualMachines" description:"List the virtual machines owned by the account."`