@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:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(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:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(required)public ApiResponse<Void> deleteRestrictionPolicyWithHttpInfo(String resourceId) throws ApiException
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(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:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(required)public RestrictionPolicyResponse getRestrictionPolicy(String resourceId) throws ApiException
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(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:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(required)public ApiResponse<RestrictionPolicyResponse> getRestrictionPolicyWithHttpInfo(String resourceId) throws ApiException
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(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:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(required)public RestrictionPolicyResponse updateRestrictionPolicy(String resourceId, RestrictionPolicyUpdateRequest body) throws ApiException
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(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:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(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:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(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:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(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 Accounts: integration-account - 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
Resource Type | Supported Relations ----------------------------|--------------------------
Dashboards | viewer, editor Integration Accounts | 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
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(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:
connection, dashboard, integration-account,
integration-service, integration-webhook, notebook,
reference-table, security-rule, slo, workflow
, app-builder-app, connection, connection-group.
(required)body - Restriction policy payload (required)parameters - Optional parameters for the request.Copyright © 2025. All rights reserved.