你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Tables - Update
汇报 Log Analytics 工作区表属性。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}?api-version=2020-08-01
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
资源组的名称。 此名称不区分大小写。 |
subscription
|
path | True |
string |
目标订阅的 ID。 |
table
|
path | True |
string |
表的名称。 |
workspace
|
path | True |
string |
工作区的名称。 正则表达式模式: |
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
名称 | 类型 | 说明 |
---|---|---|
properties.retentionInDays |
integer |
数据表数据保留期(天),介于 30 到 730 之间。 将此属性设置为 null 会将表的数据保留期默认为工作区保留期。 |
名称 | 类型 | 说明 |
---|---|---|
200 OK |
正常响应定义。 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例请求
示例响应
{
"properties": {
"retentionInDays": 30
},
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1",
"name": "table1"
}
名称 | 说明 |
---|---|
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Table |
工作区数据表定义。 |
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
工作区数据表定义。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
资源的名称 |
properties.retentionInDays |
integer |
数据表数据保留期(天),介于 30 到 730 之间。 将此属性设置为 null 会将表的数据保留期默认为工作区保留期。 |
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |