Cloud Services - Get Instance View
Hiermee haalt u de status van een cloudservice op.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView?api-version=2024-11-04
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
cloud
|
path | True |
string |
Naam van de cloudservice. |
resource
|
path | True |
string |
Naam van de resourcegroep. |
subscription
|
path | True |
string |
Abonnementsreferenties die het Microsoft Azure-abonnement uniek identificeren. De abonnements-id maakt deel uit van de URI voor elke serviceoproep. |
api-version
|
query | True |
string |
Client-API-versie. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Fout |
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
Get Cloud Service Instance View with Multiple Roles
Voorbeeldaanvraag
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/instanceView?api-version=2024-11-04
Voorbeeldrespons
{
"roleInstance": {
"statusesSummary": [
{
"code": "ProvisioningState/succeeded",
"count": 4
},
{
"code": "PowerState/started",
"count": 4
},
{
"code": "RoleState/RoleStateStarted",
"count": 4
}
]
},
"sdkVersion": "2.9.6496.3",
"privateIds": [
"3491bc0c-1f6c-444f-b1d0-ec0751a74e3e"
],
"statuses": [
{
"code": "ProvisioningState/succeeded",
"level": "Info",
"displayStatus": "Provisioning succeeded",
"time": "2021-01-12T16:50:07.0953535+05:30"
},
{
"code": "PowerState/started",
"level": "Info",
"displayStatus": "Started",
"time": "2021-01-12T16:50:07.0953535+05:30"
},
{
"code": "CurrentUpgradeDomain/-1",
"level": "Info",
"displayStatus": "Current Upgrade Domain of cloud service is -1."
},
{
"code": "MaxUpgradeDomain/1",
"level": "Info",
"displayStatus": "Max Upgrade Domain of cloud service is 1."
}
]
}
Definities
Name | Description |
---|---|
Api |
Api-fout. |
Api |
Api-foutbasis. |
Cloud |
Een foutreactie van de Compute-service. |
Cloud |
InstanceView van CloudService als geheel |
Inner |
Interne foutdetails. |
Instance |
Statussen van exemplaarweergaven. |
Resource |
Status van exemplaarweergave. |
Status |
De statuscode en het aantal statussen van het cloudservice-exemplaar bekijken |
Status |
De niveaucode. |
ApiError
Api-fout.
Name | Type | Description |
---|---|---|
code |
string |
De foutcode. |
details |
Details van de API-fout |
|
innererror |
De interne API-fout |
|
message |
string |
Het foutbericht. |
target |
string |
Het doel van de specifieke fout. |
ApiErrorBase
Api-foutbasis.
Name | Type | Description |
---|---|---|
code |
string |
De foutcode. |
message |
string |
Het foutbericht. |
target |
string |
Het doel van de specifieke fout. |
CloudError
Een foutreactie van de Compute-service.
Name | Type | Description |
---|---|---|
error |
Api-fout. |
CloudServiceInstanceView
InstanceView van CloudService als geheel
Name | Type | Description |
---|---|---|
privateIds |
string[] |
Hiermee geeft u een lijst met unieke id's die intern worden gegenereerd voor de cloudservice. |
roleInstance |
Statussen van exemplaarweergaven. |
|
sdkVersion |
string |
De versie van de SDK die is gebruikt voor het genereren van het pakket voor de cloudservice. |
statuses |
Status van exemplaarweergave. |
InnerError
Interne foutdetails.
Name | Type | Description |
---|---|---|
errordetail |
string |
Het interne foutbericht of de uitzonderingsdump. |
exceptiontype |
string |
Het uitzonderingstype. |
InstanceViewStatusesSummary
Statussen van exemplaarweergaven.
Name | Type | Description |
---|---|---|
statusesSummary |
De samenvatting. |
ResourceInstanceViewStatus
Status van exemplaarweergave.
Name | Type | Description |
---|---|---|
code |
string |
De statuscode. |
displayStatus |
string |
Het korte lokaliseerbare label voor de status. |
level |
De niveaucode. |
|
message |
string |
Het gedetailleerde statusbericht, inclusief voor waarschuwingen en foutberichten. |
time |
string |
Het tijdstip van de status. |
StatusCodeCount
De statuscode en het aantal statussen van het cloudservice-exemplaar bekijken
Name | Type | Description |
---|---|---|
code |
string |
De statuscode van het exemplaar weergeven |
count |
integer |
Aantal exemplaren met deze statuscode |
StatusLevelTypes
De niveaucode.
Name | Type | Description |
---|---|---|
Error |
string |
|
Info |
string |
|
Warning |
string |