Virtual Machines - Get Async Operation Status

Gets the async operation status.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}?api-version=2021-06-01

URI Parameters

Name In Required Type Description
clusterName
path True

string

The name of the cluster.

operationId
path True

string

The long running operation id.

resourceGroupName
path True

string

The name of the resource group.

subscriptionId
path True

string

The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

The HDInsight client API Version.

Responses

Name Type Description
200 OK

AsyncOperationResult

OK response definition.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Gets the async operation status of restarting host.

Sample request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/restartHosts/azureasyncoperations/CF938302-6B4D-44A0-A6D2-C0D67E847AEC?api-version=2021-06-01

Sample response

{
  "status": "InProgress"
}

Definitions

Name Description
AsyncOperationResult

The azure async operation response.

AsyncOperationState

The async operation state.

ErrorResponse

Describes the format of Error response.

Errors

The error message associated with the cluster creation.

AsyncOperationResult

The azure async operation response.

Name Type Description
error

Errors

The operation error information.

status

AsyncOperationState

The async operation state.

AsyncOperationState

The async operation state.

Name Type Description
Failed

string

InProgress

string

Succeeded

string

ErrorResponse

Describes the format of Error response.

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.

Errors

The error message associated with the cluster creation.

Name Type Description
code

string

The error code.

message

string

The error message.