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

Accessing the Orchestrator API via REST


In this recipe, we will see how one can interact with the Orchestrator's REST interface and run workflows.

Getting ready

We need a working Orchestrator and a REST client. We will use Firefox with the REST client; Firefox can be downloaded from https://addons.mozilla.org/en-US/firefox/addon/restclient/.

You might think it is odd to use a web browser to connect to and use a REST host; however, there is method to this madness. A REST implementations in PHP, Python, or .NET might not expose all the features that one needs or wants. Using a web browser enables you to experiment with all the available features you might need.

How to do it...

We will divide this recipe into:

  • Establishing a connection

  • Getting information

  • Running a workflow

Establishing a connection

The first thing we need to do is establish a connection to the Orchestrator REST interface:

  1. Open Firefox; if you have not accepted the Orchestrator SSL certificate, please browse to https://[IP or FQDN Orchestrator...