Class RestrictionPoliciesApi

java.lang.Object
com.datadog.api.client.v2.api.RestrictionPoliciesApi

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RestrictionPoliciesApi extends Object
  • Constructor Details

    • RestrictionPoliciesApi

      public RestrictionPoliciesApi()
    • RestrictionPoliciesApi

      public RestrictionPoliciesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
      Get the API client.
      Returns:
      API client
    • setApiClient

      public void setApiClient(ApiClient apiClient)
      Set the API client.
      Parameters:
      apiClient - an instance of API client
    • deleteRestrictionPolicy

      public void deleteRestrictionPolicy(String resourceId) throws ApiException
      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 , feature-flag, network-path-config. (required)
      Throws:
      ApiException - if fails to make API call
    • deleteRestrictionPolicyAsync

      public CompletableFuture<Void> deleteRestrictionPolicyAsync(String resourceId)
      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 , feature-flag, network-path-config. (required)
      Returns:
      CompletableFuture
    • deleteRestrictionPolicyWithHttpInfo

      public ApiResponse<Void> deleteRestrictionPolicyWithHttpInfo(String resourceId) throws ApiException
      Deletes the restriction policy associated with a specified resource.
      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 , feature-flag, network-path-config. (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - if fails to make API call
      Http Response Details:
      Response details
      Status Code Description Response Headers
      204 No Content -
      400 Bad Request -
      403 Not Authorized -
      429 Too many requests -
    • deleteRestrictionPolicyWithHttpInfoAsync

      public CompletableFuture<ApiResponse<Void>> deleteRestrictionPolicyWithHttpInfoAsync(String resourceId)
      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 , feature-flag, network-path-config. (required)
      Returns:
      CompletableFuture<ApiResponse<Void>>
    • getRestrictionPolicy

      public RestrictionPolicyResponse getRestrictionPolicy(String resourceId) throws ApiException
      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 , feature-flag, network-path-config. (required)
      Returns:
      RestrictionPolicyResponse
      Throws:
      ApiException - if fails to make API call
    • getRestrictionPolicyAsync

      public CompletableFuture<RestrictionPolicyResponse> getRestrictionPolicyAsync(String resourceId)
      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 , feature-flag, network-path-config. (required)
      Returns:
      CompletableFuture<RestrictionPolicyResponse>
    • getRestrictionPolicyWithHttpInfo

      public ApiResponse<RestrictionPolicyResponse> getRestrictionPolicyWithHttpInfo(String resourceId) throws ApiException
      Retrieves the restriction policy associated with a specified resource.
      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 , feature-flag, network-path-config. (required)
      Returns:
      ApiResponse<RestrictionPolicyResponse>
      Throws:
      ApiException - if fails to make API call
      Http Response Details:
      Response details
      Status Code Description Response Headers
      200 OK -
      400 Bad Request -
      403 Not Authorized -
      429 Too many requests -
    • getRestrictionPolicyWithHttpInfoAsync

      public CompletableFuture<ApiResponse<RestrictionPolicyResponse>> getRestrictionPolicyWithHttpInfoAsync(String resourceId)
      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 , feature-flag, network-path-config. (required)
      Returns:
      CompletableFuture<ApiResponse<RestrictionPolicyResponse>>
    • updateRestrictionPolicy

      public RestrictionPolicyResponse updateRestrictionPolicy(String resourceId, RestrictionPolicyUpdateRequest body) throws ApiException
      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 , feature-flag, network-path-config. (required)
      body - Restriction policy payload (required)
      Returns:
      RestrictionPolicyResponse
      Throws:
      ApiException - if fails to make API call
    • updateRestrictionPolicyAsync

      public CompletableFuture<RestrictionPolicyResponse> updateRestrictionPolicyAsync(String resourceId, RestrictionPolicyUpdateRequest body)
      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 , feature-flag, network-path-config. (required)
      body - Restriction policy payload (required)
      Returns:
      CompletableFuture<RestrictionPolicyResponse>
    • updateRestrictionPolicy

      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 , feature-flag, network-path-config. (required)
      body - Restriction policy payload (required)
      parameters - Optional parameters for the request.
      Returns:
      RestrictionPolicyResponse
      Throws:
      ApiException - if fails to make API call
    • updateRestrictionPolicyAsync

      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 , feature-flag, network-path-config. (required)
      body - Restriction policy payload (required)
      parameters - Optional parameters for the request.
      Returns:
      CompletableFuture<RestrictionPolicyResponse>
    • updateRestrictionPolicyWithHttpInfo

      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 - Feature Flags: feature-flag - Network Path Configs: network-path-config

      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 Feature Flags | viewer, contributor, editor Network Path Configs | viewer, editor

      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 , feature-flag, network-path-config. (required)
      body - Restriction policy payload (required)
      parameters - Optional parameters for the request.
      Returns:
      ApiResponse<RestrictionPolicyResponse>
      Throws:
      ApiException - if fails to make API call
      Http Response Details:
      Response details
      Status Code Description Response Headers
      200 OK -
      400 Bad Request -
      403 Not Authorized -
      429 Too many requests -
    • updateRestrictionPolicyWithHttpInfoAsync

      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 , feature-flag, network-path-config. (required)
      body - Restriction policy payload (required)
      parameters - Optional parameters for the request.
      Returns:
      CompletableFuture<ApiResponse<RestrictionPolicyResponse>>