Recommendations - Get Generate Status
擷取建議計算或產生程序的狀態。 呼叫產生建議之後叫用此 API。 此 API 的 URI 會在回應標頭的 [位置] 欄位中傳回。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/generateRecommendations/{operationId}?api-version=2023-01-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
operation
|
path | True |
string uuid |
作業標識碼,可從 [產生建議響應標頭] 中的 [位置] 字段找到。 |
subscription
|
path | True |
string |
Azure 訂用帳戶識別碼。 |
api-version
|
query | True |
string |
要與用戶端要求搭配使用的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
202 Accepted |
已接受。 建議產生正在進行中。 |
|
204 No Content |
NoContent。 建議產生已完成。 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
GetGenerateStatus
範例要求
GET https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.Advisor/generateRecommendations/123e4567-e89b-12d3-a456-426614174000?api-version=2023-01-01
範例回覆
定義
名稱 | Description |
---|---|
Arm |
|
ARMError |
ARM 錯誤回應本文。 |
ArmErrorResponse
名稱 | 類型 | Description |
---|---|---|
error |
ARM 錯誤回應本文。 |
ARMErrorResponseBody
ARM 錯誤回應本文。
名稱 | 類型 | Description |
---|---|---|
code |
string |
取得或設定可用來以程式設計方式識別錯誤的字串。 |
message |
string |
取得或設定字串,這個字串會詳細描述錯誤並提供偵錯資訊。 |