Host System Query Host Connection Info

Host System Query Host Connection Info

Connection-oriented information about a host.

Required privileges: System.Read

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/HostSystem/{moId}/QueryHostConnectionInfo
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case HostSystem/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns HostConnectInfo of type(s) application/json
This response body class contains all of the following: DataObject
{
    "_typeName": "string",
    "serverIp": "string",
    "inDasCluster": false,
    "host": {
        "host": {
            "type": "string",
            "value": "string"
        },
        "hardware": {
            "vendor": "string",
            "model": "string",
            "uuid": "string",
            "otherIdentifyingInfo": [
                {
                    "_typeName": "string",
                    "identifierValue": "string",
                    "identifierType": {
                        "key": "string"
                    }
                }
            ],
            "memorySize": 0,
            "cpuModel": "string",
            "cpuMhz": 0,
            "numCpuPkgs": 0,
            "numCpuCores": 0,
            "numCpuThreads": 0,
            "numNics": 0,
            "numHBAs": 0
        },
        "runtime": {
            "connectionState": "string",
            "powerState": "string",
            "standbyMode": "string",
            "inMaintenanceMode": false,
            "inQuarantineMode": false,
            "bootTime": "string",
            "healthSystemRuntime": {
                "systemHealthInfo": {
                    "numericSensorInfo": [
                        {
                            "_typeName": "string",
                            "name": "string",
                            "healthState": {
                                "key": "string"
                            },
                            "currentReading": 0,
                            "unitModifier": 0,
                            "baseUnits": "string",
                            "rateUnits": "string",
                            "sensorType": "string",
                            "id": "string",
                            "sensorNumber": 0,
                            "timeStamp": "string",
                            "fru": {
                                "type": "string",
                                "partName": "string",
                                "partNumber": "string",
                                "manufacturer": "string",
                                "serialNumber": "string",
                                "mfgTimeStamp": "string"
                            }
                        }
                    ]
                },
                "hardwareStatusInfo": {
                    "memoryStatusInfo": [
                        {
                            "_typeName": "string",
                            "name": "string",
                            "status": {
                                "key": "string"
                            }
                        }
                    ],
                    "cpuStatusInfo": [
                        {
                            "_typeName": "string",
                            "name": "string",
                            "status": {
                                "key": "string"
                            }
                        }
                    ],
                    "storageStatusInfo": [
                        {
                            "_typeName": "string",
                            "name": "string",
                            "status": {
                                "key": "string"
                            },
                            "operationalInfo": [
                                {
                                    "_typeName": "string",
                                    "property": "string",
                                    "value": "string"
                                }
                            ]
                        }
                    ],
                    "dpuStatusInfo": [
                        {
                            "_typeName": "string",
                            "name": "string",
                            "status": {
                                "key": "string"
                            },
                            "dpuId": "string",
                            "fru": {
                                "type": "string",
                                "partName": "string",
                                "partNumber": "string",
                                "manufacturer": "string",
                                "serialNumber": "string",
                                "mfgTimeStamp": "string"
                            },
                            "sensors": [
                                {
                                    "_typeName": "string",
                                    "sensorId": "string",
                                    "healthState": {
                                        "key": "string"
                                    },
                                    "reading": "string",
                                    "units": "string",
                                    "timeStamp": "string"
                                }
                            ]
                        }
                    ]
                }
            },
            "dasHostState": {
                "state": "string",
                "stateReporter": {
                    "type": "string",
                    "value": "string"
                }
            },
            "tpmPcrValues": [
                {
                    "_typeName": "string",
                    "digestMethod": "string",
                    "digestValue": [
                        0
                    ],
                    "objectName": "string",
                    "pcrNumber": 0
                }
            ],
            "vsanRuntimeInfo": {
                "membershipList": [
                    {
                        "_typeName": "string",
                        "nodeUuid": "string",
                        "hostname": "string"
                    }
                ],
                "diskIssues": [
                    {
                        "_typeName": "string",
                        "diskId": "string",
                        "issue": "string"
                    }
                ],
                "accessGenNo": 0
            },
            "networkRuntimeInfo": {
                "netStackInstanceRuntimeInfo": [
                    {
                        "_typeName": "string",
                        "netStackInstanceKey": "string",
                        "state": "string",
                        "vmknicKeys": [
                            "string"
                        ],
                        "maxNumberOfConnections": 0,
                        "currentIpV6Enabled": false
                    }
                ],
                "networkResourceRuntime": {
                    "pnicResourceInfo": [
                        {
                            "_typeName": "string",
                            "pnicDevice": "string",
                            "availableBandwidthForVMTraffic": 0,
                            "unusedBandwidthForVMTraffic": 0,
                            "placedVirtualNics": [
                                {
                                    "_typeName": "string",
                                    "vm": {
                                        "type": "string",
                                        "value": "string"
                                    },
                                    "vnicKey": "string",
                                    "reservation": 0
                                }
                            ]
                        }
                    ]
                }
            },
            "vFlashResourceRuntimeInfo": {
                "usage": 0,
                "capacity": 0,
                "accessible": false,
                "capacityForVmCache": 0,
                "freeForVmCache": 0
            },
            "hostMaxVirtualDiskCapacity": 0,
            "cryptoState": "string",
            "cryptoKeyId": {
                "keyId": "string",
                "providerId": {
                    "id": "string"
                }
            },
            "statelessNvdsMigrationReady": "string",
            "stateEncryption": {
                "protectionMode": "string",
                "requireSecureBoot": false,
                "requireExecInstalledOnly": false
            }
        },
        "config": {
            "name": "string",
            "port": 0,
            "sslThumbprint": "string",
            "product": {
                "name": "string",
                "fullName": "string",
                "vendor": "string",
                "version": "string",
                "patchLevel": "string",
                "build": "string",
                "localeVersion": "string",
                "localeBuild": "string",
                "osType": "string",
                "productLineId": "string",
                "apiType": "string",
                "apiVersion": "string",
                "instanceUuid": "string",
                "licenseProductName": "string",
                "licenseProductVersion": "string"
            },
            "vmotionEnabled": false,
            "faultToleranceEnabled": false,
            "featureVersion": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": "string"
                }
            ],
            "agentVmDatastore": {
                "type": "string",
                "value": "string"
            },
            "agentVmNetwork": {
                "type": "string",
                "value": "string"
            }
        },
        "quickStats": {
            "overallCpuUsage": 0,
            "overallMemoryUsage": 0,
            "distributedCpuFairness": 0,
            "distributedMemoryFairness": 0,
            "availablePMemCapacity": 0,
            "uptime": 0
        },
        "overallStatus": "string",
        "rebootRequired": false,
        "customValue": [
            {
                "_typeName": "string",
                "key": 0
            }
        ],
        "managementServerIp": "string",
        "maxEVCModeKey": "string",
        "currentEVCModeKey": "string",
        "currentEVCGraphicsModeKey": "string",
        "gateway": {
            "gatewayType": "string",
            "gatewayId": "string"
        },
        "tpmAttestation": {
            "time": "string",
            "status": "string",
            "message": {
                "key": "string",
                "arg": [
                    {
                        "_typeName": "string",
                        "key": "string",
                        "value": {
                            "_typeName": "string"
                        }
                    }
                ],
                "message": "string"
            }
        },
        "trustAuthorityAttestationInfos": [
            {
                "_typeName": "string",
                "attestationStatus": "string",
                "serviceId": "string",
                "attestedAt": "string",
                "attestedUntil": "string",
                "messages": [
                    {
                        "_typeName": "string",
                        "key": "string",
                        "arg": [
                            {
                                "_typeName": "string",
                                "key": "string",
                                "value": {
                                    "_typeName": "string"
                                }
                            }
                        ],
                        "message": "string"
                    }
                ]
            }
        ]
    },
    "vm": [
        {
            "_typeName": "string",
            "vm": {
                "type": "string",
                "value": "string"
            },
            "runtime": {
                "device": [
                    {
                        "_typeName": "string",
                        "runtimeState": {
                            "_typeName": "string"
                        },
                        "key": 0
                    }
                ],
                "host": {
                    "type": "string",
                    "value": "string"
                },
                "connectionState": "string",
                "powerState": "string",
                "vmFailoverInProgress": false,
                "faultToleranceState": "string",
                "dasVmProtection": {
                    "dasProtected": false
                },
                "toolsInstallerMounted": false,
                "suspendTime": "string",
                "bootTime": "string",
                "suspendInterval": 0,
                "question": {
                    "id": "string",
                    "text": "string",
                    "choice": {
                        "choiceInfo": [
                            {
                                "_typeName": "string",
                                "label": "string",
                                "summary": "string",
                                "key": "string"
                            }
                        ],
                        "defaultIndex": 0
                    },
                    "message": [
                        {
                            "_typeName": "string",
                            "id": "string",
                            "argument": [
                                {
                                    "_typeName": "string"
                                }
                            ],
                            "text": "string"
                        }
                    ]
                },
                "memoryOverhead": 0,
                "maxCpuUsage": 0,
                "maxMemoryUsage": 0,
                "numMksConnections": 0,
                "recordReplayState": "string",
                "cleanPowerOff": false,
                "needSecondaryReason": "string",
                "onlineStandby": false,
                "minRequiredEVCModeKey": "string",
                "consolidationNeeded": false,
                "offlineFeatureRequirement": [
                    {
                        "_typeName": "string",
                        "key": "string",
                        "featureName": "string",
                        "value": "string"
                    }
                ],
                "featureRequirement": [
                    {
                        "_typeName": "string",
                        "key": "string",
                        "featureName": "string",
                        "value": "string"
                    }
                ],
                "featureMask": [
                    {
                        "_typeName": "string",
                        "key": "string",
                        "featureName": "string",
                        "value": "string"
                    }
                ],
                "vFlashCacheAllocation": 0,
                "paused": false,
                "snapshotInBackground": false,
                "quiescedForkParent": false,
                "instantCloneFrozen": false,
                "cryptoState": "string",
                "suspendedToMemory": false,
                "opNotificationTimeout": 0,
                "iommuActive": false
            },
            "guest": {
                "guestId": "string",
                "guestFullName": "string",
                "toolsStatus": "string",
                "toolsVersionStatus": "string",
                "toolsVersionStatus2": "string",
                "toolsRunningStatus": "string",
                "hostName": "string",
                "ipAddress": "string",
                "hwVersion": "string"
            },
            "config": {
                "name": "string",
                "template": false,
                "vmPathName": "string",
                "memorySizeMB": 0,
                "cpuReservation": 0,
                "memoryReservation": 0,
                "numCpu": 0,
                "numEthernetCards": 0,
                "numVirtualDisks": 0,
                "uuid": "string",
                "instanceUuid": "string",
                "guestId": "string",
                "guestFullName": "string",
                "annotation": "string",
                "product": {
                    "key": 0,
                    "classId": "string",
                    "instanceId": "string",
                    "name": "string",
                    "vendor": "string",
                    "version": "string",
                    "fullVersion": "string",
                    "vendorUrl": "string",
                    "productUrl": "string",
                    "appUrl": "string"
                },
                "installBootRequired": false,
                "ftInfo": {
                    "role": 0,
                    "instanceUuids": [
                        "string"
                    ],
                    "configPaths": [
                        "string"
                    ],
                    "orphaned": false
                },
                "managedBy": {
                    "extensionKey": "string",
                    "type": "string"
                },
                "tpmPresent": false,
                "numVmiopBackings": 0,
                "hwVersion": "string"
            },
            "storage": {
                "committed": 0,
                "uncommitted": 0,
                "unshared": 0,
                "timestamp": "string"
            },
            "quickStats": {
                "overallCpuUsage": 0,
                "overallCpuDemand": 0,
                "overallCpuReadiness": 0,
                "guestMemoryUsage": 0,
                "hostMemoryUsage": 0,
                "guestHeartbeatStatus": "string",
                "distributedCpuEntitlement": 0,
                "distributedMemoryEntitlement": 0,
                "staticCpuEntitlement": 0,
                "staticMemoryEntitlement": 0,
                "grantedMemory": 0,
                "privateMemory": 0,
                "sharedMemory": 0,
                "swappedMemory": 0,
                "balloonedMemory": 0,
                "consumedOverheadMemory": 0,
                "ftLogBandwidth": 0,
                "ftSecondaryLatency": 0,
                "ftLatencyStatus": "string",
                "compressedMemory": 0,
                "uptimeSeconds": 0,
                "ssdSwappedMemory": 0,
                "activeMemory": 0,
                "memoryTierStats": [
                    {
                        "_typeName": "string",
                        "memoryTierType": "string",
                        "readBandwidth": 0
                    }
                ]
            },
            "overallStatus": "string",
            "customValue": [
                {
                    "_typeName": "string",
                    "key": 0
                }
            ]
        }
    ],
    "vimAccountNameRequired": false,
    "clusterSupported": false,
    "network": [
        {
            "_typeName": "string",
            "summary": {
                "network": {
                    "type": "string",
                    "value": "string"
                },
                "name": "string",
                "accessible": false,
                "ipPoolName": "string",
                "ipPoolId": 0
            }
        }
    ],
    "datastore": [
        {
            "_typeName": "string",
            "summary": {
                "datastore": {
                    "type": "string",
                    "value": "string"
                },
                "name": "string",
                "url": "string",
                "capacity": 0,
                "freeSpace": 0,
                "uncommitted": 0,
                "accessible": false,
                "multipleHostAccess": false,
                "type": "string",
                "maintenanceMode": "string"
            }
        }
    ],
    "license": {
        "license": {
            "licenseKey": "string",
            "editionKey": "string",
            "name": "string",
            "total": 0,
            "used": 0,
            "costUnit": "string",
            "properties": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "labels": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": "string"
                }
            ]
        },
        "evaluation": {
            "properties": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ]
        },
        "resource": {
            "resource": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ]
        }
    },
    "capability": {
        "recursiveResourcePoolsSupported": false,
        "cpuMemoryResourceConfigurationSupported": false,
        "rebootSupported": false,
        "shutdownSupported": false,
        "vmotionSupported": false,
        "standbySupported": false,
        "ipmiSupported": false,
        "maxSupportedVMs": 0,
        "maxRunningVMs": 0,
        "maxSupportedVcpus": 0,
        "maxRegisteredVMs": 0,
        "datastorePrincipalSupported": false,
        "sanSupported": false,
        "nfsSupported": false,
        "iscsiSupported": false,
        "vlanTaggingSupported": false,
        "nicTeamingSupported": false,
        "highGuestMemSupported": false,
        "maintenanceModeSupported": false,
        "suspendedRelocateSupported": false,
        "restrictedSnapshotRelocateSupported": false,
        "perVmSwapFiles": false,
        "localSwapDatastoreSupported": false,
        "unsharedSwapVMotionSupported": false,
        "backgroundSnapshotsSupported": false,
        "preAssignedPCIUnitNumbersSupported": false,
        "screenshotSupported": false,
        "scaledScreenshotSupported": false,
        "storageVMotionSupported": false,
        "vmotionWithStorageVMotionSupported": false,
        "vmotionAcrossNetworkSupported": false,
        "maxNumDisksSVMotion": 0,
        "maxVirtualDiskDescVersionSupported": 0,
        "hbrNicSelectionSupported": false,
        "vrNfcNicSelectionSupported": false,
        "recordReplaySupported": false,
        "ftSupported": false,
        "replayUnsupportedReason": "string",
        "replayCompatibilityIssues": [
            "string"
        ],
        "smpFtSupported": false,
        "ftCompatibilityIssues": [
            "string"
        ],
        "smpFtCompatibilityIssues": [
            "string"
        ],
        "maxVcpusPerFtVm": 0,
        "loginBySSLThumbprintSupported": false,
        "cloneFromSnapshotSupported": false,
        "deltaDiskBackingsSupported": false,
        "perVMNetworkTrafficShapingSupported": false,
        "tpmSupported": false,
        "tpmVersion": "string",
        "txtEnabled": false,
        "supportedCpuFeature": [
            {
                "_typeName": "string",
                "level": 0,
                "vendor": "string",
                "eax": "string",
                "ebx": "string",
                "ecx": "string",
                "edx": "string"
            }
        ],
        "virtualExecUsageSupported": false,
        "storageIORMSupported": false,
        "vmDirectPathGen2Supported": false,
        "vmDirectPathGen2UnsupportedReason": [
            "string"
        ],
        "vmDirectPathGen2UnsupportedReasonExtended": "string",
        "supportedVmfsMajorVersion": [
            0
        ],
        "vStorageCapable": false,
        "snapshotRelayoutSupported": false,
        "firewallIpRulesSupported": false,
        "servicePackageInfoSupported": false,
        "maxHostRunningVms": 0,
        "maxHostSupportedVcpus": 0,
        "vmfsDatastoreMountCapable": false,
        "eightPlusHostVmfsSharedAccessSupported": false,
        "nestedHVSupported": false,
        "vPMCSupported": false,
        "interVMCommunicationThroughVMCISupported": false,
        "scheduledHardwareUpgradeSupported": false,
        "featureCapabilitiesSupported": false,
        "latencySensitivitySupported": false,
        "storagePolicySupported": false,
        "accel3dSupported": false,
        "reliableMemoryAware": false,
        "multipleNetworkStackInstanceSupported": false,
        "messageBusProxySupported": false,
        "vsanSupported": false,
        "vFlashSupported": false,
        "hostAccessManagerSupported": false,
        "provisioningNicSelectionSupported": false,
        "nfs41Supported": false,
        "nfs41Krb5iSupported": false,
        "turnDiskLocatorLedSupported": false,
        "virtualVolumeDatastoreSupported": false,
        "markAsSsdSupported": false,
        "markAsLocalSupported": false,
        "smartCardAuthenticationSupported": false,
        "pMemSupported": false,
        "pMemSnapshotSupported": false,
        "cryptoSupported": false,
        "oneKVolumeAPIsSupported": false,
        "gatewayOnNicSupported": false,
        "upitSupported": false,
        "cpuHwMmuSupported": false,
        "encryptedVMotionSupported": false,
        "encryptionChangeOnAddRemoveSupported": false,
        "encryptionHotOperationSupported": false,
        "encryptionWithSnapshotsSupported": false,
        "encryptionFaultToleranceSupported": false,
        "encryptionMemorySaveSupported": false,
        "encryptionRDMSupported": false,
        "encryptionVFlashSupported": false,
        "encryptionCBRCSupported": false,
        "encryptionHBRSupported": false,
        "ftEfiSupported": false,
        "unmapMethodSupported": "string",
        "maxMemMBPerFtVm": 0,
        "virtualMmuUsageIgnored": false,
        "virtualExecUsageIgnored": false,
        "vmCreateDateSupported": false,
        "vmfs3EOLSupported": false,
        "ftVmcpSupported": false,
        "quickBootSupported": false,
        "encryptedFtSupported": false,
        "assignableHardwareSupported": false,
        "suspendToMemorySupported": false,
        "useFeatureReqsForOldHWv": false,
        "markPerenniallyReservedSupported": false,
        "hppPspSupported": false,
        "deviceRebindWithoutRebootSupported": false,
        "storagePolicyChangeSupported": false,
        "precisionTimeProtocolSupported": false,
        "remoteDeviceVMotionSupported": false,
        "maxSupportedVmMemory": 0,
        "ahDeviceHintsSupported": false,
        "nvmeOverTcpSupported": false,
        "nvmeStorageFabricServicesSupported": false,
        "assignHwPciConfigSupported": false,
        "timeConfigSupported": false,
        "nvmeBatchOperationsSupported": false,
        "pMemFailoverSupported": false,
        "hostConfigEncryptionSupported": false,
        "maxSupportedSimultaneousThreads": 0,
        "ptpConfigSupported": false,
        "maxSupportedPtpPorts": 0,
        "sgxRegistrationSupported": false,
        "pMemIndependentSnapshotSupported": false,
        "iommuSLDirtyCapable": false,
        "vmknicBindingSupported": false,
        "ultralowFixedUnmapSupported": false,
        "nvmeVvolSupported": false,
        "fptHotplugSupported": false,
        "mconnectSupported": false,
        "vsanNicMgmtSupported": false,
        "vvolNQNSupported": false
    }
}
string
serverIp
Optional

The IP address of the VirtualCenter already managing this host, if any.

boolean
inDasCluster
Optional

If the host is already being managed by a vCenter Server, this property reports true if the host is also part of a vSphere HA enabled cluster.

If this is the case, remove or disconnect the host from this cluster before adding it to another vCenter Server.

host
Required

This data object type encapsulates a typical set of host information that is useful for list views and summary pages.

VirtualCenter can retrieve this information very efficiently, even for a large set of hosts.

vm
Optional

The list of virtual machines on the host.

boolean
vimAccountNameRequired
Optional

Whether or not the host requires a vimAccountName and password to be set in the ConnectSpec.

This is normally only required for VMware Server hosts.

boolean
clusterSupported
Optional

Whether or not the host supports clustering capabilities such as HA or DRS and therefore can be added to a cluster.

If false, the host must be added as a standalone host.

network
Optional

The list of network information for networks configured on this host.

datastore
Optional

The list of datastores on the host.

license
Optional

This data object type describes license information stored on the host.

capability
Optional

Specifies the capabilities of the particular host.

This set of capabilities is referenced in other parts of the API specification to indicate under what circumstances an API will throw a NotSupported fault.


Host System Operations
POST
Host System Acquire Cim Services Ticket
POST
Host System Configure Crypto Key
POST
Host System Destroy Task
POST
Host System Disconnect Host Task
POST
Host System Enable Crypto
POST
Host System Enter Lockdown Mode
POST
Host System Enter Maintenance Mode Task
POST
Host System Exit Lockdown Mode
POST
Host System Exit Maintenance Mode Task
GET
Host System Get Alarm Actions Enabled
GET
Host System Get Answer File Validation Result
GET
Host System Get Answer File Validation State
GET
Host System Get Available Field
GET
Host System Get Capability
GET
Host System Get Compliance Check Result
GET
Host System Get Compliance Check State
GET
Host System Get Config
GET
Host System Get Config Issue
GET
Host System Get Config Manager
GET
Host System Get Config Status
GET
Host System Get Custom Value
GET
Host System Get Datastore
GET
Host System Get Datastore Browser
GET
Host System Get Declared Alarm State
GET
Host System Get Disabled Method
GET
Host System Get Effective Role
GET
Host System Get Hardware
GET
Host System Get Licensable Resource
GET
Host System Get Name
GET
Host System Get Network
GET
Host System Get Overall Status
GET
Host System Get Parent
GET
Host System Get Permission
GET
Host System Get Precheck Remediation Result
GET
Host System Get Recent Task
GET
Host System Get Remediation Result
GET
Host System Get Remediation State
GET
Host System Get Runtime
GET
Host System Get Summary
GET
Host System Get System Resources
GET
Host System Get Tag
GET
Host System Get Triggered Alarm State
GET
Host System Get Value
GET
Host System Get Vm
POST
Host System Power Down Host To Stand By Task
POST
Host System Power Up Host From Stand By Task
POST
Host System Prepare Crypto
POST
Host System Query Host Connection Info
POST
Host System Query Memory Overhead
POST
Host System Query Memory Overhead Ex
POST
Host System Query Product Locker Location
POST
Host System Query Tpm Attestation Report
POST
Host System Reboot Host Task
POST
Host System Reconfigure Host For DAS Task
POST
Host System Reconnect Host Task
POST
Host System Reload
POST
Host System Rename Task
POST
Host System Retrieve Free Epc Memory
POST
Host System Retrieve Hardware Uptime
POST
Host System Set Custom Value
POST
Host System Shutdown Host Task
POST
Host System Update Flags
POST
Host System Update Ipmi
POST
Host System Update Product Locker Location Task
POST
Host System Update System Resources
POST
Host System Update System Swap Configuration