“PowerState”表达名称是“PowerState”,但我应该用的是“项目”的相应名称,称为“项目”名称?
此脚本显示vmname和powerstate(runned for prism central):
get-ntnxvm |选择@ {表达式= {$ _。vmname}; label =“vmname”},@ {表达式= {$ _。鲍斯特泰特};标签=“PowerState”}
最好的答案Timothygaray.
\n\nThese are all the properties that I see for a VM object:
\n
\n TypeName: Nutanix.Prism.DTO.Stats.VMDTO
\n
\nName MemberType Definition
\n---- ---------- ----------
\nEquals Method bool Equals(System.Object obj)
\nGetHashCode Method int GetHashCode()
\nGetType Method type GetType()
\nToString Method string ToString()
\nacropolisVm Property System.Nullable[bool] acropolisVm {get;set;}
\nalertSummary Property Nutanix.Prism.DTO.Alerts.AlertSummaryDTO alertSummary {get;set;}
\nclusterUuid Property string clusterUuid {get;set;}
\nconsistencyGroupName Property string consistencyGroupName {get;set;}
\ncontainerIds Property string[] containerIds {get;set;}
\ncontainerUuids Property string[] containerUuids {get;set;}
\ncontrolDomain Property System.Nullable[bool] controlDomain {get;set;}
\ncontrollerVm Property System.Nullable[bool] controllerVm {get;set;}
\ncpuReservedInHz Property System.Nullable[long] cpuReservedInHz {get;set;}
\ndescription Property string description {get;set;}
\ndiskCapacityInBytes Property System.Nullable[long] diskCapacityInBytes {get;set;}
\ndisplayable Property System.Nullable[bool] displayable {get;set;}
\nfingerPrintOnWrite Property string fingerPrintOnWrite {get;set;}
\ngpusInUse Property System.Nullable[bool] gpusInUse {get;set;}
\nguestOperatingSystem Property string guestOperatingSystem {get;set;}
\nhealthSummary Property Nutanix.Prism.DTO.Health.Check.HealthSummaryDTO healthSummary {get;set;}
\nhostId Property string hostId {get;set;}
\nhostName Property string hostName {get;set;}
\nhostUuid Property string hostUuid {get;set;}
\nhypervisorType Property string hypervisorType {get;set;}
\nipAddresses Property string[] ipAddresses {get;set;}
\nmemoryCapacityInBytes Property System.Nullable[long] memoryCapacityInBytes {get;set;}
\nmemoryReservedCapacityInBytes Property System.Nullable[long] memoryReservedCapacityInBytes {get;set;}
\nnonNdfsDetails Property string nonNdfsDetails {get;set;}
\nnumNetworkAdapters Property System.Nullable[long] numNetworkAdapters {get;set;}
\nnumVCpus Property System.Nullable[int] numVCpus {get;set;}
\nnutanixGuestTools Property Nutanix.Prism.DTO.Ngt.NutanixGuestToolsDTO nutanixGuestTools {get;set;}
\nnutanixVirtualDiskIds Property string[] nutanixVirtualDiskIds {get;set;}
\nnutanixVirtualDisks Property string[] nutanixVirtualDisks {get;set;}
\nnutanixVirtualDiskUuids Property string[] nutanixVirtualDiskUuids {get;set;}
\nonDiskDedup Property string onDiskDedup {get;set;}
\npowerState Property string powerState {get;set;}
\nprotectionDomainName Property string protectionDomainName {get;set;}
\nprotectionType Property string protectionType {get;set;}
\nrunningOnNdfs Property System.Nullable[bool] runningOnNdfs {get;set;}
\nstats Property System.Collections.Generic.Dictionary[string,string] stats {get;set;}
\nusageStats Property System.Collections.Generic.Dictionary[string,string] usageStats {get;set;}
\nuuid Property string uuid {get;set;}
\nvdiskFilePaths Property string[] vdiskFilePaths {get;set;}
\nvdiskNames Property string[] vdiskNames {get;set;}
\nvirtualNicIds Property string[] virtualNicIds {get;set;}
\nvirtualNicUuids Property string[] virtualNicUuids {get;set;}
\nvmId Property string vmId {get;set;}
\nvmName Property string vmName {get;set;}
\nvmType Property string vmType {get;set;}","className":"post__content__best_answer"}">