Running the Microsoft .NET C# Version of SimpleClient
The SimpleClient sample application connects to a vSphere host, lists the names and reference IDs of the managed objects in the inventory, and disconnects from the host.
Run the SimpleClient C# application
You can use the SimpleClient sample application to test your setup and connectivity.
Prerequisites To Run the SimpleClient C# Application
Verify that the following conditions exist:
To run the SimpleClient application
1
2
From the top-level directory of the SDK download, the directory is as follows:
%WS_SDK_HOME%\dotnet\cs\samples\SimpleClient\bin\Debug
3
For a development environment, you do not need to use SSO or certificate authentication. You can authenticate directly with the server by specifying --disablesso and --ignorecert on the command line. For example:
simpleclient --url https://esx.exampledomain.com/sdk --username root --password secret --disablesso --ignorecert
The application connects to the server and displays a list of inventory objects managed by the server.
Example: Sample Output of a Successful Run of SimpleClient
Object Type : Datacenter
Reference Value : ha-datacenter
Property Name : name
Property Value : ha-datacenter
Object Type : Folder
Reference Value : ha-folder-root
Property Name : name
Property Value : ha-folder-root