How to query vmware Vi to sort datastores freespaces?

Hello I really need an urgent help on that topic. I've tried to query vmware which suppose to get sort datastores freespaces and it names correponded names, but without any succes. I thought the query suppose to look like that:

 

propsType - Datastore

 

propsPathSet - info.name, sort-object.freesSpaceGB 

 

Didn't Work for me as I've said. Do you guys have any idea where I've been mistaken?


Tags:

Parents
  • There is a sample flow called "Get Freespace on Datastores" in the VMware Virtual Infrastructure and vSphere integration that shows you how to get freespace of a datastore.

     

    The "sort-object.freesSpaceGB" is not a valid property for the Datastore object.  Instead you'll want to specify "info.freespace".  That property will be the freespace in bytes that is available on the datastore.

     

    Dan.

Reply
  • There is a sample flow called "Get Freespace on Datastores" in the VMware Virtual Infrastructure and vSphere integration that shows you how to get freespace of a datastore.

     

    The "sort-object.freesSpaceGB" is not a valid property for the Datastore object.  Instead you'll want to specify "info.freespace".  That property will be the freespace in bytes that is available on the datastore.

     

    Dan.

Children
No Data