CloudShell Version: 9.1 GA

Help Version: 1.0

Api Guide
View / Download All Help Versions
API Guide

This help article applies to CloudShell 9.1. To see the latest, click here.

CloudShell Automation API

The CloudShell Automation API package is the recommended way to automate CloudShell from Python scripts and drivers, for example, to get more information or perform more operations using CloudShell.

The CloudShell Automation API package is installed in the Python environment installation directory upon pip installation, in the following file location in your local directory: .....\python\2.7.10\Lib\site-packages\cloudshell\.

The CloudShell Automation API package includes the following API modules for use with Python scripts and drivers:

  • allows you to use the CloudShell API from Python.
  • is a helper file required to run methods from
  • provides a convenient way to initialize the CloudShell API and get blueprint variables in your script.
  • allows developers to run and debug their code on their local machine as if their scripts are running in CloudShell.

The CloudShell Automation API reference documentation comes in two versions:

The python package API guide includes additional information like class structure and return objects and is intended for experienced python developers, while the TestShell API Python Reference Guide is intended for developers who are newer to python, as it features an easy to understand format and code examples.

Note: CloudShell Automation API uses UTC timezone by default, but you can change to a different timezone using the CloudShellAPISession.

For information about installing Python and pip, and for further information about using Python scripts and drivers, see CloudShell Developer Guide.