Interface Remediations


  • public interface Remediations
    Resource collection API of Remediations.
    • Method Detail

      • listDeploymentsAtManagementGroup

        com.azure.core.http.rest.PagedIterable<RemediationDeployment> 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.
        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<RemediationDeployment> 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.
        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

        Remediation 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.
      • cancelAtManagementGroupWithResponse

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

        Remediation 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.
      • createOrUpdateAtManagementGroupWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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

        Remediation 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.
      • getAtManagementGroupWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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

        Remediation 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.
      • deleteAtManagementGroupWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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<RemediationDeployment> 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.
        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<RemediationDeployment> 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.
        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

        Remediation 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.
      • cancelAtSubscriptionWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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<Remediation> list()
        Gets all remediations for the subscription.
        Returns:
        all remediations for the subscription.
        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<Remediation> 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.
        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

        Remediation 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.
      • createOrUpdateAtSubscriptionWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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

        Remediation 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.
      • getAtSubscriptionWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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

        Remediation 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.
      • deleteAtSubscriptionWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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<RemediationDeployment> 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.
        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<RemediationDeployment> 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.
        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

        Remediation 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.
      • cancelAtResourceGroupWithResponse

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

        Remediation 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.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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.
      • deleteByResourceGroup

        Remediation deleteByResourceGroup​(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.
      • deleteWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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<RemediationDeployment> 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.
        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<RemediationDeployment> 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.
        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

        Remediation 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.
      • cancelAtResourceWithResponse

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

        Remediation 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.
      • createOrUpdateAtResourceWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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

        Remediation 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.
      • getAtResourceWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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

        Remediation 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.
      • deleteAtResourceWithResponse

        com.azure.core.http.rest.Response<Remediation> 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.
        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

        Remediation getById​(String id)
        Gets an existing remediation at resource group scope.
        Parameters:
        id - the resource ID.
        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.
      • getByIdWithResponse

        com.azure.core.http.rest.Response<Remediation> getByIdWithResponse​(String id,
                                                                           com.azure.core.util.Context context)
        Gets an existing remediation at resource group scope.
        Parameters:
        id - the resource ID.
        context - The context to associate with this operation.
        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.
      • deleteById

        Remediation deleteById​(String id)
        Deletes an existing remediation at resource group scope.
        Parameters:
        id - the resource ID.
        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.
      • deleteByIdWithResponse

        com.azure.core.http.rest.Response<Remediation> deleteByIdWithResponse​(String id,
                                                                              com.azure.core.util.Context context)
        Deletes an existing remediation at resource group scope.
        Parameters:
        id - the resource ID.
        context - The context to associate with this operation.
        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.
      • define

        Remediation.DefinitionStages.Blank define​(String name)
        Begins definition for a new Remediation resource.
        Parameters:
        name - resource name.
        Returns:
        the first stage of the new Remediation definition.