Delen via


Virtual Machines - Restart Hosts

Start de opgegeven HDInsight-clusterhosts opnieuw op.

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

URI-parameters

Name In Vereist Type Description
clusterName
path True

string

De naam van het cluster.

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.

Aanvraagbody

Name Type Description
hosts

string[]

De lijst met hosts die opnieuw moeten worden opgestart

Antwoorden

Name Type Description
200 OK

Definitie van OK-antwoord.

202 Accepted

Geaccepteerde antwoorddefinitie.

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

Restarts the specified HDInsight cluster hosts.

Voorbeeldaanvraag

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/restartHosts?api-version=2021-06-01

[
  "gateway1",
  "gateway3"
]

Voorbeeldrespons

location: https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/operationresults/operationid?api-version=2021-06-01
location: https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/operationresults/operationid?api-version=2021-06-01

Definities

ErrorResponse

Beschrijft de indeling van foutreactie.

Name Type Description
code

string

Foutcode

message

string

Foutbericht dat aangeeft waarom de bewerking is mislukt.