This chapter contains a preliminary section about required resources, and then sections providing a summary of authentication options.

Subsequent sections describe how to set up a test environment for various SDKs so you can run sample programs that:

  1. Open a connection to the server and create an authenticated session.
  2. Create a 'Hello' folder in a data center.
  3. Create a tag category.
  4. Create a tag within the category.
  5. Attach the tag to the folder.
These operations are implemented in several languages, including a shell script that uses curl requests to accomplish these steps.

Although these code examples create several objects, they do not delete anything. You can verify the results by using the VMware vSphere Client™, then delete the sample objects manually if you want to run another example.

Note: The code examples in this book use basic authentication and omit server certificate verification for simplicity. In a production environment you should use stricter security practices.