Interface WorkspaceManagedSqlServerSecurityAlertPolicies
-
public interface WorkspaceManagedSqlServerSecurityAlertPolicies
Resource collection API of WorkspaceManagedSqlServerSecurityAlertPolicies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerSecurityAlertPolicy.DefinitionStages.Blank
define(SecurityAlertPolicyNameAutoGenerated name)
Begins definition for a new ServerSecurityAlertPolicy resource.ServerSecurityAlertPolicy
get(String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName)
Get a workspace managed sql server's security alert policy.ServerSecurityAlertPolicy
getById(String id)
Get a workspace managed sql server's security alert policy.com.azure.core.http.rest.Response<ServerSecurityAlertPolicy>
getByIdWithResponse(String id, com.azure.core.util.Context context)
Get a workspace managed sql server's security alert policy.com.azure.core.http.rest.Response<ServerSecurityAlertPolicy>
getWithResponse(String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, com.azure.core.util.Context context)
Get a workspace managed sql server's security alert policy.com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicy>
list(String resourceGroupName, String workspaceName)
Get workspace managed sql server's threat detection policies.com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicy>
list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
Get workspace managed sql server's threat detection policies.
-
-
-
Method Detail
-
get
ServerSecurityAlertPolicy get(String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName)
Get a workspace managed sql server's security alert policy.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.securityAlertPolicyName
- The name of the security alert policy.- Returns:
- a workspace managed sql server's security alert policy.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<ServerSecurityAlertPolicy> getWithResponse(String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, com.azure.core.util.Context context)
Get a workspace managed sql server's security alert policy.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.securityAlertPolicyName
- The name of the security alert policy.context
- The context to associate with this operation.- Returns:
- a workspace managed sql server's security alert policy along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicy> list(String resourceGroupName, String workspaceName)
Get workspace managed sql server's threat detection policies.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.- Returns:
- workspace managed sql server's threat detection policies as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicy> list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
Get workspace managed sql server's threat detection policies.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.context
- The context to associate with this operation.- Returns:
- workspace managed sql server's threat detection policies as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
ServerSecurityAlertPolicy getById(String id)
Get a workspace managed sql server's security alert policy.- Parameters:
id
- the resource ID.- Returns:
- a workspace managed sql server's security alert policy along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<ServerSecurityAlertPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context)
Get a workspace managed sql server's security alert policy.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a workspace managed sql server's security alert policy along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
ServerSecurityAlertPolicy.DefinitionStages.Blank define(SecurityAlertPolicyNameAutoGenerated name)
Begins definition for a new ServerSecurityAlertPolicy resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ServerSecurityAlertPolicy definition.
-
-