Share via


DataBoxManagementClient.MitigateWithHttpMessagesAsync Method

Definition

Request to mitigate for a given job

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> MitigateWithHttpMessagesAsync (string jobName, string resourceGroupName, Microsoft.Azure.Management.DataBox.Models.CustomerResolutionCode customerResolutionCode, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member MitigateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.DataBox.Models.CustomerResolutionCode * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
override this.MitigateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.DataBox.Models.CustomerResolutionCode * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function MitigateWithHttpMessagesAsync (jobName As String, resourceGroupName As String, customerResolutionCode As CustomerResolutionCode, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parameters

jobName
String

The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only

resourceGroupName
String

The Resource Group Name

customerResolutionCode
CustomerResolutionCode

Resolution code for the job. Possible values include: 'None', 'MoveToCleanUpDevice', 'Resume'

customHeaders
Dictionary<String,List<String>>

Headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Implements

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Thrown when a required parameter is null

Applies to