Interface ServerSecurityAlertPolicies
-
public interface ServerSecurityAlertPoliciesResource collection API of ServerSecurityAlertPolicies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerSecurityAlertPolicy.DefinitionStages.Blankdefine(SecurityAlertPolicyName name)Begins definition for a new ServerSecurityAlertPolicy resource.ServerSecurityAlertPolicyget(String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName)Get a server's security alert policy.ServerSecurityAlertPolicygetById(String id)Get a server's security alert policy.com.azure.core.http.rest.Response<ServerSecurityAlertPolicy>getByIdWithResponse(String id, com.azure.core.util.Context context)Get a server's security alert policy.com.azure.core.http.rest.Response<ServerSecurityAlertPolicy>getWithResponse(String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName, com.azure.core.util.Context context)Get a server's security alert policy.com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicy>listByServer(String resourceGroupName, String serverName)Get the server's threat detection policies.com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicy>listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)Get the server's threat detection policies.
-
-
-
Method Detail
-
get
ServerSecurityAlertPolicy get(String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName)
Get a server's security alert policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.securityAlertPolicyName- The name of the security alert policy.- Returns:
- a 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 serverName, SecurityAlertPolicyName securityAlertPolicyName, com.azure.core.util.Context context)
Get a server's security alert policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.securityAlertPolicyName- The name of the security alert policy.context- The context to associate with this operation.- Returns:
- a 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicy> listByServer(String resourceGroupName, String serverName)
Get the server's threat detection policies.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- the server's threat detection policies.
- 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicy> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
Get the server's threat detection policies.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- the server's threat detection policies.
- 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 server's security alert policy.- Parameters:
id- the resource ID.- Returns:
- a 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 server's security alert policy.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a 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(SecurityAlertPolicyName name)
Begins definition for a new ServerSecurityAlertPolicy resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new ServerSecurityAlertPolicy definition.
-
-