Linked Storage Accounts - List By Workspace
Belirtilen çalışma alanıyla ilişkili tüm bağlı depolama hesaplarını alır, depolama hesapları veri kaynağı türlerine göre sıralanır.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts?api-version=2020-08-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
resource
|
path | True |
string |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir. |
subscription
|
path | True |
string |
Hedef aboneliğin kimliği. |
workspace
|
path | True |
string |
Çalışma alanının adı. Normal ifade deseni: |
api-version
|
query | True |
string |
Bu işlem için kullanılacak API sürümü. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Tamam yanıt tanımı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
Gets list of linked storage accounts on a workspace.
Örnek isteği
Örnek yanıt
{
"value": [
{
"properties": {
"dataSourceType": "CustomLogs",
"storageAccountIds": [
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA",
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB"
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/CustomLogs",
"name": "CustomLogs",
"type": "Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"
},
{
"properties": {
"dataSourceType": "AzureWatson",
"storageAccountIds": [
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA",
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageC"
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/AzureWatson",
"name": "AzureWatson",
"type": "Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"
},
{
"properties": {
"dataSourceType": "Query",
"storageAccountIds": [
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA",
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageC"
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/Query",
"name": "Query",
"type": "Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"
},
{
"properties": {
"dataSourceType": "Alerts",
"storageAccountIds": [
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA",
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageC"
]
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/Alerts",
"name": "Alerts",
"type": "Microsoft.OperationalInsights/workspaces/linkedStorageAccounts"
}
]
}
Tanımlar
Name | Description |
---|---|
Data |
Bağlı depolama hesapları türü. |
Linked |
Liste bağlantılı depolama hesapları hizmet işlemi yanıtı. |
Linked |
Bağlantılı depolama hesapları üst düzey kaynak kapsayıcısı. |
DataSourceType
Bağlı depolama hesapları türü.
Name | Tür | Description |
---|---|---|
Alerts |
string |
|
AzureWatson |
string |
|
CustomLogs |
string |
|
Ingestion |
string |
|
Query |
string |
LinkedStorageAccountsListResult
Liste bağlantılı depolama hesapları hizmet işlemi yanıtı.
Name | Tür | Description |
---|---|---|
value |
Bağlı depolama hesapları örneklerinin listesi. |
LinkedStorageAccountsResource
Bağlantılı depolama hesapları üst düzey kaynak kapsayıcısı.
Name | Tür | Description |
---|---|---|
id |
string |
Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
Kaynağın adı |
properties.dataSourceType |
Bağlı depolama hesapları türü. |
|
properties.storageAccountIds |
string[] |
Bağlı depolama hesapları kaynak kimlikleri. |
type |
string |
Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts" |