Discovery Solution NLP - Discover Solutions By Subscription
使用自然語言問題摘要和訂用帳戶搜尋相關的 Azure 診斷、解決方案和疑難解答員。
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Help/discoverSolutions?api-version=2024-03-01-preview
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
subscription
|
path | True |
string |
Azure 訂用帳戶標識碼。 |
api-version
|
query | True |
string |
用戶端 API 版本。 |
要求本文
名稱 | 必要 | 類型 | Description |
---|---|---|---|
issueSummary | True |
string |
問題的自然語言描述。 |
additionalContext |
string |
字串格式的其他資訊。 |
|
resourceId |
string |
發生問題的資源的 ARM 資源識別碼。 僅適用於探索解決方案 NLP 訂用帳戶範圍。 |
|
serviceId |
string |
發生問題的服務的 ARM 服務標識碼。 如需服務識別碼的詳細資訊,請參閱 https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 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 | 模擬您的用戶帳戶 |
範例
Discovery Solutions using issue summary and service id.
範例要求
POST https://management.azure.com/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/providers/Microsoft.Help/discoverSolutions?api-version=2024-03-01-preview
{
"issueSummary": "how to retrieve certs from deleted keyvault.",
"resourceId": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read",
"serviceId": "0d0fcd2e-c4fd-4349-8497-200edb39s3ca"
}
範例回覆
{
"value": [
{
"id": "/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/providers/Microsoft.Help/discoverSolutions/SampleProblemClassificationId1",
"name": "SampleProblemClassificationId1",
"type": "Microsoft.Help/discoverySolutions",
"properties": {
"problemTitle": "SampleTitle1",
"problemDescription": "SampleDescription1",
"serviceId": "SampleServiceId1",
"problemClassificationId": "SampleProblemClassificationId1",
"solutions": [
{
"solutionId": "SampleSolutionId1",
"solutionType": "Diagnostics",
"description": "This is an azure solution to troubleshoot subscription issues.",
"requiredInputs": [
"SubscriptionId"
]
},
{
"solutionId": "SampleSolutionId2",
"solutionType": "Solutions",
"description": "This is an azure solution to troubleshoot keyvault resource.",
"requiredInputs": [
"SubscriptionId"
]
}
],
"relatedServices": [
{
"serviceId": "/providers/Microsoft.Support/services/40ef020e-8ae7-8d57-b538-9153c47cee69",
"displayName": "SQL Server in VM - Linux",
"resourceTypes": [
"MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES",
"MICROSOFT.COMPUTE/VIRTUALMACHINES"
]
}
]
}
}
]
}
定義
名稱 | Description |
---|---|
Classification |
服務分類結果物件。 |
created |
建立資源的身分識別類型。 |
Discovery |
探索 NLP 要求。 |
Discovery |
已成功擷取解決方案元數據的清單。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Error |
錯誤回應 |
Solution |
元數據屬性 |
Solution |
Nlp 元數據資源 |
Solution |
方案類型。 |
system |
與建立和上次修改資源相關的元數據。 |
ClassificationService
服務分類結果物件。
名稱 | 類型 | Description |
---|---|---|
displayName |
string |
Azure 服務的當地語系化名稱。 |
resourceTypes |
string[] |
此服務適用的 ARM 資源類型清單。 |
serviceId |
string (arm-id) |
服務的 Azure 資源識別碼。 |
createdByType
建立資源的身分識別類型。
值 | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
DiscoveryNlpRequest
探索 NLP 要求。
名稱 | 類型 | Description |
---|---|---|
additionalContext |
string |
字串格式的其他資訊。 |
issueSummary |
string |
問題的自然語言描述。 |
resourceId |
string |
發生問題的資源的 ARM 資源識別碼。 僅適用於探索解決方案 NLP 訂用帳戶範圍。 |
serviceId |
string |
發生問題的服務的 ARM 服務標識碼。 如需服務識別碼的詳細資訊,請參閱 https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP。 |
DiscoveryNlpResponse
已成功擷取解決方案元數據的清單。
名稱 | 類型 | Description |
---|---|---|
value |
方案元數據的清單。 |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
SolutionMetadataProperties
元數據屬性
名稱 | 類型 | Description |
---|---|---|
description |
string |
解決方案的詳細描述。 |
requiredInputs |
string[] |
叫用此特定解決方案的必要參數。 |
solutionId |
string |
解決方案標識碼。 |
solutionType |
方案類型。 |
SolutionNlpMetadataResource
Nlp 元數據資源
名稱 | 類型 | Description |
---|---|---|
id |
string (arm-id) |
資源的完整資源標識碼。 例如 “/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
name |
string |
資源的名稱 |
properties.problemClassificationId |
string |
可用來建立支援票證的 ProblemClassification (https://learn.microsoft.com/en-us/rest/api/support/problem-classifications?view=rest-support-2020-04-01) 識別碼。 |
properties.problemDescription |
string |
問題分類的描述。 |
properties.problemTitle |
string |
問題分類的標題。 |
properties.relatedServices |
最可能與要求相關的服務集合。 如果 response 中包含 relatedServices,則在用戶端第二次在 relatedServices 物件中指定其中一個服務標識符之前,可能無法探索解決方案。 |
|
properties.serviceId |
string |
可用來建立支援票證的服務標識碼(https://learn.microsoft.com/en-us/rest/api/support/services?view=rest-support-2020-04-01)。 |
properties.solutions |
方案元數據的清單。 |
|
systemData |
包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。 |
|
type |
string |
資源的型別。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
SolutionType
方案類型。
值 | Description |
---|---|
Diagnostics |
診斷資源類型。 |
SelfHelp |
SelfHelp 資源類型。 |
Solutions |
解決方案資源類型。 |
Troubleshooters |
疑難解答員資源類型。 |
systemData
與建立和上次修改資源相關的元數據。
名稱 | 類型 | Description |
---|---|---|
createdAt |
string (date-time) |
資源建立的時間戳(UTC)。 |
createdBy |
string |
建立資源的身分識別。 |
createdByType |
建立資源的身分識別類型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源的身分識別。 |
lastModifiedByType |
上次修改資源的身分識別類型。 |