Share via


ComputeManagementClientExtensions.GetOperationStatus Method (IComputeManagementClient, String)

 

Returns the status of the specified operation.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

public static OperationStatusResponse GetOperationStatus(
    this IComputeManagementClient operations,
    string requestId
)
public:
[ExtensionAttribute]
static OperationStatusResponse^ GetOperationStatus(
    IComputeManagementClient^ operations,
    String^ requestId
)
static member GetOperationStatus : 
        operations:IComputeManagementClient *
        requestId:string -> OperationStatusResponse
<ExtensionAttribute>
Public Shared Function GetOperationStatus (
    operations As IComputeManagementClient,
    requestId As String
) As OperationStatusResponse

Parameters

  • requestId
    Type: System.String

    The request ID of the asynchronous request.

Return Value

Type: Microsoft.Azure.OperationStatusResponse

An T:Microsoft.WindowsAzure.Management.Models.OperationStatusResponse object that contains the status of the specified asynchronous operation.

Remarks

After calling an asynchronous operation, you can use this method to determine whether the operation has succeeded, failed, or is still in progress. If the asynchronous operation succeeds, the response includes the HTTP status code for the successful request. If the asynchronous operation failed, the response includes the HTTP status code for the failed request, and also includes error information about the failure.

For more information about obtaining the status of an operation, see Get Operation Status.

See Also

ComputeManagementClientExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top