@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RestrictionPoliciesApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters
Manage optional parameters to updateRestrictionPolicy.
|
| Constructor and Description |
|---|
RestrictionPoliciesApi() |
RestrictionPoliciesApi(ApiClient apiClient) |
public RestrictionPoliciesApi()
public RestrictionPoliciesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic void deleteRestrictionPolicy(String resourceId) throws ApiException
resourceId - 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
. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteRestrictionPolicyAsync(String resourceId)
See deleteRestrictionPolicyWithHttpInfoAsync(java.lang.String).
resourceId - 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
. (required)public ApiResponse<Void> deleteRestrictionPolicyWithHttpInfo(String resourceId) throws ApiException
resourceId - 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
. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteRestrictionPolicyWithHttpInfoAsync(String resourceId)
resourceId - 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
. (required)public RestrictionPolicyResponse getRestrictionPolicy(String resourceId) throws ApiException
resourceId - 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
. (required)ApiException - if fails to make API callpublic CompletableFuture<RestrictionPolicyResponse> getRestrictionPolicyAsync(String resourceId)
See getRestrictionPolicyWithHttpInfoAsync(java.lang.String).
resourceId - 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
. (required)public ApiResponse<RestrictionPolicyResponse> getRestrictionPolicyWithHttpInfo(String resourceId) throws ApiException
resourceId - 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
. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RestrictionPolicyResponse>> getRestrictionPolicyWithHttpInfoAsync(String resourceId)
resourceId - 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
. (required)public RestrictionPolicyResponse updateRestrictionPolicy(String resourceId, RestrictionPolicyUpdateRequest body) throws ApiException
resourceId - 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
. (required)body - Restriction policy payload (required)ApiException - if fails to make API callpublic CompletableFuture<RestrictionPolicyResponse> updateRestrictionPolicyAsync(String resourceId, RestrictionPolicyUpdateRequest body)
resourceId - 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
. (required)body - Restriction policy payload (required)public RestrictionPolicyResponse updateRestrictionPolicy(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) throws ApiException
resourceId - 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
. (required)body - Restriction policy payload (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<RestrictionPolicyResponse> updateRestrictionPolicyAsync(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters)
resourceId - 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
. (required)body - Restriction policy payload (required)parameters - Optional parameters for the request.public ApiResponse<RestrictionPolicyResponse> updateRestrictionPolicyWithHttpInfo(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) throws ApiException
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
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
resourceId - 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
. (required)body - Restriction policy payload (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RestrictionPolicyResponse>> updateRestrictionPolicyWithHttpInfoAsync(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters)
resourceId - 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
. (required)body - Restriction policy payload (required)parameters - Optional parameters for the request.Copyright © 2026. All rights reserved.