Update a restriction policy
Updates the restriction policy associated with a resource.
Supported resources
Restriction policies can be applied to the following resources:
- Dashboards: dashboard
- Integration Services: integration-service
- Integration Webhooks: integration-webhook
- Notebooks: notebook
- Powerpacks: powerpack
- Reference Tables: reference-table
- Security Rules: security-rule
- Service Level Objectives: slo
- Synthetic Global Variables: synthetics-global-variable
- Synthetic Tests: synthetics-test
- Synthetic Private Locations: synthetics-private-location
- Monitors: monitor
- Workflows: workflow
- App Builder Apps: app-builder-app
- Connections: connection
- Connection Groups: connection-group
- RUM Applications: rum-application
- Cross Org Connections: cross-org-connection
- Spreadsheets: spreadsheet
- On-Call Schedules: on-call-schedule
- On-Call Escalation Policies: on-call-escalation-policy
- On-Call Team Routing Rules: on-call-team-routing-rules
- Logs Pipelines: logs-pipeline
- Case Management Projects: case-management-project
- Monitor Notification Rules: monitor-notification-rule
- Status Pages: status-page
Supported relations for resources
| Resource Type | Supported Relations |
|---|---|
| Dashboards | viewer, editor |
| Integration Services | viewer, editor |
| Integration Webhooks | viewer, editor |
| Notebooks | viewer, editor |
| Powerpacks | viewer, editor |
| Security Rules | viewer, editor |
| Service Level Objectives | viewer, editor |
| Synthetic Global Variables | viewer, editor |
| Synthetic Tests | viewer, editor |
| Synthetic Private Locations | viewer, editor |
| Monitors | viewer, editor |
| Reference Tables | viewer, editor |
| Workflows | viewer, runner, editor |
| App Builder Apps | viewer, editor |
| Connections | viewer, resolver, editor |
| Connection Groups | viewer, editor |
| RUM Application | viewer, editor |
| Cross Org Connections | viewer, editor |
| Spreadsheets | viewer, editor |
| On-Call Schedules | viewer, overrider, editor |
| On-Call Escalation Policies | viewer, editor |
| On-Call Team Routing Rules | viewer, editor |
| Logs Pipelines | viewer, processors_editor, editor |
| Case Management Projects | viewer, contributor, manager |
| Monitor Notification Rules | viewer, editor |
| Status Pages | viewer, responder, manager |
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/restriction_policy/{resource_id}
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code: /oauth2/v1/authorizeToken URL: /oauth2/v1/token
Path parameters
Identifier, formatted as type:id. Supported types: dashboard, integration-service, integration-webhook, notebook, powerpack, reference-table, security-rule, slo, synthetics-global-variable, synthetics-test, synthetics-private-location, monitor, workflow, app-builder-app, connection, connection-group, rum-application, cross-org-connection, spreadsheet, on-call-schedule, on-call-escalation-policy, on-call-team-routing-rules, logs-pipeline, case-management-project, monitor-notification-rule, status-page.
Query parameters
Allows admins (users with the user_access_manage permission) to remove their own access from the resource if set to true. By default, this is set to false, preventing admins from locking themselves out.
Request body
Example request
{
"data": {
"attributes": {
"bindings": []
},
"id": "dashboard:abc-def-ghi",
"type": "restriction_policy"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"bindings": []
},
"id": "dashboard:abc-def-ghi",
"type": "restriction_policy"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.