Package com.datadog.api.client.v2.api
Class GovernanceConsoleApi
java.lang.Object
com.datadog.api.client.v2.api.GovernanceConsoleApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class GovernanceConsoleApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listGovernanceControlDetections.static classManage optional parameters to listGovernanceInsights. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API client.Get the Governance Console configuration.Get the Governance Console configuration.Retrieve the Governance Console configuration for the organization, including whether the Console is enabled, whether assignment notifications are enabled, and whether usage attribution is configured.Get the Governance Console configuration.getGovernanceControl(String detectionType) Get a control.getGovernanceControlAsync(String detectionType) Get a control.getGovernanceControlNotificationSettings(String detectionType) Get control notification settings.getGovernanceControlNotificationSettingsAsync(String detectionType) Get control notification settings.getGovernanceControlNotificationSettingsWithHttpInfo(String detectionType) Retrieve the notification settings for the governance control with the given detection type, including, for each supported event type, whether notifications are enabled and which destinations receive them.getGovernanceControlNotificationSettingsWithHttpInfoAsync(String detectionType) Get control notification settings.getGovernanceControlWithHttpInfo(String detectionType) Retrieve a single governance control by its detection type, including the organization's current detection, notification, and mitigation configuration and detection counts.getGovernanceControlWithHttpInfoAsync(String detectionType) Get a control.getGovernanceDetection(String detectionId) Get a detection.getGovernanceDetectionAsync(String detectionId) Get a detection.getGovernanceDetectionWithHttpInfo(String detectionId) Retrieve a single governance detection by its unique identifier.getGovernanceDetectionWithHttpInfoAsync(String detectionId) Get a detection.Get notification settings.Get notification settings.Retrieve the organization-wide governance notification settings, including whether users are notified when detections are assigned to them.Get notification settings.listGovernanceControlDetections(String detectionType) List control detections.listGovernanceControlDetections(String detectionType, GovernanceConsoleApi.ListGovernanceControlDetectionsOptionalParameters parameters) List control detections.listGovernanceControlDetectionsAsync(String detectionType) List control detections.listGovernanceControlDetectionsAsync(String detectionType, GovernanceConsoleApi.ListGovernanceControlDetectionsOptionalParameters parameters) List control detections.listGovernanceControlDetectionsWithHttpInfo(String detectionType, GovernanceConsoleApi.ListGovernanceControlDetectionsOptionalParameters parameters) Retrieve the detections produced by the governance control with the given detection type.listGovernanceControlDetectionsWithHttpInfoAsync(String detectionType, GovernanceConsoleApi.ListGovernanceControlDetectionsOptionalParameters parameters) List control detections.List controls.List controls.Retrieve the list of governance controls configured for the organization.List controls.List insights.List insights.List insights.listGovernanceInsightsAsync(GovernanceConsoleApi.ListGovernanceInsightsOptionalParameters parameters) List insights.listGovernanceInsightsWithHttpInfo(GovernanceConsoleApi.ListGovernanceInsightsOptionalParameters parameters) Retrieve the list of governance insights available to the organization.listGovernanceInsightsWithHttpInfoAsync(GovernanceConsoleApi.ListGovernanceInsightsOptionalParameters parameters) List insights.voidMitigate detections.Mitigate detections.Apply a mitigation to a set of governance detections of a given detection type.Mitigate detections.voidsetApiClient(ApiClient apiClient) Set the API client.updateGovernanceControl(String detectionType, GovernanceControlUpdateRequest body) Update a control.updateGovernanceControlAsync(String detectionType, GovernanceControlUpdateRequest body) Update a control.updateGovernanceControlNotificationSettings(String detectionType, ControlNotificationSettingsUpdateRequest body) Update control notification settings.updateGovernanceControlNotificationSettingsAsync(String detectionType, ControlNotificationSettingsUpdateRequest body) Update control notification settings.updateGovernanceControlNotificationSettingsWithHttpInfo(String detectionType, ControlNotificationSettingsUpdateRequest body) Replace the notification settings for the governance control with the given detection type, setting, for each supported event type, whether notifications are enabled and which destinations receive them.updateGovernanceControlNotificationSettingsWithHttpInfoAsync(String detectionType, ControlNotificationSettingsUpdateRequest body) Update control notification settings.updateGovernanceControlWithHttpInfo(String detectionType, GovernanceControlUpdateRequest body) Update the detection, notification, and mitigation configuration of a governance control.updateGovernanceControlWithHttpInfoAsync(String detectionType, GovernanceControlUpdateRequest body) Update a control.updateGovernanceDetection(String detectionId, GovernanceControlDetectionUpdateRequest body) Update a detection.updateGovernanceDetectionAsync(String detectionId, GovernanceControlDetectionUpdateRequest body) Update a detection.updateGovernanceDetectionWithHttpInfo(String detectionId, GovernanceControlDetectionUpdateRequest body) Update a governance detection by its unique identifier.updateGovernanceDetectionWithHttpInfoAsync(String detectionId, GovernanceControlDetectionUpdateRequest body) Update a detection.Update notification settings.Update notification settings.Update the organization-wide governance notification settings.updateGovernanceNotificationSettingsWithHttpInfoAsync(GovernanceNotificationSettingsUpdateRequest body) Update notification settings.
-
Constructor Details
-
GovernanceConsoleApi
public GovernanceConsoleApi() -
GovernanceConsoleApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
getGovernanceConfig
Get the Governance Console configuration.- Returns:
- GovernanceConfigResponse
- Throws:
ApiException- if fails to make API call
-
getGovernanceConfigAsync
Get the Governance Console configuration.- Returns:
- CompletableFuture<GovernanceConfigResponse>
-
getGovernanceConfigWithHttpInfo
Retrieve the Governance Console configuration for the organization, including whether the Console is enabled, whether assignment notifications are enabled, and whether usage attribution is configured.- Returns:
- ApiResponse<GovernanceConfigResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
getGovernanceConfigWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceConfigResponse>> getGovernanceConfigWithHttpInfoAsync()Get the Governance Console configuration.- Returns:
- CompletableFuture<ApiResponse<GovernanceConfigResponse>>
-
getGovernanceControl
Get a control.- Parameters:
detectionType- The detection type that identifies the control, for exampleunused_api_keys. (required)- Returns:
- GovernanceControlResponse
- Throws:
ApiException- if fails to make API call
-
getGovernanceControlAsync
Get a control.See
getGovernanceControlWithHttpInfoAsync(java.lang.String).- Parameters:
detectionType- The detection type that identifies the control, for exampleunused_api_keys. (required)- Returns:
- CompletableFuture<GovernanceControlResponse>
-
getGovernanceControlWithHttpInfo
public ApiResponse<GovernanceControlResponse> getGovernanceControlWithHttpInfo(String detectionType) throws ApiException Retrieve a single governance control by its detection type, including the organization's current detection, notification, and mitigation configuration and detection counts.- Parameters:
detectionType- The detection type that identifies the control, for exampleunused_api_keys. (required)- Returns:
- ApiResponse<GovernanceControlResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getGovernanceControlWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceControlResponse>> getGovernanceControlWithHttpInfoAsync(String detectionType) Get a control.- Parameters:
detectionType- The detection type that identifies the control, for exampleunused_api_keys. (required)- Returns:
- CompletableFuture<ApiResponse<GovernanceControlResponse>>
-
getGovernanceControlNotificationSettings
public ControlNotificationSettingsResponse getGovernanceControlNotificationSettings(String detectionType) throws ApiException Get control notification settings.See
getGovernanceControlNotificationSettingsWithHttpInfo(java.lang.String).- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)- Returns:
- ControlNotificationSettingsResponse
- Throws:
ApiException- if fails to make API call
-
getGovernanceControlNotificationSettingsAsync
public CompletableFuture<ControlNotificationSettingsResponse> getGovernanceControlNotificationSettingsAsync(String detectionType) Get control notification settings.See
getGovernanceControlNotificationSettingsWithHttpInfoAsync(java.lang.String).- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)- Returns:
- CompletableFuture<ControlNotificationSettingsResponse>
-
getGovernanceControlNotificationSettingsWithHttpInfo
public ApiResponse<ControlNotificationSettingsResponse> getGovernanceControlNotificationSettingsWithHttpInfo(String detectionType) throws ApiException Retrieve the notification settings for the governance control with the given detection type, including, for each supported event type, whether notifications are enabled and which destinations receive them.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)- Returns:
- ApiResponse<ControlNotificationSettingsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
getGovernanceControlNotificationSettingsWithHttpInfoAsync
public CompletableFuture<ApiResponse<ControlNotificationSettingsResponse>> getGovernanceControlNotificationSettingsWithHttpInfoAsync(String detectionType) Get control notification settings.See
getGovernanceControlNotificationSettingsWithHttpInfo(java.lang.String).- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)- Returns:
- CompletableFuture<ApiResponse<ControlNotificationSettingsResponse>>
-
getGovernanceDetection
public GovernanceControlDetectionResponse getGovernanceDetection(String detectionId) throws ApiException Get a detection.- Parameters:
detectionId- The unique identifier of the detection. (required)- Returns:
- GovernanceControlDetectionResponse
- Throws:
ApiException- if fails to make API call
-
getGovernanceDetectionAsync
public CompletableFuture<GovernanceControlDetectionResponse> getGovernanceDetectionAsync(String detectionId) Get a detection.See
getGovernanceDetectionWithHttpInfoAsync(java.lang.String).- Parameters:
detectionId- The unique identifier of the detection. (required)- Returns:
- CompletableFuture<GovernanceControlDetectionResponse>
-
getGovernanceDetectionWithHttpInfo
public ApiResponse<GovernanceControlDetectionResponse> getGovernanceDetectionWithHttpInfo(String detectionId) throws ApiException Retrieve a single governance detection by its unique identifier.- Parameters:
detectionId- The unique identifier of the detection. (required)- Returns:
- ApiResponse<GovernanceControlDetectionResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getGovernanceDetectionWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceControlDetectionResponse>> getGovernanceDetectionWithHttpInfoAsync(String detectionId) Get a detection.- Parameters:
detectionId- The unique identifier of the detection. (required)- Returns:
- CompletableFuture<ApiResponse<GovernanceControlDetectionResponse>>
-
getGovernanceNotificationSettings
public GovernanceNotificationSettingsResponse getGovernanceNotificationSettings() throws ApiExceptionGet notification settings.- Returns:
- GovernanceNotificationSettingsResponse
- Throws:
ApiException- if fails to make API call
-
getGovernanceNotificationSettingsAsync
public CompletableFuture<GovernanceNotificationSettingsResponse> getGovernanceNotificationSettingsAsync()Get notification settings.- Returns:
- CompletableFuture<GovernanceNotificationSettingsResponse>
-
getGovernanceNotificationSettingsWithHttpInfo
public ApiResponse<GovernanceNotificationSettingsResponse> getGovernanceNotificationSettingsWithHttpInfo() throws ApiExceptionRetrieve the organization-wide governance notification settings, including whether users are notified when detections are assigned to them.- Returns:
- ApiResponse<GovernanceNotificationSettingsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
getGovernanceNotificationSettingsWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceNotificationSettingsResponse>> getGovernanceNotificationSettingsWithHttpInfoAsync()Get notification settings.- Returns:
- CompletableFuture<ApiResponse<GovernanceNotificationSettingsResponse>>
-
listGovernanceControlDetections
public GovernanceControlDetectionsResponse listGovernanceControlDetections(String detectionType) throws ApiException List control detections.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)- Returns:
- GovernanceControlDetectionsResponse
- Throws:
ApiException- if fails to make API call
-
listGovernanceControlDetectionsAsync
public CompletableFuture<GovernanceControlDetectionsResponse> listGovernanceControlDetectionsAsync(String detectionType) List control detections.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)- Returns:
- CompletableFuture<GovernanceControlDetectionsResponse>
-
listGovernanceControlDetections
public GovernanceControlDetectionsResponse listGovernanceControlDetections(String detectionType, GovernanceConsoleApi.ListGovernanceControlDetectionsOptionalParameters parameters) throws ApiException List control detections.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)parameters- Optional parameters for the request.- Returns:
- GovernanceControlDetectionsResponse
- Throws:
ApiException- if fails to make API call
-
listGovernanceControlDetectionsAsync
public CompletableFuture<GovernanceControlDetectionsResponse> listGovernanceControlDetectionsAsync(String detectionType, GovernanceConsoleApi.ListGovernanceControlDetectionsOptionalParameters parameters) List control detections.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<GovernanceControlDetectionsResponse>
-
listGovernanceControlDetectionsWithHttpInfo
public ApiResponse<GovernanceControlDetectionsResponse> listGovernanceControlDetectionsWithHttpInfo(String detectionType, GovernanceConsoleApi.ListGovernanceControlDetectionsOptionalParameters parameters) throws ApiException Retrieve the detections produced by the governance control with the given detection type. Results can be filtered by state and free-text query, sorted, and paginated.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<GovernanceControlDetectionsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
listGovernanceControlDetectionsWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceControlDetectionsResponse>> listGovernanceControlDetectionsWithHttpInfoAsync(String detectionType, GovernanceConsoleApi.ListGovernanceControlDetectionsOptionalParameters parameters) List control detections.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<GovernanceControlDetectionsResponse>>
-
listGovernanceControls
List controls.- Returns:
- GovernanceControlsResponse
- Throws:
ApiException- if fails to make API call
-
listGovernanceControlsAsync
List controls.- Returns:
- CompletableFuture<GovernanceControlsResponse>
-
listGovernanceControlsWithHttpInfo
public ApiResponse<GovernanceControlsResponse> listGovernanceControlsWithHttpInfo() throws ApiExceptionRetrieve the list of governance controls configured for the organization. Each control pairs a detection definition with the organization's current detection, notification, and mitigation configuration, along with counts of active and mitigated detections.- Returns:
- ApiResponse<GovernanceControlsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
listGovernanceControlsWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceControlsResponse>> listGovernanceControlsWithHttpInfoAsync()List controls.- Returns:
- CompletableFuture<ApiResponse<GovernanceControlsResponse>>
-
listGovernanceInsights
List insights.- Returns:
- GovernanceInsightsResponse
- Throws:
ApiException- if fails to make API call
-
listGovernanceInsightsAsync
List insights.- Returns:
- CompletableFuture<GovernanceInsightsResponse>
-
listGovernanceInsights
public GovernanceInsightsResponse listGovernanceInsights(GovernanceConsoleApi.ListGovernanceInsightsOptionalParameters parameters) throws ApiException List insights.- Parameters:
parameters- Optional parameters for the request.- Returns:
- GovernanceInsightsResponse
- Throws:
ApiException- if fails to make API call
-
listGovernanceInsightsAsync
public CompletableFuture<GovernanceInsightsResponse> listGovernanceInsightsAsync(GovernanceConsoleApi.ListGovernanceInsightsOptionalParameters parameters) List insights.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<GovernanceInsightsResponse>
-
listGovernanceInsightsWithHttpInfo
public ApiResponse<GovernanceInsightsResponse> listGovernanceInsightsWithHttpInfo(GovernanceConsoleApi.ListGovernanceInsightsOptionalParameters parameters) throws ApiException Retrieve the list of governance insights available to the organization. Each insight reports the query used to compute it, so that the value can be computed client-side. Insights can be filtered by product.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<GovernanceInsightsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
listGovernanceInsightsWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceInsightsResponse>> listGovernanceInsightsWithHttpInfoAsync(GovernanceConsoleApi.ListGovernanceInsightsOptionalParameters parameters) List insights.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<GovernanceInsightsResponse>>
-
mitigateGovernanceDetections
Mitigate detections.- Parameters:
body- (required)- Throws:
ApiException- if fails to make API call
-
mitigateGovernanceDetectionsAsync
Mitigate detections.- Parameters:
body- (required)- Returns:
- CompletableFuture
-
mitigateGovernanceDetectionsWithHttpInfo
public ApiResponse<Void> mitigateGovernanceDetectionsWithHttpInfo(GovernanceMitigationRequest body) throws ApiException Apply a mitigation to a set of governance detections of a given detection type. When the mitigation type is omitted, the control's configured mitigation is used. The request is accepted for asynchronous processing.- Parameters:
body- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 202 Accepted - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
mitigateGovernanceDetectionsWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> mitigateGovernanceDetectionsWithHttpInfoAsync(GovernanceMitigationRequest body) Mitigate detections.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
updateGovernanceControl
public GovernanceControlResponse updateGovernanceControl(String detectionType, GovernanceControlUpdateRequest body) throws ApiException Update a control.- Parameters:
detectionType- The detection type that identifies the control, for exampleunused_api_keys. (required)body- (required)- Returns:
- GovernanceControlResponse
- Throws:
ApiException- if fails to make API call
-
updateGovernanceControlAsync
public CompletableFuture<GovernanceControlResponse> updateGovernanceControlAsync(String detectionType, GovernanceControlUpdateRequest body) Update a control.- Parameters:
detectionType- The detection type that identifies the control, for exampleunused_api_keys. (required)body- (required)- Returns:
- CompletableFuture<GovernanceControlResponse>
-
updateGovernanceControlWithHttpInfo
public ApiResponse<GovernanceControlResponse> updateGovernanceControlWithHttpInfo(String detectionType, GovernanceControlUpdateRequest body) throws ApiException Update the detection, notification, and mitigation configuration of a governance control. Only the attributes present in the request are modified. Changing the mitigation type or its parameters may require additional permissions.- Parameters:
detectionType- The detection type that identifies the control, for exampleunused_api_keys. (required)body- (required)- Returns:
- ApiResponse<GovernanceControlResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateGovernanceControlWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceControlResponse>> updateGovernanceControlWithHttpInfoAsync(String detectionType, GovernanceControlUpdateRequest body) Update a control.- Parameters:
detectionType- The detection type that identifies the control, for exampleunused_api_keys. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<GovernanceControlResponse>>
-
updateGovernanceControlNotificationSettings
public ControlNotificationSettingsResponse updateGovernanceControlNotificationSettings(String detectionType, ControlNotificationSettingsUpdateRequest body) throws ApiException Update control notification settings.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)body- (required)- Returns:
- ControlNotificationSettingsResponse
- Throws:
ApiException- if fails to make API call
-
updateGovernanceControlNotificationSettingsAsync
public CompletableFuture<ControlNotificationSettingsResponse> updateGovernanceControlNotificationSettingsAsync(String detectionType, ControlNotificationSettingsUpdateRequest body) Update control notification settings.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)body- (required)- Returns:
- CompletableFuture<ControlNotificationSettingsResponse>
-
updateGovernanceControlNotificationSettingsWithHttpInfo
public ApiResponse<ControlNotificationSettingsResponse> updateGovernanceControlNotificationSettingsWithHttpInfo(String detectionType, ControlNotificationSettingsUpdateRequest body) throws ApiException Replace the notification settings for the governance control with the given detection type, setting, for each supported event type, whether notifications are enabled and which destinations receive them.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)body- (required)- Returns:
- ApiResponse<ControlNotificationSettingsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
updateGovernanceControlNotificationSettingsWithHttpInfoAsync
public CompletableFuture<ApiResponse<ControlNotificationSettingsResponse>> updateGovernanceControlNotificationSettingsWithHttpInfoAsync(String detectionType, ControlNotificationSettingsUpdateRequest body) Update control notification settings.- Parameters:
detectionType- The detection type that identifies the control; for example,unused_api_keys. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<ControlNotificationSettingsResponse>>
-
updateGovernanceDetection
public GovernanceControlDetectionResponse updateGovernanceDetection(String detectionId, GovernanceControlDetectionUpdateRequest body) throws ApiException Update a detection.- Parameters:
detectionId- The unique identifier of the detection. (required)body- (required)- Returns:
- GovernanceControlDetectionResponse
- Throws:
ApiException- if fails to make API call
-
updateGovernanceDetectionAsync
public CompletableFuture<GovernanceControlDetectionResponse> updateGovernanceDetectionAsync(String detectionId, GovernanceControlDetectionUpdateRequest body) Update a detection.- Parameters:
detectionId- The unique identifier of the detection. (required)body- (required)- Returns:
- CompletableFuture<GovernanceControlDetectionResponse>
-
updateGovernanceDetectionWithHttpInfo
public ApiResponse<GovernanceControlDetectionResponse> updateGovernanceDetectionWithHttpInfo(String detectionId, GovernanceControlDetectionUpdateRequest body) throws ApiException Update a governance detection by its unique identifier. Only the attributes present in the request are modified, allowing a detection to be acknowledged as an exception, reopened, reassigned, or deferred for mitigation.- Parameters:
detectionId- The unique identifier of the detection. (required)body- (required)- Returns:
- ApiResponse<GovernanceControlDetectionResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateGovernanceDetectionWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceControlDetectionResponse>> updateGovernanceDetectionWithHttpInfoAsync(String detectionId, GovernanceControlDetectionUpdateRequest body) Update a detection.- Parameters:
detectionId- The unique identifier of the detection. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<GovernanceControlDetectionResponse>>
-
updateGovernanceNotificationSettings
public GovernanceNotificationSettingsResponse updateGovernanceNotificationSettings(GovernanceNotificationSettingsUpdateRequest body) throws ApiException Update notification settings.- Parameters:
body- (required)- Returns:
- GovernanceNotificationSettingsResponse
- Throws:
ApiException- if fails to make API call
-
updateGovernanceNotificationSettingsAsync
public CompletableFuture<GovernanceNotificationSettingsResponse> updateGovernanceNotificationSettingsAsync(GovernanceNotificationSettingsUpdateRequest body) Update notification settings.- Parameters:
body- (required)- Returns:
- CompletableFuture<GovernanceNotificationSettingsResponse>
-
updateGovernanceNotificationSettingsWithHttpInfo
public ApiResponse<GovernanceNotificationSettingsResponse> updateGovernanceNotificationSettingsWithHttpInfo(GovernanceNotificationSettingsUpdateRequest body) throws ApiException Update the organization-wide governance notification settings. Only the attributes present in the request are modified.- Parameters:
body- (required)- Returns:
- ApiResponse<GovernanceNotificationSettingsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
updateGovernanceNotificationSettingsWithHttpInfoAsync
public CompletableFuture<ApiResponse<GovernanceNotificationSettingsResponse>> updateGovernanceNotificationSettingsWithHttpInfoAsync(GovernanceNotificationSettingsUpdateRequest body) Update notification settings.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<GovernanceNotificationSettingsResponse>>
-