> For the complete documentation index, see [llms.txt](https://docs.enclaive.cloud/enclaive-multi-cloud-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enclaive.cloud/enclaive-multi-cloud-platform/developers/api/client-api/manage/configurations/location.md).

# Location

This subsection offers endpoints for retrieving location data, enabling users to pinpoint the geographical regions where resources can be instantiated. It's instrumental for users seeking to distribute their resources strategically across data centers or regions.

## Get locations

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/api/providers/{id}/locations`

Get all the available locations that can be used to create a particular resource type ( vm, k8s, db , app ).

#### Path Parameters

| Name                                 | Type   | Description |
| ------------------------------------ | ------ | ----------- |
| id<mark style="color:red;">\*</mark> | String | Provider ID |

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer Token |

{% tabs %}
{% tab title="200: OK " %}

```json
[
    {
        "_id": "6548a383e2442d14b6bf969f",
        "provider": "6548a383e2442d14b6bf9687",
        "physicalLocation": "Ireland",
        "code": "IE",
        "datacenters": [
            {
                "name": "northeurope",
                "displayName": "North Europe"
            }
        ]
    },
    {
        "_id": "6548a383e2442d14b6bf96a0",
        "provider": "6548a383e2442d14b6bf9687",
        "physicalLocation": "Netherlands",
        "code": "NL",
        "datacenters": [
            {
                "name": "westeurope",
                "displayName": "West Europe"
            }
        ]
    }
]
```

{% endtab %}
{% endtabs %}
