<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic finding and using Object Property in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2966583#M111785</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;often, I face the same problem:&lt;/P&gt;&lt;P&gt;I have a Data Object type or Property an dont know, where to find it, to bring it on screen/report.&lt;/P&gt;&lt;P&gt;I look it up on the API website, find it but dont know how to retrieve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: &lt;A href="https://developer.vmware.com/apis/1192/vsphere" target="_blank" rel="noopener"&gt;https://developer.vmware.com/apis/1192/vsphere&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I go to API website, choose "all properties" and search for "TotalSlots". That gives me a complex result:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Data Object - ClusterDasFailoverLevelAdvancedRuntimeInfo(vim.cluster.DasFailoverLevelAdvancedRuntimeInfo)&lt;/LI&gt;&lt;LI&gt;Extends: ClusterDasAdvancedRuntimeInfo&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Properties inherited from ClusterDasAdvancedRuntimeInfo&lt;BR /&gt;dasHostInfo, heartbeatDatastoreInfo, vmcpSupported&lt;/LI&gt;&lt;/UL&gt;&lt;P data-unlink="true"&gt;Now, what I try to do is, searching with powercli for that properties... Often I cant find them, because the sturcture is too complex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So at this point, what should I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 11:28:10 GMT</pubDate>
    <dc:creator>ChrisROI</dc:creator>
    <dc:date>2023-05-03T11:28:10Z</dc:date>
    <item>
      <title>finding and using Object Property</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2966583#M111785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;often, I face the same problem:&lt;/P&gt;&lt;P&gt;I have a Data Object type or Property an dont know, where to find it, to bring it on screen/report.&lt;/P&gt;&lt;P&gt;I look it up on the API website, find it but dont know how to retrieve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: &lt;A href="https://developer.vmware.com/apis/1192/vsphere" target="_blank" rel="noopener"&gt;https://developer.vmware.com/apis/1192/vsphere&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I go to API website, choose "all properties" and search for "TotalSlots". That gives me a complex result:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Data Object - ClusterDasFailoverLevelAdvancedRuntimeInfo(vim.cluster.DasFailoverLevelAdvancedRuntimeInfo)&lt;/LI&gt;&lt;LI&gt;Extends: ClusterDasAdvancedRuntimeInfo&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Properties inherited from ClusterDasAdvancedRuntimeInfo&lt;BR /&gt;dasHostInfo, heartbeatDatastoreInfo, vmcpSupported&lt;/LI&gt;&lt;/UL&gt;&lt;P data-unlink="true"&gt;Now, what I try to do is, searching with powercli for that properties... Often I cant find them, because the sturcture is too complex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So at this point, what should I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 11:28:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2966583#M111785</guid>
      <dc:creator>ChrisROI</dc:creator>
      <dc:date>2023-05-03T11:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: finding and using Object Property</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2966593#M111787</link>
      <description>&lt;P&gt;You could recurse through the object, i.e. dig deeper when the property is not a basic type.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:42:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2966593#M111787</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-05-03T12:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: finding and using Object Property</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2966600#M111790</link>
      <description>&lt;P&gt;Hi Luc,&lt;/P&gt;&lt;P&gt;what do you mean by dig deeper?&lt;/P&gt;&lt;P&gt;What is the best way to dig deeper? I think i missed the correct method to do this.&lt;/P&gt;&lt;P&gt;Should i use some special editor, that provides some lists about the properties automatically (if there is one, currently using PS ISE)? Or should I search via powershell? Should I browse the api website? I like the website, but in some cases, I cant find the correct way... For example in: &lt;A href="https://developer.vmware.com/apis/1192/vsphere" target="_blank"&gt;https://developer.vmware.com/apis/1192/vsphere&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"Properties inherited from: ClusterDasAdvancedRuntimeInfo&lt;BR /&gt;dasHostInfo, heartbeatDatastoreInfo, vmcpSupported"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$Cluster = Get-Cluster&lt;/P&gt;&lt;P&gt;$Cluster.ExtensionData.RetrieveDasAdvancedRuntimeInfo() | select *&lt;/P&gt;&lt;P&gt;There is no information like shown on the website:&lt;/P&gt;&lt;P&gt;"slotInfo", "hostSlots" and so on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this information:&lt;/P&gt;&lt;P&gt;"vim.cluster.DasFailoverLevelAdvancedRuntimeInfo"&lt;/P&gt;&lt;P&gt;what can I do with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 13:00:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2966600#M111790</guid>
      <dc:creator>ChrisROI</dc:creator>
      <dc:date>2023-05-03T13:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: finding and using Object Property</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2966613#M111793</link>
      <description>&lt;P&gt;As I said, when the type of a property is not a basic type (int, string, ...) you have to click on the type to descend further in the nested objects.&lt;BR /&gt;&lt;BR /&gt;The same when the&amp;nbsp;object has an Extended By entry, click on that type.&lt;BR /&gt;In your example, you will find the additional properties (slotinfo, ...) in there (in this case&amp;nbsp;&lt;A href="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/97e6db01-d441-472e-ad53-b48c2bb0e1e4/45347fb1-052d-44b7-b3e9-cbefc34488e3/SDK/vsphere-ws/docs/ReferenceGuide/vim.cluster.DasFailoverLevelAdvancedRuntimeInfo.html" target="_blank" rel="noopener"&gt;ClusterDasFailoverLevelAdvancedRuntimeInfo&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;To do this programmatically is matter of searching &lt;BR /&gt;- all the DLLs to find the types/classes they define&lt;/P&gt;
&lt;P&gt;- check the members of each type/class&lt;/P&gt;
&lt;P&gt;- if a member is not a basic type, use the typename to dive deeper into the nested properties&lt;BR /&gt;&lt;BR /&gt;I did have some code to do that, let me see if I can dig it up&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 13:40:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2966613#M111793</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-05-03T13:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: finding and using Object Property</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2968020#M111933</link>
      <description>&lt;P&gt;Thanks LucD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 12:49:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2968020#M111933</guid>
      <dc:creator>ChrisROI</dc:creator>
      <dc:date>2023-05-11T12:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: finding and using Object Property</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2968909#M111986</link>
      <description>&lt;P&gt;Hi Luc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with reference to your last post:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"I did have some code to do that, let me see if I can dig it up"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have you found that script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings and thank you in advance&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 10:55:18 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2968909#M111986</guid>
      <dc:creator>ChrisROI</dc:creator>
      <dc:date>2023-05-17T10:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: finding and using Object Property</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2968911#M111987</link>
      <description>&lt;P&gt;I'm afraid not (yet), was busy with other stuff.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 11:06:03 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/finding-and-using-Object-Property/m-p/2968911#M111987</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-05-17T11:06:03Z</dc:date>
    </item>
  </channel>
</rss>

