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 |
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
範例要求
範例回覆
{
"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 (date-time) |
狀態的時間。 |
StatusCodeCount
雲端服務執行個體檢視狀態的狀態碼和計數
| 名稱 | 類型 | Description |
|---|---|---|
| code |
string |
執行個體檢視狀態碼 |
| count |
integer (int32) |
具有此狀態碼的執行個體數目 |
StatusLevelTypes
層級程序代碼。
| 值 | Description |
|---|---|
| Info | |
| Warning | |
| Error |