> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/solution/how-to-download-openstack-image-in-pmo.md).

# How to Download OpenStack image in PMO?

## Problem

How to download images available in the PMO environment.

## Environment

* Platform9 Managed OpenStack - v4.0 and Higher
* Image v1,v2

## Procedure

To download image using OpenStack cli, image must show the active status.

1. Use `openstack image list` to list out the images available in the environment.
2. Use `openstack image save --file <FILE_NAME> <IMAGE_ID>` to download the image locally.

* Replace **\<FILE\_NAME>** with the path and name of the file you want to save the image as on your local system. Include the appropriate extension for the image format (e.g., **.qcow2** or **.img**).
* Replace **\<IMAGE\_ID>** with the ID of the image you created.

{% tabs %}
{% tab title="CLI" %}

```bash
# openstack image save --file test.qcow2 2f87a3cc-86df-4128-8be1-de7638793dc1

]# ls -lh
total 895M
-rw-r--r--  1 root root  465 Feb 29 16:37 admin_admin.rc
-rw-------. 1 root root 6.8K Jan 28  2019 anaconda-ks.cfg
-rwxr-xr-x  1 root root 4.3K Mar  1 07:06 backup.sh
drwxr-xr-x  2 root root    6 Feb 29 16:53 bin
-rw-------. 1 root root 6.5K Jan 28  2019 original-ks.cfg
-rw-r--r--  1 root root 895M May  8 03:31 test.qcow2
```

{% endtab %}
{% endtabs %}

To download an image using curl request, image must show the active status.

1. Generate the OS\_TOKEN using the "openstack token issue" command.
2. Export the token ID in OS\_TOKEN.
3. Execute curl command to download the image `curl -H "X-Auth-Token: $OS_TOKEN" -X GET "http://<FQDN>:9292/v2/images/<UUID>/file" -o file.qcow2`

   ```
    Where, 
   ```

\- Is the management plane fqdn

```
      <**UUID>** - Image uuid
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pmo/solution/how-to-download-openstack-image-in-pmo.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
