Automation service CLI reference¶
See https://docs.openstack.org/python-heatclient/2023.2/.
These commands enable you to perform various operations related to stack management, such as creating, updating, and deleting stacks, as well as managing stack resources and events. The <stack_name_or_id>
, <resource_name>
, <event_id>
, and <output_key>
in the commands are placeholders that should be replaced with the actual names and IDs of the stacks, resources, events, and output keys. Here is a list of some common commands for managing stacks and resources.
List stacks¶
Show stack details¶
Create a stack¶
-<template_file>
: Path to the Heat template file.
Update a stack¶
Delete a stack¶
List stack resources¶
Show stack resource retails¶
List stack events¶
Show stack event details¶
Validate a template¶
Text Only
```bash
openstack orchestration template validate --template <template_file>
```
Show stack output¶
Text Only
```bash
openstack stack output show <stack_name_or_id> <output_key>
```
Adopt a stack¶
Text Only
```bash
openstack stack adopt --adopt-file <adopt_file> <stack_name>
```
- `<adopt_file>`: Path to the file containing the stack adopt data.
Abandon a stack¶
Text Only
```bash
openstack stack abandon <stack_name_or_id>
```