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 |
De naam van de hulpmiddelengroep. |
|
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
OAuth2-stroom voor Azure Active Directory.
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
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 van de weergavestatussen van de cloudservice-instantie |
|
Status |
De niveaucode. |
ApiError
Api-fout.
| Name | Type | Description |
|---|---|---|
| code |
string |
De foutcode. |
| details |
Details van de Api-fout |
|
| innererror |
De innerlijke fout van de Api |
|
| 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 op met unieke id's die intern zijn gegenereerd voor de cloudservice. |
| roleInstance |
Statussen van exemplaarweergaven. |
|
| sdkVersion |
string |
De versie van de SDK die is gebruikt om het pakket voor de cloudservice te genereren. |
| statuses |
Status van exemplaarweergave. |
InnerError
Interne foutdetails.
| Name | Type | Description |
|---|---|---|
| errordetail |
string |
De interne foutmelding of 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 (date-time) |
Het tijdstip van de status. |
StatusCodeCount
De statuscode en het aantal van de weergavestatussen van de cloudservice-instantie
| Name | Type | Description |
|---|---|---|
| code |
string |
De statuscode van de instantieweergave |
| count |
integer (int32) |
Aantal exemplaren met deze statuscode |
StatusLevelTypes
De niveaucode.
| Waarde | Description |
|---|---|
| Info | |
| Warning | |
| Error |