Delen via


Virtual Machines - Get Async Operation Status

Hiermee haalt u de status van de asynchrone bewerking op.

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 Vereist Type Description
clusterName
path True

string

De naam van het cluster.

operationId
path True

string

De id van de langlopende bewerking.

resourceGroupName
path True

string

De naam van de resourcegroep.

subscriptionId
path True

string

De abonnementsreferenties waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke service-aanroep.

api-version
query True

string

De API-versie van de HDInsight-client.

Antwoorden

Name Type Description
200 OK

AsyncOperationResult

Definitie van OK-antwoord.

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Gets the async operation status of restarting host.

Voorbeeldaanvraag

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

Voorbeeldrespons

{
  "status": "InProgress"
}

Definities

Name Description
AsyncOperationResult

Het antwoord van de azure asynchrone bewerking.

AsyncOperationState

De status van de asynchrone bewerking.

ErrorResponse

Beschrijft de indeling van foutreactie.

Errors

Het foutbericht dat is gekoppeld aan het maken van het cluster.

AsyncOperationResult

Het antwoord van de azure asynchrone bewerking.

Name Type Description
error

Errors

De informatie over de bewerkingsfout.

status

AsyncOperationState

De status van de asynchrone bewerking.

AsyncOperationState

De status van de asynchrone bewerking.

Name Type Description
Failed

string

InProgress

string

Succeeded

string

ErrorResponse

Beschrijft de indeling van foutreactie.

Name Type Description
code

string

Foutcode

message

string

Foutbericht dat aangeeft waarom de bewerking is mislukt.

Errors

Het foutbericht dat is gekoppeld aan het maken van het cluster.

Name Type Description
code

string

De foutcode.

message

string

Het foutbericht.