共用方式為


Suppressions - Delete

啟用已取消或關閉的建議啟用。 建議的 snoozed 或 dismissed 屬性稱為隱藏。

DELETE https://management.azure.com/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}?api-version=2023-01-01

URI 參數

名稱 位於 必要 類型 Description
name
path True

string

歸併的名稱。

recommendationId
path True

string

建議標識碼。

resourceUri
path True

string

套用建議之資源的完整 Azure Resource Manager 識別碼。

api-version
query True

string

要與用戶端要求搭配使用的 API 版本。

回應

名稱 類型 Description
204 No Content

NoContent。 建議已啟動。

Other Status Codes

ArmErrorResponse

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

DeleteSuppression

範例要求

DELETE https://management.azure.com/resourceUri/providers/Microsoft.Advisor/recommendations/recommendationId/suppressions/suppressionName1?api-version=2023-01-01

範例回覆

定義

名稱 Description
ArmErrorResponse
ARMErrorResponseBody

ARM 錯誤回應本文。

ArmErrorResponse

名稱 類型 Description
error

ARMErrorResponseBody

ARM 錯誤回應本文。

ARMErrorResponseBody

ARM 錯誤回應本文。

名稱 類型 Description
code

string

取得或設定可用來以程式設計方式識別錯誤的字串。

message

string

取得或設定字串,這個字串會詳細描述錯誤並提供偵錯資訊。