Megosztás a következőn keresztül:


Linked Storage Accounts - Get

Lekéri a megadott munkaterülethez társított, adott adatforrástípushoz tartozó összes társított tárfiókot.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}?api-version=2020-08-01

URI-paraméterek

Name In Kötelező Típus Description
dataSourceType
path True

DataSourceType

Társított tárfiókok típusa.

resourceGroupName
path True

string

Az erőforráscsoport neve. A név megkülönbözteti a kis- és nagybetűket.

subscriptionId
path True

string

A cél-előfizetés azonosítója.

workspaceName
path True

string

A munkaterület neve.

Regex pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$

api-version
query True

string

A művelethez használandó API-verzió.

Válaszok

Name Típus Description
200 OK

LinkedStorageAccountsResource

OK válaszdefiníció.

Biztonság

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation felhasználói fiók megszemélyesítése

Példák

LinkedStorageAccountsGet

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/CustomLogs?api-version=2020-08-01

Sample Response

{
  "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"
}

Definíciók

Name Description
DataSourceType

Társított tárfiókok típusa.

LinkedStorageAccountsResource

Csatolt tárfiókok legfelső szintű erőforrástárolója.

DataSourceType

Társított tárfiókok típusa.

Name Típus Description
Alerts

string

AzureWatson

string

CustomLogs

string

Ingestion

string

Query

string

LinkedStorageAccountsResource

Csatolt tárfiókok legfelső szintű erőforrástárolója.

Name Típus Description
id

string

Az erőforrás teljes erőforrás-azonosítója. Például : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Az erőforrás neve

properties.dataSourceType

DataSourceType

Társított tárfiókok típusa.

properties.storageAccountIds

string[]

Csatolt tárfiókok erőforrás-azonosítói.

type

string

Az erőforrás típusa. Például"Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts"