Operation Status Result - Get
取得指定受控叢集中特定作業的狀態。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/operations/{operationId}?api-version=2025-05-02-preview
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
operation
|
path | True |
string minLength: 1 |
進行中異步作業的標識碼。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
資源群組的名稱。 名稱不區分大小寫。 |
resource
|
path | True |
string minLength: 1maxLength: 63 pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ |
受控叢集資源的名稱。 |
subscription
|
path | True |
string (uuid) |
目標訂用帳戶的標識碼。 此值必須是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
要用於這項作業的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行 |
|
Other Status Codes |
說明作業為何失敗的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Get OperationStatusResult
範例要求
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/operations/00000000-0000-0000-0000-000000000001?api-version=2025-05-02-preview
範例回覆
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/operations/00000000-0000-0000-0000-000000000001",
"name": "00000000-0000-0000-0000-000000000001",
"status": "InProgress",
"percentComplete": 40,
"startTime": "2023-07-26T12:14:26.3179428Z"
}
定義
名稱 | Description |
---|---|
Cloud |
來自容器服務的錯誤回應。 |
Cloud |
來自容器服務的錯誤回應。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Operation |
異步作的目前狀態。 |
CloudError
來自容器服務的錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤的詳細數據。 |
CloudErrorBody
來自容器服務的錯誤回應。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤的識別碼。 程序代碼是不變的,而且是要以程序設計方式取用。 |
details |
錯誤的其他詳細數據清單。 |
|
message |
string |
描述錯誤的訊息,適用於在使用者介面中顯示。 |
target |
string |
特定錯誤的目標。 例如,錯誤中的屬性名稱。 |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
OperationStatusResult
異步作的目前狀態。
名稱 | 類型 | Description |
---|---|---|
endTime |
string (date-time) |
作業的結束時間。 |
error |
如果有,作業錯誤的詳細數據。 |
|
id |
string (arm-id) |
異步作業的完整標識碼。 |
name |
string |
異步作業的名稱。 |
operations |
作業清單。 |
|
percentComplete |
number minimum: 0maximum: 100 |
完成的作業百分比。 |
resourceId |
string (arm-id) |
啟動原始異步作業的資源完整標識碼。 |
startTime |
string (date-time) |
作業的開始時間。 |
status |
string |
作業狀態。 |