---
title: Restriction Policies
description: A restriction policy defines the access control rules for a resource, mapping a set of relations (such as editor and viewer) to a set of allowed…
breadcrumbs: Docs > API > Restriction Policies
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/llms.txt).

# Restriction Policies

A restriction policy defines the access control rules for a resource, mapping a set of relations
(such as editor and viewer) to a set of allowed principals (such as roles, teams, or users).
The restriction policy determines who is authorized to perform what actions on the resource.

## [Update a restriction policy](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/api/latest/restriction-policies/update-a-restriction-policy.md)

| Datadog site      | API endpoint                                                               |
| ----------------- | -------------------------------------------------------------------------- |
| app.datadoghq.com | POST https://api.datadoghq.com/api/v2/restriction_policy/{resource_id}     |
| us3.datadoghq.com | POST https://api.us3.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| us5.datadoghq.com | POST https://api.us5.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| app.datadoghq.eu  | POST https://api.datadoghq.eu/api/v2/restriction_policy/{resource_id}      |
| ap1.datadoghq.com | POST https://api.ap1.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| ap2.datadoghq.com | POST https://api.ap2.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| uk1.datadoghq.com | POST https://api.uk1.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| app.ddog-gov.com  | POST https://api.ddog-gov.com/api/v2/restriction_policy/{resource_id}      |
| us2.ddog-gov.com  | POST https://api.us2.ddog-gov.com/api/v2/restriction_policy/{resource_id}  |

## [Get a restriction policy](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/api/latest/restriction-policies/get-a-restriction-policy.md)

| Datadog site      | API endpoint                                                              |
| ----------------- | ------------------------------------------------------------------------- |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/restriction_policy/{resource_id}     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/restriction_policy/{resource_id}      |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/restriction_policy/{resource_id}      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/restriction_policy/{resource_id}  |

## [Delete a restriction policy](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/api/latest/restriction-policies/delete-a-restriction-policy.md)

| Datadog site      | API endpoint                                                                 |
| ----------------- | ---------------------------------------------------------------------------- |
| app.datadoghq.com | DELETE https://api.datadoghq.com/api/v2/restriction_policy/{resource_id}     |
| us3.datadoghq.com | DELETE https://api.us3.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| us5.datadoghq.com | DELETE https://api.us5.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| app.datadoghq.eu  | DELETE https://api.datadoghq.eu/api/v2/restriction_policy/{resource_id}      |
| ap1.datadoghq.com | DELETE https://api.ap1.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| ap2.datadoghq.com | DELETE https://api.ap2.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| uk1.datadoghq.com | DELETE https://api.uk1.datadoghq.com/api/v2/restriction_policy/{resource_id} |
| app.ddog-gov.com  | DELETE https://api.ddog-gov.com/api/v2/restriction_policy/{resource_id}      |
| us2.ddog-gov.com  | DELETE https://api.us2.ddog-gov.com/api/v2/restriction_policy/{resource_id}  |
