Book Image

VMware vRealize Orchestrator Cookbook

By : Daniel Langenhan
Book Image

VMware vRealize Orchestrator Cookbook

By: Daniel Langenhan

Overview of this book

Table of Contents (15 chapters)
VMware vRealize Orchestrator Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with the API


To be efficient in programming using Orchestrator plugins, one needs to know how to work with the Orchestrator API. In this recipe, we showcase how to access and get information from the Orchestrator API.

Getting ready

We only need the Orchestrator Client with rights to edit a workflow.

How to do it...

We will split this recipe into several sections.

Searching for items in the API

The first step is to have a look at the API. To access the API, follow these steps:

  1. Open the Orchestrator Client.

  2. Navigate to Tools | API Explorer.

The API Explorer opens, and you have four sections as marked in the preceding screenshot:

  • A (search): Here, you can enter a search word such as virtualmachine as well as select what kind of results you are after.

  • B (search results): This section shows you the result of the search: the name, the type (refer to the How it works... section of this recipe), and a short description.

  • C (API tree): Double-clicking on a search result in section B will browse the...