Horizon View API – RDSServer

This post was originally published on this site

Hi All I am new to Horizon API and finding it difficult to get information. Essentially I want to  query RDSServerSetting – as per View API – VMware API Explorer – VMware {code}

Data Object Properties

Properties

NAME TYPE DESCRIPTION
sessionSettings RDSServerSessionSettings

 

RDSServer session settings

agentMaxSessionsData RDSServerAgentMaxSessionsData

 

Max number of sessions as seen by the agent

  • This property cannot be updated.
enabled xsd:boolean Indicates if RDS server is enabled

  • This property has a default value of true.

My goal is disabling RDS Server when disk space reaches over 95%  – any help appreciated

So far I can run following $services1.RDSServer | gm    and that  will show me following but from there I have not been able to proceed

 

 

TypeName: VMware.Hv.RDSServer

 

 

Name                      MemberType Definition                                                                               

—-                      ———- ———-                                                                               

Equals                    Method     bool Equals(System.Object obj)                                                           

GetHashCode               Method     int GetHashCode()                                                                        

GetType                   Method     type GetType()                                                                           

RDSServer_Delete          Method     void RDSServer_Delete(VMware.Hv.RDSServerId id)                                          

RDSServer_Get             Method     VMware.Hv.RDSServerInfo RDSServer_Get(VMware.Hv.RDSServerId id)                          

RDSServer_GetSummaryView  Method     VMware.Hv.RDSServerSummaryView RDSServer_GetSummaryView(VMware.Hv.RDSServerId id)        

RDSServer_Recover         Method     void RDSServer_Recover(VMware.Hv.RDSServerId id)                                         

RDSServer_RecoverMachines Method     void RDSServer_RecoverMachines(VMware.Hv.RDSServerId[] ids)                              

RDSServer_Register        Method     VMware.Hv.RDSServerRegisterResult RDSServer_Register(VMware.Hv.RDSServerRegisterSpec spec)

RDSServer_Update          Method     void RDSServer_Update(VMware.Hv.RDSServerId id, VMware.Hv.MapEntry[] updates)            

ToString                  Method     string ToString()                                                                        

Client                    Property   VMware.Hv.HviClient Client {get;}                                                        

MoRef                     Property   VMware.Hv.ManagedObjectReference MoRef {get;}                                            

Data Object Properties

Properties

NAME TYPE DESCRIPTION
sessionSettings RDSServerSessionSettings

 

RDSServer session settings

agentMaxSessionsData RDSServerAgentMaxSessionsData

 

Max number of sessions as seen by the agent

  • This property cannot be updated.
enabled xsd:boolean Indicates if RDS server is enabled

  • This property has a default value of true.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.