Recommendation Metadata - Get
取得元數據實體。
GET https://management.azure.com/providers/Microsoft.Advisor/metadata/{name}?api-version=2023-01-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
name
|
path | True |
string |
元數據實體的名稱。 |
api-version
|
query | True |
string |
要與用戶端要求搭配使用的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
正常。 已成功擷取的元數據實體 |
|
404 Not Found |
用戶端傳送未知的元數據名稱 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
GetMetadata
範例要求
GET https://management.azure.com/providers/Microsoft.Advisor/metadata/types?api-version=2023-01-01
範例回覆
{
"id": "providers/Microsoft.Advisor/metadata/recommendationType",
"name": "recommendationType",
"type": "Microsoft.Advisor/metadata",
"properties": {
"displayName": "Recommendation Type",
"dependsOn": [
"category",
"impact"
],
"applicableScenarios": [
"Alerts"
],
"supportedValues": [
{
"id": "6a2b1e70-bd4c-4163-86de-5243d7ac05ee",
"displayName": "Upgrade your SKU or add more instances to ensure fault tolerance"
},
{
"id": "da6630fb-4286-4996-92a3-a43f5f26dd34",
"displayName": "Delete ExpressRoute circuits in the provider status of Not Provisioned"
}
]
}
}
{
"code": "NotFound",
"message": "Unknown metadata name"
}
定義
名稱 | Description |
---|---|
Arm |
|
ARMError |
ARM 錯誤回應本文。 |
Metadata |
元數據實體合約。 |
Metadata |
元數據支援的值詳細數據。 |
Scenario |
適用於此元數據實體的案例清單。 |
ArmErrorResponse
名稱 | 類型 | Description |
---|---|---|
error |
ARM 錯誤回應本文。 |
ARMErrorResponseBody
ARM 錯誤回應本文。
名稱 | 類型 | Description |
---|---|---|
code |
string |
取得或設定可用來以程式設計方式識別錯誤的字串。 |
message |
string |
取得或設定字串,以詳細描述錯誤並提供偵錯資訊。 |
MetadataEntity
元數據實體合約。
名稱 | 類型 | Description |
---|---|---|
id |
string |
元數據實體的資源標識碼。 |
name |
string |
元數據實體的名稱。 |
properties.applicableScenarios |
Scenario[] |
適用於此元數據實體的案例清單。 |
properties.dependsOn |
string[] |
此實體相依的索引鍵清單。 |
properties.displayName |
string |
顯示名稱。 |
properties.supportedValues |
支援的值清單。 |
|
type |
string |
元數據實體的類型。 |
MetadataSupportedValueDetail
元數據支援的值詳細數據。
名稱 | 類型 | Description |
---|---|---|
displayName |
string |
顯示名稱。 |
id |
string |
識別碼。 |
Scenario
適用於此元數據實體的案例清單。
名稱 | 類型 | Description |
---|---|---|
Alerts |
string |