esx

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package esx contains SOAP responses from an ESX server, captured using `govc ... -dump`.

Index

Constants

This section is empty.

Variables

View Source
var Datacenter = mo.Datacenter{
	ManagedEntity: mo.ManagedEntity{
		ExtensibleManagedObject: mo.ExtensibleManagedObject{
			Self:           types.ManagedObjectReference{Type: "Datacenter", Value: "ha-datacenter"},
			Value:          nil,
			AvailableField: nil,
		},
		Parent:              (*types.ManagedObjectReference)(nil),
		CustomValue:         nil,
		OverallStatus:       "",
		ConfigStatus:        "",
		ConfigIssue:         nil,
		EffectiveRole:       nil,
		Permission:          nil,
		Name:                "ha-datacenter",
		DisabledMethod:      nil,
		RecentTask:          nil,
		DeclaredAlarmState:  nil,
		TriggeredAlarmState: nil,
		AlarmActionsEnabled: (*bool)(nil),
		Tag:                 nil,
	},
	VmFolder:        types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-vm"},
	HostFolder:      types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-host"},
	DatastoreFolder: types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-datastore"},
	NetworkFolder:   types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-network"},
	Datastore: []types.ManagedObjectReference{
		{Type: "Datastore", Value: "57089c25-85e3ccd4-17b6-000c29d0beb3"},
	},
	Network: []types.ManagedObjectReference{
		{Type: "Network", Value: "HaNetwork-VM Network"},
	},
	Configuration: types.DatacenterConfigInfo{},
}

Datacenter is the default template for Datacenter properties. Capture method:

govc datacenter.info -dump
View Source
var EthernetCard = types.VirtualE1000{
	VirtualEthernetCard: types.VirtualEthernetCard{
		VirtualDevice: types.VirtualDevice{
			DynamicData: types.DynamicData{},
			Key:         4000,
			Backing: &types.VirtualEthernetCardNetworkBackingInfo{
				VirtualDeviceDeviceBackingInfo: types.VirtualDeviceDeviceBackingInfo{
					VirtualDeviceBackingInfo: types.VirtualDeviceBackingInfo{},
					DeviceName:               "VM Network",
					UseAutoDetect:            types.NewBool(false),
				},
				Network:           (*types.ManagedObjectReference)(nil),
				InPassthroughMode: types.NewBool(false),
			},
			Connectable: &types.VirtualDeviceConnectInfo{
				DynamicData:       types.DynamicData{},
				StartConnected:    true,
				AllowGuestControl: true,
				Connected:         false,
				Status:            "untried",
			},
			SlotInfo: &types.VirtualDevicePciBusSlotInfo{
				VirtualDeviceBusSlotInfo: types.VirtualDeviceBusSlotInfo{},
				PciSlotNumber:            32,
			},
			ControllerKey: 100,
			UnitNumber:    types.NewInt32(7),
		},
		AddressType:      "generated",
		MacAddress:       "",
		WakeOnLanEnabled: types.NewBool(true),
	},
}

EthernetCard template for types.VirtualEthernetCard

View Source
var EventInfo = []types.EventDescriptionEventDetail{
	{
		Key:         "UserLoginSessionEvent",
		Description: "User login",
		Category:    "info",
		FullFormat:  "User {{.UserName}}@{{.IpAddress}} logged in as {{.UserAgent}}",
	},
	{
		Key:         "UserLogoutSessionEvent",
		Description: "User logout",
		Category:    "info",
		FullFormat:  "User {{.UserName}}@{{.IpAddress}} logged out (login time: {{.LoginTime}}, number of API invocations: {{.CallCount}}, user agent: {{.UserAgent}})",
	},
	{
		Key:         "DatacenterCreatedEvent",
		Description: "Datacenter created",
		Category:    "info",
		FullFormat:  "Created datacenter {{.Datacenter.Name}} in folder {{.Parent.Name}}",
	},
	{
		Key:         "DatastoreFileMovedEvent",
		Description: "File or directory moved to datastore",
		Category:    "info",
		FullFormat:  "Move of file or directory {{.SourceFile}} from {{.SourceDatastore.Name}} to {{.Datastore.Name}} as {{.TargetFile}}",
	},
	{
		Key:         "DatastoreFileCopiedEvent",
		Description: "File or directory copied to datastore",
		Category:    "info",
		FullFormat:  "Copy of file or directory {{.SourceFile}} from {{.SourceDatastore.Name}} to {{.Datastore.Name}} as {{.TargetFile}}",
	},
	{
		Key:         "DatastoreFileDeletedEvent",
		Description: "File or directory deleted",
		Category:    "info",
		FullFormat:  "Deletion of file or directory {{.TargetFile}} from {{.Datastore.Name}} was initiated",
	},
	{
		Key:         "EnteringMaintenanceModeEvent",
		Description: "Entering maintenance mode",
		Category:    "info",
		FullFormat:  "Host {{.Host.Name}} in {{.Datacenter.Name}} has started to enter maintenance mode",
	},
	{
		Key:         "EnteredMaintenanceModeEvent",
		Description: "Entered maintenance mode",
		Category:    "info",
		FullFormat:  "Host {{.Host.Name}} in {{.Datacenter.Name}} has entered maintenance mode",
	},
	{
		Key:         "ExitMaintenanceModeEvent",
		Description: "Exit maintenance mode",
		Category:    "info",
		FullFormat:  "Host {{.Host.Name}} in {{.Datacenter.Name}} has exited maintenance mode",
	},
	{
		Key:         "VmSuspendedEvent",
		Description: "VM suspended",
		Category:    "info",
		FullFormat:  "{{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}} is suspended",
	},
	{
		Key:         "VmMigratedEvent",
		Description: "VM migrated",
		Category:    "info",
		FullFormat:  "Migration of virtual machine {{.Vm.Name}} from {{.SourceHost.Name}, {{.SourceDatastore.Name}} to {{.Host.Name}, {{.Ds.Name}} completed",
	},
	{
		Key:         "VmBeingMigratedEvent",
		Description: "VM migrating",
		Category:    "info",
		FullFormat:  "Relocating {{.Vm.Name}} from {{.Host.Name}, {{.Ds.Name}} in {{.Datacenter.Name}} to {{.DestHost.Name}, {{.DestDatastore.Name}} in {{.DestDatacenter.Name}}",
	},
	{
		Key:         "VmMacAssignedEvent",
		Description: "VM MAC assigned",
		Category:    "info",
		FullFormat:  "New MAC address ({{.Mac}}) assigned to adapter {{.Adapter}} for {{.Vm.Name}}",
	},
	{
		Key:         "VmRegisteredEvent",
		Description: "VM registered",
		Category:    "info",
		FullFormat:  "Registered {{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}}",
	},
	{
		Key:         "VmReconfiguredEvent",
		Description: "VM reconfigured",
		Category:    "info",
		FullFormat:  "Reconfigured {{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}}",
	},
	{
		Key:         "VmGuestRebootEvent",
		Description: "Guest reboot",
		Category:    "info",
		FullFormat:  "Guest OS reboot for {{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}}",
	},
	{
		Key:         "VmBeingClonedEvent",
		Description: "VM being cloned",
		Category:    "info",
		FullFormat:  "Cloning {{.Vm.Name}} on host {{.Host.Name}} in {{.Datacenter.Name}} to {{.DestName}} on host {{.DestHost.Name}}",
	},
	{
		Key:         "VmClonedEvent",
		Description: "VM cloned",
		Category:    "info",
		FullFormat:  "Clone of {{.SourceVm.Name}} completed",
	},
	{
		Key:         "VmBeingDeployedEvent",
		Description: "Deploying VM",
		Category:    "info",
		FullFormat:  "Deploying {{.Vm.Name}} on host {{.Host.Name}} in {{.Datacenter.Name}} from template {{.SrcTemplate.Name}}",
	},
	{
		Key:         "VmDeployedEvent",
		Description: "VM deployed",
		Category:    "info",
		FullFormat:  "Template {{.SrcTemplate.Name}} deployed on host {{.Host.Name}}",
	},
	{
		Key:         "VmInstanceUuidAssignedEvent",
		Description: "Assign a new instance UUID",
		Category:    "info",
		FullFormat:  "Assign a new instance UUID ({{.InstanceUuid}}) to {{.Vm.Name}}",
	},
	{
		Key:         "VmPoweredOnEvent",
		Description: "VM powered on",
		Category:    "info",
		FullFormat:  "{{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}} is powered on",
	},
	{
		Key:         "VmStartingEvent",
		Description: "VM starting",
		Category:    "info",
		FullFormat:  "{{.Vm.Name}} on host {{.Host.Name}} in {{.Datacenter.Name}} is starting",
	},
	{
		Key:         "VmSuspendingEvent",
		Description: "VM being suspended",
		Category:    "info",
		FullFormat:  "{{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}} is being suspended",
	},
	{
		Key:         "VmResumingEvent",
		Description: "VM resuming",
		Category:    "info",
		FullFormat:  "{{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}} is resumed",
	},
	{
		Key:         "VmBeingCreatedEvent",
		Description: "Creating VM",
		Category:    "info",
		FullFormat:  "Creating {{.Vm.Name}} on host {{.Host.Name}} in {{.Datacenter.Name}}",
	},
	{
		Key:         "VmCreatedEvent",
		Description: "VM created",
		Category:    "info",
		FullFormat:  "Created virtual machine {{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}}",
	},
	{
		Key:         "VmRemovedEvent",
		Description: "VM removed",
		Category:    "info",
		FullFormat:  "Removed {{.Vm.Name}} on {{.Host.Name}} from {{.Datacenter.Name}}",
	},
	{
		Key:         "VmResettingEvent",
		Description: "VM resetting",
		Category:    "info",
		FullFormat:  "{{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}} is reset",
	},
	{
		Key:         "VmGuestShutdownEvent",
		Description: "Guest OS shut down",
		Category:    "info",
		FullFormat:  "Guest OS shut down for {{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}}",
	},
	{
		Key:         "VmUuidAssignedEvent",
		Description: "VM UUID assigned",
		Category:    "info",
		FullFormat:  "Assigned new BIOS UUID ({{.Uuid}}) to {{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}}",
	},
	{
		Key:         "VmPoweredOffEvent",
		Description: "VM powered off",
		Category:    "info",
		FullFormat:  "{{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}} is powered off",
	},
	{
		Key:         "VmRelocatedEvent",
		Description: "VM relocated",
		Category:    "info",
		FullFormat:  "Completed the relocation of the virtual machine",
	},
	{
		Key:         "DrsVmMigratedEvent",
		Description: "DRS VM migrated",
		Category:    "info",
		FullFormat:  "DRS migrated {{.Vm.Name}} from {{.SourceHost.Name}} to {{.Host.Name}} in cluster {{.ComputeResource.Name}} in {{.Datacenter.Name}}",
	},
	{
		Key:         "DrsVmPoweredOnEvent",
		Description: "DRS VM powered on",
		Category:    "info",
		FullFormat:  "DRS powered On {{.Vm.Name}} on {{.Host.Name}} in {{.Datacenter.Name}}",
	},
}

EventInfo is the default template for the EventManager description.eventInfo property. Capture method:

govc object.collect -s -dump EventManager:ha-eventmgr description.eventInfo

The captured list has been manually pruned and FullFormat fields changed to use Go's template variable syntax.

View Source
var HostConfigInfo = types.HostConfigInfo{
	Host: types.ManagedObjectReference{Type: "HostSystem", Value: "ha-host"},
	Product: types.AboutInfo{
		Name:                  "VMware ESXi",
		FullName:              "VMware ESXi 6.5.0 build-5969303",
		Vendor:                "VMware, Inc.",
		Version:               "6.5.0",
		Build:                 "5969303",
		LocaleVersion:         "INTL",
		LocaleBuild:           "000",
		OsType:                "vmnix-x86",
		ProductLineId:         "embeddedEsx",
		ApiType:               "HostAgent",
		ApiVersion:            "6.5",
		InstanceUuid:          "",
		LicenseProductName:    "VMware ESX Server",
		LicenseProductVersion: "6.0",
	},
	DeploymentInfo: &types.HostDeploymentInfo{
		BootedFromStatelessCache: types.NewBool(false),
	},
	HyperThread: &types.HostHyperThreadScheduleInfo{
		Available: false,
		Active:    false,
		Config:    true,
	},
	ConsoleReservation:        (*types.ServiceConsoleReservationInfo)(nil),
	VirtualMachineReservation: (*types.VirtualMachineMemoryReservationInfo)(nil),
	StorageDevice:             &HostStorageDeviceInfo,
	SystemFile:                nil,
	Network: &types.HostNetworkInfo{
		Vswitch: []types.HostVirtualSwitch{
			{
				Name:              "vSwitch0",
				Key:               "key-vim.host.VirtualSwitch-vSwitch0",
				NumPorts:          1536,
				NumPortsAvailable: 1530,
				Mtu:               1500,
				Portgroup:         []string{"key-vim.host.PortGroup-VM Network", "key-vim.host.PortGroup-Management Network"},
				Pnic:              []string{"key-vim.host.PhysicalNic-vmnic0"},
				Spec: types.HostVirtualSwitchSpec{
					NumPorts: 128,
					Bridge: &types.HostVirtualSwitchBondBridge{
						HostVirtualSwitchBridge: types.HostVirtualSwitchBridge{},
						NicDevice:               []string{"vmnic0"},
						Beacon: &types.HostVirtualSwitchBeaconConfig{
							Interval: 1,
						},
						LinkDiscoveryProtocolConfig: &types.LinkDiscoveryProtocolConfig{
							Protocol:  "cdp",
							Operation: "listen",
						},
					},
					Policy: &types.HostNetworkPolicy{
						Security: &types.HostNetworkSecurityPolicy{
							AllowPromiscuous: types.NewBool(false),
							MacChanges:       types.NewBool(true),
							ForgedTransmits:  types.NewBool(true),
						},
						NicTeaming: &types.HostNicTeamingPolicy{
							Policy:         "loadbalance_srcid",
							ReversePolicy:  types.NewBool(true),
							NotifySwitches: types.NewBool(true),
							RollingOrder:   types.NewBool(false),
							FailureCriteria: &types.HostNicFailureCriteria{
								CheckSpeed:        "minimum",
								Speed:             10,
								CheckDuplex:       types.NewBool(false),
								FullDuplex:        types.NewBool(false),
								CheckErrorPercent: types.NewBool(false),
								Percentage:        0,
								CheckBeacon:       types.NewBool(false),
							},
							NicOrder: &types.HostNicOrderPolicy{
								ActiveNic:  []string{"vmnic0"},
								StandbyNic: nil,
							},
						},
						OffloadPolicy: &types.HostNetOffloadCapabilities{
							CsumOffload:     types.NewBool(true),
							TcpSegmentation: types.NewBool(true),
							ZeroCopyXmit:    types.NewBool(true),
						},
						ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{
							Enabled:          types.NewBool(false),
							AverageBandwidth: 0,
							PeakBandwidth:    0,
							BurstSize:        0,
						},
					},
					Mtu: 0,
				},
			},
		},
		ProxySwitch: nil,
		Portgroup: []types.HostPortGroup{
			{
				Key:     "key-vim.host.PortGroup-VM Network",
				Port:    nil,
				Vswitch: "key-vim.host.VirtualSwitch-vSwitch0",
				ComputedPolicy: types.HostNetworkPolicy{
					Security: &types.HostNetworkSecurityPolicy{
						AllowPromiscuous: types.NewBool(false),
						MacChanges:       types.NewBool(true),
						ForgedTransmits:  types.NewBool(true),
					},
					NicTeaming: &types.HostNicTeamingPolicy{
						Policy:         "loadbalance_srcid",
						ReversePolicy:  types.NewBool(true),
						NotifySwitches: types.NewBool(true),
						RollingOrder:   types.NewBool(false),
						FailureCriteria: &types.HostNicFailureCriteria{
							CheckSpeed:        "minimum",
							Speed:             10,
							CheckDuplex:       types.NewBool(false),
							FullDuplex:        types.NewBool(false),
							CheckErrorPercent: types.NewBool(false),
							Percentage:        0,
							CheckBeacon:       types.NewBool(false),
						},
						NicOrder: &types.HostNicOrderPolicy{
							ActiveNic:  []string{"vmnic0"},
							StandbyNic: nil,
						},
					},
					OffloadPolicy: &types.HostNetOffloadCapabilities{
						CsumOffload:     types.NewBool(true),
						TcpSegmentation: types.NewBool(true),
						ZeroCopyXmit:    types.NewBool(true),
					},
					ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{
						Enabled:          types.NewBool(false),
						AverageBandwidth: 0,
						PeakBandwidth:    0,
						BurstSize:        0,
					},
				},
				Spec: types.HostPortGroupSpec{
					Name:        "VM Network",
					VlanId:      0,
					VswitchName: "vSwitch0",
					Policy: types.HostNetworkPolicy{
						Security: &types.HostNetworkSecurityPolicy{},
						NicTeaming: &types.HostNicTeamingPolicy{
							Policy:          "",
							ReversePolicy:   (*bool)(nil),
							NotifySwitches:  (*bool)(nil),
							RollingOrder:    (*bool)(nil),
							FailureCriteria: &types.HostNicFailureCriteria{},
							NicOrder:        (*types.HostNicOrderPolicy)(nil),
						},
						OffloadPolicy: &types.HostNetOffloadCapabilities{},
						ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{},
					},
				},
			},
			{
				Key: "key-vim.host.PortGroup-Management Network",
				Port: []types.HostPortGroupPort{
					{
						Key:  "key-vim.host.PortGroup.Port-33554436",
						Mac:  []string{"00:0c:29:81:d8:a0"},
						Type: "host",
					},
				},
				Vswitch: "key-vim.host.VirtualSwitch-vSwitch0",
				ComputedPolicy: types.HostNetworkPolicy{
					Security: &types.HostNetworkSecurityPolicy{
						AllowPromiscuous: types.NewBool(false),
						MacChanges:       types.NewBool(true),
						ForgedTransmits:  types.NewBool(true),
					},
					NicTeaming: &types.HostNicTeamingPolicy{
						Policy:         "loadbalance_srcid",
						ReversePolicy:  types.NewBool(true),
						NotifySwitches: types.NewBool(true),
						RollingOrder:   types.NewBool(false),
						FailureCriteria: &types.HostNicFailureCriteria{
							CheckSpeed:        "minimum",
							Speed:             10,
							CheckDuplex:       types.NewBool(false),
							FullDuplex:        types.NewBool(false),
							CheckErrorPercent: types.NewBool(false),
							Percentage:        0,
							CheckBeacon:       types.NewBool(false),
						},
						NicOrder: &types.HostNicOrderPolicy{
							ActiveNic:  []string{"vmnic0"},
							StandbyNic: nil,
						},
					},
					OffloadPolicy: &types.HostNetOffloadCapabilities{
						CsumOffload:     types.NewBool(true),
						TcpSegmentation: types.NewBool(true),
						ZeroCopyXmit:    types.NewBool(true),
					},
					ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{
						Enabled:          types.NewBool(false),
						AverageBandwidth: 0,
						PeakBandwidth:    0,
						BurstSize:        0,
					},
				},
				Spec: types.HostPortGroupSpec{
					Name:        "Management Network",
					VlanId:      0,
					VswitchName: "vSwitch0",
					Policy: types.HostNetworkPolicy{
						Security: &types.HostNetworkSecurityPolicy{},
						NicTeaming: &types.HostNicTeamingPolicy{
							Policy:         "loadbalance_srcid",
							ReversePolicy:  (*bool)(nil),
							NotifySwitches: types.NewBool(true),
							RollingOrder:   types.NewBool(false),
							FailureCriteria: &types.HostNicFailureCriteria{
								CheckSpeed:        "",
								Speed:             0,
								CheckDuplex:       (*bool)(nil),
								FullDuplex:        (*bool)(nil),
								CheckErrorPercent: (*bool)(nil),
								Percentage:        0,
								CheckBeacon:       types.NewBool(false),
							},
							NicOrder: &types.HostNicOrderPolicy{
								ActiveNic:  []string{"vmnic0"},
								StandbyNic: nil,
							},
						},
						OffloadPolicy: &types.HostNetOffloadCapabilities{},
						ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{},
					},
				},
			},
		},
		Pnic: []types.PhysicalNic{
			{
				Key:    "key-vim.host.PhysicalNic-vmnic0",
				Device: "vmnic0",
				Pci:    "0000:0b:00.0",
				Driver: "nvmxnet3",
				LinkSpeed: &types.PhysicalNicLinkInfo{
					SpeedMb: 10000,
					Duplex:  true,
				},
				ValidLinkSpecification: []types.PhysicalNicLinkInfo{
					{
						SpeedMb: 10000,
						Duplex:  true,
					},
				},
				Spec: types.PhysicalNicSpec{
					Ip: &types.HostIpConfig{},
					LinkSpeed: &types.PhysicalNicLinkInfo{
						SpeedMb: 10000,
						Duplex:  true,
					},
				},
				WakeOnLanSupported: false,
				Mac:                "00:0c:29:81:d8:a0",
				FcoeConfiguration: &types.FcoeConfig{
					PriorityClass: 3,
					SourceMac:     "00:0c:29:81:d8:a0",
					VlanRange: []types.FcoeConfigVlanRange{
						{},
					},
					Capabilities: types.FcoeConfigFcoeCapabilities{
						PriorityClass:    false,
						SourceMacAddress: false,
						VlanRange:        true,
					},
					FcoeActive: false,
				},
				VmDirectPathGen2Supported:             types.NewBool(false),
				VmDirectPathGen2SupportedMode:         "",
				ResourcePoolSchedulerAllowed:          types.NewBool(true),
				ResourcePoolSchedulerDisallowedReason: nil,
				AutoNegotiateSupported:                types.NewBool(false),
			},
			{
				Key:    "key-vim.host.PhysicalNic-vmnic1",
				Device: "vmnic1",
				Pci:    "0000:13:00.0",
				Driver: "nvmxnet3",
				LinkSpeed: &types.PhysicalNicLinkInfo{
					SpeedMb: 10000,
					Duplex:  true,
				},
				ValidLinkSpecification: []types.PhysicalNicLinkInfo{
					{
						SpeedMb: 10000,
						Duplex:  true,
					},
				},
				Spec: types.PhysicalNicSpec{
					Ip: &types.HostIpConfig{},
					LinkSpeed: &types.PhysicalNicLinkInfo{
						SpeedMb: 10000,
						Duplex:  true,
					},
				},
				WakeOnLanSupported: false,
				Mac:                "00:0c:29:81:d8:aa",
				FcoeConfiguration: &types.FcoeConfig{
					PriorityClass: 3,
					SourceMac:     "00:0c:29:81:d8:aa",
					VlanRange: []types.FcoeConfigVlanRange{
						{},
					},
					Capabilities: types.FcoeConfigFcoeCapabilities{
						PriorityClass:    false,
						SourceMacAddress: false,
						VlanRange:        true,
					},
					FcoeActive: false,
				},
				VmDirectPathGen2Supported:             types.NewBool(false),
				VmDirectPathGen2SupportedMode:         "",
				ResourcePoolSchedulerAllowed:          types.NewBool(true),
				ResourcePoolSchedulerDisallowedReason: nil,
				AutoNegotiateSupported:                types.NewBool(false),
			},
		},
		Vnic: []types.HostVirtualNic{
			{
				Device:    "vmk0",
				Key:       "key-vim.host.VirtualNic-vmk0",
				Portgroup: "Management Network",
				Spec: types.HostVirtualNicSpec{
					Ip: &types.HostIpConfig{
						Dhcp:       true,
						IpAddress:  "127.0.0.1",
						SubnetMask: "255.0.0.0",
						IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
					},
					Mac:                    "00:0c:29:81:d8:a0",
					DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
					Portgroup:              "Management Network",
					Mtu:                    1500,
					TsoEnabled:             types.NewBool(true),
					NetStackInstanceKey:    "defaultTcpipStack",
					OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
					ExternalId:             "",
					PinnedPnic:             "",
					IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
				},
				Port: "key-vim.host.PortGroup.Port-33554436",
			},
		},
		ConsoleVnic: nil,
		DnsConfig: &types.HostDnsConfig{
			Dhcp:             true,
			VirtualNicDevice: "vmk0",
			HostName:         "localhost",
			DomainName:       "localdomain",
			Address:          []string{"8.8.8.8"},
			SearchDomain:     []string{"localdomain"},
		},
		IpRouteConfig: &types.HostIpRouteConfig{
			DefaultGateway:     "127.0.0.1",
			GatewayDevice:      "",
			IpV6DefaultGateway: "",
			IpV6GatewayDevice:  "",
		},
		ConsoleIpRouteConfig: nil,
		RouteTableInfo: &types.HostIpRouteTableInfo{
			IpRoute: []types.HostIpRouteEntry{
				{
					Network:      "0.0.0.0",
					PrefixLength: 0,
					Gateway:      "127.0.0.1",
					DeviceName:   "vmk0",
				},
				{
					Network:      "127.0.0.0",
					PrefixLength: 8,
					Gateway:      "0.0.0.0",
					DeviceName:   "vmk0",
				},
			},
			Ipv6Route: nil,
		},
		Dhcp:              nil,
		Nat:               nil,
		IpV6Enabled:       types.NewBool(false),
		AtBootIpV6Enabled: types.NewBool(false),
		NetStackInstance: []types.HostNetStackInstance{
			{
				Key:                             "vSphereProvisioning",
				Name:                            "",
				DnsConfig:                       &types.HostDnsConfig{},
				IpRouteConfig:                   &types.HostIpRouteConfig{},
				RequestedMaxNumberOfConnections: 11000,
				CongestionControlAlgorithm:      "newreno",
				IpV6Enabled:                     types.NewBool(true),
				RouteTableConfig:                (*types.HostIpRouteTableConfig)(nil),
			},
			{
				Key:                             "vmotion",
				Name:                            "",
				DnsConfig:                       &types.HostDnsConfig{},
				IpRouteConfig:                   &types.HostIpRouteConfig{},
				RequestedMaxNumberOfConnections: 11000,
				CongestionControlAlgorithm:      "newreno",
				IpV6Enabled:                     types.NewBool(true),
				RouteTableConfig:                (*types.HostIpRouteTableConfig)(nil),
			},
			{
				Key:  "defaultTcpipStack",
				Name: "defaultTcpipStack",
				DnsConfig: &types.HostDnsConfig{
					Dhcp:             true,
					VirtualNicDevice: "vmk0",
					HostName:         "localhost",
					DomainName:       "localdomain",
					Address:          []string{"8.8.8.8"},
					SearchDomain:     []string{"localdomain"},
				},
				IpRouteConfig: &types.HostIpRouteConfig{
					DefaultGateway:     "127.0.0.1",
					GatewayDevice:      "",
					IpV6DefaultGateway: "",
					IpV6GatewayDevice:  "",
				},
				RequestedMaxNumberOfConnections: 11000,
				CongestionControlAlgorithm:      "newreno",
				IpV6Enabled:                     types.NewBool(true),
				RouteTableConfig: &types.HostIpRouteTableConfig{
					IpRoute: []types.HostIpRouteOp{
						{
							ChangeOperation: "ignore",
							Route: types.HostIpRouteEntry{
								Network:      "0.0.0.0",
								PrefixLength: 0,
								Gateway:      "127.0.0.1",
								DeviceName:   "vmk0",
							},
						},
						{
							ChangeOperation: "ignore",
							Route: types.HostIpRouteEntry{
								Network:      "127.0.0.0",
								PrefixLength: 8,
								Gateway:      "0.0.0.0",
								DeviceName:   "vmk0",
							},
						},
					},
					Ipv6Route: nil,
				},
			},
		},
		OpaqueSwitch:  nil,
		OpaqueNetwork: nil,
	},
	Vmotion: &types.HostVMotionInfo{
		NetConfig: &types.HostVMotionNetConfig{
			CandidateVnic: []types.HostVirtualNic{
				{
					Device:    "vmk0",
					Key:       "VMotionConfig.vmotion.key-vim.host.VirtualNic-vmk0",
					Portgroup: "Management Network",
					Spec: types.HostVirtualNicSpec{
						Ip: &types.HostIpConfig{
							Dhcp:       true,
							IpAddress:  "127.0.0.1",
							SubnetMask: "255.0.0.0",
							IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
						},
						Mac:                    "00:0c:29:81:d8:a0",
						DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
						Portgroup:              "Management Network",
						Mtu:                    1500,
						TsoEnabled:             types.NewBool(true),
						NetStackInstanceKey:    "defaultTcpipStack",
						OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
						ExternalId:             "",
						PinnedPnic:             "",
						IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
					},
					Port: "",
				},
			},
			SelectedVnic: "",
		},
		IpConfig: (*types.HostIpConfig)(nil),
	},
	VirtualNicManagerInfo: &types.HostVirtualNicManagerInfo{
		NetConfig: []types.VirtualNicManagerNetConfig{
			{
				NicType:            "faultToleranceLogging",
				MultiSelectAllowed: true,
				CandidateVnic: []types.HostVirtualNic{
					{
						Device:    "vmk0",
						Key:       "faultToleranceLogging.key-vim.host.VirtualNic-vmk0",
						Portgroup: "Management Network",
						Spec: types.HostVirtualNicSpec{
							Ip: &types.HostIpConfig{
								Dhcp:       true,
								IpAddress:  "127.0.0.1",
								SubnetMask: "255.0.0.0",
								IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
							},
							Mac:                    "00:0c:29:81:d8:a0",
							DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
							Portgroup:              "Management Network",
							Mtu:                    1500,
							TsoEnabled:             types.NewBool(true),
							NetStackInstanceKey:    "defaultTcpipStack",
							OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
							ExternalId:             "",
							PinnedPnic:             "",
							IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
						},
						Port: "",
					},
				},
				SelectedVnic: nil,
			},
			{
				NicType:            "management",
				MultiSelectAllowed: true,
				CandidateVnic: []types.HostVirtualNic{
					{
						Device:    "vmk0",
						Key:       "management.key-vim.host.VirtualNic-vmk0",
						Portgroup: "Management Network",
						Spec: types.HostVirtualNicSpec{
							Ip: &types.HostIpConfig{
								Dhcp:       true,
								IpAddress:  "127.0.0.1",
								SubnetMask: "255.0.0.0",
								IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
							},
							Mac:                    "00:0c:29:81:d8:a0",
							DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
							Portgroup:              "Management Network",
							Mtu:                    1500,
							TsoEnabled:             types.NewBool(true),
							NetStackInstanceKey:    "defaultTcpipStack",
							OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
							ExternalId:             "",
							PinnedPnic:             "",
							IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
						},
						Port: "",
					},
				},
				SelectedVnic: []string{"management.key-vim.host.VirtualNic-vmk0"},
			},
			{
				NicType:            "vSphereProvisioning",
				MultiSelectAllowed: true,
				CandidateVnic: []types.HostVirtualNic{
					{
						Device:    "vmk0",
						Key:       "vSphereProvisioning.key-vim.host.VirtualNic-vmk0",
						Portgroup: "Management Network",
						Spec: types.HostVirtualNicSpec{
							Ip: &types.HostIpConfig{
								Dhcp:       true,
								IpAddress:  "127.0.0.1",
								SubnetMask: "255.0.0.0",
								IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
							},
							Mac:                    "00:0c:29:81:d8:a0",
							DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
							Portgroup:              "Management Network",
							Mtu:                    1500,
							TsoEnabled:             types.NewBool(true),
							NetStackInstanceKey:    "defaultTcpipStack",
							OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
							ExternalId:             "",
							PinnedPnic:             "",
							IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
						},
						Port: "",
					},
				},
				SelectedVnic: nil,
			},
			{
				NicType:            "vSphereReplication",
				MultiSelectAllowed: true,
				CandidateVnic: []types.HostVirtualNic{
					{
						Device:    "vmk0",
						Key:       "vSphereReplication.key-vim.host.VirtualNic-vmk0",
						Portgroup: "Management Network",
						Spec: types.HostVirtualNicSpec{
							Ip: &types.HostIpConfig{
								Dhcp:       true,
								IpAddress:  "127.0.0.1",
								SubnetMask: "255.0.0.0",
								IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
							},
							Mac:                    "00:0c:29:81:d8:a0",
							DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
							Portgroup:              "Management Network",
							Mtu:                    1500,
							TsoEnabled:             types.NewBool(true),
							NetStackInstanceKey:    "defaultTcpipStack",
							OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
							ExternalId:             "",
							PinnedPnic:             "",
							IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
						},
						Port: "",
					},
				},
				SelectedVnic: nil,
			},
			{
				NicType:            "vSphereReplicationNFC",
				MultiSelectAllowed: true,
				CandidateVnic: []types.HostVirtualNic{
					{
						Device:    "vmk0",
						Key:       "vSphereReplicationNFC.key-vim.host.VirtualNic-vmk0",
						Portgroup: "Management Network",
						Spec: types.HostVirtualNicSpec{
							Ip: &types.HostIpConfig{
								Dhcp:       true,
								IpAddress:  "127.0.0.1",
								SubnetMask: "255.0.0.0",
								IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
							},
							Mac:                    "00:0c:29:81:d8:a0",
							DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
							Portgroup:              "Management Network",
							Mtu:                    1500,
							TsoEnabled:             types.NewBool(true),
							NetStackInstanceKey:    "defaultTcpipStack",
							OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
							ExternalId:             "",
							PinnedPnic:             "",
							IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
						},
						Port: "",
					},
				},
				SelectedVnic: nil,
			},
			{
				NicType:            "vmotion",
				MultiSelectAllowed: true,
				CandidateVnic: []types.HostVirtualNic{
					{
						Device:    "vmk0",
						Key:       "vmotion.key-vim.host.VirtualNic-vmk0",
						Portgroup: "Management Network",
						Spec: types.HostVirtualNicSpec{
							Ip: &types.HostIpConfig{
								Dhcp:       true,
								IpAddress:  "127.0.0.1",
								SubnetMask: "255.0.0.0",
								IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
							},
							Mac:                    "00:0c:29:81:d8:a0",
							DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
							Portgroup:              "Management Network",
							Mtu:                    1500,
							TsoEnabled:             types.NewBool(true),
							NetStackInstanceKey:    "defaultTcpipStack",
							OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
							ExternalId:             "",
							PinnedPnic:             "",
							IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
						},
						Port: "",
					},
				},
				SelectedVnic: nil,
			},
			{
				NicType:            "vsan",
				MultiSelectAllowed: true,
				CandidateVnic: []types.HostVirtualNic{
					{
						Device:    "vmk0",
						Key:       "vsan.key-vim.host.VirtualNic-vmk0",
						Portgroup: "Management Network",
						Spec: types.HostVirtualNicSpec{
							Ip: &types.HostIpConfig{
								Dhcp:       true,
								IpAddress:  "127.0.0.1",
								SubnetMask: "255.0.0.0",
								IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
							},
							Mac:                    "00:0c:29:81:d8:a0",
							DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
							Portgroup:              "Management Network",
							Mtu:                    1500,
							TsoEnabled:             types.NewBool(true),
							NetStackInstanceKey:    "defaultTcpipStack",
							OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
							ExternalId:             "",
							PinnedPnic:             "",
							IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
						},
						Port: "",
					},
				},
				SelectedVnic: nil,
			},
			{
				NicType:            "vsanWitness",
				MultiSelectAllowed: true,
				CandidateVnic: []types.HostVirtualNic{
					{
						Device:    "vmk0",
						Key:       "vsanWitness.key-vim.host.VirtualNic-vmk0",
						Portgroup: "Management Network",
						Spec: types.HostVirtualNicSpec{
							Ip: &types.HostIpConfig{
								Dhcp:       true,
								IpAddress:  "127.0.0.1",
								SubnetMask: "255.0.0.0",
								IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil),
							},
							Mac:                    "00:0c:29:81:d8:a0",
							DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil),
							Portgroup:              "Management Network",
							Mtu:                    1500,
							TsoEnabled:             types.NewBool(true),
							NetStackInstanceKey:    "defaultTcpipStack",
							OpaqueNetwork:          (*types.HostVirtualNicOpaqueNetworkSpec)(nil),
							ExternalId:             "",
							PinnedPnic:             "",
							IpRouteSpec:            (*types.HostVirtualNicIpRouteSpec)(nil),
						},
						Port: "",
					},
				},
				SelectedVnic: nil,
			},
		},
	},
	Capabilities: &types.HostNetCapabilities{
		CanSetPhysicalNicLinkSpeed: true,
		SupportsNicTeaming:         true,
		NicTeamingPolicy:           []string{"loadbalance_ip", "loadbalance_srcmac", "loadbalance_srcid", "failover_explicit"},
		SupportsVlan:               true,
		UsesServiceConsoleNic:      false,
		SupportsNetworkHints:       true,
		MaxPortGroupsPerVswitch:    0,
		VswitchConfigSupported:     true,
		VnicConfigSupported:        true,
		IpRouteConfigSupported:     true,
		DnsConfigSupported:         true,
		DhcpOnVnicSupported:        true,
		IpV6Supported:              types.NewBool(true),
	},
	DatastoreCapabilities: &types.HostDatastoreSystemCapabilities{
		NfsMountCreationRequired:     true,
		NfsMountCreationSupported:    true,
		LocalDatastoreSupported:      false,
		VmfsExtentExpansionSupported: types.NewBool(true),
	},
	OffloadCapabilities: &types.HostNetOffloadCapabilities{
		CsumOffload:     types.NewBool(true),
		TcpSegmentation: types.NewBool(true),
		ZeroCopyXmit:    types.NewBool(true),
	},
	Service: &types.HostServiceInfo{
		Service: []types.HostService{
			{
				Key:           "DCUI",
				Label:         "Direct Console UI",
				Required:      false,
				Uninstallable: false,
				Running:       true,
				Ruleset:       nil,
				Policy:        "on",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "TSM",
				Label:         "ESXi Shell",
				Required:      false,
				Uninstallable: false,
				Running:       false,
				Ruleset:       nil,
				Policy:        "off",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "TSM-SSH",
				Label:         "SSH",
				Required:      false,
				Uninstallable: false,
				Running:       false,
				Ruleset:       nil,
				Policy:        "off",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "lbtd",
				Label:         "Load-Based Teaming Daemon",
				Required:      false,
				Uninstallable: false,
				Running:       true,
				Ruleset:       nil,
				Policy:        "on",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "lwsmd",
				Label:         "Active Directory Service",
				Required:      false,
				Uninstallable: false,
				Running:       false,
				Ruleset:       nil,
				Policy:        "off",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "ntpd",
				Label:         "NTP Daemon",
				Required:      false,
				Uninstallable: false,
				Running:       false,
				Ruleset:       []string{"ntpClient"},
				Policy:        "off",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "pcscd",
				Label:         "PC/SC Smart Card Daemon",
				Required:      false,
				Uninstallable: false,
				Running:       false,
				Ruleset:       nil,
				Policy:        "off",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "sfcbd-watchdog",
				Label:         "CIM Server",
				Required:      false,
				Uninstallable: false,
				Running:       false,
				Ruleset:       []string{"CIMHttpServer", "CIMHttpsServer"},
				Policy:        "on",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "snmpd",
				Label:         "SNMP Server",
				Required:      false,
				Uninstallable: false,
				Running:       false,
				Ruleset:       []string{"snmp"},
				Policy:        "on",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "vmsyslogd",
				Label:         "Syslog Server",
				Required:      true,
				Uninstallable: false,
				Running:       true,
				Ruleset:       nil,
				Policy:        "on",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "vpxa",
				Label:         "VMware vCenter Agent",
				Required:      false,
				Uninstallable: false,
				Running:       false,
				Ruleset:       []string{"vpxHeartbeats"},
				Policy:        "on",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-base",
					Description:       "This VIB contains all of the base functionality of vSphere ESXi.",
				},
			},
			{
				Key:           "xorg",
				Label:         "X.Org Server",
				Required:      false,
				Uninstallable: false,
				Running:       false,
				Ruleset:       nil,
				Policy:        "on",
				SourcePackage: &types.HostServiceSourcePackage{
					SourcePackageName: "esx-xserver",
					Description:       "This VIB contains X Server used for virtual machine 3D hardware acceleration.",
				},
			},
		},
	},
	Firewall: &HostFirewallInfo,
	AutoStart: &types.HostAutoStartManagerConfig{
		Defaults: &types.AutoStartDefaults{
			Enabled:          (*bool)(nil),
			StartDelay:       120,
			StopDelay:        120,
			WaitForHeartbeat: types.NewBool(false),
			StopAction:       "PowerOff",
		},
		PowerInfo: nil,
	},
	ActiveDiagnosticPartition: &types.HostDiagnosticPartition{
		StorageType:    "directAttached",
		DiagnosticType: "singleHost",
		Slots:          -15,
		Id: types.HostScsiDiskPartition{
			DiskName:  "mpx.vmhba0:C0:T0:L0",
			Partition: 9,
		},
	},
	Option:            nil,
	OptionDef:         nil,
	Flags:             &types.HostFlagInfo{},
	AdminDisabled:     (*bool)(nil),
	LockdownMode:      "lockdownDisabled",
	Ipmi:              (*types.HostIpmiInfo)(nil),
	SslThumbprintInfo: (*types.HostSslThumbprintInfo)(nil),
	SslThumbprintData: nil,
	Certificate:       []uint8{0x31, 0x30},
	PciPassthruInfo:   nil,
	AuthenticationManagerInfo: &types.HostAuthenticationManagerInfo{
		AuthConfig: []types.BaseHostAuthenticationStoreInfo{
			&types.HostLocalAuthenticationInfo{
				HostAuthenticationStoreInfo: types.HostAuthenticationStoreInfo{
					Enabled: true,
				},
			},
			&types.HostActiveDirectoryInfo{
				HostDirectoryStoreInfo:         types.HostDirectoryStoreInfo{},
				JoinedDomain:                   "",
				TrustedDomain:                  nil,
				DomainMembershipStatus:         "",
				SmartCardAuthenticationEnabled: types.NewBool(false),
			},
		},
	},
	FeatureVersion: nil,
	PowerSystemCapability: &types.PowerSystemCapability{
		AvailablePolicy: []types.HostPowerPolicy{
			{
				Key:         1,
				Name:        "PowerPolicy.static.name",
				ShortName:   "static",
				Description: "PowerPolicy.static.description",
			},
			{
				Key:         2,
				Name:        "PowerPolicy.dynamic.name",
				ShortName:   "dynamic",
				Description: "PowerPolicy.dynamic.description",
			},
			{
				Key:         3,
				Name:        "PowerPolicy.low.name",
				ShortName:   "low",
				Description: "PowerPolicy.low.description",
			},
			{
				Key:         4,
				Name:        "PowerPolicy.custom.name",
				ShortName:   "custom",
				Description: "PowerPolicy.custom.description",
			},
		},
	},
	PowerSystemInfo: &types.PowerSystemInfo{
		CurrentPolicy: types.HostPowerPolicy{
			Key:         2,
			Name:        "PowerPolicy.dynamic.name",
			ShortName:   "dynamic",
			Description: "PowerPolicy.dynamic.description",
		},
	},
	CacheConfigurationInfo: []types.HostCacheConfigurationInfo{
		{
			Key:      types.ManagedObjectReference{Type: "Datastore", Value: "5980f676-21a5db76-9eef-000c2981d8a0"},
			SwapSize: 0,
		},
	},
	WakeOnLanCapable:        types.NewBool(false),
	FeatureCapability:       nil,
	MaskedFeatureCapability: nil,
	VFlashConfigInfo:        nil,
	VsanHostConfig: &types.VsanHostConfigInfo{
		Enabled:     types.NewBool(false),
		HostSystem:  &types.ManagedObjectReference{Type: "HostSystem", Value: "ha-host"},
		ClusterInfo: &types.VsanHostConfigInfoClusterInfo{},
		StorageInfo: &types.VsanHostConfigInfoStorageInfo{
			AutoClaimStorage: types.NewBool(false),
			DiskMapping:      nil,
			DiskMapInfo:      nil,
			ChecksumEnabled:  (*bool)(nil),
		},
		NetworkInfo:     &types.VsanHostConfigInfoNetworkInfo{},
		FaultDomainInfo: &types.VsanHostFaultDomainInfo{},
	},
	DomainList:             nil,
	ScriptCheckSum:         nil,
	HostConfigCheckSum:     nil,
	GraphicsInfo:           nil,
	SharedPassthruGpuTypes: nil,
	GraphicsConfig: &types.HostGraphicsConfig{
		HostDefaultGraphicsType:        "shared",
		SharedPassthruAssignmentPolicy: "performance",
		DeviceType:                     nil,
	},
	IoFilterInfo: []types.HostIoFilterInfo{
		{
			IoFilterInfo: types.IoFilterInfo{
				Id:          "VMW_spm_1.0.0",
				Name:        "spm",
				Vendor:      "VMW",
				Version:     "1.0.230",
				Type:        "datastoreIoControl",
				Summary:     "VMware Storage I/O Control",
				ReleaseDate: "2016-07-21",
			},
			Available: true,
		},
		{
			IoFilterInfo: types.IoFilterInfo{
				Id:          "VMW_vmwarevmcrypt_1.0.0",
				Name:        "vmwarevmcrypt",
				Vendor:      "VMW",
				Version:     "1.0.0",
				Type:        "encryption",
				Summary:     "VMcrypt IO Filter",
				ReleaseDate: "2016-07-21",
			},
			Available: true,
		},
	},
	SriovDevicePool: nil,
}

HostConfigInfo is the default template for the HostSystem config property. Capture method:

govc object.collect -s -dump HostSystem:ha-host config
View Source
var HostFirewallInfo = types.HostFirewallInfo{
	DynamicData: types.DynamicData{},
	DefaultPolicy: types.HostFirewallDefaultPolicy{
		DynamicData:     types.DynamicData{},
		IncomingBlocked: types.NewBool(true),
		OutgoingBlocked: types.NewBool(true),
	},
	Ruleset: []types.HostFirewallRuleset{
		{
			DynamicData: types.DynamicData{},
			Key:         "CIMHttpServer",
			Label:       "CIM Server",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        5988,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "sfcbd-watchdog",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "CIMHttpsServer",
			Label:       "CIM Secure Server",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        5989,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "sfcbd-watchdog",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "CIMSLP",
			Label:       "CIM SLP",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        427,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        427,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        427,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        427,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "DHCPv6",
			Label:       "DHCPv6",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        547,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        546,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        547,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        546,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "DVFilter",
			Label:       "DVFilter",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        2222,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "DVSSync",
			Label:       "DVSSync",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        8302,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        8301,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        8301,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        8302,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "HBR",
			Label:       "HBR",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        31031,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        44046,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "NFC",
			Label:       "NFC",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        902,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        902,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "WOL",
			Label:       "WOL",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        9,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "activeDirectoryAll",
			Label:       "Active Directory All",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        88,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        88,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        123,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        137,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        139,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        389,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        389,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        445,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        464,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        464,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        3268,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        7476,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        2020,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "cmmds",
			Label:       "Virtual SAN Clustering Service",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        12345,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        23451,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        12345,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        23451,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        12321,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        12321,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "dhcp",
			Label:       "DHCP Client",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        68,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        68,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "src",
					Protocol:    "udp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "dns",
			Label:       "DNS Client",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        53,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        53,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        53,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "esxupdate",
			Label:       "esxupdate",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        443,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "faultTolerance",
			Label:       "Fault Tolerance",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        80,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        8300,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        8300,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "ftpClient",
			Label:       "FTP Client",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        21,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        20,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "src",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "gdbserver",
			Label:       "gdbserver",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        1000,
					EndPort:     9999,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        50000,
					EndPort:     50999,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "httpClient",
			Label:       "httpClient",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        80,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        443,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "iSCSI",
			Label:       "Software iSCSI Client",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        3260,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "iofiltervp",
			Label:       "iofiltervp",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        9080,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "ipfam",
			Label:       "NSX Distributed Logical Router Service",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        6999,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        6999,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "nfs41Client",
			Label:       "nfs41Client",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        0,
					EndPort:     65535,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "nfsClient",
			Label:       "NFS Client",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        0,
					EndPort:     65535,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "ntpClient",
			Label:       "NTP Client",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        123,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
			},
			Service: "ntpd",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "pvrdma",
			Label:       "pvrdma",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        28250,
					EndPort:     28761,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        28250,
					EndPort:     28761,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "rabbitmqproxy",
			Label:       "rabbitmqproxy",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        5671,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "rdt",
			Label:       "Virtual SAN Transport",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        2233,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        2233,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "remoteSerialPort",
			Label:       "VM serial port connected over network",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        0,
					EndPort:     65535,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        23,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        1024,
					EndPort:     65535,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "snmp",
			Label:       "SNMP Server",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        161,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
			},
			Service: "snmpd",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "sshClient",
			Label:       "SSH Client",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        22,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "sshServer",
			Label:       "SSH Server",
			Required:    true,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        22,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "syslog",
			Label:       "syslog",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        514,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        514,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        1514,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "updateManager",
			Label:       "vCenter Update Manager",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        80,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        9000,
					EndPort:     9100,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "vMotion",
			Label:       "vMotion",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        8000,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        8000,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "vSPC",
			Label:       "VM serial port connected to vSPC",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        0,
					EndPort:     65535,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "vSphereClient",
			Label:       "vSphere Web Client",
			Required:    true,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        902,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        443,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "vpxHeartbeats",
			Label:       "VMware vCenter Agent",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        902,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
			},
			Service: "vpxa",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "vsanEncryption",
			Label:       "vsanEncryption",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        0,
					EndPort:     65535,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "vsanhealth-multicasttest",
			Label:       "vsanhealth-multicasttest",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        5001,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        5001,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "udp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "vsanvp",
			Label:       "vsanvp",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        8080,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
				{
					DynamicData: types.DynamicData{},
					Port:        8080,
					EndPort:     0,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "vvold",
			Label:       "vvold",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        0,
					EndPort:     65535,
					Direction:   "outbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: false,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
		{
			DynamicData: types.DynamicData{},
			Key:         "webAccess",
			Label:       "vSphere Web Access",
			Required:    false,
			Rule: []types.HostFirewallRule{
				{
					DynamicData: types.DynamicData{},
					Port:        80,
					EndPort:     0,
					Direction:   "inbound",
					PortType:    "dst",
					Protocol:    "tcp",
				},
			},
			Service: "",
			Enabled: true,
			AllowedHosts: &types.HostFirewallRulesetIpList{
				DynamicData: types.DynamicData{},
				IpAddress:   nil,
				IpNetwork:   nil,
				AllIp:       true,
			},
		},
	},
}

HostFirewallInfo is the default template for the HostSystem config.firewall property. Capture method:

govc object.collect -s -dump HostSystem:ha-host config.firewall
View Source
var HostHardwareInfo = &types.HostHardwareInfo{
	SystemInfo: types.HostSystemInfo{
		Vendor: "VMware, Inc.",
		Model:  "VMware Virtual Platform",
		Uuid:   "e88d4d56-9f1e-3ea1-71fa-13a8e1a7fd70",
		OtherIdentifyingInfo: []types.HostSystemIdentificationInfo{
			{
				IdentifierValue: " No Asset Tag",
				IdentifierType: &types.ElementDescription{
					Description: types.Description{
						Label:   "Asset Tag",
						Summary: "Asset tag of the system",
					},
					Key: "AssetTag",
				},
			},
			{
				IdentifierValue: "[MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7]",
				IdentifierType: &types.ElementDescription{
					Description: types.Description{
						Label:   "OEM specific string",
						Summary: "OEM specific string",
					},
					Key: "OemSpecificString",
				},
			},
			{
				IdentifierValue: "Welcome to the Virtual Machine",
				IdentifierType: &types.ElementDescription{
					Description: types.Description{
						Label:   "OEM specific string",
						Summary: "OEM specific string",
					},
					Key: "OemSpecificString",
				},
			},
			{
				IdentifierValue: "VMware-56 4d 8d e8 1e 9f a1 3e-71 fa 13 a8 e1 a7 fd 70",
				IdentifierType: &types.ElementDescription{
					Description: types.Description{
						Label:   "Service tag",
						Summary: "Service tag of the system",
					},
					Key: "ServiceTag",
				},
			},
		},
	},
	CpuPowerManagementInfo: &types.HostCpuPowerManagementInfo{
		CurrentPolicy:   "Balanced",
		HardwareSupport: "",
	},
	CpuInfo: types.HostCpuInfo{
		NumCpuPackages: 2,
		NumCpuCores:    2,
		NumCpuThreads:  2,
		Hz:             3591345000,
	},
	CpuPkg: []types.HostCpuPackage{
		{
			Index:       0,
			Vendor:      "intel",
			Hz:          3591345000,
			BusHz:       115849838,
			Description: "Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz",
			ThreadId:    []int16{0},
			CpuFeature: []types.HostCpuIdInfo{
				{
					Level:  0,
					Vendor: "",
					Eax:    "0000:0000:0000:0000:0000:0000:0000:1101",
					Ebx:    "0111:0101:0110:1110:0110:0101:0100:0111",
					Ecx:    "0110:1100:0110:0101:0111:0100:0110:1110",
					Edx:    "0100:1001:0110:0101:0110:1110:0110:1001",
				},
				{
					Level:  1,
					Vendor: "",
					Eax:    "0000:0000:0000:0010:0000:0110:1101:0111",
					Ebx:    "0000:0000:0000:0001:0000:1000:0000:0000",
					Ecx:    "1001:0111:1011:1010:0010:0010:0010:1011",
					Edx:    "0000:1111:1010:1011:1111:1011:1111:1111",
				},
				{
					Level:  -2147483648,
					Vendor: "",
					Eax:    "1000:0000:0000:0000:0000:0000:0000:1000",
					Ebx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Ecx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Edx:    "0000:0000:0000:0000:0000:0000:0000:0000",
				},
				{
					Level:  -2147483647,
					Vendor: "",
					Eax:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Ebx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Ecx:    "0000:0000:0000:0000:0000:0000:0000:0001",
					Edx:    "0010:1000:0001:0000:0000:1000:0000:0000",
				},
				{
					Level:  -2147483640,
					Vendor: "",
					Eax:    "0000:0000:0000:0000:0011:0000:0010:1010",
					Ebx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Ecx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Edx:    "0000:0000:0000:0000:0000:0000:0000:0000",
				},
			},
		},
		{
			Index:       1,
			Vendor:      "intel",
			Hz:          3591345000,
			BusHz:       115849838,
			Description: "Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz",
			ThreadId:    []int16{1},
			CpuFeature: []types.HostCpuIdInfo{
				{
					Level:  0,
					Vendor: "",
					Eax:    "0000:0000:0000:0000:0000:0000:0000:1101",
					Ebx:    "0111:0101:0110:1110:0110:0101:0100:0111",
					Ecx:    "0110:1100:0110:0101:0111:0100:0110:1110",
					Edx:    "0100:1001:0110:0101:0110:1110:0110:1001",
				},
				{
					Level:  1,
					Vendor: "",
					Eax:    "0000:0000:0000:0010:0000:0110:1101:0111",
					Ebx:    "0000:0010:0000:0001:0000:1000:0000:0000",
					Ecx:    "1001:0111:1011:1010:0010:0010:0010:1011",
					Edx:    "0000:1111:1010:1011:1111:1011:1111:1111",
				},
				{
					Level:  -2147483648,
					Vendor: "",
					Eax:    "1000:0000:0000:0000:0000:0000:0000:1000",
					Ebx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Ecx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Edx:    "0000:0000:0000:0000:0000:0000:0000:0000",
				},
				{
					Level:  -2147483647,
					Vendor: "",
					Eax:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Ebx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Ecx:    "0000:0000:0000:0000:0000:0000:0000:0001",
					Edx:    "0010:1000:0001:0000:0000:1000:0000:0000",
				},
				{
					Level:  -2147483640,
					Vendor: "",
					Eax:    "0000:0000:0000:0000:0011:0000:0010:1010",
					Ebx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Ecx:    "0000:0000:0000:0000:0000:0000:0000:0000",
					Edx:    "0000:0000:0000:0000:0000:0000:0000:0000",
				},
			},
		},
	},
	MemorySize: 4294430720,
	NumaInfo: &types.HostNumaInfo{
		Type:     "NUMA",
		NumNodes: 1,
		NumaNode: []types.HostNumaNode{
			{
				TypeId:            0x0,
				CpuID:             []int16{1, 0},
				MemoryRangeBegin:  4294967296,
				MemoryRangeLength: 1073741824,
			},
		},
	},
	SmcPresent: types.NewBool(false),
	PciDevice: []types.HostPciDevice{
		{
			Id:           "0000:00:00.0",
			ClassId:      1536,
			Bus:          0x0,
			Slot:         0x0,
			Function:     0x0,
			VendorId:     -32634,
			SubVendorId:  5549,
			VendorName:   "Intel Corporation",
			DeviceId:     29072,
			SubDeviceId:  6518,
			ParentBridge: "",
			DeviceName:   "Virtual Machine Chipset",
		},
		{
			Id:           "0000:00:01.0",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x1,
			Function:     0x0,
			VendorId:     -32634,
			SubVendorId:  0,
			VendorName:   "Intel Corporation",
			DeviceId:     29073,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "440BX/ZX/DX - 82443BX/ZX/DX AGP bridge",
		},
		{
			Id:           "0000:00:07.0",
			ClassId:      1537,
			Bus:          0x0,
			Slot:         0x7,
			Function:     0x0,
			VendorId:     -32634,
			SubVendorId:  5549,
			VendorName:   "Intel Corporation",
			DeviceId:     28944,
			SubDeviceId:  6518,
			ParentBridge: "",
			DeviceName:   "Virtual Machine Chipset",
		},
		{
			Id:           "0000:00:07.1",
			ClassId:      257,
			Bus:          0x0,
			Slot:         0x7,
			Function:     0x1,
			VendorId:     -32634,
			SubVendorId:  5549,
			VendorName:   "Intel Corporation",
			DeviceId:     28945,
			SubDeviceId:  6518,
			ParentBridge: "",
			DeviceName:   "PIIX4 for 430TX/440BX/MX IDE Controller",
		},
		{
			Id:           "0000:00:07.3",
			ClassId:      1664,
			Bus:          0x0,
			Slot:         0x7,
			Function:     0x3,
			VendorId:     -32634,
			SubVendorId:  5549,
			VendorName:   "Intel Corporation",
			DeviceId:     28947,
			SubDeviceId:  6518,
			ParentBridge: "",
			DeviceName:   "Virtual Machine Chipset",
		},
		{
			Id:           "0000:00:07.7",
			ClassId:      2176,
			Bus:          0x0,
			Slot:         0x7,
			Function:     0x7,
			VendorId:     5549,
			SubVendorId:  5549,
			VendorName:   "VMware",
			DeviceId:     1856,
			SubDeviceId:  1856,
			ParentBridge: "",
			DeviceName:   "Virtual Machine Communication Interface",
		},
		{
			Id:           "0000:00:0f.0",
			ClassId:      768,
			Bus:          0x0,
			Slot:         0xf,
			Function:     0x0,
			VendorId:     5549,
			SubVendorId:  5549,
			VendorName:   "VMware",
			DeviceId:     1029,
			SubDeviceId:  1029,
			ParentBridge: "",
			DeviceName:   "SVGA II Adapter",
		},
		{
			Id:           "0000:00:11.0",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x11,
			Function:     0x0,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1936,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI bridge",
		},
		{
			Id:           "0000:00:15.0",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x15,
			Function:     0x0,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:15.1",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x15,
			Function:     0x1,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:15.2",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x15,
			Function:     0x2,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:15.3",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x15,
			Function:     0x3,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:15.4",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x15,
			Function:     0x4,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:15.5",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x15,
			Function:     0x5,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:15.6",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x15,
			Function:     0x6,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:15.7",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x15,
			Function:     0x7,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:16.0",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x16,
			Function:     0x0,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:16.1",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x16,
			Function:     0x1,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:16.2",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x16,
			Function:     0x2,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:16.3",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x16,
			Function:     0x3,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:16.4",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x16,
			Function:     0x4,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:16.5",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x16,
			Function:     0x5,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:16.6",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x16,
			Function:     0x6,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:16.7",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x16,
			Function:     0x7,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:17.0",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x17,
			Function:     0x0,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:17.1",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x17,
			Function:     0x1,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:17.2",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x17,
			Function:     0x2,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:17.3",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x17,
			Function:     0x3,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:17.4",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x17,
			Function:     0x4,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:17.5",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x17,
			Function:     0x5,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:17.6",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x17,
			Function:     0x6,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:17.7",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x17,
			Function:     0x7,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:18.0",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x18,
			Function:     0x0,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:18.1",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x18,
			Function:     0x1,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:18.2",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x18,
			Function:     0x2,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:18.3",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x18,
			Function:     0x3,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:18.4",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x18,
			Function:     0x4,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:18.5",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x18,
			Function:     0x5,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:18.6",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x18,
			Function:     0x6,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:00:18.7",
			ClassId:      1540,
			Bus:          0x0,
			Slot:         0x18,
			Function:     0x7,
			VendorId:     5549,
			SubVendorId:  0,
			VendorName:   "VMware",
			DeviceId:     1952,
			SubDeviceId:  0,
			ParentBridge: "",
			DeviceName:   "PCI Express Root Port",
		},
		{
			Id:           "0000:03:00.0",
			ClassId:      263,
			Bus:          0x3,
			Slot:         0x0,
			Function:     0x0,
			VendorId:     5549,
			SubVendorId:  5549,
			VendorName:   "VMware",
			DeviceId:     1984,
			SubDeviceId:  1984,
			ParentBridge: "0000:00:15.0",
			DeviceName:   "PVSCSI SCSI Controller",
		},
		{
			Id:           "0000:0b:00.0",
			ClassId:      512,
			Bus:          0xb,
			Slot:         0x0,
			Function:     0x0,
			VendorId:     5549,
			SubVendorId:  5549,
			VendorName:   "VMware Inc.",
			DeviceId:     1968,
			SubDeviceId:  1968,
			ParentBridge: "0000:00:16.0",
			DeviceName:   "vmxnet3 Virtual Ethernet Controller",
		},
		{
			Id:           "0000:13:00.0",
			ClassId:      512,
			Bus:          0x13,
			Slot:         0x0,
			Function:     0x0,
			VendorId:     5549,
			SubVendorId:  5549,
			VendorName:   "VMware Inc.",
			DeviceId:     1968,
			SubDeviceId:  1968,
			ParentBridge: "0000:00:17.0",
			DeviceName:   "vmxnet3 Virtual Ethernet Controller",
		},
	},
	CpuFeature: []types.HostCpuIdInfo{
		{
			Level:  0,
			Vendor: "",
			Eax:    "0000:0000:0000:0000:0000:0000:0000:1101",
			Ebx:    "0111:0101:0110:1110:0110:0101:0100:0111",
			Ecx:    "0110:1100:0110:0101:0111:0100:0110:1110",
			Edx:    "0100:1001:0110:0101:0110:1110:0110:1001",
		},
		{
			Level:  1,
			Vendor: "",
			Eax:    "0000:0000:0000:0010:0000:0110:1101:0111",
			Ebx:    "0000:0000:0000:0001:0000:1000:0000:0000",
			Ecx:    "1001:0111:1011:1010:0010:0010:0010:1011",
			Edx:    "0000:1111:1010:1011:1111:1011:1111:1111",
		},
		{
			Level:  -2147483648,
			Vendor: "",
			Eax:    "1000:0000:0000:0000:0000:0000:0000:1000",
			Ebx:    "0000:0000:0000:0000:0000:0000:0000:0000",
			Ecx:    "0000:0000:0000:0000:0000:0000:0000:0000",
			Edx:    "0000:0000:0000:0000:0000:0000:0000:0000",
		},
		{
			Level:  -2147483647,
			Vendor: "",
			Eax:    "0000:0000:0000:0000:0000:0000:0000:0000",
			Ebx:    "0000:0000:0000:0000:0000:0000:0000:0000",
			Ecx:    "0000:0000:0000:0000:0000:0000:0000:0001",
			Edx:    "0010:1000:0001:0000:0000:1000:0000:0000",
		},
		{
			Level:  -2147483640,
			Vendor: "",
			Eax:    "0000:0000:0000:0000:0011:0000:0010:1010",
			Ebx:    "0000:0000:0000:0000:0000:0000:0000:0000",
			Ecx:    "0000:0000:0000:0000:0000:0000:0000:0000",
			Edx:    "0000:0000:0000:0000:0000:0000:0000:0000",
		},
	},
	BiosInfo: &types.HostBIOSInfo{
		BiosVersion:          "6.00",
		ReleaseDate:          nil,
		Vendor:               "",
		MajorRelease:         0,
		MinorRelease:         0,
		FirmwareMajorRelease: 0,
		FirmwareMinorRelease: 0,
	},
	ReliableMemoryInfo: &types.HostReliableMemoryInfo{},
}

HostHardwareInfo is the default template for the HostSystem hardware property. Capture method:

govc object.collect -s -dump HostSystem:ha-host hardware
View Source
var HostStorageDeviceInfo = types.HostStorageDeviceInfo{
	HostBusAdapter: []types.BaseHostHostBusAdapter{
		&types.HostParallelScsiHba{
			HostHostBusAdapter: types.HostHostBusAdapter{
				Key:    "key-vim.host.ParallelScsiHba-vmhba0",
				Device: "vmhba0",
				Bus:    3,
				Status: "unknown",
				Model:  "PVSCSI SCSI Controller",
				Driver: "pvscsi",
				Pci:    "0000:03:00.0",
			},
		},
		&types.HostBlockHba{
			HostHostBusAdapter: types.HostHostBusAdapter{
				Key:    "key-vim.host.BlockHba-vmhba1",
				Device: "vmhba1",
				Bus:    0,
				Status: "unknown",
				Model:  "PIIX4 for 430TX/440BX/MX IDE Controller",
				Driver: "vmkata",
				Pci:    "0000:00:07.1",
			},
		},
		&types.HostBlockHba{
			HostHostBusAdapter: types.HostHostBusAdapter{
				Key:    "key-vim.host.BlockHba-vmhba64",
				Device: "vmhba64",
				Bus:    0,
				Status: "unknown",
				Model:  "PIIX4 for 430TX/440BX/MX IDE Controller",
				Driver: "vmkata",
				Pci:    "0000:00:07.1",
			},
		},
	},
	ScsiLun: []types.BaseScsiLun{
		&types.ScsiLun{
			HostDevice: types.HostDevice{
				DeviceName: "/vmfs/devices/cdrom/mpx.vmhba1:C0:T0:L0",
				DeviceType: "cdrom",
			},
			Key:  "key-vim.host.ScsiLun-0005000000766d686261313a303a30",
			Uuid: "0005000000766d686261313a303a30",
			Descriptor: []types.ScsiLunDescriptor{
				{
					Quality: "lowQuality",
					Id:      "mpx.vmhba1:C0:T0:L0",
				},
				{
					Quality: "lowQuality",
					Id:      "vml.0005000000766d686261313a303a30",
				},
				{
					Quality: "lowQuality",
					Id:      "0005000000766d686261313a303a30",
				},
			},
			CanonicalName: "mpx.vmhba1:C0:T0:L0",
			DisplayName:   "Local NECVMWar CD-ROM (mpx.vmhba1:C0:T0:L0)",
			LunType:       "cdrom",
			Vendor:        "NECVMWar",
			Model:         "VMware IDE CDR00",
			Revision:      "1.00",
			ScsiLevel:     5,
			SerialNumber:  "unavailable",
			DurableName:   (*types.ScsiLunDurableName)(nil),
			AlternateName: []types.ScsiLunDurableName{
				{
					Namespace:   "GENERIC_VPD",
					NamespaceId: 0x5,
					Data:        []uint8{0x2d, 0x37, 0x39},
				},
				{
					Namespace:   "GENERIC_VPD",
					NamespaceId: 0x5,
					Data:        []uint8{0x30},
				},
			},
			StandardInquiry:  []uint8{0x30},
			QueueDepth:       0,
			OperationalState: []string{"ok"},
			Capabilities:     &types.ScsiLunCapabilities{},
			VStorageSupport:  "vStorageUnsupported",
			ProtocolEndpoint: types.NewBool(false),
		},
		&types.HostScsiDisk{
			ScsiLun: types.ScsiLun{
				HostDevice: types.HostDevice{
					DeviceName: "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0",
					DeviceType: "disk",
				},
				Key:  "key-vim.host.ScsiDisk-0000000000766d686261303a303a30",
				Uuid: "0000000000766d686261303a303a30",
				Descriptor: []types.ScsiLunDescriptor{
					{
						Quality: "lowQuality",
						Id:      "mpx.vmhba0:C0:T0:L0",
					},
					{
						Quality: "lowQuality",
						Id:      "vml.0000000000766d686261303a303a30",
					},
					{
						Quality: "lowQuality",
						Id:      "0000000000766d686261303a303a30",
					},
				},
				CanonicalName: "mpx.vmhba0:C0:T0:L0",
				DisplayName:   "Local VMware, Disk (mpx.vmhba0:C0:T0:L0)",
				LunType:       "disk",
				Vendor:        "VMware, ",
				Model:         "VMware Virtual S",
				Revision:      "1.0 ",
				ScsiLevel:     2,
				SerialNumber:  "unavailable",
				DurableName:   (*types.ScsiLunDurableName)(nil),
				AlternateName: []types.ScsiLunDurableName{
					{
						Namespace:   "GENERIC_VPD",
						NamespaceId: 0x5,
						Data:        []uint8{0x2d, 0x37, 0x39},
					},
					{
						Namespace:   "GENERIC_VPD",
						NamespaceId: 0x5,
						Data:        []uint8{0x30},
					},
				},
				StandardInquiry:  []uint8{0x30},
				QueueDepth:       1024,
				OperationalState: []string{"ok"},
				Capabilities:     &types.ScsiLunCapabilities{},
				VStorageSupport:  "vStorageUnsupported",
				ProtocolEndpoint: types.NewBool(false),
			},
			Capacity: types.HostDiskDimensionsLba{
				BlockSize: 512,
				Block:     67108864,
			},
			DevicePath:            "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0",
			Ssd:                   types.NewBool(true),
			LocalDisk:             types.NewBool(true),
			PhysicalLocation:      nil,
			EmulatedDIXDIFEnabled: types.NewBool(false),
			VsanDiskInfo:          (*types.VsanHostVsanDiskInfo)(nil),
			ScsiDiskType:          "native512",
		},
	},
	ScsiTopology: &types.HostScsiTopology{
		Adapter: []types.HostScsiTopologyInterface{
			{
				Key:     "key-vim.host.ScsiTopology.Interface-vmhba0",
				Adapter: "key-vim.host.ParallelScsiHba-vmhba0",
				Target: []types.HostScsiTopologyTarget{
					{
						Key:    "key-vim.host.ScsiTopology.Target-vmhba0:0:0",
						Target: 0,
						Lun: []types.HostScsiTopologyLun{
							{
								Key:     "key-vim.host.ScsiTopology.Lun-0000000000766d686261303a303a30",
								Lun:     0,
								ScsiLun: "key-vim.host.ScsiDisk-0000000000766d686261303a303a30",
							},
						},
						Transport: &types.HostParallelScsiTargetTransport{},
					},
				},
			},
			{
				Key:     "key-vim.host.ScsiTopology.Interface-vmhba1",
				Adapter: "key-vim.host.BlockHba-vmhba1",
				Target: []types.HostScsiTopologyTarget{
					{
						Key:    "key-vim.host.ScsiTopology.Target-vmhba1:0:0",
						Target: 0,
						Lun: []types.HostScsiTopologyLun{
							{
								Key:     "key-vim.host.ScsiTopology.Lun-0005000000766d686261313a303a30",
								Lun:     0,
								ScsiLun: "key-vim.host.ScsiLun-0005000000766d686261313a303a30",
							},
						},
						Transport: &types.HostBlockAdapterTargetTransport{},
					},
				},
			},
			{
				Key:     "key-vim.host.ScsiTopology.Interface-vmhba64",
				Adapter: "key-vim.host.BlockHba-vmhba64",
				Target:  nil,
			},
		},
	},
	MultipathInfo: &types.HostMultipathInfo{
		Lun: []types.HostMultipathInfoLogicalUnit{
			{
				Key: "key-vim.host.MultipathInfo.LogicalUnit-0005000000766d686261313a303a30",
				Id:  "0005000000766d686261313a303a30",
				Lun: "key-vim.host.ScsiLun-0005000000766d686261313a303a30",
				Path: []types.HostMultipathInfoPath{
					{
						Key:           "key-vim.host.MultipathInfo.Path-vmhba1:C0:T0:L0",
						Name:          "vmhba1:C0:T0:L0",
						PathState:     "active",
						State:         "active",
						IsWorkingPath: types.NewBool(true),
						Adapter:       "key-vim.host.BlockHba-vmhba1",
						Lun:           "key-vim.host.MultipathInfo.LogicalUnit-0005000000766d686261313a303a30",
						Transport:     &types.HostBlockAdapterTargetTransport{},
					},
				},
				Policy: &types.HostMultipathInfoFixedLogicalUnitPolicy{
					HostMultipathInfoLogicalUnitPolicy: types.HostMultipathInfoLogicalUnitPolicy{
						Policy: "VMW_PSP_FIXED",
					},
					Prefer: "vmhba1:C0:T0:L0",
				},
				StorageArrayTypePolicy: &types.HostMultipathInfoLogicalUnitStorageArrayTypePolicy{
					Policy: "VMW_SATP_LOCAL",
				},
			},
			{
				Key: "key-vim.host.MultipathInfo.LogicalUnit-0000000000766d686261303a303a30",
				Id:  "0000000000766d686261303a303a30",
				Lun: "key-vim.host.ScsiDisk-0000000000766d686261303a303a30",
				Path: []types.HostMultipathInfoPath{
					{
						Key:           "key-vim.host.MultipathInfo.Path-vmhba0:C0:T0:L0",
						Name:          "vmhba0:C0:T0:L0",
						PathState:     "active",
						State:         "active",
						IsWorkingPath: types.NewBool(true),
						Adapter:       "key-vim.host.ParallelScsiHba-vmhba0",
						Lun:           "key-vim.host.MultipathInfo.LogicalUnit-0000000000766d686261303a303a30",
						Transport:     &types.HostParallelScsiTargetTransport{},
					},
				},
				Policy: &types.HostMultipathInfoFixedLogicalUnitPolicy{
					HostMultipathInfoLogicalUnitPolicy: types.HostMultipathInfoLogicalUnitPolicy{
						Policy: "VMW_PSP_FIXED",
					},
					Prefer: "vmhba0:C0:T0:L0",
				},
				StorageArrayTypePolicy: &types.HostMultipathInfoLogicalUnitStorageArrayTypePolicy{
					Policy: "VMW_SATP_LOCAL",
				},
			},
		},
	},
	PlugStoreTopology: &types.HostPlugStoreTopology{
		Adapter: []types.HostPlugStoreTopologyAdapter{
			{
				Key:     "key-vim.host.PlugStoreTopology.Adapter-vmhba0",
				Adapter: "key-vim.host.ParallelScsiHba-vmhba0",
				Path:    []string{"key-vim.host.PlugStoreTopology.Path-vmhba0:C0:T0:L0"},
			},
			{
				Key:     "key-vim.host.PlugStoreTopology.Adapter-vmhba1",
				Adapter: "key-vim.host.BlockHba-vmhba1",
				Path:    []string{"key-vim.host.PlugStoreTopology.Path-vmhba1:C0:T0:L0"},
			},
			{
				Key:     "key-vim.host.PlugStoreTopology.Adapter-vmhba64",
				Adapter: "key-vim.host.BlockHba-vmhba64",
				Path:    nil,
			},
		},
		Path: []types.HostPlugStoreTopologyPath{
			{
				Key:           "key-vim.host.PlugStoreTopology.Path-vmhba0:C0:T0:L0",
				Name:          "vmhba0:C0:T0:L0",
				ChannelNumber: 0,
				TargetNumber:  0,
				LunNumber:     0,
				Adapter:       "key-vim.host.PlugStoreTopology.Adapter-vmhba0",
				Target:        "key-vim.host.PlugStoreTopology.Target-pscsi.0:0",
				Device:        "key-vim.host.PlugStoreTopology.Device-0000000000766d686261303a303a30",
			},
			{
				Key:           "key-vim.host.PlugStoreTopology.Path-vmhba1:C0:T0:L0",
				Name:          "vmhba1:C0:T0:L0",
				ChannelNumber: 0,
				TargetNumber:  0,
				LunNumber:     0,
				Adapter:       "key-vim.host.PlugStoreTopology.Adapter-vmhba1",
				Target:        "key-vim.host.PlugStoreTopology.Target-ide.0:0",
				Device:        "key-vim.host.PlugStoreTopology.Device-0005000000766d686261313a303a30",
			},
		},
		Target: []types.HostPlugStoreTopologyTarget{
			{
				Key:       "key-vim.host.PlugStoreTopology.Target-pscsi.0:0",
				Transport: &types.HostParallelScsiTargetTransport{},
			},
			{
				Key:       "key-vim.host.PlugStoreTopology.Target-ide.0:0",
				Transport: &types.HostBlockAdapterTargetTransport{},
			},
		},
		Device: []types.HostPlugStoreTopologyDevice{
			{
				Key:  "key-vim.host.PlugStoreTopology.Device-0005000000766d686261313a303a30",
				Lun:  "key-vim.host.ScsiLun-0005000000766d686261313a303a30",
				Path: []string{"key-vim.host.PlugStoreTopology.Path-vmhba1:C0:T0:L0"},
			},
			{
				Key:  "key-vim.host.PlugStoreTopology.Device-0000000000766d686261303a303a30",
				Lun:  "key-vim.host.ScsiDisk-0000000000766d686261303a303a30",
				Path: []string{"key-vim.host.PlugStoreTopology.Path-vmhba0:C0:T0:L0"},
			},
		},
		Plugin: []types.HostPlugStoreTopologyPlugin{
			{
				Key:         "key-vim.host.PlugStoreTopology.Plugin-NMP",
				Name:        "NMP",
				Device:      []string{"key-vim.host.PlugStoreTopology.Device-0005000000766d686261313a303a30", "key-vim.host.PlugStoreTopology.Device-0000000000766d686261303a303a30"},
				ClaimedPath: []string{"key-vim.host.PlugStoreTopology.Path-vmhba0:C0:T0:L0", "key-vim.host.PlugStoreTopology.Path-vmhba1:C0:T0:L0"},
			},
		},
	},
	SoftwareInternetScsiEnabled: false,
}

HostStorageDeviceInfo is the default template for the HostSystem config.storageDevice property. Capture method:

govc object.collect -s -dump HostSystem:ha-host config.storageDevice
View Source
var HostSystem = mo.HostSystem{
	ManagedEntity: mo.ManagedEntity{
		ExtensibleManagedObject: mo.ExtensibleManagedObject{
			Self:           types.ManagedObjectReference{Type: "HostSystem", Value: "ha-host"},
			Value:          nil,
			AvailableField: nil,
		},
		Parent:              &types.ManagedObjectReference{Type: "ComputeResource", Value: "ha-compute-res"},
		CustomValue:         nil,
		OverallStatus:       "",
		ConfigStatus:        "",
		ConfigIssue:         nil,
		EffectiveRole:       nil,
		Permission:          nil,
		Name:                "",
		DisabledMethod:      nil,
		RecentTask:          nil,
		DeclaredAlarmState:  nil,
		TriggeredAlarmState: nil,
		AlarmActionsEnabled: (*bool)(nil),
		Tag:                 nil,
	},
	Runtime: types.HostRuntimeInfo{
		DynamicData:       types.DynamicData{},
		ConnectionState:   "connected",
		PowerState:        "poweredOn",
		StandbyMode:       "",
		InMaintenanceMode: false,
		BootTime:          (*time.Time)(nil),
		HealthSystemRuntime: &types.HealthSystemRuntime{
			DynamicData: types.DynamicData{},
			SystemHealthInfo: &types.HostSystemHealthInfo{
				DynamicData: types.DynamicData{},
				NumericSensorInfo: []types.HostNumericSensorInfo{
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware Rollup Health State",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "system",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "CPU socket #0 Level-1 Cache is 16384 B",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Processors",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "CPU socket #0 Level-2 Cache is 0 B",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Processors",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "CPU socket #1 Level-1 Cache is 16384 B",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Processors",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "CPU socket #1 Level-2 Cache is 0 B",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Processors",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "Phoenix Technologies LTD System BIOS 6.00 2014-05-20 00:00:00.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware, Inc. VMware ESXi 6.0.0 build-3634798 2016-03-07 00:00:00.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware sata-ata-piix 2.12-10vmw.600.2.34.3634798 2016-03-08 07:38:41.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware lsu-lsi-mptsas-plugin 1.0.0-1vmw.600.2.34.3634798 2016-03-08 07:39:28.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-mlx4-core 1.9.7.0-1vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware lsu-lsi-mpt2sas-plugin 1.0.0-4vmw.600.2.34.3634798 2016-03-08 07:39:28.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-aacraid 1.1.5.1-9vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ata-pata-via 0.3.3-2vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-qla4xxx 5.01.03.2-7vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware sata-sata-promise 2.12-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-megaraid-mbox 2.20.5.1-6vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware vsan 6.0.0-2.34.3563498 2016-02-17 17:18:19.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-e1000 8.0.3.1-5vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ata-pata-serverworks 0.4.3-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-mptspi 4.23.01.00-9vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-nx-nic 5.0.621-5vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware block-cciss 3.6.14-10vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-bnx2x 1.78.80.v60.12-1vmw.600.2.34.3634798 2016-03-08 07:38:41.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ipmi-ipmi-devintf 39.1-4vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-mptsas 4.23.01.00-9vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-megaraid2 2.00.4-9vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware nvme 1.0e.0.35-1vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware esx-xserver 6.0.0-2.34.3634798 2016-03-08 07:39:27.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware nmlx4-en 3.0.0.0-1vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware lsu-hp-hpsa-plugin 1.0.0-1vmw.600.2.34.3634798 2016-03-08 07:39:28.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-megaraid-sas 6.603.55.00-2vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-enic 2.1.2.38-2vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware lsi-msgpt3 06.255.12.00-8vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware sata-ahci 3.0-22vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-forcedeth 0.61-2vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ata-pata-atiixp 0.4.6-4vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware elxnet 10.2.309.6v-1vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware esx-dvfilter-generic-fastpath 6.0.0-2.34.3634798 2016-03-08 07:39:28.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware uhci-usb-uhci 1.0-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ata-pata-amd 0.3.10-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware sata-sata-sil24 1.1-1vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ohci-usb-ohci 1.0-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-igb 5.0.5.1.1-5vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ata-pata-pdc2027x 1.0-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ehci-ehci-hcd 1.0-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware lsu-lsi-lsi-mr3-plugin 1.0.0-2vmw.600.2.34.3634798 2016-03-08 07:39:28.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-ixgbe 3.7.13.7.14iov-20vmw.600.2.34.3634798 2016-03-08 07:38:41.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware vsanhealth 6.0.0-3000000.3.0.2.34.3544323 2016-02-12 06:45:30.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-cnic 1.78.76.v60.13-2vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware sata-sata-svw 2.3-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ipmi-ipmi-msghandler 39.1-4vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware emulex-esx-elxnetcli 10.2.309.6v-2.34.3634798 2016-03-08 07:39:28.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-aic79xx 3.1-5vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware qlnativefc 2.0.12.0-5vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware lsu-lsi-lsi-msgpt3-plugin 1.0.0-1vmw.600.2.34.3634798 2016-03-08 07:39:28.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ima-qla4xxx 2.02.18-1vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-mlx4-en 1.9.7.0-1vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-e1000e 3.2.2.1-1vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-tg3 3.131d.v60.4-2vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-hpsa 6.0.0.44-4vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-bnx2fc 1.78.78.v60.8-1vmw.600.2.34.3634798 2016-03-08 07:38:41.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware cpu-microcode 6.0.0-2.34.3634798 2016-03-08 07:39:28.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-fnic 1.5.0.45-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware nmlx4-rdma 3.0.0.0-1vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-vmxnet3 1.1.3.0-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware lpfc 10.2.309.8-2vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware esx-ui 1.0.0-3617585 2016-03-03 04:52:43.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ata-pata-cmd64x 0.2.5-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware lsi-mr3 6.605.08.00-7vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ata-pata-hpt3x2n 0.3.4-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware sata-sata-nv 3.5-4vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware misc-cnic-register 1.78.75.v60.7-1vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware lsu-lsi-megaraid-sas-plugin 1.0.0-2vmw.600.2.34.3634798 2016-03-08 07:39:28.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ata-pata-sil680 0.4.8-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware esx-tboot 6.0.0-2.34.3634798 2016-03-08 07:39:27.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware xhci-xhci 1.0-3vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-ips 7.12.05-4vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-adp94xx 1.0.8.12-6vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware rste 2.0.2.0088-4vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware ipmi-ipmi-si-drv 39.1-4vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMWARE mtip32xx-native 3.8.5-1vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-mpt2sas 19.00.00.00-1vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware misc-drivers 6.0.0-2.34.3634798 2016-03-08 07:38:41.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware nmlx4-core 3.0.0.0-1vmw.600.2.34.3634798 2016-03-08 07:38:46.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware sata-sata-sil 2.3-4vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware esx-base 6.0.0-2.34.3634798 2016-03-08 07:39:18.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware scsi-bnx2i 2.78.76.v60.8-1vmw.600.2.34.3634798 2016-03-08 07:38:41.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "VMware net-bnx2 2.2.4f.v60.10-1vmw.600.2.34.3634798 2016-03-08 07:38:45.000",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "e1000 driver 8.0.3.1-NAPI",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
					{
						DynamicData: types.DynamicData{},
						Name:        "e1000 device firmware N/A",
						HealthState: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Sensor is operating under normal conditions",
							},
							Key: "green",
						},
						CurrentReading: 0,
						UnitModifier:   0,
						BaseUnits:      "",
						RateUnits:      "",
						SensorType:     "Software Components",
					},
				},
			},
			HardwareStatusInfo: &types.HostHardwareStatusInfo{
				DynamicData:      types.DynamicData{},
				MemoryStatusInfo: nil,
				CpuStatusInfo: []types.BaseHostHardwareElementInfo{
					&types.HostHardwareElementInfo{
						DynamicData: types.DynamicData{},
						Name:        "CPU socket #0",
						Status: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Physical element is functioning as expected",
							},
							Key: "Green",
						},
					},
					&types.HostHardwareElementInfo{
						DynamicData: types.DynamicData{},
						Name:        "CPU socket #1",
						Status: &types.ElementDescription{
							Description: types.Description{
								DynamicData: types.DynamicData{},
								Label:       "Green",
								Summary:     "Physical element is functioning as expected",
							},
							Key: "Green",
						},
					},
				},
				StorageStatusInfo: nil,
			},
		},
		DasHostState:    (*types.ClusterDasFdmHostState)(nil),
		TpmPcrValues:    nil,
		VsanRuntimeInfo: &types.VsanHostRuntimeInfo{},
		NetworkRuntimeInfo: &types.HostRuntimeInfoNetworkRuntimeInfo{
			DynamicData: types.DynamicData{},
			NetStackInstanceRuntimeInfo: []types.HostRuntimeInfoNetStackInstanceRuntimeInfo{
				{
					DynamicData:            types.DynamicData{},
					NetStackInstanceKey:    "defaultTcpipStack",
					State:                  "active",
					VmknicKeys:             []string{"vmk0"},
					MaxNumberOfConnections: 11000,
					CurrentIpV6Enabled:     types.NewBool(true),
				},
			},
			NetworkResourceRuntime: (*types.HostNetworkResourceRuntime)(nil),
		},
		VFlashResourceRuntimeInfo:  (*types.HostVFlashManagerVFlashResourceRunTimeInfo)(nil),
		HostMaxVirtualDiskCapacity: 68169720922112,
	},
	Summary: types.HostListSummary{
		DynamicData: types.DynamicData{},
		Host:        &types.ManagedObjectReference{Type: "HostSystem", Value: "ha-host"},
		Hardware: &types.HostHardwareSummary{
			DynamicData: types.DynamicData{},
			Vendor:      "VMware, Inc.",
			Model:       "VMware Virtual Platform",
			Uuid:        "564d2f12-8041-639b-5018-05a835b72eaf",
			OtherIdentifyingInfo: []types.HostSystemIdentificationInfo{
				{
					DynamicData:     types.DynamicData{},
					IdentifierValue: " No Asset Tag",
					IdentifierType: &types.ElementDescription{
						Description: types.Description{
							DynamicData: types.DynamicData{},
							Label:       "Asset Tag",
							Summary:     "Asset tag of the system",
						},
						Key: "AssetTag",
					},
				},
				{
					DynamicData:     types.DynamicData{},
					IdentifierValue: "[MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7]",
					IdentifierType: &types.ElementDescription{
						Description: types.Description{
							DynamicData: types.DynamicData{},
							Label:       "OEM specific string",
							Summary:     "OEM specific string",
						},
						Key: "OemSpecificString",
					},
				},
				{
					DynamicData:     types.DynamicData{},
					IdentifierValue: "Welcome to the Virtual Machine",
					IdentifierType: &types.ElementDescription{
						Description: types.Description{
							DynamicData: types.DynamicData{},
							Label:       "OEM specific string",
							Summary:     "OEM specific string",
						},
						Key: "OemSpecificString",
					},
				},
				{
					DynamicData:     types.DynamicData{},
					IdentifierValue: "VMware-56 4d 2f 12 80 41 63 9b-50 18 05 a8 35 b7 2e af",
					IdentifierType: &types.ElementDescription{
						Description: types.Description{
							DynamicData: types.DynamicData{},
							Label:       "Service tag",
							Summary:     "Service tag of the system",
						},
						Key: "ServiceTag",
					},
				},
			},
			MemorySize:    4294430720,
			CpuModel:      "Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz",
			CpuMhz:        2294,
			NumCpuPkgs:    2,
			NumCpuCores:   2,
			NumCpuThreads: 2,
			NumNics:       1,
			NumHBAs:       3,
		},
		Runtime: (*types.HostRuntimeInfo)(nil),
		Config: types.HostConfigSummary{
			DynamicData:           types.DynamicData{},
			Name:                  "localhost.localdomain",
			Port:                  902,
			SslThumbprint:         "",
			Product:               &HostConfigInfo.Product,
			VmotionEnabled:        false,
			FaultToleranceEnabled: types.NewBool(true),
			FeatureVersion:        nil,
			AgentVmDatastore:      (*types.ManagedObjectReference)(nil),
			AgentVmNetwork:        (*types.ManagedObjectReference)(nil),
		},
		QuickStats: types.HostListSummaryQuickStats{
			DynamicData:               types.DynamicData{},
			OverallCpuUsage:           67,
			OverallMemoryUsage:        1404,
			DistributedCpuFairness:    0,
			DistributedMemoryFairness: 0,
			Uptime:                    77229,
		},
		OverallStatus:      "gray",
		RebootRequired:     false,
		CustomValue:        nil,
		ManagementServerIp: "",
		MaxEVCModeKey:      "",
		CurrentEVCModeKey:  "",
		Gateway:            (*types.HostListSummaryGatewaySummary)(nil),
	},
	Hardware:           (*types.HostHardwareInfo)(nil),
	Capability:         (*types.HostCapability)(nil),
	LicensableResource: types.HostLicensableResourceInfo{},
	ConfigManager: types.HostConfigManager{
		DynamicData:               types.DynamicData{},
		CpuScheduler:              &types.ManagedObjectReference{Type: "HostCpuSchedulerSystem", Value: "cpuSchedulerSystem"},
		DatastoreSystem:           &types.ManagedObjectReference{Type: "HostDatastoreSystem", Value: "ha-datastoresystem"},
		MemoryManager:             &types.ManagedObjectReference{Type: "HostMemorySystem", Value: "memoryManagerSystem"},
		StorageSystem:             &types.ManagedObjectReference{Type: "HostStorageSystem", Value: "storageSystem"},
		NetworkSystem:             &types.ManagedObjectReference{Type: "HostNetworkSystem", Value: "networkSystem"},
		VmotionSystem:             &types.ManagedObjectReference{Type: "HostVMotionSystem", Value: "ha-vmotion-system"},
		VirtualNicManager:         &types.ManagedObjectReference{Type: "HostVirtualNicManager", Value: "ha-vnic-mgr"},
		ServiceSystem:             &types.ManagedObjectReference{Type: "HostServiceSystem", Value: "serviceSystem"},
		FirewallSystem:            &types.ManagedObjectReference{Type: "HostFirewallSystem", Value: "firewallSystem"},
		AdvancedOption:            &types.ManagedObjectReference{Type: "OptionManager", Value: "ha-adv-options"},
		DiagnosticSystem:          &types.ManagedObjectReference{Type: "HostDiagnosticSystem", Value: "diagnosticsystem"},
		AutoStartManager:          &types.ManagedObjectReference{Type: "HostAutoStartManager", Value: "ha-autostart-mgr"},
		SnmpSystem:                &types.ManagedObjectReference{Type: "HostSnmpSystem", Value: "ha-snmp-agent"},
		DateTimeSystem:            &types.ManagedObjectReference{Type: "HostDateTimeSystem", Value: "dateTimeSystem"},
		PatchManager:              &types.ManagedObjectReference{Type: "HostPatchManager", Value: "ha-host-patch-manager"},
		ImageConfigManager:        &types.ManagedObjectReference{Type: "HostImageConfigManager", Value: "ha-image-config-manager"},
		BootDeviceSystem:          (*types.ManagedObjectReference)(nil),
		FirmwareSystem:            &types.ManagedObjectReference{Type: "HostFirmwareSystem", Value: "ha-firmwareSystem"},
		HealthStatusSystem:        &types.ManagedObjectReference{Type: "HostHealthStatusSystem", Value: "healthStatusSystem"},
		PciPassthruSystem:         &types.ManagedObjectReference{Type: "HostPciPassthruSystem", Value: "ha-pcipassthrusystem"},
		LicenseManager:            &types.ManagedObjectReference{Type: "LicenseManager", Value: "ha-license-manager"},
		KernelModuleSystem:        &types.ManagedObjectReference{Type: "HostKernelModuleSystem", Value: "kernelModuleSystem"},
		AuthenticationManager:     &types.ManagedObjectReference{Type: "HostAuthenticationManager", Value: "ha-auth-manager"},
		PowerSystem:               &types.ManagedObjectReference{Type: "HostPowerSystem", Value: "ha-power-system"},
		CacheConfigurationManager: &types.ManagedObjectReference{Type: "HostCacheConfigurationManager", Value: "ha-cache-configuration-manager"},
		EsxAgentHostManager:       (*types.ManagedObjectReference)(nil),
		IscsiManager:              &types.ManagedObjectReference{Type: "IscsiManager", Value: "iscsiManager"},
		VFlashManager:             &types.ManagedObjectReference{Type: "HostVFlashManager", Value: "ha-vflash-manager"},
		VsanSystem:                &types.ManagedObjectReference{Type: "HostVsanSystem", Value: "vsanSystem"},
		MessageBusProxy:           &types.ManagedObjectReference{Type: "MessageBusProxy", Value: "messageBusProxy"},
		UserDirectory:             &types.ManagedObjectReference{Type: "UserDirectory", Value: "ha-user-directory"},
		AccountManager:            &types.ManagedObjectReference{Type: "HostLocalAccountManager", Value: "ha-localacctmgr"},
		HostAccessManager:         &types.ManagedObjectReference{Type: "HostAccessManager", Value: "ha-host-access-manager"},
		GraphicsManager:           &types.ManagedObjectReference{Type: "HostGraphicsManager", Value: "ha-graphics-manager"},
		VsanInternalSystem:        &types.ManagedObjectReference{Type: "HostVsanInternalSystem", Value: "ha-vsan-internal-system"},
		CertificateManager:        &types.ManagedObjectReference{Type: "HostCertificateManager", Value: "ha-certificate-manager"},
	},
	Config:           &HostConfigInfo,
	Vm:               nil,
	Datastore:        nil,
	Network:          nil,
	DatastoreBrowser: types.ManagedObjectReference{Type: "HostDatastoreBrowser", Value: "ha-host-datastorebrowser"},
	SystemResources:  (*types.HostSystemResourceInfo)(nil),
}

HostSystem is the default template for HostSystem properties. Capture method:

govc host.info -dump
View Source
var PerfCounter = []types.PerfCounterInfo{}/* 340 elements not displayed */

PerfCounter is the default template for the PerformanceManager perfCounter property. Capture method:

govc object.collect -s -dump PerformanceManager:ha-perfmgr perfCounter
View Source
var ResourcePool = mo.ResourcePool{
	ManagedEntity: mo.ManagedEntity{
		ExtensibleManagedObject: mo.ExtensibleManagedObject{
			Self:           types.ManagedObjectReference{Type: "ResourcePool", Value: "ha-root-pool"},
			Value:          nil,
			AvailableField: nil,
		},
		Parent:              &types.ManagedObjectReference{Type: "ComputeResource", Value: "ha-compute-res"},
		CustomValue:         nil,
		OverallStatus:       "green",
		ConfigStatus:        "green",
		ConfigIssue:         nil,
		EffectiveRole:       []int32{-1},
		Permission:          nil,
		Name:                "Resources",
		DisabledMethod:      []string{"CreateVApp", "CreateChildVM_Task"},
		RecentTask:          nil,
		DeclaredAlarmState:  nil,
		TriggeredAlarmState: nil,
		AlarmActionsEnabled: (*bool)(nil),
		Tag:                 nil,
	},
	Summary: &types.ResourcePoolSummary{
		DynamicData: types.DynamicData{},
		Name:        "Resources",
		Config: types.ResourceConfigSpec{
			DynamicData:   types.DynamicData{},
			Entity:        &types.ManagedObjectReference{Type: "ResourcePool", Value: "ha-root-pool"},
			ChangeVersion: "",
			LastModified:  (*time.Time)(nil),
			CpuAllocation: types.ResourceAllocationInfo{
				DynamicData:           types.DynamicData{},
				Reservation:           types.NewInt64(4121),
				ExpandableReservation: types.NewBool(false),
				Limit:                 types.NewInt64(4121),
				Shares: &types.SharesInfo{
					DynamicData: types.DynamicData{},
					Shares:      9000,
					Level:       "custom",
				},
				OverheadLimit: nil,
			},
			MemoryAllocation: types.ResourceAllocationInfo{
				DynamicData:           types.DynamicData{},
				Reservation:           types.NewInt64(961),
				ExpandableReservation: types.NewBool(false),
				Limit:                 types.NewInt64(961),
				Shares: &types.SharesInfo{
					DynamicData: types.DynamicData{},
					Shares:      9000,
					Level:       "custom",
				},
				OverheadLimit: nil,
			},
		},
		Runtime: types.ResourcePoolRuntimeInfo{
			DynamicData: types.DynamicData{},
			Memory: types.ResourcePoolResourceUsage{
				DynamicData:          types.DynamicData{},
				ReservationUsed:      0,
				ReservationUsedForVm: 0,
				UnreservedForPool:    1007681536,
				UnreservedForVm:      1007681536,
				OverallUsage:         0,
				MaxUsage:             1007681536,
			},
			Cpu: types.ResourcePoolResourceUsage{
				DynamicData:          types.DynamicData{},
				ReservationUsed:      0,
				ReservationUsedForVm: 0,
				UnreservedForPool:    4121,
				UnreservedForVm:      4121,
				OverallUsage:         0,
				MaxUsage:             4121,
			},
			OverallStatus: "green",
		},
		QuickStats:         (*types.ResourcePoolQuickStats)(nil),
		ConfiguredMemoryMB: 0,
	},
	Runtime: types.ResourcePoolRuntimeInfo{
		DynamicData: types.DynamicData{},
		Memory: types.ResourcePoolResourceUsage{
			DynamicData:          types.DynamicData{},
			ReservationUsed:      0,
			ReservationUsedForVm: 0,
			UnreservedForPool:    1007681536,
			UnreservedForVm:      1007681536,
			OverallUsage:         0,
			MaxUsage:             1007681536,
		},
		Cpu: types.ResourcePoolResourceUsage{
			DynamicData:          types.DynamicData{},
			ReservationUsed:      0,
			ReservationUsedForVm: 0,
			UnreservedForPool:    4121,
			UnreservedForVm:      4121,
			OverallUsage:         0,
			MaxUsage:             4121,
		},
		OverallStatus: "green",
	},
	Owner:        types.ManagedObjectReference{Type: "ComputeResource", Value: "ha-compute-res"},
	ResourcePool: nil,
	Vm:           nil,
	Config: types.ResourceConfigSpec{
		DynamicData:   types.DynamicData{},
		Entity:        &types.ManagedObjectReference{Type: "ResourcePool", Value: "ha-root-pool"},
		ChangeVersion: "",
		LastModified:  (*time.Time)(nil),
		CpuAllocation: types.ResourceAllocationInfo{
			DynamicData:           types.DynamicData{},
			Reservation:           types.NewInt64(4121),
			ExpandableReservation: types.NewBool(false),
			Limit:                 types.NewInt64(4121),
			Shares: &types.SharesInfo{
				DynamicData: types.DynamicData{},
				Shares:      9000,
				Level:       "custom",
			},
			OverheadLimit: nil,
		},
		MemoryAllocation: types.ResourceAllocationInfo{
			DynamicData:           types.DynamicData{},
			Reservation:           types.NewInt64(961),
			ExpandableReservation: types.NewBool(false),
			Limit:                 types.NewInt64(961),
			Shares: &types.SharesInfo{
				DynamicData: types.DynamicData{},
				Shares:      9000,
				Level:       "custom",
			},
			OverheadLimit: nil,
		},
	},
	ChildConfiguration: nil,
}

ResourcePool is the default template for ResourcePool properties. Capture method:

govc pool.info "*" -dump
View Source
var RoleList = []types.AuthorizationRole{
	{
		RoleId: -6,
		System: true,
		Name:   "NoCryptoAdmin",
		Info: &types.Description{
			Label:   "No cryptography administrator",
			Summary: "Full access without Cryptographic operations privileges",
		},
		Privilege: nil,
	},
	{
		RoleId: -5,
		System: true,
		Name:   "NoAccess",
		Info: &types.Description{
			Label:   "No access",
			Summary: "Used for restricting granted access",
		},
		Privilege: nil,
	},
	{
		RoleId: -4,
		System: true,
		Name:   "Anonymous",
		Info: &types.Description{
			Label:   "Anonymous",
			Summary: "Not logged-in user (cannot be granted)",
		},
		Privilege: []string{"System.Anonymous"},
	},
	{
		RoleId: -3,
		System: true,
		Name:   "View",
		Info: &types.Description{
			Label:   "View",
			Summary: "Visibility access (cannot be granted)",
		},
		Privilege: []string{"System.Anonymous", "System.View"},
	},
	{
		RoleId: -2,
		System: true,
		Name:   "ReadOnly",
		Info: &types.Description{
			Label:   "Read-only",
			Summary: "See details of objects, but not make changes",
		},
		Privilege: []string{"System.Anonymous", "System.Read", "System.View"},
	},
	{
		RoleId: -1,
		System: true,
		Name:   "Admin",
		Info: &types.Description{
			Label:   "Administrator",
			Summary: "Full access rights",
		},
		Privilege: []string{"Alarm.Acknowledge", "Alarm.Create", "Alarm.Delete", "Alarm.DisableActions", "Alarm.Edit", "Alarm.SetStatus", "Authorization.ModifyPermissions", "Authorization.ModifyRoles", "Authorization.ReassignRolePermissions", "Certificate.Manage", "Cryptographer.Access", "Cryptographer.AddDisk", "Cryptographer.Clone", "Cryptographer.Decrypt", "Cryptographer.Encrypt", "Cryptographer.EncryptNew", "Cryptographer.ManageEncryptionPolicy", "Cryptographer.ManageKeyServers", "Cryptographer.ManageKeys", "Cryptographer.Migrate", "Cryptographer.Recrypt", "Cryptographer.RegisterHost", "Cryptographer.RegisterVM", "DVPortgroup.Create", "DVPortgroup.Delete", "DVPortgroup.Modify", "DVPortgroup.PolicyOp", "DVPortgroup.ScopeOp", "DVSwitch.Create", "DVSwitch.Delete", "DVSwitch.HostOp", "DVSwitch.Modify", "DVSwitch.Move", "DVSwitch.PolicyOp", "DVSwitch.PortConfig", "DVSwitch.PortSetting", "DVSwitch.ResourceManagement", "DVSwitch.Vspan", "Datacenter.Create", "Datacenter.Delete", "Datacenter.IpPoolConfig", "Datacenter.IpPoolQueryAllocations", "Datacenter.IpPoolReleaseIp", "Datacenter.Move", "Datacenter.Reconfigure", "Datacenter.Rename", "Datastore.AllocateSpace", "Datastore.Browse", "Datastore.Config", "Datastore.Delete", "Datastore.DeleteFile", "Datastore.FileManagement", "Datastore.Move", "Datastore.Rename", "Datastore.UpdateVirtualMachineFiles", "Datastore.UpdateVirtualMachineMetadata", "EAM.Config", "EAM.Modify", "EAM.View", "Extension.Register", "Extension.Unregister", "Extension.Update", "ExternalStatsProvider.Register", "ExternalStatsProvider.Unregister", "ExternalStatsProvider.Update", "Folder.Create", "Folder.Delete", "Folder.Move", "Folder.Rename", "Global.CancelTask", "Global.CapacityPlanning", "Global.Diagnostics", "Global.DisableMethods", "Global.EnableMethods", "Global.GlobalTag", "Global.Health", "Global.Licenses", "Global.LogEvent", "Global.ManageCustomFields", "Global.Proxy", "Global.ScriptAction", "Global.ServiceManagers", "Global.SetCustomField", "Global.Settings", "Global.SystemTag", "Global.VCServer", "HealthUpdateProvider.Register", "HealthUpdateProvider.Unregister", "HealthUpdateProvider.Update", "Host.Cim.CimInteraction", "Host.Config.AdvancedConfig", "Host.Config.AuthenticationStore", "Host.Config.AutoStart", "Host.Config.Connection", "Host.Config.DateTime", "Host.Config.Firmware", "Host.Config.HyperThreading", "Host.Config.Image", "Host.Config.Maintenance", "Host.Config.Memory", "Host.Config.NetService", "Host.Config.Network", "Host.Config.Patch", "Host.Config.PciPassthru", "Host.Config.Power", "Host.Config.Quarantine", "Host.Config.Resources", "Host.Config.Settings", "Host.Config.Snmp", "Host.Config.Storage", "Host.Config.SystemManagement", "Host.Hbr.HbrManagement", "Host.Inventory.AddHostToCluster", "Host.Inventory.AddStandaloneHost", "Host.Inventory.CreateCluster", "Host.Inventory.DeleteCluster", "Host.Inventory.EditCluster", "Host.Inventory.MoveCluster", "Host.Inventory.MoveHost", "Host.Inventory.RemoveHostFromCluster", "Host.Inventory.RenameCluster", "Host.Local.CreateVM", "Host.Local.DeleteVM", "Host.Local.InstallAgent", "Host.Local.ManageUserGroups", "Host.Local.ReconfigVM", "Network.Assign", "Network.Config", "Network.Delete", "Network.Move", "Performance.ModifyIntervals", "Profile.Clear", "Profile.Create", "Profile.Delete", "Profile.Edit", "Profile.Export", "Profile.View", "Resource.ApplyRecommendation", "Resource.AssignVAppToPool", "Resource.AssignVMToPool", "Resource.ColdMigrate", "Resource.CreatePool", "Resource.DeletePool", "Resource.EditPool", "Resource.HotMigrate", "Resource.MovePool", "Resource.QueryVMotion", "Resource.RenamePool", "ScheduledTask.Create", "ScheduledTask.Delete", "ScheduledTask.Edit", "ScheduledTask.Run", "Sessions.GlobalMessage", "Sessions.ImpersonateUser", "Sessions.TerminateSession", "Sessions.ValidateSession", "StoragePod.Config", "System.Anonymous", "System.Read", "System.View", "Task.Create", "Task.Update", "VApp.ApplicationConfig", "VApp.AssignResourcePool", "VApp.AssignVApp", "VApp.AssignVM", "VApp.Clone", "VApp.Create", "VApp.Delete", "VApp.Export", "VApp.ExtractOvfEnvironment", "VApp.Import", "VApp.InstanceConfig", "VApp.ManagedByConfig", "VApp.Move", "VApp.PowerOff", "VApp.PowerOn", "VApp.Rename", "VApp.ResourceConfig", "VApp.Suspend", "VApp.Unregister", "VRMPolicy.Query", "VRMPolicy.Update", "VirtualMachine.Config.AddExistingDisk", "VirtualMachine.Config.AddNewDisk", "VirtualMachine.Config.AddRemoveDevice", "VirtualMachine.Config.AdvancedConfig", "VirtualMachine.Config.Annotation", "VirtualMachine.Config.CPUCount", "VirtualMachine.Config.ChangeTracking", "VirtualMachine.Config.DiskExtend", "VirtualMachine.Config.DiskLease", "VirtualMachine.Config.EditDevice", "VirtualMachine.Config.HostUSBDevice", "VirtualMachine.Config.ManagedBy", "VirtualMachine.Config.Memory", "VirtualMachine.Config.MksControl", "VirtualMachine.Config.QueryFTCompatibility", "VirtualMachine.Config.QueryUnownedFiles", "VirtualMachine.Config.RawDevice", "VirtualMachine.Config.ReloadFromPath", "VirtualMachine.Config.RemoveDisk", "VirtualMachine.Config.Rename", "VirtualMachine.Config.ResetGuestInfo", "VirtualMachine.Config.Resource", "VirtualMachine.Config.Settings", "VirtualMachine.Config.SwapPlacement", "VirtualMachine.Config.ToggleForkParent", "VirtualMachine.Config.Unlock", "VirtualMachine.Config.UpgradeVirtualHardware", "VirtualMachine.GuestOperations.Execute", "VirtualMachine.GuestOperations.Modify", "VirtualMachine.GuestOperations.ModifyAliases", "VirtualMachine.GuestOperations.Query", "VirtualMachine.GuestOperations.QueryAliases", "VirtualMachine.Hbr.ConfigureReplication", "VirtualMachine.Hbr.MonitorReplication", "VirtualMachine.Hbr.ReplicaManagement", "VirtualMachine.Interact.AnswerQuestion", "VirtualMachine.Interact.Backup", "VirtualMachine.Interact.ConsoleInteract", "VirtualMachine.Interact.CreateScreenshot", "VirtualMachine.Interact.CreateSecondary", "VirtualMachine.Interact.DefragmentAllDisks", "VirtualMachine.Interact.DeviceConnection", "VirtualMachine.Interact.DisableSecondary", "VirtualMachine.Interact.DnD", "VirtualMachine.Interact.EnableSecondary", "VirtualMachine.Interact.GuestControl", "VirtualMachine.Interact.MakePrimary", "VirtualMachine.Interact.Pause", "VirtualMachine.Interact.PowerOff", "VirtualMachine.Interact.PowerOn", "VirtualMachine.Interact.PutUsbScanCodes", "VirtualMachine.Interact.Record", "VirtualMachine.Interact.Replay", "VirtualMachine.Interact.Reset", "VirtualMachine.Interact.SESparseMaintenance", "VirtualMachine.Interact.SetCDMedia", "VirtualMachine.Interact.SetFloppyMedia", "VirtualMachine.Interact.Suspend", "VirtualMachine.Interact.TerminateFaultTolerantVM", "VirtualMachine.Interact.ToolsInstall", "VirtualMachine.Interact.TurnOffFaultTolerance", "VirtualMachine.Inventory.Create", "VirtualMachine.Inventory.CreateFromExisting", "VirtualMachine.Inventory.Delete", "VirtualMachine.Inventory.Move", "VirtualMachine.Inventory.Register", "VirtualMachine.Inventory.Unregister", "VirtualMachine.Namespace.Event", "VirtualMachine.Namespace.EventNotify", "VirtualMachine.Namespace.Management", "VirtualMachine.Namespace.ModifyContent", "VirtualMachine.Namespace.Query", "VirtualMachine.Namespace.ReadContent", "VirtualMachine.Provisioning.Clone", "VirtualMachine.Provisioning.CloneTemplate", "VirtualMachine.Provisioning.CreateTemplateFromVM", "VirtualMachine.Provisioning.Customize", "VirtualMachine.Provisioning.DeployTemplate", "VirtualMachine.Provisioning.DiskRandomAccess", "VirtualMachine.Provisioning.DiskRandomRead", "VirtualMachine.Provisioning.FileRandomAccess", "VirtualMachine.Provisioning.GetVmFiles", "VirtualMachine.Provisioning.MarkAsTemplate", "VirtualMachine.Provisioning.MarkAsVM", "VirtualMachine.Provisioning.ModifyCustSpecs", "VirtualMachine.Provisioning.PromoteDisks", "VirtualMachine.Provisioning.PutVmFiles", "VirtualMachine.Provisioning.ReadCustSpecs", "VirtualMachine.State.CreateSnapshot", "VirtualMachine.State.RemoveSnapshot", "VirtualMachine.State.RenameSnapshot", "VirtualMachine.State.RevertToSnapshot"},
	},
}

RoleList is the default template for the AuthorizationManager roleList property. Capture method:

govc object.collect -s -dump AuthorizationManager:ha-authmgr roleList
View Source
var RootFolder = mo.Folder{
	ManagedEntity: mo.ManagedEntity{
		ExtensibleManagedObject: mo.ExtensibleManagedObject{
			Self:           types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-root"},
			Value:          nil,
			AvailableField: nil,
		},
		Parent:        (*types.ManagedObjectReference)(nil),
		CustomValue:   nil,
		OverallStatus: "green",
		ConfigStatus:  "green",
		ConfigIssue:   nil,
		EffectiveRole: []int32{-1},
		Permission: []types.Permission{
			{
				DynamicData: types.DynamicData{},
				Entity:      &types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-root"},
				Principal:   "vpxuser",
				Group:       false,
				RoleId:      -1,
				Propagate:   true,
			},
			{
				DynamicData: types.DynamicData{},
				Entity:      &types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-root"},
				Principal:   "dcui",
				Group:       false,
				RoleId:      -1,
				Propagate:   true,
			},
			{
				DynamicData: types.DynamicData{},
				Entity:      &types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-root"},
				Principal:   "root",
				Group:       false,
				RoleId:      -1,
				Propagate:   true,
			},
		},
		Name:                "ha-folder-root",
		DisabledMethod:      nil,
		RecentTask:          nil,
		DeclaredAlarmState:  nil,
		TriggeredAlarmState: nil,
		AlarmActionsEnabled: (*bool)(nil),
		Tag:                 nil,
	},
	ChildType:   []string{"Datacenter"},
	ChildEntity: nil,
}

RootFolder is the default template for the ServiceContent rootFolder property. Capture method:

govc folder.info -dump /
View Source
var ServiceContent = types.ServiceContent{
	RootFolder:        types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-root"},
	PropertyCollector: types.ManagedObjectReference{Type: "PropertyCollector", Value: "ha-property-collector"},
	ViewManager:       &types.ManagedObjectReference{Type: "ViewManager", Value: "ViewManager"},
	About: types.AboutInfo{
		Name:                  "VMware ESXi",
		FullName:              "VMware ESXi 6.5.0 build-5969303",
		Vendor:                "VMware, Inc.",
		Version:               "6.5.0",
		Build:                 "5969303",
		LocaleVersion:         "INTL",
		LocaleBuild:           "000",
		OsType:                "vmnix-x86",
		ProductLineId:         "embeddedEsx",
		ApiType:               "HostAgent",
		ApiVersion:            "6.5",
		InstanceUuid:          "",
		LicenseProductName:    "VMware ESX Server",
		LicenseProductVersion: "6.0",
	},
	Setting:                     &types.ManagedObjectReference{Type: "OptionManager", Value: "HostAgentSettings"},
	UserDirectory:               &types.ManagedObjectReference{Type: "UserDirectory", Value: "ha-user-directory"},
	SessionManager:              &types.ManagedObjectReference{Type: "SessionManager", Value: "ha-sessionmgr"},
	AuthorizationManager:        &types.ManagedObjectReference{Type: "AuthorizationManager", Value: "ha-authmgr"},
	ServiceManager:              &types.ManagedObjectReference{Type: "ServiceManager", Value: "ha-servicemanager"},
	PerfManager:                 &types.ManagedObjectReference{Type: "PerformanceManager", Value: "ha-perfmgr"},
	ScheduledTaskManager:        (*types.ManagedObjectReference)(nil),
	AlarmManager:                (*types.ManagedObjectReference)(nil),
	EventManager:                &types.ManagedObjectReference{Type: "EventManager", Value: "ha-eventmgr"},
	TaskManager:                 &types.ManagedObjectReference{Type: "TaskManager", Value: "ha-taskmgr"},
	ExtensionManager:            (*types.ManagedObjectReference)(nil),
	CustomizationSpecManager:    (*types.ManagedObjectReference)(nil),
	CustomFieldsManager:         (*types.ManagedObjectReference)(nil),
	AccountManager:              &types.ManagedObjectReference{Type: "HostLocalAccountManager", Value: "ha-localacctmgr"},
	DiagnosticManager:           &types.ManagedObjectReference{Type: "DiagnosticManager", Value: "ha-diagnosticmgr"},
	LicenseManager:              &types.ManagedObjectReference{Type: "LicenseManager", Value: "ha-license-manager"},
	SearchIndex:                 &types.ManagedObjectReference{Type: "SearchIndex", Value: "ha-searchindex"},
	FileManager:                 &types.ManagedObjectReference{Type: "FileManager", Value: "ha-nfc-file-manager"},
	DatastoreNamespaceManager:   &types.ManagedObjectReference{Type: "DatastoreNamespaceManager", Value: "ha-datastore-namespace-manager"},
	VirtualDiskManager:          &types.ManagedObjectReference{Type: "VirtualDiskManager", Value: "ha-vdiskmanager"},
	VirtualizationManager:       (*types.ManagedObjectReference)(nil),
	SnmpSystem:                  (*types.ManagedObjectReference)(nil),
	VmProvisioningChecker:       (*types.ManagedObjectReference)(nil),
	VmCompatibilityChecker:      (*types.ManagedObjectReference)(nil),
	OvfManager:                  &types.ManagedObjectReference{Type: "OvfManager", Value: "ha-ovf-manager"},
	IpPoolManager:               (*types.ManagedObjectReference)(nil),
	DvSwitchManager:             &types.ManagedObjectReference{Type: "DistributedVirtualSwitchManager", Value: "ha-dvsmanager"},
	HostProfileManager:          (*types.ManagedObjectReference)(nil),
	ClusterProfileManager:       (*types.ManagedObjectReference)(nil),
	ComplianceManager:           (*types.ManagedObjectReference)(nil),
	LocalizationManager:         &types.ManagedObjectReference{Type: "LocalizationManager", Value: "ha-l10n-manager"},
	StorageResourceManager:      &types.ManagedObjectReference{Type: "StorageResourceManager", Value: "ha-storage-resource-manager"},
	GuestOperationsManager:      &types.ManagedObjectReference{Type: "GuestOperationsManager", Value: "ha-guest-operations-manager"},
	OverheadMemoryManager:       (*types.ManagedObjectReference)(nil),
	CertificateManager:          (*types.ManagedObjectReference)(nil),
	IoFilterManager:             (*types.ManagedObjectReference)(nil),
	VStorageObjectManager:       &types.ManagedObjectReference{Type: "HostVStorageObjectManager", Value: "ha-vstorage-object-manager"},
	HostSpecManager:             (*types.ManagedObjectReference)(nil),
	CryptoManager:               &types.ManagedObjectReference{Type: "CryptoManager", Value: "ha-crypto-manager"},
	HealthUpdateManager:         (*types.ManagedObjectReference)(nil),
	FailoverClusterConfigurator: (*types.ManagedObjectReference)(nil),
	FailoverClusterManager:      (*types.ManagedObjectReference)(nil),
}

ServiceContent is the default template for the ServiceInstance content property. Capture method:

govc object.collect -s -dump - content
View Source
var Setting = []types.BaseOptionValue{

	&types.OptionValue{
		Key:   "Config.HostAgent.log.level",
		Value: "info",
	},
}

Setting is captured from ESX's HostSystem.configManager.advancedOption Capture method:

govc object.collect -s -dump $(govc object.collect -s HostSystem:ha-host configManager.advancedOption) setting
View Source
var VirtualDevice = []types.BaseVirtualDevice{
	&types.VirtualIDEController{
		VirtualController: types.VirtualController{
			VirtualDevice: types.VirtualDevice{
				DynamicData: types.DynamicData{},
				Key:         200,
				DeviceInfo: &types.Description{
					DynamicData: types.DynamicData{},
					Label:       "IDE 0",
					Summary:     "IDE 0",
				},
				Backing:       nil,
				Connectable:   (*types.VirtualDeviceConnectInfo)(nil),
				SlotInfo:      nil,
				ControllerKey: 0,
				UnitNumber:    (*int32)(nil),
			},
			BusNumber: 0,
			Device:    nil,
		},
	},
	&types.VirtualIDEController{
		VirtualController: types.VirtualController{
			VirtualDevice: types.VirtualDevice{
				DynamicData: types.DynamicData{},
				Key:         201,
				DeviceInfo: &types.Description{
					DynamicData: types.DynamicData{},
					Label:       "IDE 1",
					Summary:     "IDE 1",
				},
				Backing:       nil,
				Connectable:   (*types.VirtualDeviceConnectInfo)(nil),
				SlotInfo:      nil,
				ControllerKey: 0,
				UnitNumber:    (*int32)(nil),
			},
			BusNumber: 1,
			Device:    nil,
		},
	},
	&types.VirtualPS2Controller{
		VirtualController: types.VirtualController{
			VirtualDevice: types.VirtualDevice{
				DynamicData: types.DynamicData{},
				Key:         300,
				DeviceInfo: &types.Description{
					DynamicData: types.DynamicData{},
					Label:       "PS2 controller 0",
					Summary:     "PS2 controller 0",
				},
				Backing:       nil,
				Connectable:   (*types.VirtualDeviceConnectInfo)(nil),
				SlotInfo:      nil,
				ControllerKey: 0,
				UnitNumber:    (*int32)(nil),
			},
			BusNumber: 0,
			Device:    []int32{600, 700},
		},
	},
	&types.VirtualPCIController{
		VirtualController: types.VirtualController{
			VirtualDevice: types.VirtualDevice{
				DynamicData: types.DynamicData{},
				Key:         100,
				DeviceInfo: &types.Description{
					DynamicData: types.DynamicData{},
					Label:       "PCI controller 0",
					Summary:     "PCI controller 0",
				},
				Backing:       nil,
				Connectable:   (*types.VirtualDeviceConnectInfo)(nil),
				SlotInfo:      nil,
				ControllerKey: 0,
				UnitNumber:    (*int32)(nil),
			},
			BusNumber: 0,
			Device:    []int32{500, 12000},
		},
	},
	&types.VirtualSIOController{
		VirtualController: types.VirtualController{
			VirtualDevice: types.VirtualDevice{
				DynamicData: types.DynamicData{},
				Key:         400,
				DeviceInfo: &types.Description{
					DynamicData: types.DynamicData{},
					Label:       "SIO controller 0",
					Summary:     "SIO controller 0",
				},
				Backing:       nil,
				Connectable:   (*types.VirtualDeviceConnectInfo)(nil),
				SlotInfo:      nil,
				ControllerKey: 0,
				UnitNumber:    (*int32)(nil),
			},
			BusNumber: 0,
			Device:    nil,
		},
	},
	&types.VirtualKeyboard{
		VirtualDevice: types.VirtualDevice{
			DynamicData: types.DynamicData{},
			Key:         600,
			DeviceInfo: &types.Description{
				DynamicData: types.DynamicData{},
				Label:       "Keyboard ",
				Summary:     "Keyboard",
			},
			Backing:       nil,
			Connectable:   (*types.VirtualDeviceConnectInfo)(nil),
			SlotInfo:      nil,
			ControllerKey: 300,
			UnitNumber:    types.NewInt32(0),
		},
	},
	&types.VirtualPointingDevice{
		VirtualDevice: types.VirtualDevice{
			DynamicData: types.DynamicData{},
			Key:         700,
			DeviceInfo: &types.Description{
				DynamicData: types.DynamicData{},
				Label:       "Pointing device",
				Summary:     "Pointing device; Device",
			},
			Backing: &types.VirtualPointingDeviceDeviceBackingInfo{
				VirtualDeviceDeviceBackingInfo: types.VirtualDeviceDeviceBackingInfo{
					VirtualDeviceBackingInfo: types.VirtualDeviceBackingInfo{},
					DeviceName:               "",
					UseAutoDetect:            types.NewBool(false),
				},
				HostPointingDevice: "autodetect",
			},
			Connectable:   (*types.VirtualDeviceConnectInfo)(nil),
			SlotInfo:      nil,
			ControllerKey: 300,
			UnitNumber:    types.NewInt32(1),
		},
	},
	&types.VirtualMachineVideoCard{
		VirtualDevice: types.VirtualDevice{
			DynamicData: types.DynamicData{},
			Key:         500,
			DeviceInfo: &types.Description{
				DynamicData: types.DynamicData{},
				Label:       "Video card ",
				Summary:     "Video card",
			},
			Backing:       nil,
			Connectable:   (*types.VirtualDeviceConnectInfo)(nil),
			SlotInfo:      nil,
			ControllerKey: 100,
			UnitNumber:    types.NewInt32(0),
		},
		VideoRamSizeInKB:       4096,
		NumDisplays:            1,
		UseAutoDetect:          types.NewBool(false),
		Enable3DSupport:        types.NewBool(false),
		Use3dRenderer:          "automatic",
		GraphicsMemorySizeInKB: 262144,
	},
	&types.VirtualMachineVMCIDevice{
		VirtualDevice: types.VirtualDevice{
			DynamicData: types.DynamicData{},
			Key:         12000,
			DeviceInfo: &types.Description{
				DynamicData: types.DynamicData{},
				Label:       "VMCI device",
				Summary:     "Device on the virtual machine PCI bus that provides support for the virtual machine communication interface",
			},
			Backing:       nil,
			Connectable:   (*types.VirtualDeviceConnectInfo)(nil),
			SlotInfo:      nil,
			ControllerKey: 100,
			UnitNumber:    types.NewInt32(17),
		},
		Id:                             -1,
		AllowUnrestrictedCommunication: types.NewBool(false),
		FilterEnable:                   types.NewBool(true),
		FilterInfo:                     (*types.VirtualMachineVMCIDeviceFilterInfo)(nil),
	},
}

VirtualDevice is the default set of VirtualDevice types created for a VirtualMachine Capture method:

govc vm.create foo
govc object.collect -s -dump vm/foo config.hardware.device

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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