你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.OperationalInsights workspaces/tables 2022-10-01

Bicep 资源定义

工作区/表资源类型可部署到:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.OperationalInsights/workspaces/tables 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.OperationalInsights/workspaces/tables@2022-10-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    plan: 'string'
    restoredLogs: {
      endRestoreTime: 'string'
      sourceTable: 'string'
      startRestoreTime: 'string'
    }
    retentionInDays: int
    schema: {
      columns: [
        {
          dataTypeHint: 'string'
          description: 'string'
          displayName: 'string'
          name: 'string'
          type: 'string'
        }
      ]
      description: 'string'
      displayName: 'string'
      name: 'string'
    }
    searchResults: {
      description: 'string'
      endSearchTime: 'string'
      limit: int
      query: 'string'
      startSearchTime: 'string'
    }
    totalRetentionInDays: int
  }
}

属性值

workspaces/tables

名称 说明 Value
name 资源名称

了解如何在 Bicep 中设置子资源的名称和类型。
字符串 (必需)
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为的资源的符号名称: 工作区
properties 表的属性。 TableProperties

TableProperties

名称 说明 Value
plan 指示系统如何处理引入到此表的日志并收取费用。 “Analytics”
'Basic'
restoredLogs 启动此表的还原操作的参数。 RestoredLogs
retentionInDays 表保留期(天),介于 4 到 730 之间。 将此属性设置为 -1 将默认为工作区保留期。 int
schema 表架构。 架构
searchResults 启动此表的搜索作业的参数。 SearchResults
totalRetentionInDays 表总保留期(以天为单位),介于 4 到 2555 之间。 将此属性设置为 -1 将默认为表保留期。 int

RestoredLogs

名称 说明 Value
endRestoreTime 在 UTC) (结束还原的时间戳。 字符串
sourceTable 要从中还原数据的表。 字符串
startRestoreTime 从 (UTC) 开始还原的时间戳。 字符串

架构

名称 说明 Value
表自定义列的列表。 Column[]
description 表说明。 字符串
displayName 表显示名称。 字符串
name 表名。 字符串

名称 说明 Value
dataTypeHint 列数据类型逻辑提示。 'armPath'
'guid'
“ip”
“uri”
description 列说明。 字符串
displayName 列显示名称。 字符串
name 列名称。 字符串
type 列数据类型。 “boolean”
“dateTime”
“dynamic”
“guid”
“int”
'long'
“real”
“字符串”

SearchResults

名称 说明 Value
description 搜索作业说明。 字符串
endSearchTime 结束搜索的时间戳 (UTC) 字符串
limit 将搜索作业限制为最多返回指定的行数。 int
query 搜索作业查询。 字符串
startSearchTime 从 UTC) (开始搜索的时间戳 字符串

ARM 模板资源定义

工作区/表资源类型可部署到:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.OperationalInsights/workspaces/tables 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.OperationalInsights/workspaces/tables",
  "apiVersion": "2022-10-01",
  "name": "string",
  "properties": {
    "plan": "string",
    "restoredLogs": {
      "endRestoreTime": "string",
      "sourceTable": "string",
      "startRestoreTime": "string"
    },
    "retentionInDays": "int",
    "schema": {
      "columns": [
        {
          "dataTypeHint": "string",
          "description": "string",
          "displayName": "string",
          "name": "string",
          "type": "string"
        }
      ],
      "description": "string",
      "displayName": "string",
      "name": "string"
    },
    "searchResults": {
      "description": "string",
      "endSearchTime": "string",
      "limit": "int",
      "query": "string",
      "startSearchTime": "string"
    },
    "totalRetentionInDays": "int"
  }
}

属性值

workspaces/tables

名称 说明 Value
type 资源类型 “Microsoft.OperationalInsights/workspaces/tables”
apiVersion 资源 API 版本 '2022-10-01'
name 资源名称

了解如何在 JSON ARM 模板中为子资源设置名称和类型。
字符串 (必需)
properties 表的属性。 TableProperties

TableProperties

名称 说明 Value
plan 指示系统如何处理引入到此表的日志并收取费用。 “Analytics”
“Basic”
restoredLogs 启动此表的还原操作的参数。 RestoredLogs
retentionInDays 表保留天数,介于 4 到 730 之间。 将此属性设置为 -1 将默认为工作区保留期。 int
schema 表架构。 架构
searchResults 启动此表的搜索作业的参数。 SearchResults
totalRetentionInDays 表的总保留期(天),介于 4 到 2555 之间。 将此属性设置为 -1 将默认为表保留期。 int

RestoredLogs

名称 说明 Value
endRestoreTime (UTC) 结束还原的时间戳。 字符串
sourceTable 要从中还原数据的表。 字符串
startRestoreTime 从 UTC) (开始还原的时间戳。 字符串

架构

名称 说明 Value
表自定义列的列表。 Column[]
description 表说明。 字符串
displayName 表显示名称。 字符串
name 表名。 字符串

名称 说明 Value
dataTypeHint 列数据类型逻辑提示。 “armPath”
“guid”
“ip”
“uri”
description 列说明。 字符串
displayName 列显示名称。 字符串
name 列名称。 字符串
type 列数据类型。 “boolean”
“dateTime”
“dynamic”
“guid”
“int”
'long'
“real”
“字符串”

SearchResults

名称 说明 Value
description 搜索作业说明。 字符串
endSearchTime 结束搜索的时间戳 (UTC) 字符串
limit 将搜索作业限制为最多返回指定的行数。 int
query 搜索作业查询。 字符串
startSearchTime 从 UTC) (开始搜索的时间戳 字符串

Terraform (AzAPI 提供程序) 资源定义

工作区/表资源类型可部署到:

  • 资源组

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.OperationalInsights/workspaces/tables 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.OperationalInsights/workspaces/tables@2022-10-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      plan = "string"
      restoredLogs = {
        endRestoreTime = "string"
        sourceTable = "string"
        startRestoreTime = "string"
      }
      retentionInDays = int
      schema = {
        columns = [
          {
            dataTypeHint = "string"
            description = "string"
            displayName = "string"
            name = "string"
            type = "string"
          }
        ]
        description = "string"
        displayName = "string"
        name = "string"
      }
      searchResults = {
        description = "string"
        endSearchTime = "string"
        limit = int
        query = "string"
        startSearchTime = "string"
      }
      totalRetentionInDays = int
    }
  })
}

属性值

workspaces/tables

名称 说明 Value
type 资源类型 “Microsoft.OperationalInsights/workspaces/tables@2022-10-01”
name 资源名称 字符串 (必需)
parent_id 此资源的父资源 ID。 类型为“工作区”的资源的 ID
properties 表的属性。 TableProperties

TableProperties

名称 说明 Value
plan 指示系统如何处理引入到此表的日志并收取费用。 “Analytics”
"Basic"
restoredLogs 启动此表的还原操作的参数。 RestoredLogs
retentionInDays 表保留天数,介于 4 到 730 之间。 将此属性设置为 -1 将默认为工作区保留期。 int
schema 表架构。 架构
searchResults 启动此表的搜索作业的参数。 SearchResults
totalRetentionInDays 表总保留期(以天为单位),介于 4 到 2555 之间。 将此属性设置为 -1 将默认为表保留期。 int

RestoredLogs

名称 说明 Value
endRestoreTime 在 UTC) (结束还原的时间戳。 字符串
sourceTable 要从中还原数据的表。 字符串
startRestoreTime 从 (UTC) 开始还原的时间戳。 字符串

架构

名称 说明 Value
表自定义列的列表。 Column[]
description 表说明。 字符串
displayName 表显示名称。 字符串
name 表名。 字符串

名称 说明 Value
dataTypeHint 列数据类型逻辑提示。 “armPath”
“guid”
“ip”
“uri”
description 列说明。 字符串
displayName 列显示名称。 字符串
name 列名称。 字符串
type 列数据类型。 “boolean”
“dateTime”
“dynamic”
“guid”
“int”
“long”
“real”
“字符串”

SearchResults

名称 说明 Value
description 搜索作业说明。 字符串
endSearchTime 按 utc) 结束搜索的时间戳 ( 字符串
limit 将搜索作业限制为最多返回指定的行数。 int
query 搜索作业查询。 字符串
startSearchTime 从 (UTC) 开始搜索的时间戳 字符串