Interface RemediationsClient


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

    • listDeploymentsAtManagementGroup

      com.azure.core.http.rest.PagedIterable<RemediationDeploymentInner> listDeploymentsAtManagementGroup(String managementGroupId, String remediationName)
      Gets all deployments for a remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      Returns:
      all deployments for a remediation at management group scope 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.
    • listDeploymentsAtManagementGroup

      com.azure.core.http.rest.PagedIterable<RemediationDeploymentInner> listDeploymentsAtManagementGroup(String managementGroupId, String remediationName, Integer top, com.azure.core.util.Context context)
      Gets all deployments for a remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      top - Maximum number of records to return.
      context - The context to associate with this operation.
      Returns:
      all deployments for a remediation at management group scope 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.
    • cancelAtManagementGroupWithResponse

      com.azure.core.http.rest.Response<RemediationInner> cancelAtManagementGroupWithResponse(String managementGroupId, String remediationName, com.azure.core.util.Context context)
      Cancels a remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • cancelAtManagementGroup

      RemediationInner cancelAtManagementGroup(String managementGroupId, String remediationName)
      Cancels a remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      Returns:
      the remediation definition.
      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.
    • listForManagementGroup

      com.azure.core.http.rest.PagedIterable<RemediationInner> listForManagementGroup(String managementGroupId)
      Gets all remediations for the management group.
      Parameters:
      managementGroupId - Management group ID.
      Returns:
      all remediations for the management group 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.
    • listForManagementGroup

      com.azure.core.http.rest.PagedIterable<RemediationInner> listForManagementGroup(String managementGroupId, Integer top, String filter, com.azure.core.util.Context context)
      Gets all remediations for the management group.
      Parameters:
      managementGroupId - Management group ID.
      top - Maximum number of records to return.
      filter - OData filter expression.
      context - The context to associate with this operation.
      Returns:
      all remediations for the management group 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.
    • createOrUpdateAtManagementGroupWithResponse

      com.azure.core.http.rest.Response<RemediationInner> createOrUpdateAtManagementGroupWithResponse(String managementGroupId, String remediationName, RemediationInner parameters, com.azure.core.util.Context context)
      Creates or updates a remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      parameters - The remediation parameters.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • createOrUpdateAtManagementGroup

      RemediationInner createOrUpdateAtManagementGroup(String managementGroupId, String remediationName, RemediationInner parameters)
      Creates or updates a remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      parameters - The remediation parameters.
      Returns:
      the remediation definition.
      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.
    • getAtManagementGroupWithResponse

      com.azure.core.http.rest.Response<RemediationInner> getAtManagementGroupWithResponse(String managementGroupId, String remediationName, com.azure.core.util.Context context)
      Gets an existing remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      an existing remediation at management group scope 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.
    • getAtManagementGroup

      RemediationInner getAtManagementGroup(String managementGroupId, String remediationName)
      Gets an existing remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      Returns:
      an existing remediation at management group scope.
      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.
    • deleteAtManagementGroupWithResponse

      com.azure.core.http.rest.Response<RemediationInner> deleteAtManagementGroupWithResponse(String managementGroupId, String remediationName, com.azure.core.util.Context context)
      Deletes an existing remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • deleteAtManagementGroup

      RemediationInner deleteAtManagementGroup(String managementGroupId, String remediationName)
      Deletes an existing remediation at management group scope.
      Parameters:
      managementGroupId - Management group ID.
      remediationName - The name of the remediation.
      Returns:
      the remediation definition.
      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.
    • listDeploymentsAtSubscription

      com.azure.core.http.rest.PagedIterable<RemediationDeploymentInner> listDeploymentsAtSubscription(String remediationName)
      Gets all deployments for a remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      Returns:
      all deployments for a remediation at subscription scope 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.
    • listDeploymentsAtSubscription

      com.azure.core.http.rest.PagedIterable<RemediationDeploymentInner> listDeploymentsAtSubscription(String remediationName, Integer top, com.azure.core.util.Context context)
      Gets all deployments for a remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      top - Maximum number of records to return.
      context - The context to associate with this operation.
      Returns:
      all deployments for a remediation at subscription scope 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.
    • cancelAtSubscriptionWithResponse

      com.azure.core.http.rest.Response<RemediationInner> cancelAtSubscriptionWithResponse(String remediationName, com.azure.core.util.Context context)
      Cancels a remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • cancelAtSubscription

      RemediationInner cancelAtSubscription(String remediationName)
      Cancels a remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      Returns:
      the remediation definition.
      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<RemediationInner> list()
      Gets all remediations for the subscription.
      Returns:
      all remediations for the subscription as paginated response with PagedIterable.
      Throws:
      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<RemediationInner> list(Integer top, String filter, com.azure.core.util.Context context)
      Gets all remediations for the subscription.
      Parameters:
      top - Maximum number of records to return.
      filter - OData filter expression.
      context - The context to associate with this operation.
      Returns:
      all remediations for the subscription 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.
    • createOrUpdateAtSubscriptionWithResponse

      com.azure.core.http.rest.Response<RemediationInner> createOrUpdateAtSubscriptionWithResponse(String remediationName, RemediationInner parameters, com.azure.core.util.Context context)
      Creates or updates a remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      parameters - The remediation parameters.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • createOrUpdateAtSubscription

      RemediationInner createOrUpdateAtSubscription(String remediationName, RemediationInner parameters)
      Creates or updates a remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      parameters - The remediation parameters.
      Returns:
      the remediation definition.
      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.
    • getAtSubscriptionWithResponse

      com.azure.core.http.rest.Response<RemediationInner> getAtSubscriptionWithResponse(String remediationName, com.azure.core.util.Context context)
      Gets an existing remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      an existing remediation at subscription scope 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.
    • getAtSubscription

      RemediationInner getAtSubscription(String remediationName)
      Gets an existing remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      Returns:
      an existing remediation at subscription scope.
      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.
    • deleteAtSubscriptionWithResponse

      com.azure.core.http.rest.Response<RemediationInner> deleteAtSubscriptionWithResponse(String remediationName, com.azure.core.util.Context context)
      Deletes an existing remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • deleteAtSubscription

      RemediationInner deleteAtSubscription(String remediationName)
      Deletes an existing remediation at subscription scope.
      Parameters:
      remediationName - The name of the remediation.
      Returns:
      the remediation definition.
      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.
    • listDeploymentsAtResourceGroup

      com.azure.core.http.rest.PagedIterable<RemediationDeploymentInner> listDeploymentsAtResourceGroup(String resourceGroupName, String remediationName)
      Gets all deployments for a remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      Returns:
      all deployments for a remediation at resource group scope 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.
    • listDeploymentsAtResourceGroup

      com.azure.core.http.rest.PagedIterable<RemediationDeploymentInner> listDeploymentsAtResourceGroup(String resourceGroupName, String remediationName, Integer top, com.azure.core.util.Context context)
      Gets all deployments for a remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      top - Maximum number of records to return.
      context - The context to associate with this operation.
      Returns:
      all deployments for a remediation at resource group scope 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.
    • cancelAtResourceGroupWithResponse

      com.azure.core.http.rest.Response<RemediationInner> cancelAtResourceGroupWithResponse(String resourceGroupName, String remediationName, com.azure.core.util.Context context)
      Cancels a remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • cancelAtResourceGroup

      RemediationInner cancelAtResourceGroup(String resourceGroupName, String remediationName)
      Cancels a remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      Returns:
      the remediation definition.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<RemediationInner> listByResourceGroup(String resourceGroupName)
      Gets all remediations for the subscription.
      Parameters:
      resourceGroupName - Resource group name.
      Returns:
      all remediations for the subscription 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<RemediationInner> listByResourceGroup(String resourceGroupName, Integer top, String filter, com.azure.core.util.Context context)
      Gets all remediations for the subscription.
      Parameters:
      resourceGroupName - Resource group name.
      top - Maximum number of records to return.
      filter - OData filter expression.
      context - The context to associate with this operation.
      Returns:
      all remediations for the subscription 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.
    • createOrUpdateAtResourceGroupWithResponse

      com.azure.core.http.rest.Response<RemediationInner> createOrUpdateAtResourceGroupWithResponse(String resourceGroupName, String remediationName, RemediationInner parameters, com.azure.core.util.Context context)
      Creates or updates a remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      parameters - The remediation parameters.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • createOrUpdateAtResourceGroup

      RemediationInner createOrUpdateAtResourceGroup(String resourceGroupName, String remediationName, RemediationInner parameters)
      Creates or updates a remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      parameters - The remediation parameters.
      Returns:
      the remediation definition.
      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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<RemediationInner> getByResourceGroupWithResponse(String resourceGroupName, String remediationName, com.azure.core.util.Context context)
      Gets an existing remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      an existing remediation at resource group scope 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.
    • getByResourceGroup

      RemediationInner getByResourceGroup(String resourceGroupName, String remediationName)
      Gets an existing remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      Returns:
      an existing remediation at resource group scope.
      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<RemediationInner> deleteWithResponse(String resourceGroupName, String remediationName, com.azure.core.util.Context context)
      Deletes an existing remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • delete

      RemediationInner delete(String resourceGroupName, String remediationName)
      Deletes an existing remediation at resource group scope.
      Parameters:
      resourceGroupName - Resource group name.
      remediationName - The name of the remediation.
      Returns:
      the remediation definition.
      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.
    • listDeploymentsAtResource

      com.azure.core.http.rest.PagedIterable<RemediationDeploymentInner> listDeploymentsAtResource(String resourceId, String remediationName)
      Gets all deployments for a remediation at resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      Returns:
      all deployments for a remediation at resource scope 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.
    • listDeploymentsAtResource

      com.azure.core.http.rest.PagedIterable<RemediationDeploymentInner> listDeploymentsAtResource(String resourceId, String remediationName, Integer top, com.azure.core.util.Context context)
      Gets all deployments for a remediation at resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      top - Maximum number of records to return.
      context - The context to associate with this operation.
      Returns:
      all deployments for a remediation at resource scope 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.
    • cancelAtResourceWithResponse

      com.azure.core.http.rest.Response<RemediationInner> cancelAtResourceWithResponse(String resourceId, String remediationName, com.azure.core.util.Context context)
      Cancel a remediation at resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • cancelAtResource

      RemediationInner cancelAtResource(String resourceId, String remediationName)
      Cancel a remediation at resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      Returns:
      the remediation definition.
      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.
    • listForResource

      com.azure.core.http.rest.PagedIterable<RemediationInner> listForResource(String resourceId)
      Gets all remediations for a resource.
      Parameters:
      resourceId - Resource ID.
      Returns:
      all remediations for a resource 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.
    • listForResource

      com.azure.core.http.rest.PagedIterable<RemediationInner> listForResource(String resourceId, Integer top, String filter, com.azure.core.util.Context context)
      Gets all remediations for a resource.
      Parameters:
      resourceId - Resource ID.
      top - Maximum number of records to return.
      filter - OData filter expression.
      context - The context to associate with this operation.
      Returns:
      all remediations for a resource 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.
    • createOrUpdateAtResourceWithResponse

      com.azure.core.http.rest.Response<RemediationInner> createOrUpdateAtResourceWithResponse(String resourceId, String remediationName, RemediationInner parameters, com.azure.core.util.Context context)
      Creates or updates a remediation at resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      parameters - The remediation parameters.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • createOrUpdateAtResource

      RemediationInner createOrUpdateAtResource(String resourceId, String remediationName, RemediationInner parameters)
      Creates or updates a remediation at resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      parameters - The remediation parameters.
      Returns:
      the remediation definition.
      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.
    • getAtResourceWithResponse

      com.azure.core.http.rest.Response<RemediationInner> getAtResourceWithResponse(String resourceId, String remediationName, com.azure.core.util.Context context)
      Gets an existing remediation at resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      an existing remediation at resource scope 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.
    • getAtResource

      RemediationInner getAtResource(String resourceId, String remediationName)
      Gets an existing remediation at resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      Returns:
      an existing remediation at resource scope.
      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.
    • deleteAtResourceWithResponse

      com.azure.core.http.rest.Response<RemediationInner> deleteAtResourceWithResponse(String resourceId, String remediationName, com.azure.core.util.Context context)
      Deletes an existing remediation at individual resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      context - The context to associate with this operation.
      Returns:
      the remediation definition 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.
    • deleteAtResource

      RemediationInner deleteAtResource(String resourceId, String remediationName)
      Deletes an existing remediation at individual resource scope.
      Parameters:
      resourceId - Resource ID.
      remediationName - The name of the remediation.
      Returns:
      the remediation definition.
      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.