You can do VMware Tanzu Operations Manager operations programmatically and from the command line, rather than from the Tanzu Operations Manager UI.
Tanzu Operations Manager includes three related tools for performing operations programmatically and from the command line:
The Tanzu Operations Manager API. For more information, see the Tanzu Operations Manager API documentation.
The om
command-line interface (CLI). For more information about om
, see the om
repository.
Platform Automation tasks. For more information, see the Platform Automation documentation.
These three tools control the Tanzu Operations Manager VM at different levels of abstraction. For more information about tile development, see the Tanzu Operations Manager Tile Developer Guide.
The Tanzu Operations Manager API offers the most granular control of the Tanzu Operations Manager VM, The API enables users to do the following:
Automate component-level testing of Tanzu Operations Manager product tiles
Manage Tanzu Operations Manager user accounts
Develop and debug product tiles
Access product property values that are not exposed in a product tile GUI
Control the Tanzu Operations Manager VM directly, programmatically or manually, bypassing the Tanzu Operations Manager UI.
For information about getting started with the Tanzu Operations Manager API, see Access the Tanzu Operations Manager API in Using the Tanzu Operations Manager API.
Your Tanzu Operations Manager serves a local copy of the complete Tanzu Operations Manager API documentation at https://YOUR-OPS-MANAGER-FQDN/docs
.
The Tanzu Operations Manager CLI, om
, calls the Tanzu Operations Manager API to do the following:
For information, including how to install om
and a usage example, see Using the Tanzu Operations Manager CLI.
Platform Automation tasks call the om
CLI to do the following:
For a complete list of Platform Automation tasks, see Task Reference in the Platform Automation documentation.
The following table lists some common operations using the Tanzu Operations Manager UI, Tanzu Operations Manager API, om
CLI, and Platform Automation tasks, as examples of how different Tanzu Operations Manager interfaces relate to one another.
For complete lists of operations, consult the references in the previous sections.
UI action | API command | om Command | Platform automation task |
---|---|---|---|
Manually configure the BOSH Director tile | Multiple commands; see Configure the BOSH Director in Using the Tanzu Operations Manager API. | om configure-director |
configure-director |
Click IMPORT A PRODUCT | POST product file to /available_products |
om upload-product |
upload-product |
Click the + symbol next to a product listing left of Installation Dashboard | POST product name and version to /staged/products |
om stage-product |
stage-product |
Manually configure a product tile | Multiple commands; see Configure a Product in Using the Tanzu Operations Manager API. | om configure-product |
configure-product |
Click STEMCELL LIBRARY, then IMPORT STEMCELL | POST stemcell file to /stemcells |
om upload-stemcell |
upload-stemcell |
Click Apply Changes | POST specified products (or all ) and errand lists to /installations |
om apply-changes |
apply-changes |