Data Sources - Get
获取数据源实例。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}?api-version=2025-07-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
data
|
path | True |
string |
数据源的名称 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
|
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
|
workspace
|
path | True |
string minLength: 4maxLength: 63 pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$ |
工作区的名称。 |
|
api-version
|
query | True |
string minLength: 1 |
要用于此操作的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
确定响应定义。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
DataSourcesGet
示例请求
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/AzTest9724/dataSources/AzTestDS774?api-version=2025-07-01
示例响应
{
"kind": "AzureActivityLog",
"properties": {
"linkedResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/AzTest9724/datasources/AzTestDS774",
"etag": "W/\"datetime'2017-10-01T08%3A01%3A21.2351243Z'\"",
"name": "AzTestDS774",
"type": "Microsoft.OperationalInsights/workspaces/datasources"
}
定义
| 名称 | 说明 |
|---|---|
|
Data |
OMS 工作区下的数据源。 |
|
Data |
DataSource 的类型。 |
| Object |
JSON 对象 |
DataSource
OMS 工作区下的数据源。
| 名称 | 类型 | 说明 |
|---|---|---|
| etag |
string |
数据源的 ETag。 |
| id |
string |
资源的完全限定资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| kind |
DataSource 的类型。 |
|
| name |
string |
资源的名称 |
| properties |
原始 json 格式的数据源属性,每种数据源都有自己的架构。 |
|
| tags |
object |
资源标记。 |
| type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
DataSourceKind
DataSource 的类型。
| 值 | 说明 |
|---|---|
| WindowsEvent | |
| WindowsPerformanceCounter | |
| IISLogs | |
| LinuxSyslog | |
| LinuxSyslogCollection | |
| LinuxPerformanceObject | |
| LinuxPerformanceCollection | |
| CustomLog | |
| CustomLogCollection | |
| AzureAuditLog | |
| AzureActivityLog | |
| GenericDataSource | |
| ChangeTrackingCustomPath | |
| ChangeTrackingPath | |
| ChangeTrackingServices | |
| ChangeTrackingDataTypeConfiguration | |
| ChangeTrackingDefaultRegistry | |
| ChangeTrackingRegistry | |
| ChangeTrackingLinuxPath | |
| LinuxChangeTrackingPath | |
| ChangeTrackingContentLocation | |
| WindowsTelemetry | |
| Office365 | |
| SecurityWindowsBaselineConfiguration | |
| SecurityCenterSecurityWindowsBaselineConfiguration | |
| SecurityEventCollectionConfiguration | |
| SecurityInsightsSecurityEventCollectionConfiguration | |
| ImportComputerGroup | |
| NetworkMonitoring | |
| Itsm | |
| DnsAnalytics | |
| ApplicationInsights | |
| SqlDataClassification |
Object
JSON 对象