# 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 %}
