> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/containers/private-container-registry/api-howtos/locations.md).

# Retrieve Private Container Registry Locations

Before creating a Private Container Registry, review the available locations where the service is supported.

{% hint style="info" %}
**Note:** The retrieved locations are **read-only** and cannot be changed.
{% endhint %}

## Request

```bash
curl --location \
    --request GET \
    'https://api.ionos.com/containerregistries/locations' \
--header 'Authorization: Bearer ${TOKEN}' \
--data-raw ''
```

## Response

**200 OK - Successfully received the locations of a Private Container Registry**

```json
{
   "id": "locations",
   "type": "collection",
   "href": "",
   "items": [
       {
           "id": "de/fra"
       }
   ]
}
```

### Response fields

| **Field** |   **Type**   |                  **Description**                  | **Example**                                   |
| --------- | :----------: | :-----------------------------------------------: | --------------------------------------------- |
| **id**    |    string    |   The id of the object that has been retrieved.   | `locations`                                   |
| **type**  |    string    | The type of the resource that has been retrieved. | `collection`                                  |
| **ref**   | URL (string) |  URL to the object representation (absolute path) | `https://api.ionos.com/cloudapi/v6/locations` |
| **items** |     array    |   The location of the Private Container Registry  | `"id": "de/fra"`                              |

{% hint style="info" %}
**Note:**

* Your values will differ from those in the sample code. Your response will have different `locations`.
* A location is identified by a combination of the following characters:
* A **two-character** value in `Id` represents a country (example: `de`)
* A **three-character** value in `Id` represents a city. The `locationId` is typically based on the IATA code of the city's airport (example: `fra`).
  {% endhint %}


---

# 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://docs.ionos.com/cloud/containers/private-container-registry/api-howtos/locations.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.
