Share via


IIotDpsResourceOperations.GetOperationResultWithHttpMessagesAsync Method

Definition

Gets the status of a long running operation, such as create, update or delete a provisioning service.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeviceProvisioningServices.Models.AsyncOperationResult>> GetOperationResultWithHttpMessagesAsync (string operationId, string resourceGroupName, string provisioningServiceName, string asyncinfo, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationResultWithHttpMessagesAsync : string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeviceProvisioningServices.Models.AsyncOperationResult>>
Public Function GetOperationResultWithHttpMessagesAsync (operationId As String, resourceGroupName As String, provisioningServiceName As String, asyncinfo As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of AsyncOperationResult))

Parameters

operationId
String

Operation id corresponding to long running operation. Use this to poll for the status.

resourceGroupName
String

Resource group identifier.

provisioningServiceName
String

Name of provisioning service that the operation is running on.

asyncinfo
String

Async header used to poll on the status of the operation, obtained while creating the long running operation.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to