---
title: Políticas de restricción
description: Una política de restricción define las reglas de control de acceso para un recurso, asignando un conjunto de relaciones (como editor y visor) a un…
breadcrumbs: Documentación > API > Políticas de restricción
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/llms.txt).

# Políticas de restricción

Una política de restricción define las reglas de control de acceso para un recurso, asignando un conjunto de relaciones
(como editor y visor) a un conjunto de principales permitidos (como roles, Teams o usuarios).
La política de restricción determina quién está autorizado para realizar qué acciones en el recurso.

## [Actualizar una política de restricción](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/es/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}  |

## [Obtener una política de restricción](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/es/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}  |

## [Eliminar una política de restricción](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/es/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}  |
