Class RestrictionPoliciesApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to updateRestrictionPolicy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRestrictionPolicy(String resourceId) Delete a restriction policy.deleteRestrictionPolicyAsync(String resourceId) Delete a restriction policy.deleteRestrictionPolicyWithHttpInfo(String resourceId) Deletes the restriction policy associated with a specified resource.deleteRestrictionPolicyWithHttpInfoAsync(String resourceId) Delete a restriction policy.Get the API client.getRestrictionPolicy(String resourceId) Get a restriction policy.getRestrictionPolicyAsync(String resourceId) Get a restriction policy.getRestrictionPolicyWithHttpInfo(String resourceId) Retrieves the restriction policy associated with a specified resource.getRestrictionPolicyWithHttpInfoAsync(String resourceId) Get a restriction policy.voidsetApiClient(ApiClient apiClient) Set the API client.updateRestrictionPolicy(String resourceId, RestrictionPolicyUpdateRequest body) Update a restriction policy.updateRestrictionPolicy(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) Update a restriction policy.updateRestrictionPolicyAsync(String resourceId, RestrictionPolicyUpdateRequest body) Update a restriction policy.updateRestrictionPolicyAsync(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) Update a restriction policy.updateRestrictionPolicyWithHttpInfo(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) Updates the restriction policy associated with a resource.updateRestrictionPolicyWithHttpInfoAsync(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) Update a restriction policy.
-
Constructor Details
-
RestrictionPoliciesApi
public RestrictionPoliciesApi() -
RestrictionPoliciesApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
deleteRestrictionPolicy
Delete a restriction policy.- Parameters:
resourceId- Identifier, formatted astype: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
Delete a restriction policy.See
deleteRestrictionPolicyWithHttpInfoAsync(java.lang.String).- Parameters:
resourceId- Identifier, formatted astype: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
Deletes the restriction policy associated with a specified resource.- Parameters:
resourceId- Identifier, formatted astype: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) Delete a restriction policy.- Parameters:
resourceId- Identifier, formatted astype: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
Get a restriction policy.- Parameters:
resourceId- Identifier, formatted astype: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
Get a restriction policy.See
getRestrictionPolicyWithHttpInfoAsync(java.lang.String).- Parameters:
resourceId- Identifier, formatted astype: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 astype: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) Get a restriction policy.- Parameters:
resourceId- Identifier, formatted astype: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 Update a restriction policy.- Parameters:
resourceId- Identifier, formatted astype: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) Update a restriction policy.- Parameters:
resourceId- Identifier, formatted astype: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
public RestrictionPolicyResponse updateRestrictionPolicy(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) throws ApiException Update a restriction policy.- Parameters:
resourceId- Identifier, formatted astype: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
public CompletableFuture<RestrictionPolicyResponse> updateRestrictionPolicyAsync(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) Update a restriction policy.- Parameters:
resourceId- Identifier, formatted astype: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
public ApiResponse<RestrictionPolicyResponse> updateRestrictionPolicyWithHttpInfo(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) throws ApiException 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-configSupported relations for resources
Resource Type | Supported Relations ----------------------------|-------------------------- Dashboards |
viewer,editorIntegration Services |viewer,editorIntegration Webhooks |viewer,editorNotebooks |viewer,editorPowerpacks |viewer,editorSecurity Rules |viewer,editorService Level Objectives |viewer,editorSynthetic Global Variables |viewer,editorSynthetic Tests |viewer,editorSynthetic Private Locations |viewer,editorMonitors |viewer,editorReference Tables |viewer,editorWorkflows |viewer,runner,editorApp Builder Apps |viewer,editorConnections |viewer,resolver,editorConnection Groups |viewer,editorRUM Application |viewer,editorCross Org Connections |viewer,editorSpreadsheets |viewer,editorOn-Call Schedules |viewer,overrider,editorOn-Call Escalation Policies |viewer,editorOn-Call Team Routing Rules |viewer,editorLogs Pipelines |viewer,processors_editor,editorCase Management Projects |viewer,contributor,managerMonitor Notification Rules |viewer,editorStatus Pages |viewer,responder,managerFeature Flags |viewer,contributor,editorNetwork Path Configs |viewer,editor- Parameters:
resourceId- Identifier, formatted astype: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
public CompletableFuture<ApiResponse<RestrictionPolicyResponse>> updateRestrictionPolicyWithHttpInfoAsync(String resourceId, RestrictionPolicyUpdateRequest body, RestrictionPoliciesApi.UpdateRestrictionPolicyOptionalParameters parameters) Update a restriction policy.- Parameters:
resourceId- Identifier, formatted astype: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>>
-