Hyper V Sites - Get Site Health Summary

Metoda pobierania podsumowania kondycji lokacji.

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

Parametry identyfikatora URI

Nazwa W Wymagane Typ Opis
resourceGroupName
path True

string

Nazwa grupy zasobów. W nazwie jest uwzględniana wielkość liter.

siteName
path True

string

Nazwa witryny.

subscriptionId
path True

string

Identyfikator subskrypcji docelowej.

api-version
query True

string

Wersja interfejsu API do użycia dla tej operacji.

Odpowiedzi

Nazwa Typ Opis
200 OK

SiteHealthSummaryCollection

OK

Przykłady

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
}

Definicje

Nazwa Opis
SiteHealthSummary

Model podsumowania kondycji witryny.

SiteHealthSummaryCollection

Zbiór siteHealthSummary.

SiteHealthSummary

Model podsumowania kondycji witryny.

Nazwa Typ Opis
affectedObjectsCount

integer

Liczba obiektów, których dotyczy problem.

affectedResourceType

string

Typ zasobu, którego dotyczy problem.

affectedResources

string[]

Zasoby, których dotyczy problem.

applianceName

string

Nazwa urządzenia.

errorCode

string

Kod błędu.

errorId

integer

Identyfikator błędu.

errorMessage

string

Komunikat o błędzie.

hitCount

integer

Liczba trafień błędu.

remediationGuidance

string

Wskazówki dotyczące korygowania.

severity

string

Ważność błędu.

summaryMessage

string

Komunikat z podsumowaniem.

SiteHealthSummaryCollection

Zbiór siteHealthSummary.

Nazwa Typ Opis
nextLink

string

Wartość następnego łącza.

value

SiteHealthSummary[]

Lista SiteHealthSummary.