Cloud Services - Get Instance View
取得雲端服務的狀態。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView?api-version=2024-11-04
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
cloud
|
path | True |
string |
雲端服務的名稱。 |
resource
|
path | True |
string |
資源群組的名稱。 |
subscription
|
path | True |
string |
可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶標識碼會形成每個服務呼叫 URI 的一部分。 |
api-version
|
query | True |
string |
用戶端 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行 |
|
Other Status Codes |
錯誤 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Get Cloud Service Instance View with Multiple Roles
範例要求
GET https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/instanceView?api-version=2024-11-04
範例回覆
{
"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."
}
]
}
定義
名稱 | Description |
---|---|
Api |
Api 錯誤。 |
Api |
API 錯誤基底。 |
Cloud |
來自計算服務的錯誤回應。 |
Cloud |
整個 CloudService 的 InstanceView |
Inner |
內部錯誤詳細數據。 |
Instance |
實例檢視狀態。 |
Resource |
實例檢視狀態。 |
Status |
雲端服務實例檢視狀態的狀態代碼和計數 |
Status |
層級程序代碼。 |
ApiError
Api 錯誤。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
details |
Api 錯誤詳細數據 |
|
innererror |
Api 內部錯誤 |
|
message |
string |
錯誤訊息。 |
target |
string |
特定錯誤的目標。 |
ApiErrorBase
API 錯誤基底。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
message |
string |
錯誤訊息。 |
target |
string |
特定錯誤的目標。 |
CloudError
來自計算服務的錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
Api 錯誤。 |
CloudServiceInstanceView
整個 CloudService 的 InstanceView
名稱 | 類型 | Description |
---|---|---|
privateIds |
string[] |
指定雲端服務內部產生的唯一標識符清單。 |
roleInstance |
實例檢視狀態。 |
|
sdkVersion |
string |
用來產生雲端服務套件的 SDK 版本。 |
statuses |
實例檢視狀態。 |
InnerError
內部錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
errordetail |
string |
內部錯誤訊息或例外狀況傾印。 |
exceptiontype |
string |
例外狀況類型。 |
InstanceViewStatusesSummary
實例檢視狀態。
名稱 | 類型 | Description |
---|---|---|
statusesSummary |
摘要。 |
ResourceInstanceViewStatus
實例檢視狀態。
名稱 | 類型 | Description |
---|---|---|
code |
string |
狀態代碼。 |
displayStatus |
string |
狀態的簡短可當地語系化標籤。 |
level |
層級程序代碼。 |
|
message |
string |
詳細的狀態消息,包括警示和錯誤訊息。 |
time |
string |
狀態的時間。 |
StatusCodeCount
雲端服務實例檢視狀態的狀態代碼和計數
名稱 | 類型 | Description |
---|---|---|
code |
string |
實例檢視狀態代碼 |
count |
integer |
具有此狀態代碼的實例數目 |
StatusLevelTypes
層級程序代碼。
名稱 | 類型 | Description |
---|---|---|
Error |
string |
|
Info |
string |
|
Warning |
string |