---
title: Get existing Location Context policies
canonical: https://openvpn.net/cloud-docs/developer/cloudconnexa-beta-api-v0-16-0/location-context/get-existing-location-context-policies/
product: CloudConnexa Docs
---

# Get existing Location Context policies

`GET /api/beta/location-contexts`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| page | query | string | true | page |
| size | query | string | true | size |

## Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | Inline |
| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | Bad Request | None |
| 401 | [Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1) | Unauthorized | None |
| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | Access Forbidden | None |
| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | Not Found | None |
| 406 | [Not Acceptable](https://tools.ietf.org/html/rfc7231#section-6.5.6) | Not Acceptable | None |
| 429 | [Too Many Requests](https://tools.ietf.org/html/rfc6585#section-4) | Too Many Requests | None |
| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal Server Error | None |

To perform this operation, you must be authenticated by means of one of the following methods: OAuth\_authorization

```json
{
  "content": [
    {
      "countryPolicy": {
        "allowed": true,
        "countries": [
          "string"
        ]
      },
      "defaultPolicy": {
        "allowed": true
      },
      "description": "string",
      "id": "string",
      "ipPolicy": {
        "allowed": true,
        "ips": [
          {
            "description": "string",
            "ip": "string"
          }
        ]
      },
      "name": "string",
      "userGroupsIds": [
        "string"
      ]
    }
  ],
  "numberOfElements": 0,
  "page": 0,
  "size": 0,
  "success": true,
  "totalElements": 0,
  "totalPages": 0
}
```

---

Prev: [Location Context](https://openvpn.net/cloud-docs/developer/cloudconnexa-beta-api-v0-16-0/location-context.md)
Next: [Create new Location Context policy](https://openvpn.net/cloud-docs/developer/cloudconnexa-beta-api-v0-16-0/location-context/create-new-location-context-policy.md)
Index: https://openvpn.net/cloud-docs/llms.txt
