@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RestrictionPoliciesApi extends Object
| 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, notebook, security-rule
, slo. (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, notebook, security-rule
, slo. (required)public ApiResponse<Void> deleteRestrictionPolicyWithHttpInfo(String resourceId) throws ApiException
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, notebook, security-rule
, slo. (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, notebook, security-rule
, slo. (required)public RestrictionPolicyResponse getRestrictionPolicy(String resourceId) throws ApiException
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, notebook, security-rule
, slo. (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, notebook, security-rule
, slo. (required)public ApiResponse<RestrictionPolicyResponse> getRestrictionPolicyWithHttpInfo(String resourceId) throws ApiException
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, notebook, security-rule
, slo. (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, notebook, security-rule
, slo. (required)public RestrictionPolicyResponse updateRestrictionPolicy(String resourceId, RestrictionPolicyUpdateRequest body) throws ApiException
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, notebook, security-rule
, slo. (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, notebook, security-rule
, slo. (required)body - Restriction policy payload (required)public ApiResponse<RestrictionPolicyResponse> updateRestrictionPolicyWithHttpInfo(String resourceId, RestrictionPolicyUpdateRequest body) throws ApiException
Restriction policies can be applied to the following resources: - Connections:
connection - Dashboards: dashboard - Notebooks: notebook -
Security Rules: security-rule - Service Level Objectives: slo
Resource Type | Supported Relations -------------------------|--------------------------
Connections | viewer, editor, resolver Dashboards |
viewer, editor Notebooks | viewer, editor
Security Rules | viewer, editor Service Level Objectives |
viewer, editor
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, notebook, security-rule
, slo. (required)body - Restriction policy payload (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>> updateRestrictionPolicyWithHttpInfoAsync(String resourceId, RestrictionPolicyUpdateRequest body)
resourceId - Identifier, formatted as type:id. Supported types:
connection, dashboard, notebook, security-rule
, slo. (required)body - Restriction policy payload (required)Copyright © 2024. All rights reserved.