Interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient


public interface ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient
An instance of this class provides access to all the operations defined in ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient.
  • Method Details

    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<DatabaseVulnerabilityAssessmentRuleBaselineInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName)
      Gets a database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      Returns:
      a database's vulnerability assessment rule baseline along with Response 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.
    • getAsync

      Mono<DatabaseVulnerabilityAssessmentRuleBaselineInner> getAsync(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName)
      Gets a database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      Returns:
      a database's vulnerability assessment rule baseline 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<DatabaseVulnerabilityAssessmentRuleBaselineInner> getWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, com.azure.core.util.Context context)
      Gets a database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      context - The context to associate with this operation.
      Returns:
      a database's vulnerability assessment rule baseline 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

      DatabaseVulnerabilityAssessmentRuleBaselineInner get(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName)
      Gets a database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      Returns:
      a database's vulnerability assessment rule baseline.
      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<DatabaseVulnerabilityAssessmentRuleBaselineInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, DatabaseVulnerabilityAssessmentRuleBaselineInner parameters)
      Creates or updates a database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      parameters - The requested rule baseline resource.
      Returns:
      a database vulnerability assessment rule baseline along with Response 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.
    • createOrUpdateAsync

      Mono<DatabaseVulnerabilityAssessmentRuleBaselineInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, DatabaseVulnerabilityAssessmentRuleBaselineInner parameters)
      Creates or updates a database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      parameters - The requested rule baseline resource.
      Returns:
      a database vulnerability assessment rule baseline 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<DatabaseVulnerabilityAssessmentRuleBaselineInner> createOrUpdateWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, DatabaseVulnerabilityAssessmentRuleBaselineInner parameters, com.azure.core.util.Context context)
      Creates or updates a database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      parameters - The requested rule baseline resource.
      context - The context to associate with this operation.
      Returns:
      a database vulnerability assessment rule baseline 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

      DatabaseVulnerabilityAssessmentRuleBaselineInner createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, DatabaseVulnerabilityAssessmentRuleBaselineInner parameters)
      Creates or updates a database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      parameters - The requested rule baseline resource.
      Returns:
      a database vulnerability assessment rule baseline.
      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.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName)
      Removes the database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      Returns:
      the Response 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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName)
      Removes the database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      Returns:
      A Mono that completes when a successful response is received.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, com.azure.core.util.Context context)
      Removes the database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      context - The context to associate with this operation.
      Returns:
      the 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.
    • delete

      void delete(String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName)
      Removes the database's vulnerability assessment rule baseline.
      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 database for which the vulnerability assessment rule baseline is defined.
      vulnerabilityAssessmentName - The name of the vulnerability assessment.
      ruleId - The vulnerability assessment rule ID.
      baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
      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.