Share via


Hyper V Sites - Get Site Health Summary

Metodo per ottenere il riepilogo dell'integrità del sito.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/HyperVSites/{siteName}/healthSummary?api-version=2020-01-01

Parametri dell'URI

Nome In Necessario Tipo Descrizione
resourceGroupName
path True

string

Nome del gruppo di risorse. Per il nome non viene fatta distinzione tra maiuscole e minuscole.

siteName
path True

string

Nome sito.

subscriptionId
path True

string

ID della sottoscrizione di destinazione.

api-version
query True

string

Versione dell'API da usare per questa operazione.

Risposte

Nome Tipo Descrizione
200 OK

SiteHealthSummaryCollection

OK

Esempio

Get Hyper-V site health summary.

Sample Request

POST https://management.azure.com/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/HMWalkthroughDay1-Scale/providers/Microsoft.OffAzure/HyperVSites/HyperV1acf8site/healthSummary?api-version=2020-01-01

Sample Response

{
  "value": [
    {
      "applianceName": "HyperV1",
      "errorMessage": "Server: 'WIN-BVO0984D4J6' The WinRM client cannot process the request because the server name cannot be resolved.",
      "summaryMessage": "Unable to connect to host(s) or cluster as name cannot be resolved. WinRM error code: 0x803381B9.",
      "errorId": 50004,
      "errorCode": "NameResolutionFailed",
      "affectedObjectsCount": 2,
      "hitCount": 2,
      "severity": "Error",
      "remediationGuidance": "Update the hosts file on the appliance. Learn more (https://aka.ms/migrate/hyperv/nameresolution).",
      "affectedResourceType": "Microsoft.OffAzure/HyperVSites/hosts",
      "affectedResources": [
        "win-bvo0984d4j6-c738a150-0ec3-598f-b872-833bfcea2818",
        "win-pps0bm5lv04-db27b8f3-8214-573c-985f-8e3026a7d34c"
      ]
    }
  ],
  "nextLink": null
}

Definizioni

Nome Descrizione
SiteHealthSummary

Modello di riepilogo dell'integrità del sito.

SiteHealthSummaryCollection

Raccolta di SiteHealthSummary.

SiteHealthSummary

Modello di riepilogo dell'integrità del sito.

Nome Tipo Descrizione
affectedObjectsCount

integer

Conteggio degli oggetti interessati.

affectedResourceType

string

Tipo di risorsa interessato.

affectedResources

string[]

Risorse interessate.

applianceName

string

Nome dell'appliance.

errorCode

string

Codice di errore.

errorId

integer

ID errore.

errorMessage

string

Messaggio di errore.

hitCount

integer

Numero di passaggi dell'errore.

remediationGuidance

string

Indicazioni sulla correzione.

severity

string

Gravità dell'errore.

summaryMessage

string

Messaggio di riepilogo.

SiteHealthSummaryCollection

Raccolta di SiteHealthSummary.

Nome Tipo Descrizione
nextLink

string

Valore del collegamento successivo.

value

SiteHealthSummary[]

Elenco di SiteHealthSummary.