Interface ManagedDatabaseSecurityAlertPoliciesClient
public interface ManagedDatabaseSecurityAlertPoliciesClient
An instance of this class provides access to all the operations defined in
ManagedDatabaseSecurityAlertPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyInner parameters) Creates or updates a database's security alert policy.createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyInner parameters) Creates or updates a database's security alert policy.com.azure.core.http.rest.Response<ManagedDatabaseSecurityAlertPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyInner parameters, com.azure.core.util.Context context) Creates or updates a database's security alert policy.Mono<com.azure.core.http.rest.Response<ManagedDatabaseSecurityAlertPolicyInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyInner parameters) Creates or updates a database's security alert policy.get(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName) Gets a managed database's security alert policy.getAsync(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName) Gets a managed database's security alert policy.com.azure.core.http.rest.Response<ManagedDatabaseSecurityAlertPolicyInner> getWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, com.azure.core.util.Context context) Gets a managed database's security alert policy.Mono<com.azure.core.http.rest.Response<ManagedDatabaseSecurityAlertPolicyInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName) Gets a managed database's security alert policy.com.azure.core.http.rest.PagedIterable<ManagedDatabaseSecurityAlertPolicyInner> listByDatabase(String resourceGroupName, String managedInstanceName, String databaseName) Gets a list of managed database's security alert policies.com.azure.core.http.rest.PagedIterable<ManagedDatabaseSecurityAlertPolicyInner> listByDatabase(String resourceGroupName, String managedInstanceName, String databaseName, com.azure.core.util.Context context) Gets a list of managed database's security alert policies.com.azure.core.http.rest.PagedFlux<ManagedDatabaseSecurityAlertPolicyInner> listByDatabaseAsync(String resourceGroupName, String managedInstanceName, String databaseName) Gets a list of managed database's security alert policies.
-
Method Details
-
listByDatabaseAsync
com.azure.core.http.rest.PagedFlux<ManagedDatabaseSecurityAlertPolicyInner> listByDatabaseAsync(String resourceGroupName, String managedInstanceName, String databaseName) Gets a list of managed database's security alert policies.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policies are defined.- Returns:
- a list of managed database's security alert policies as paginated response with
PagedFlux. - 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.
-
listByDatabase
com.azure.core.http.rest.PagedIterable<ManagedDatabaseSecurityAlertPolicyInner> listByDatabase(String resourceGroupName, String managedInstanceName, String databaseName) Gets a list of managed database's security alert policies.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policies are defined.- Returns:
- a list of managed database's security alert 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.
-
listByDatabase
com.azure.core.http.rest.PagedIterable<ManagedDatabaseSecurityAlertPolicyInner> listByDatabase(String resourceGroupName, String managedInstanceName, String databaseName, com.azure.core.util.Context context) Gets a list of managed database's security alert policies.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policies are defined.context- The context to associate with this operation.- Returns:
- a list of managed database's security alert 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagedDatabaseSecurityAlertPolicyInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName) Gets a managed database's security alert policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policy is defined.securityAlertPolicyName- The name of the security alert policy.- Returns:
- a managed database's security alert policy along with
Responseon successful completion ofMono. - 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.
-
getAsync
Mono<ManagedDatabaseSecurityAlertPolicyInner> getAsync(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName) Gets a managed database's security alert policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policy is defined.securityAlertPolicyName- The name of the security alert policy.- Returns:
- a managed database's security alert policy on successful completion of
Mono. - 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<ManagedDatabaseSecurityAlertPolicyInner> getWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, com.azure.core.util.Context context) Gets a managed database's security alert policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policy is defined.securityAlertPolicyName- The name of the security alert policy.context- The context to associate with this operation.- Returns:
- a managed database'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.
-
get
ManagedDatabaseSecurityAlertPolicyInner get(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName) Gets a managed database's security alert policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policy is defined.securityAlertPolicyName- The name of the security alert policy.- Returns:
- a managed database'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.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagedDatabaseSecurityAlertPolicyInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyInner parameters) Creates or updates a database's security alert policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policy is defined.securityAlertPolicyName- The name of the security alert policy.parameters- The database security alert policy.- Returns:
- a managed database security alert policy along with
Responseon successful completion ofMono. - 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.
-
createOrUpdateAsync
Mono<ManagedDatabaseSecurityAlertPolicyInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyInner parameters) Creates or updates a database's security alert policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policy is defined.securityAlertPolicyName- The name of the security alert policy.parameters- The database security alert policy.- Returns:
- a managed database security alert policy on successful completion of
Mono. - 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ManagedDatabaseSecurityAlertPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyInner parameters, com.azure.core.util.Context context) Creates or updates a database's security alert policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policy is defined.securityAlertPolicyName- The name of the security alert policy.parameters- The database security alert policy.context- The context to associate with this operation.- Returns:
- a managed database 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.
-
createOrUpdate
ManagedDatabaseSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, SecurityAlertPolicyName securityAlertPolicyName, ManagedDatabaseSecurityAlertPolicyInner parameters) Creates or updates a database's security alert policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the managed database for which the security alert policy is defined.securityAlertPolicyName- The name of the security alert policy.parameters- The database security alert policy.- Returns:
- a managed database 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.
-