Automation service CLI reference
The Automation CLI reference lists curated commands with Quake AI-specific context.
See https://docs.openstack.org/python-heatclient/2023.1/.
These commands manage stacks and their resources on the OpenStack Heat backend. Replace the placeholders <stack_name_or_id>, <resource_name>, <event_id>, <output_key>, <snapshot_id>, and <resource_type> with the actual names and IDs of your stacks, resources, events, outputs, snapshots, and resource types.
List stacks#
openstack stack listShow stack details#
openstack stack show <stack_name_or_id>Create a stack#
openstack stack create --template <template_file> <stack_name><template_file>: Path to the Heat template file.
Update a stack#
openstack stack update --template <template_file> <stack_name_or_id>Delete a stack#
openstack stack delete <stack_name_or_id>List stack resources#
openstack stack resource list <stack_name_or_id>Show stack resource details#
openstack stack resource show <stack_name_or_id> <resource_name>List stack events#
openstack stack event list <stack_name_or_id>Show stack event details#
openstack stack event show <stack_name_or_id> <resource_name> <event_id>Validate a template#
openstack orchestration template validate --template <template_file>Show stack output#
openstack stack output show <stack_name_or_id> <output_key>Adopt a stack#
openstack stack adopt --adopt-file <adopt_file> <stack_name><adopt_file>: Path to the file containing the stack adopt data.
Abandon a stack#
Stack abandon is disabled on Quake AI. openstack stack abandon <stack_name_or_id> returns ERROR: Stack Abandon is not supported.
Additional lifecycle commands#
Suspend a stack#
Pauses the stack's resources. The stack reaches SUSPEND_COMPLETE on success.
openstack stack suspend <stack_name_or_id>Resume a stack#
Returns a suspended stack to service. The stack reaches RESUME_COMPLETE on success.
openstack stack resume <stack_name_or_id>Check a stack#
Verifies that the real resources match the stack's expected state. The stack reaches CHECK_COMPLETE on success.
openstack stack check <stack_name_or_id>Cancel a stack update#
Cancels an in-progress update and rolls the stack back to its previous state.
openstack stack cancel <stack_name_or_id>Stack snapshots#
Create a snapshot#
openstack stack snapshot create <stack_name_or_id>List snapshots#
openstack stack snapshot list <stack_name_or_id>Show a snapshot#
openstack stack snapshot show <stack_name_or_id> <snapshot_id>Restore a snapshot#
openstack stack snapshot restore <stack_name_or_id> <snapshot_id>Delete a snapshot#
openstack stack snapshot delete <stack_name_or_id> <snapshot_id>Diagnostics#
List stack failures#
Lists the resources that failed, with their error messages, for a stack in a *_FAILED state.
openstack stack failures list <stack_name_or_id>List stack outputs#
Lists the output keys defined by the stack. Pair with openstack stack output show to read a single value.
openstack stack output list <stack_name_or_id>Show the stack template#
Prints the template currently stored for the stack.
openstack stack template show <stack_name_or_id>Show the stack environment#
Prints the environment (parameters, parameter defaults, and resource registry) in effect for the stack.
openstack stack environment show <stack_name_or_id>List stack files#
Lists the files referenced by the stack template.
openstack stack file list <stack_name_or_id>Export a stack#
Exports the stack data needed to recreate it with openstack stack adopt.
openstack stack export <stack_name_or_id>Resource control#
Mark a resource unhealthy#
Flags a resource so Heat replaces it on the next update.
openstack stack resource mark unhealthy <stack_name_or_id> <resource_name>Signal a resource#
Sends a signal to a resource that waits on one (for example a WaitCondition).
openstack stack resource signal <stack_name_or_id> <resource_name>Show resource metadata#
Prints the metadata Heat holds for a resource.
openstack stack resource metadata <stack_name_or_id> <resource_name>Orchestration introspection#
These top-level openstack orchestration commands describe the Heat backend itself rather than a single stack.
List resource types#
Lists the resource types the backend supports.
openstack orchestration resource type listShow a resource type#
Prints the property and attribute schema for one resource type.
openstack orchestration resource type show <resource_type>List template functions#
Lists the intrinsic functions available for a given template version.
openstack orchestration template function list <template_version>List template versions#
Lists the supported heat_template_version values.
openstack orchestration template version listShow build information#
Prints the API and engine build revisions.
openstack orchestration build infoList orchestration services#
Lists the Heat engine services. This call requires administrative privileges; a project-scoped token returns You are not authorized to use service:index.
openstack orchestration service listOutput columns#
Select specific columns with --column COL1 --column COL2 or change the output format with -f json, -f csv, or -f table (default).
openstack stack list#
| Column | Description |
|---|---|
| ID | Stack UUID |
| Stack Name | Stack name |
| Stack Status | Lifecycle state (CREATE_COMPLETE, UPDATE_IN_PROGRESS, DELETE_FAILED) |
| Creation Time | Timestamp of stack creation |
| Updated Time | Timestamp of last stack update |