Documentation
¶
Index ¶
- Constants
- func Add(name string, kind reflect.Type)
- type AnyType
- type BaseOptionType
- type BaseOptionValue
- type BootDevice
- type CdpInfo
- type Cdrom
- type CloudInit
- type Cluster
- type ClusterListRsp
- type Common
- type Datacenter
- type DatacenterPageResponse
- type Disk
- type DynamicData
- type ErrorMsg
- type Floppy
- type Func
- type GraphicsCard
- type GuestOSAuthInfo
- type GuestOsInfo
- type Host
- type HostHealthInfo
- type HostPageResponse
- type ICSApi
- type ImageFileInfo
- type ImageFilePageResponse
- type Login
- type LoginPolicy
- type LoginResponse
- type ManagedObjectReference
- type Network
- type NetworkPageResponse
- type Nic
- type OptionType
- type OptionValue
- type PageReq
- type PageResponse
- type RelatedVmInfo
- type SDKError
- type SdnNetwork
- type SdnNetworkPageResponse
- type SdnSubnet
- type ServiceContent
- type Storage
- type StoragePageReq
- type StoragePageResponse
- type Switch
- type Tag
- type TagBinding
- type Task
- type TaskInfo
- type TreeItem
- type UserSession
- type VMPageReq
- type VMPageResponse
- type VMPowerState
- type Vapp
- type VappCreateReq
- type VappListRsp
- type VirtualMachine
- type VirtualMachinePowerState
- type Volume
- type VolumeListRsp
- type VolumeReq
Constants ¶
View Source
const ( VirtualMachinePowerStatePoweredOff = VirtualMachinePowerState("poweredOff") VirtualMachinePowerStatePoweredOn = VirtualMachinePowerState("poweredOn") VirtualMachinePowerStateSuspended = VirtualMachinePowerState("suspended") )
View Source
const ( // ics api version // before an error is returned. ApiVersion string = "5.8" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseOptionType ¶
type BaseOptionType interface {
GetOptionType() *OptionType
}
type BaseOptionValue ¶
type BaseOptionValue interface {
GetOptionValue() *OptionValue
}
type BootDevice ¶ added in v1.1.1
type CdpInfo ¶ added in v1.1.1
type CdpInfo struct { CdpBackupDatastoreId string `json:"cdpBackupDatastoreId"` BackupDataStoreName string `json:"backupDataStoreName"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` EnableCDP bool `json:"enableCDP"` CdpAvgWriteMBps int `json:"cdpAvgWriteMBps"` CdpRemainTimes int `json:"cdpRemainTimes"` CdpLogSpaceSize int `json:"cdpLogSpaceSize"` CdpLogSpaceSizeInByte int `json:"cdpLogSpaceSizeInByte"` IntervalTime int `json:"intervalTime"` }
type Cluster ¶
type Cluster struct { Name string `json:"name"` //"cluster" Id string `json:"id"` //"8a878bda6f7012c7016f87e979120798" HostNum int `json:"hostNum"` //1 FreeCpu string `json:"freeCpu"` UsedCpu string `json:"usedCpu"` TotalCpu string `json:"totalCpu"` CpuCoreNum int `json:"cpuCoreNum"` CpuSocketNum int `json:"cpuSocketNum"` CpuNum int `json:"cpuNum"` FreeMemory string `json:"freeMemory"` UsedMemory string `json:"usedMemory"` TotalMemory string `json:"totalMemory"` FreeMemoryInByte int `json:"freeMemoryInByte,omitempty"` UsedMemoryInByte int `json:"usedMemoryInByte,omitempty"` TotalMemoryInByte int `json:"totalMemoryInByte,omitempty"` FreeStorage string `json:"freeStorage,omitempty"` UsedStorage string `json:"usedStorage,omitempty"` TotalStorage string `json:"totalStorage,omitempty"` VcpuUsed int `json:"vcpuUsed"` Drs struct { ID string `json:"id,omitempty"` ClusterID string `json:"clusterID,omitempty"` DrsEnabled bool `json:"drsEnabled"` CpuThreshold int `json:"cpuThreshold"` MemoryThreshold int `json:"memoryThreshold"` VmMigrationCount int `json:"vmMigrationCount"` RelMigrateEnabled bool `json:"relMigrateEnabled"` DpmEnabled bool `json:"dpmEnabled"` CpuLowThreshold int `json:"cpuLowThreshold"` MemLowThreshold int `json:"memLowThreshold"` MinReserveHost int `json:"minReserveHost"` } `json:"drs"` HA struct { ID string `json:"id,omitempty"` ClusterID string `json:"clusterID,omitempty"` HAEnabled bool `json:"haEnabled"` HAMaxLimit int `json:"haMaxLimit"` AccessControlEnabled bool `json:"accessControlEnabled"` AccessControlStrategy string `json:"accessControlStrategy,omitempty"` FailoverHosts []interface{} `json:"failoverHosts"` FailoverHostIds []string `json:"failoverHostIds"` HAPriority string `json:"haPriority,omitempty"` NetHaEnabled bool `json:"netHaEnabled"` NetTolerance string `json:"netTolerance"` NetProcessStrategy string `json:"netProcessStrategy"` ContainerHaEnabled bool `json:"containerHaEnabled"` CpuReserve int `json:"cpuReserve"` MemoryReserve int `json:"memoryReserve"` UsedCpu float64 `json:"usedCpu"` TotalCpu float64 `json:"totalCpu"` UsedMemory float64 `json:"usedMemory"` TotalMemory int `json:"totalMemory"` UsedMemoryInByte int `json:"usedMemoryInByte,omitempty"` TotalMemoryInByte int `json:"totalMemoryInByte,omitempty"` CdpProcessStrategy string `json:"cdpProcessStrategy,omitempty"` } `json:"ha"` DataCenterDto Datacenter `json:"dataCenterDto"` HostIds []string `json:"hostIds"` Tags []Tag `json:"tags"` CpuFreePercent float64 `json:"cpuFreePercent"` MemFreePercent float64 `json:"memFreePercent"` VmTotalCpu int `json:"vmTotalCpu,omitempty"` VmTotalMemInMB int `json:"vmTotalMemInMB,omitempty"` HostTotalMemInMB float64 `json:"hostTotalMemInMB,omitempty"` VmTotalMemInByte int `json:"vmTotalMemInByte,omitempty"` HostTotalMemInByte int `json:"hostTotalMemInByte,omitempty"` CpuTotalRatio float64 `json:"cpuTotalRatio,omitempty"` MemTotalRatio float64 `json:"memTotalRatio,omitempty"` TotalStorageInByte int `json:"totalStorageInByte,omitempty"` UsedStorageInByte int `json:"usedStorageInByte,omitempty"` FreeStorageInByte int `json:"freeStorageInByte,omitempty"` StorageUsage float64 `json:"storageUsage,omitempty"` VirtualVolumeStorageInByte int `json:"virtualVolumeStorageInByte,omitempty"` HostTotalStorageInByte int `json:"hostTotalStorageInByte,omitempty"` StorageRatio float64 `json:"storageRatio,omitempty"` CpuUsage float64 `json:"cpuUsage,omitempty"` MemoryUsage float64 `json:"memoryUsage,omitempty"` CpuArchType string `json:"cpuArchType,omitempty"` VmNum int `json:"vmNum"` PodNum int `json:"podNum"` }
type ClusterListRsp ¶
type ClusterListRsp struct {
Items []Cluster `json:"items"`
}
type Datacenter ¶
type Datacenter struct { ID string `json:"id"` Name string `json:"name"` NfsPath string `json:"nfsPath"` NfsVersion string `json:"nfsVersion,omitempty"` Type string `json:"type"` Description string `json:"description"` HostNum int `json:"hostNum"` VMNum int `json:"vmNum"` PodNum int `json:"podNum"` ClusterNum int `json:"clusterNum"` CfsDomainNum int `json:"cfsDomainNum"` SdsDomainNum int `json:"sdsDomainNum"` StorageNum int `json:"storageNum"` ImageIsoNum int `json:"imageIsoNum"` NetNum int `json:"netNum"` NeutronNetNum int `json:"neutronNetNum"` CPUCapacity string `json:"cpuCapacity"` CPUAvailable string `json:"cpuAvailable"` CPUUsed string `json:"cpuUsed"` CPUUtilization string `json:"cpuUtilization"` CPUSocketNum int `json:"cpuSocketNum"` CPUCoreNum int `json:"cpuCoreNum"` CPUNum int `json:"cpuNum"` MemoryCapacity string `json:"memoryCapacity"` MemoryAvailable string `json:"memoryAvailable"` MemoryUsedInByte int `json:"memoryUsedInByte,omitempty"` MemoryCapacityInByte int `json:"memoryCapacityInByte,omitempty"` MemoryAvailableInByte int `json:"memoryAvailableInByte,omitempty"` MemoryUsed string `json:"memoryUsed"` MemoryUtilization string `json:"memoryUtilization"` StorageCapacity string `json:"storageCapacity"` StorageAvailable string `json:"storageAvailable"` StorageUsed string `json:"storageUsed"` StorageUtilization string `json:"storageUtilization"` StorageCapacityInByte int `json:"storageCapacityInByte,omitempty"` StorageAvailableInByte int `json:"storageAvailableInByte,omitempty"` StorageUsedInByte int `json:"storageUsedInByte,omitempty"` DatastoreNum int `json:"datastoreNum"` LocalStoreNum int `json:"localstoreNum"` CfsStoreNum int `json:"cfsstoreNum"` RawStoreNum int `json:"rawstoreNum"` NfsStoreNum int `json:"nfsstoreNum"` XactiveStoreNum int `json:"xactivestoreNum"` NetworkType string `json:"networkType"` VswitchDtos interface{} `json:"vswitchDtos"` SdnNetworkDtos []interface{} `json:"sdnNetworkDtos"` SdnInit bool `json:"sdnInit"` SdnSpeedUp bool `json:"sdnSpeedUp"` SdnConfigDto interface{} `json:"sdnConfigDto"` CpuArchType string `json:"cpuArchType"` VmTotalCpu int `json:"vmTotalCpu,omitempty"` VmTotalMemInMB int `json:"vmTotalMemInMB,omitempty"` HostTotalMemInMB float64 `json:"hostTotalMemInMB,omitempty"` VmTotalMemInByte int `json:"vmTotalMemInByte,omitempty"` HostTotalMemInByte int `json:"hostTotalMemInByte,omitempty"` CpuTotalRatio float64 `json:"cpuTotalRatio,omitempty"` MemTotalRatio float64 `json:"memTotalRatio,omitempty"` VirtualVolumeStorageInGB float64 `json:"virtualVolumeStorageInGB,omitempty"` HostTotalStorageInGB float64 `json:"hostTotalStorageInGB,omitempty"` VirtualVolumeStorageInByte int `json:"virtualVolumeStorageInByte,omitempty"` HostTotalStorageInByte int `json:"hostTotalStorageInByte,omitempty"` StorageRatio float64 `json:"storageRatio,omitempty"` }
type DatacenterPageResponse ¶
type DatacenterPageResponse struct { PageResponse Items []Datacenter `json:"items"` }
type Disk ¶
type Disk struct { ID string `json:"id,omitempty"` Label string `json:"label"` ScsiID string `json:"scsiId"` Enabled bool `json:"enabled"` WriteBps int `json:"writeBps"` ReadBps int `json:"readBps"` TotalBps int `json:"totalBps"` TotalIops int `json:"totalIops"` WriteIops int `json:"writeIops"` ReadIops int `json:"readIops"` Volume Volume `json:"volume"` BusModel string `json:"busModel"` Usage float64 `json:"usage"` MonReadIops float64 `json:"monReadIops"` MonWriteIops float64 `json:"monWriteIops"` ReadThroughput float64 `json:"readThroughput"` WriteThroughput float64 `json:"writeThroughput"` ReadWriteModel string `json:"readWriteModel"` EnableNativeIO bool `json:"enableNativeIO"` EnableKernelIO bool `json:"enableKernelIO"` L2CacheSize int `json:"l2CacheSize"` QueueNum int `json:"queueNum"` }
type DynamicData ¶
type DynamicData struct { }
type GraphicsCard ¶ added in v1.1.1
type GuestOSAuthInfo ¶
type GuestOSAuthInfo struct { UserName string `json:"userName"` UserPwd string `json:"userPwd"` Domain string `json:"domain"` DomainOU string `json:"domainOU"` DomainAdmin string `json:"domainAdmin"` DomainAdminPass string `json:"domainAdminPass"` InitializeSid bool `json:"initializeSid"` Scripts interface{} `json:"scripts"` }
type GuestOsInfo ¶
type GuestOsInfo struct { Model string `json:"model"` SocketLimit int `json:"socketLimit"` SupportCPUHotPlug bool `json:"supportCpuHotPlug"` SupportCpuHotReduce bool `json:"supportCpuHotReduce"` SupportMemHotPlug bool `json:"supportMemHotPlug"` SupportMemHotReduce bool `json:"supportMemHotReduce"` SupportDiskHotPlug bool `json:"supportDiskHotPlug"` SupportUefiBootMode bool `json:"supportUefiBootMode"` SupportVnicHotPlug bool `json:"supportVnicHotPlug"` SupportStaticIp bool `json:"supportStaticIp"` }
type Host ¶
type Host struct { ID string `json:"id"` IP string `json:"ip"` SwitchUplinkPortDto interface{} `json:"switchUplinkPortDto"` UplinkTopoDto interface{} `json:"uplinkTopoDto"` Pnics interface{} `json:"pnics"` Disks interface{} `json:"disks"` Name string `json:"name"` HostName string `json:"hostName"` NodeVersion string `json:"nodeVersion"` DisplayNodeVersion string `json:"displayNodeVersion"` DisplayHotfixVersion string `json:"displayHotfixVersion"` Password string `json:"password"` DataCenterID string `json:"dataCenterId"` DataCenterName string `json:"dataCenterName"` ClusterName string `json:"clusterName"` ClusterID string `json:"clusterId"` Status string `json:"status"` CPUSocket int `json:"cpuSocket"` CPUCorePerSocket int `json:"cpuCorePerSocket"` CPUThreadPerCore int `json:"cpuThreadPerCore"` LogicCPUNum int `json:"logicCpuNum"` LogicalProcessor int `json:"logicalProcessor"` CPUFrequency float64 `json:"cpuFrequency"` CPUUsage float64 `json:"cpuUsage"` CPUTotalHz float64 `json:"cpuTotalHz"` FreeCPU float64 `json:"freeCpu"` UsedCPU float64 `json:"usedCpu"` TotalMem float64 `json:"totalMem"` LogicTotalMem float64 `json:"logicTotalMem"` TotalMemInByte int `json:"totalMemInByte,omitempty"` LogicTotalMemInByte int `json:"logicTotalMemInByte,omitempty"` MemoryUsage float64 `json:"memoryUsage"` FreeMemory float64 `json:"freeMemory"` UsedMemory float64 `json:"usedMemory"` FreeMemoryInByte int `json:"freeMemoryInByte,omitempty"` UsedMemoryInByte int `json:"usedMemoryInByte,omitempty"` LogicUsedMemory float64 `json:"logicUsedMemory"` LogicFreeMemory float64 `json:"logicFreeMemory"` LogicUsedMemoryInByte int `json:"logicUsedMemoryInByte"` LogicFreeMemoryInByte int `json:"logicFreeMemoryInByte,omitempty"` PnicNum int `json:"pnicNum"` NormalRunTime float64 `json:"normalRunTime"` Model string `json:"model"` CPUType string `json:"cpuType"` VtDegree float64 `json:"vtDegree"` PowerState string `json:"powerstate"` HostBmcDto interface{} `json:"hostBmcDto"` Tags []Tag `json:"tags"` MountPath string `json:"mountPath"` MonMountState string `json:"monMountState"` CPUModel []string `json:"cpuModel"` NetworkDtos interface{} `json:"networkDtos"` PortIP string `json:"portIp"` Monstatus bool `json:"monstatus"` HostIqn string `json:"hostIqn"` VxlanPortDto interface{} `json:"vxlanPortDto"` SdnUpLinks interface{} `json:"sdnUpLinks"` AllPNicsCount int `json:"allPNicsCount"` AvailablePNicsCount int `json:"availablePNicsCount"` CfsDomainStatus string `json:"cfsDomainStatus"` SerialNumber string `json:"serialNumber"` Manufacturer string `json:"manufacturer"` IndicatorStatus string `json:"indicatorStatus"` EntryTemperature string `json:"entryTemperature"` MulticastEnabled bool `json:"multicastEnabled"` BroadcastLimitEnabled bool `json:"broadcastLimitEnabled"` Pcies interface{} `json:"pcies"` VgpuEnable bool `json:"vgpuEnable"` SpecialFailover bool `json:"specialFailover"` VswitchDtos interface{} `json:"vswitchDtos"` HotfixVersion string `json:"hotfixVersion"` VmMigBandWidth string `json:"vmMigBandWidth"` VmMigBandWidthFlag bool `json:"vmMigBandWidthFlag"` DpdkEnabled bool `json:"dpdkEnabled"` HugePageTotal float64 `json:"hugePageTotal"` HugePageUsed float64 `json:"hugePageUsed"` HugePageFree float64 `json:"hugePageFree"` HugePageTotalInByte int `json:"hugePageTotalInByte,omitempty"` HugePageUsedInByte int `json:"hugePageUsedInByte"` HugePageFreeInByte int `json:"hugePageFreeInByte",omitempty` StorageUsage float64 `json:"storageUsage"` NodeForm string `json:"nodeForm"` CpuArchType string `json:"cpuArchType"` CpuVendor string `json:"cpuVendor"` LogPartitionSize int `json:"logPartitionSize"` RootPartitionSize int `json:"rootPartitionSize"` Cpuflags string `json:"cpuflags"` AllocatedVcpuNum int `json:"allocatedVcpuNum"` AllocatedMemory int `json:"allocatedMemory"` AllocatedMemoryInByte int `json:"allocatedMemoryInByte"` KmsConfigured bool `json:"kmsConfigured"` Datastores interface{} `json:"datastores"` ScvmAllowed bool `json:"scvmAllowed"` UsedVCpus int `json:"usedVCpus"` ContainerStatus string `json:"containerStatus"` AntivirusStatus string `json:"antivirusStatus"` TotalLocalDatastoreCapacityInByte int `json:"totalLocalDatastoreCapacityInByte"` UsedLocalDatastoreCapacityInByte int `json:"usedLocalDatastoreCapacityInByte"` LocalDataStoreUsage float64 `json:"localDataStoreUsage"` LocalDataStoreMultiplexRatio float64 `json:"localDataStoreMultiplexRatio"` UPS interface{} `json:"ups"` SdsDomainId string `json:"sdsDomainId,omitempty"` HostTotalMemInMB float64 `json:"hostTotalMemInMB,omitempty"` HostTotalMemInByte int `json:"hostTotalMemInByte"` CpuTotalRatio float64 `json:"cpuTotalRatio,omitempty"` MemTotalRatio float64 `json:"memTotalRatio,omitempty"` HugePageEnabled bool `json:"hugePageEnabled,omitempty"` HugePageActived bool `json:"hugePageActived,omitempty"` TotalDataStoreCapacityInByte int `json:"totalDataStoreCapacityInByte"` UsedDataStoreCapacityInByte int `json:"usedDataStoreCapacityInByte"` DataStoreUsage float64 `json:"dataStoreUsage"` }
type HostHealthInfo ¶ added in v1.0.0
type HostHealthInfo struct { ID string `json:"id"` IP string `json:"ip"` Score float64 `json:"score"` CpuScore float64 `json:"cpuScore"` CpuPerf float64 `json:"cpuPerf"` CpuUsed float64 `json:"cpuUsed"` CpuTotal float64 `json:"cpuTotal"` MemScore float64 `json:"memScore"` MemPerf float64 `json:"memPerf"` MemUsed float64 `json:"memUsed"` MemTotal float64 `json:"memTotal"` StorageScore float64 `json:"storageScore"` StoragePerf float64 `json:"storagePerf"` StorageUsed float64 `json:"storageUsed"` StorageTotal float64 `json:"storageTotal"` NetworkScore float64 `json:"networkScore"` NetworkPerf float64 `json:"networkPerf"` NetworkUsed float64 `json:"networkUsed"` NetworkTotal float64 `json:"networkTotal"` }
type HostPageResponse ¶
type ImageFileInfo ¶ added in v1.0.9
type ImageFileInfo struct { Name string `json:"name"` SourceType string `json:"sourceType"` Format string `json:"format"` FileType string `json:"fileType"` Date string `json:"date"` Path string `json:"path"` FtpServer string `json:"ftpServer"` DataStoreID string `json:"dataStoreId"` DataStoreName string `json:"dataStoreName"` ServerID string `json:"serverId"` Md5 string `json:"md5"` FileSizeInByte int `json:"fileSizeInByte"` RealSizeInByte int `json:"realSizeInByte"` }
type ImageFilePageResponse ¶ added in v1.0.9
type ImageFilePageResponse struct { PageResponse Items []ImageFileInfo `json:"items"` }
type Login ¶
type Login struct { Username string `json:"username"` Password string `json:"password"` Domain string `json:"domain"` Locale string `json:"locale"` }
ICS LOGIN FORM
type LoginPolicy ¶ added in v1.0.9
type LoginPolicy struct {
Enable string `json:"enable"`
}
type LoginResponse ¶
type LoginResponse struct { UserId string `json:"userId"` SessonId string `json:"sessonId"` Validated bool `json:"validated"` Message string `json:"message"` Username string `json:"username"` Password string `json:"password"` Captcha string `json:"captcha"` Locale string `json:"locale"` Domain string `json:"domain"` Remains int `json:"remains"` IP string `json:"ip"` Operator string `json:"operator"` LoginTime string `json:"loginTime"` CreateDate string `json:"createDate"` RoleType string `json:"roleType"` Themes string `json:"themes"` }
ICS LOGIN RESPONSE BODY
type ManagedObjectReference ¶
type Network ¶
type Network struct { ID string `json:"id"` Name string `json:"name"` ResourceID string `json:"resourceId"` Vlan int `json:"vlan"` VlanFlag bool `json:"vlanFlag"` Mtu int `json:"mtu"` Type string `json:"type"` VswitchDto Switch `json:"vswitchDto"` PnicDto interface{} `json:"pnicDto"` PortDtos []interface{} `json:"portDtos"` VMDtos interface{} `json:"vmDtos"` VnicDtos interface{} `json:"vnicDtos"` VmCount int `json:"vmcount"` VnicCount int `json:"vniccount"` ConnectMode string `json:"connectMode"` Description string `json:"description"` UplinkRate int `json:"uplinkRate"` UplinkBurst int `json:"uplinkBurst"` DownlinkRate int `json:"downlinkRate"` DownlinkBurst int `json:"downlinkBurst"` QosEnabled bool `json:"qosEnabled"` DataServiceType interface{} `json:"dataServiceType"` UserVlan interface{} `json:"userVlan"` TpidType interface{} `json:"tpidType"` PermitDel bool `json:"permitDel"` Cidr string `json:"cidr"` CidrType int `json:"cidrType"` Gateway string `json:"gateway"` DhcpEnabled bool `json:"dhcpEnabled"` GatewayEnabled bool `json:"gatewayEnabled"` DNS string `json:"dns"` DataCenterDto Datacenter `json:"dataCenterDto"` NetworkTopoly bool `json:"networkTopoly"` UseTypes string `json:"useTypes"` StartIp string `json:"startIp"` EndIp string `json:"endIp"` Pools []interface{} `json:"pools"` UsedByHbLink bool `json:"usedByHbLink"` }
type NetworkPageResponse ¶
type Nic ¶
type Nic struct { ID string `json:"id"` AutoGenerated bool `json:"autoGenerated"` Name string `json:"name"` NolocalName string `json:"nolocalName"` InnerName string `json:"innerName,omitempty"` DevName string `json:"devName"` IP string `json:"ip,omitempty"` IPv6 string `json:"ipv6,omitempty"` Netmask string `json:"netmask,omitempty"` Gateway string `json:"gateway,omitempty"` Mac string `json:"mac"` Model string `json:"model"` DeviceID string `json:"deviceId"` DeviceName string `json:"deviceName"` DeviceType string `json:"deviceType"` SwitchType string `json:"switchType"` VswitchID string `json:"vswitchId"` UplinkRate int `json:"uplinkRate"` UplinkBurst int `json:"uplinkBurst"` DownlinkRate int `json:"downlinkRate"` DownlinkBurst int `json:"downlinkBurst"` DownlinkQueue string `json:"downlinkQueue,omitempty"` Enable bool `json:"enable"` Status string `json:"status"` InboundRate float64 `json:"inboundRate"` OutboundRate float64 `json:"outboundRate"` ConnectStatus bool `json:"connectStatus"` VMName string `json:"vmName,omitempty"` VMID string `json:"vmId,omitempty"` VMStatus string `json:"vmStatus,omitempty"` VMTemplate bool `json:"vmTemplate"` NetworkName string `json:"networkName"` NetworkVlan string `json:"networkVlan,omitempty"` VlanRange interface{} `json:"vlanRange"` NetworkID string `json:"networkId"` NetworkType interface{} `json:"networkType"` AnotherNetworkType string `json:"anotherNetworkType"` HostIP string `json:"hostIp,omitempty"` HostStatus string `json:"hostStatus,omitempty"` HostID string `json:"hostId,omitempty"` DirectObjName string `json:"directObjName,omitempty"` TotalOctets float64 `json:"totalOctets"` TotalDropped float64 `json:"totalDropped"` TotalPackets float64 `json:"totalPackets"` TotalBytes float64 `json:"totalBytes"` TotalErrors float64 `json:"totalErrors"` WriteOctets float64 `json:"writeOctets"` WriteDropped float64 `json:"writeDropped"` WritePackets float64 `json:"writePackets"` WriteBytes float64 `json:"writeBytes"` WriteErrors float64 `json:"writeErrors"` ReadOctets float64 `json:"readOctets"` ReadDropped float64 `json:"readDropped"` ReadPackets float64 `json:"readPackets"` ReadBytes float64 `json:"readBytes"` ReadErrors float64 `json:"readErrors"` SecurityGroups interface{} `json:"securityGroups"` AdvancedNetIP interface{} `json:"advancedNetIp"` PortID interface{} `json:"portId"` SdnVFID interface{} `json:"sdnVFId"` OpenstackID interface{} `json:"openstackId"` BindIPEnable bool `json:"bindIpEnable"` BindIP interface{} `json:"bindIp"` PriorityEnabled bool `json:"priorityEnabled"` NetPriority string `json:"netPriority"` VMType string `json:"vmType"` SystemVMType interface{} `json:"systemVmType"` Dhcp bool `json:"dhcp"` DhcpIP interface{} `json:"dhcpIp"` UsedDpdk bool `json:"usedDpdk"` Queues int `json:"queues"` Speed string `json:"speed"` FloatIp string `json:"floatIp"` NatGatewayId string `json:"natGatewayId"` QueueLengthSet bool `json:"queueLengthSet"` SendQueueLength int `json:"sendQueueLength"` ReceiveQueueLength int `json:"receiveQueueLength"` StaticIp bool `json:"staticIp"` UserIp string `json:"userIp"` Ipv4PrimaryDNS string `json:"ipv4PrimaryDNS"` Ipv4SecondDNS string `json:"ipv4SecondDNS"` Ipv4Netmask string `json:"ipv4Netmask"` Ipv4Gateway string `json:"ipv4Gateway"` TenantId string `json:"tenantId"` }
type OptionType ¶
type OptionType struct { DynamicData ValueIsReadonly *bool `json:"valueIsReadonly"` }
func (*OptionType) GetOptionType ¶
func (b *OptionType) GetOptionType() *OptionType
type OptionValue ¶
type OptionValue struct { DynamicData Key string `json:"key"` Value AnyType `json:"value"` }
func (*OptionValue) GetOptionValue ¶
func (b *OptionValue) GetOptionValue() *OptionValue
type PageResponse ¶
type RelatedVmInfo ¶ added in v1.0.5
type SDKError ¶
type SdnNetwork ¶ added in v1.1.3
type SdnNetwork struct { ID string `json:"id"` Name string `json:"name"` DataCenterDto Datacenter `json:"dataCenterDto"` SubnetKeys []SdnSubnet `json:"subnetKeys"` Status string `json:"status"` RouterExternal bool `json:"routerExternal"` NetworkTopoly bool `json:"networkTopoly"` ProviderSegID string `json:"providerSegID"` NetworkType string `json:"networkType"` ProviderPhyNet string `json:"providerPhyNet"` SubnetDto interface{} `json:"subnetDto"` SubnetCount int `json:"subnetCount"` PortCount int `json:"portCount"` VSwitchID string `json:"vswitchId,omitempty"` Type string `json:"type"` RouterDtos interface{} `json:"routerDtos"` FirewallDto interface{} `json:"firewallDto"` UsedIp int `json:"usedIp"` TotalIp int `json:"totalIp"` MiredirectStatus bool `json:"miredirectStatus"` MulticastStatus bool `json:"multicastStatus"` PortForwardingCnt int `json:"portForwardingCnt"` L2GatewayStatus bool `json:"l2GatewayStatus"` QosEnabled bool `json:"qosEnabled"` UplinkRate int `json:"uplinkRate"` DownlinkRate int `json:"downlinkRate"` }
type SdnNetworkPageResponse ¶ added in v1.1.3
type SdnNetworkPageResponse struct { TotalPage int `json:"totalPage"` CurrentPage int `json:"currentPage"` TotalSize int `json:"totalSize"` Items []SdnNetwork `json:"items"` }
type SdnSubnet ¶ added in v1.1.3
type SdnSubnet struct { ID string `json:"id"` Name string `json:"name"` Cidr string `json:"cidr"` EnableDHCP bool `json:"enableDHCP"` Gateway string `json:"gateway"` RouterID string `json:"routerId,omitempty"` RouterName string `json:"routerName,omitempty"` SubnetID string `json:"subnetId"` SubnetName string `json:"subnetName"` Pools []struct { Start string `json:"start"` End string `json:"end"` } `json:"pools"` NetworkTopoly bool `json:"networkTopoly"` }
type ServiceContent ¶
type ServiceContent struct { }
type Storage ¶
type Storage struct { DataStoreType string `json:"dataStoreType"` ID string `json:"id"` Name string `json:"name"` MountPath string `json:"mountPath"` Capacity float64 `json:"capacity"` CapacityInByte int `json:"capacityInByte,omitempty"` UsedCapacity float64 `json:"usedCapacity"` UsedCapacityInByte int `json:"usedCapacityInByte,omitempty"` AvailCapacity float64 `json:"availCapacity"` AvailCapacityInByte int `json:"availCapacityInByte,omitempty"` DataCenterID string `json:"dataCenterId"` HostID string `json:"hostId,omitempty"` MountStatus string `json:"mountStatus,omitempty"` HostIP string `json:"hostIp,omitempty"` UUID string `json:"uuid"` AbsolutePath string `json:"absolutePath,omitempty"` DataCenterName string `json:"dataCenterName,omitempty"` DataCenterOrHostDto struct { DataCenterOrHost string `json:"dataCenterOrHost"` DataCenterName string `json:"dataCenterName,omitempty"` HostName string `json:"hostName,omitempty"` Status string `json:"status,omitempty"` } `json:"dataCenterOrHostDto"` BlockDeviceDto interface{} `json:"blockDeviceDto,omitempty"` XactiveStoreName string `json:"xactiveStoreName,omitempty"` XactiveStoreId string `json:"xactiveStoreId,omitempty"` DataCenterDto interface{} `json:"dataCenterDto,omitempty"` HostNumbers int `json:"hostNumbers"` PodHostNumbers int `json:"podHostNumbers"` VMNumbers int `json:"vmNumbers"` VolumesNumbers int `json:"volumesNumbers"` VMTemplateNumbers int `json:"vmTemplateNumbers"` PodNumbers int `json:"podNumbers"` Tags interface{} `json:"tags,omitempty"` MaxSlots int `json:"maxSlots"` Creating bool `json:"creating"` StorageBackUp bool `json:"storageBackUp"` ExtensionType string `json:"extensionType"` CanBeImageStorage bool `json:"canBeImageStorage"` MultiplexRatio float64 `json:"multiplexRatio"` Oplimit bool `json:"oplimit"` Maxop int `json:"maxop"` MountStateCount interface{} `json:"mountStateCount"` DatastoreRole interface{} `json:"datastoreRole"` CanCreateXactive bool `json:"canCreateXactive"` Accelerator string `json:"accelerator"` IscsiServerId string `json:"iscsiServerId"` CanUmount bool `json:"canUmount"` Iops float64 `json:"iops"` Kbps float64 `json:"kbps"` MaxReadRate int `json:"maxReadRate"` MaxWriteRate int `json:"maxWriteRate"` DepthReadRate int `json:"depthReadRate"` DepthWriteRate int `json:"depthWriteRate"` ReadBandwidth interface{} `json:"readBandwidth"` WriteBandwidth interface{} `json:"writeBandwidth"` MaxReadDelay float64 `json:"maxReadDelay"` MaxWriteDelay float64 `json:"maxWriteDelay"` DepthReadDelay float64 `json:"depthReadDelay"` DepthWriteDelay float64 `json:"depthWriteDelay"` BlockDeviceUuid string `json:"blockDeviceUuid"` OpHostIp string `json:"opHostIp"` IsMount bool `json:"isMount"` DetectIORate interface{} `json:"detectIORate"` HostDto interface{} `json:"hostDto"` ScvmOn bool `json:"scvmOn"` AllocPolicy string `json:"allocPolicy,omitempty"` }
type StoragePageReq ¶
type StoragePageReq struct {
PageReq
}
type StoragePageResponse ¶
type StoragePageResponse struct { PageResponse Items []Storage `json:"items"` }
type Switch ¶
type Switch struct { ID string `json:"id"` Name string `json:"name"` ResourceID string `json:"resourceId"` ControllerIP string `json:"controllerIP"` DataCenterDto Datacenter `json:"dataCenterDto"` HostDtos []Host `json:"hostDtos"` SwitchType string `json:"switchType"` AppType string `json:"appType"` Description string `json:"description"` NetworkDtos interface{} `json:"networkDtos"` SdnNetworkDtos interface{} `json:"sdnNetworkDtos"` VMDtos interface{} `json:"vmDtos"` HostNum int `json:"hostNum"` PnicNum int `json:"pnicNum"` NetworkNum int `json:"networkNum"` VMNum int `json:"vmNum"` ProdNum int `json:"prodNum"` MaxVfs int `json:"maxvfs"` ThirdPartySDN bool `json:"thirdPartySDN"` Hierarchy bool `json:"hierarchy"` ConnectStorage bool `json:"connectStorage"` ConnectManage bool `json:"connectManage"` ConnectSwitches interface{} `json:"connectSwitches"` DhcpProtection bool `json:"dhcpProtection"` NeutronName interface{} `json:"neutronName"` NeutronPassword interface{} `json:"neutronPassword"` ConnectScvm bool `json:"connectScvm"` SwitchUplinkType string `json:"switchUplinkType"` ComputerNetNum int `json:"computerNetNum"` DataNetNum int `json:"dataNetNum"` MigrateNetNum int `json:"migrateNetNum"` VmMigBandWidth string `json:"vmMigBandWidth"` EnableDpdk bool `json:"enableDpdk"` SflowStatus bool `json:"sflowStatus"` NetflowStatus bool `json:"netflowStatus"` MulticastStatus bool `json:"multicastStatus"` MirrorStatus bool `json:"mirrorStatus"` BrLimitStatus bool `json:"brLimitStatus"` Hidden bool `json:"hidden"` NetworkTopoly bool `json:"networkTopoly"` ArbitrativeIp string `json:"arbitrativeIp"` HbAutoCreate bool `json:"hbAutoCreate"` EnableFcoe bool `json:"enableFcoe"` EnableSc bool `json:"enableSc"` EnableTrust bool `json:"enableTrust"` MTU int `json:"mtu"` ConnectInCloudOs bool `json:"connectInCloudOs"` IamServerDto interface{} `json:"iamServerDto"` }
type TagBinding ¶
type TaskInfo ¶
type TaskInfo struct { Id string `json:"id"` Name string `json:"name"` Detail string `json:"detail"` State string `json:"state"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` ActorName string `json:"actorName"` Error string `json:"error"` Cancelable bool `json:"cancelable"` Canceled bool `json:"canceled"` TargetName string `json:"targetName"` TargetId string `json:"targetId"` TargetType string `json:"targetType"` Events []interface{} `json:"events"` ProcessId string `json:"processId"` Progress int `json:"progress"` ChildTasks []TaskInfo `json:"childTasks"` }
type UserSession ¶
type UserSession struct { UserId string `json:"userId"` Username string `json:"username"` SessonId string `json:"sessonId"` RoleType string `json:"roleType"` Locale string `json:"locale"` IP string `json:"ip"` Themes string `json:"themes"` CreateDate string `json:"createDate"` LoginTime string `json:"loginTime"` }
ICS LOGIN RESPONSE BODY
type VMPageResponse ¶
type VMPageResponse struct { PageResponse Items []VirtualMachine `json:"items"` }
type VMPowerState ¶ added in v1.0.0
type VMPowerState string
type Vapp ¶ added in v1.0.0
type Vapp struct { ID string `json:"id"` DataCenterID string `json:"dataCenterId"` Name string `json:"name"` CpuCount string `json:"cpucount"` Memory string `json:"memory"` MemoryInByte int `json:"memoryInByte,omitempty"` ActiveVMCount string `json:"activevircount"` VMCount string `json:"vircount"` State string `json:"state"` Health string `json:"health,omitempty"` Product string `json:"product,omitempty"` Version string `json:"version,omitempty"` Supplier string `json:"supplier,omitempty"` CanPowerOn bool `json:"canPowerOn"` CanPowerOff bool `json:"canPowerOff"` CanRestart bool `json:"canRestart"` DataCenterName string `json:"dataCenterName"` StatusCount map[string]int `json:"statusCount"` VappType interface{} `json:"vappType"` NodeCount interface{} `json:"nodeCount"` VmsToAdd interface{} `json:"vmsToAdd,omitempty"` // contains filtered or unexported fields }
type VappCreateReq ¶ added in v1.0.0
type VappListRsp ¶ added in v1.0.0
type VappListRsp struct {
Items []Vapp `json:"items"`
}
type VirtualMachine ¶
type VirtualMachine struct { ID string `json:"id"` CustomVmId string `json:"customVmId"` Name string `json:"name"` PowerState VMPowerState `json:"state"` Status string `json:"status"` HostID string `json:"hostId"` HostName string `json:"hostName"` HostIP string `json:"hostIp"` HostStatus string `json:"hostStatus"` HostMemory float64 `json:"hostMemory"` DataCenterID string `json:"dataCenterId"` HaEnabled bool `json:"haEnabled"` RouterFlag bool `json:"routerFlag"` Migratable bool `json:"migratable"` HostBinded bool `json:"hostBinded"` ToolsInstalled bool `json:"toolsInstalled"` ToolsVersion string `json:"toolsVersion"` ToolsType string `json:"toolsType"` ToolsVersionStatus string `json:"toolsVersionStatus"` ToolsRunningStatus string `json:"toolsRunningStatus"` ToolsNeedUpdate bool `json:"toolsNeedUpdate"` Description string `json:"description"` HaMaxLimit int `json:"haMaxLimit"` Template bool `json:"template"` Initialized bool `json:"initialized"` GuestosLabel string `json:"guestosLabel"` GuestosType string `json:"guestosType"` GuestOsInfo GuestOsInfo `json:"guestOsInfo"` InnerName string `json:"innerName"` UUID string `json:"uuid"` MaxMemory int `json:"maxMemory"` MaxMemoryInByte int `json:"maxMemoryInByte"` Memory int `json:"memory"` MemoryInByte int `json:"memoryInByte"` MemoryUsage float64 `json:"memoryUsage"` MemHotplugEnabled bool `json:"memHotplugEnabled"` MemHotplugNumaEnabled bool `json:"memHotplugNumaEnabled"` EnableHugeMemPage bool `json:"enableHugeMemPage"` TransPriority interface{} `json:"transPriority"` CPUNum int `json:"cpuNum"` CPUSocket int `json:"cpuSocket"` CPUCore int `json:"cpuCore"` CPUUsage float64 `json:"cpuUsage"` MaxCPUNum int `json:"maxCpuNum"` CPUHotplugEnabled bool `json:"cpuHotplugEnabled"` CPUModelType string `json:"cpuModelType"` CPUModelEnabled bool `json:"cpuModelEnabled"` RunningTime float64 `json:"runningTime"` RunningTimeInSeconds int `json:"runningTimeInSeconds"` ShutDownTime float64 `json:"shutDownTime"` StatusChangedReason string `json:"statusChangedReason"` Boot string `json:"boot"` BootMode string `json:"bootMode"` NvramFilePath string `json:"nvramFilePath,omitempty"` PflashFilePath string `json:"pflashFilePath,omitempty"` BiosSerialNumber string `json:"biosSerialNumber"` BootDevices []BootDevice `json:"bootDevices"` SplashTime int `json:"splashTime"` StoragePriority int `json:"storagePriority"` Usb interface{} `json:"usb,omitempty"` Usbs []interface{} `json:"usbs,omitempty"` Cdrom Cdrom `json:"cdrom,omitempty"` ScriptLocation interface{} `json:"scriptLocation"` CloudInit CloudInit `json:"cloudInit,omitempty"` Floppy interface{} `json:"floppy,omitempty"` Disks []Disk `json:"disks"` DelVolumes interface{} `json:"delVolumes"` Nics []Nic `json:"nics"` Gpus []interface{} `json:"gpus,omitempty"` VMPcis []interface{} `json:"vmPcis"` ConfigLocation string `json:"configLocation"` HotplugEnabled bool `json:"hotplugEnabled"` VncPort int `json:"vncPort"` VncPasswd string `json:"vncPasswd"` CpuBindType string `json:"cpuBindType"` VcpuPin string `json:"vcpuPin"` VcpuPins []string `json:"vcpuPins"` PanickPolicy string `json:"panickPolicy"` DataStoreID string `json:"dataStoreId"` SdsdomainID string `json:"sdsdomainId"` ClockModel string `json:"clockModel"` CPULimit int `json:"cpuLimit"` CPUReservation int `json:"cpuReservation"` MemReservation int `json:"memReservation"` MemReservationInByte int `json:"memReservationInByte"` LastBackup interface{} `json:"lastBackup"` VMType string `json:"vmType"` SystemVMType interface{} `json:"systemVmType"` MemBalloonEnabled bool `json:"memBalloonEnabled"` Completed bool `json:"completed"` GraphicsCardModel string `json:"graphicsCardModel"` GraphicsCardMemory int `json:"graphicsCardMemory"` GraphicsCards []GraphicsCard `json:"graphicsCards"` VMHostName string `json:"vmHostName"` DiskTotalSize float64 `json:"diskTotalSize"` DiskTotalSizeInByte int `json:"diskTotalSizeInByte"` DiskUsedSize float64 `json:"diskUsedSize"` DiskUsage float64 `json:"diskUsage"` Tags interface{} `json:"tags"` StartPriority string `json:"startPriority"` OwnerName string `json:"ownerName"` Version string `json:"version"` EnableReplicate bool `json:"enableReplicate"` ReplicationDatastoreId string `json:"replicationDatastoreId"` ReplicationDatastoreName string `json:"replicationDatastoreName"` RecoveryFlag bool `json:"recoveryFlag"` SpiceUsbNum int `json:"spiceUsbNum"` CdpInfo CdpInfo `json:"cdpInfo"` GuestOSAuthInfo GuestOSAuthInfo `json:"guestOSAuthInfo"` AwareNumaEnabled bool `json:"awareNumaEnabled"` DrxEnabled bool `json:"drxEnabled"` Recyled bool `json:"recyled"` Hidden bool `json:"hidden"` DeleteTime string `json:"deleteTime"` DestoryedTime string `json:"destoryedTime"` SecretLevel string `json:"secretLevel"` SourceFrom string `json:"sourceFrom"` SourceFromId string `json:"sourceFromId"` SourceFromResourceName string `json:"sourceFromResourceName"` VmDataStoreId string `json:"vmDataStoreId"` EncryptFlag bool `json:"encryptFlag"` SecretKeyId string `json:"secretKeyId"` CpuArchType string `json:"cpuArchType"` CpuVendor string `json:"cpuVendor,omitempty"` SupportQuiesce bool `json:"supportQuiesce"` NetHaEnabled bool `json:"netHaEnabled"` VmDataStoreName string `json:"vmDataStoreName"` ProtectionGroupId string `json:"protectionGroupId,omitempty"` ProtectionGroupName string `json:"protectionGroupName,omitempty"` LocalWebsiteId string `json:"localWebsiteId"` SysInitResult interface{} `json:"sysInitResult"` CreateTime string `json:"createTime"` DiskKbps float64 `json:"diskKbps"` DiskIops float64 `json:"diskIops"` UpdateTime string `json:"updateTime"` AddToGroupAvailable bool `json:"addToGroupAvailable"` AddToGroupTip interface{} `json:"addToGroupTip"` AddToGroupTime interface{} `json:"addToGroupTime"` RecoveryStartInterval int `json:"recoveryStartInterval"` RecoveryStartSequence int `json:"recoveryStartSequence"` SerialPortDevices interface{} `json:"serialPortDevices"` WatchDogs []interface{} `json:"watchDogs"` UpsCentral bool `json:"upsCentral"` EnableIntegrityCheck bool `json:"enableIntegrityCheck"` IdentificationCode string `json:"identificationCode"` AutoSyncTimeEnabled bool `json:"autoSyncTimeEnabled"` EnableAntiVirus bool `json:"enableAntiVirus"` HostAntivirusStatus string `json:"hostAntivirusStatus,omitempty"` DisplayNodeVersion string `json:"displayNodeVersion"` VappId string `json:"vappId"` VmfpgaDevs []interface{} `json:"vmfpgaDevs"` }
type VirtualMachinePowerState ¶
type VirtualMachinePowerState string
type Volume ¶
type Volume struct { ID string `json:"id"` UUID string `json:"uuid"` Size float64 `json:"size"` SizeInByte int `json:"sizeInByte"` RealSize float64 `json:"realSize"` RealSizeInByte float64 `json:"realSizeInByte"` Name string `json:"name"` FileName string `json:"fileName"` Offset int `json:"offset"` DeleteModel string `json:"deleteModel"` VolumePolicy string `json:"volumePolicy"` Format string `json:"format"` BlockDeviceID string `json:"blockDeviceId,omitempty"` DiskType string `json:"diskType,omitempty"` DataStoreID string `json:"dataStoreId"` DataStoreName string `json:"dataStoreName"` DataStoreSize float64 `json:"dataStoreSize"` DataStoreSizeInByte int `json:"dataStoreSizeInByte,omitempty"` FreeStorage float64 `json:"freeStorage"` DataStoreType string `json:"dataStoreType"` DataStoreReplicate int `json:"dataStoreReplicate"` VMName string `json:"vmName,omitempty"` VMStatus string `json:"vmStatus,omitempty"` Type string `json:"type,omitempty"` Description string `json:"description,omitempty"` Bootable bool `json:"bootable"` VolumeStatus string `json:"volumeStatus"` MountedHostIds []string `json:"mountedHostIds"` Md5 string `json:"md5,omitempty"` DataSize int `json:"dataSize"` OpenStackID string `json:"openStackId,omitempty"` VvSourceDto interface{} `json:"vvSourceDto"` FormatDisk bool `json:"formatDisk"` ToBeConverted bool `json:"toBeConverted"` RelatedVms []RelatedVmInfo `json:"relatedVms"` XactiveDataStoreId string `json:"xactiveDataStoreId"` ClusterSize int `json:"clusterSize"` ScsiID string `json:"scsiId"` SecondaryUuid string `json:"secondaryUuid"` Usage string `json:"usage"` SecondaryVolumes interface{} `json:"secondaryVolumes"` MountDir interface{} `json:"mountDir"` OpenMode interface{} `json:"openMode"` Encrypted bool `json:"encrypted"` DatastoreStrategy interface{} `json:"datastoreStrategy"` Replicate int `json:"replicate"` WorkMode interface{} `json:"workMode"` }
type VolumeListRsp ¶
type VolumeListRsp struct {
Items []Volume `json:"items"`
}
type VolumeReq ¶
type VolumeReq struct { Name string `json:"name"` Size string `json:"size"` DataStoreType string `json:"dataStoreType"` DataStoreId string `json:"dataStoreId"` VolumePolicy string `json:"volumePolicy"` Description string `json:"description"` Bootable bool `json:"bootable"` Format string `json:"format"` Usage string `json:"usage"` }
Click to show internal directories.
Click to hide internal directories.