0 Replies Latest reply on Apr 3, 2017 12:26 AM by Sany_1973

    HostProfile Policy Details

    Sany_1973 Enthusiast

      How can we get Policy ID and PolicyOption from the HostProfile.

      Can we Use queryPolicyMetadata

      Do we have any examples to get the details of 'PortgroupCreatePolicy'

       

       

       

      PowerCLI C:\> $pol | gm

       

         TypeName: VMware.Vim.ProfilePolicyMetadata

       

      Name                           MemberType                Definition

      ----                                ----------                         ----------

      Equals                         Method     bool Equals(System.Object obj)

      GetHashCode             Method     int GetHashCode()

      GetType                      Method     type GetType()

      ToString                      Method     string ToString()

      DynamicProperty       Property   VMware.Vim.DynamicProperty[] DynamicProperty {get;set;}

      DynamicType             Property   System.String DynamicType {get;set;}

      Id                                Property   VMware.Vim.ExtendedElementDescription Id {get;set;}

      PossibleOption           Property   VMware.Vim.ProfilePolicyOptionMetadata[] PossibleOption {get;set;}

       

       

      How to get the Value of ID and PossibleOptions

       

      Thanks,

      Sany.