Workbooks - Revision Get
获取由其 revisionId 定义的单个工作簿修订。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}/revisions/{revisionId}?api-version=2021-08-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
|
resource
|
path | True |
string |
Application Insights 组件资源的名称。 |
|
revision
|
path | True |
string |
工作簿修订的 ID。 |
|
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
|
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
工作簿定义。 |
|
| Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
WorkbookRevisionGet
示例请求
示例响应
{
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"type": "Microsoft.Insights/workbooks",
"location": "westus",
"kind": "shared",
"properties": {
"displayName": "My New Workbook",
"userId": "userId",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"version": "Notebook/1.0",
"category": "workbook",
"timeModified": "2020-09-04T09:07:17.735638Z",
"storageUri": null,
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1ab"
},
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02"
}
}
定义
| 名称 | 说明 |
|---|---|
|
created |
创建资源的标识的类型。 |
| Identity |
用于 BYOS 的标识 |
| kind |
工作簿的类型。 仅共享有效值。 |
|
Managed |
托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 |
|
system |
与创建和上次修改资源相关的元数据。 |
|
User |
用户分配的标识属性 |
| Workbook |
Application Insights 工作簿定义。 |
|
Workbook |
错误响应。 |
|
Workbook |
错误定义。 |
|
Workbook |
错误详细信息 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
Identity
用于 BYOS 的标识
| 名称 | 类型 | 说明 |
|---|---|---|
| principalId |
string (uuid) |
系统分配标识的服务主体 ID。 此属性仅针对系统分配的标识提供。 |
| tenantId |
string (uuid) |
系统分配标识的租户 ID。 此属性仅针对系统分配的标识提供。 |
| type |
托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 |
|
| userAssignedIdentities |
<string,
User |
User-Assigned 标识 |
kind
工作簿的类型。 仅共享有效值。
| 值 | 说明 |
|---|---|
| user | |
| shared |
ManagedServiceIdentityType
托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。
| 值 | 说明 |
|---|---|
| None | |
| SystemAssigned | |
| UserAssigned | |
| SystemAssigned,UserAssigned |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |
UserAssignedIdentity
用户分配的标识属性
| 名称 | 类型 | 说明 |
|---|---|---|
| clientId |
string (uuid) |
分配的标识的客户端 ID。 |
| principalId |
string (uuid) |
已分配标识的主体 ID。 |
Workbook
Application Insights 工作簿定义。
| 名称 | 类型 | 说明 |
|---|---|---|
| etag |
object |
资源 etag |
| id |
string |
资源的完全限定资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| identity |
用于 BYOS 的标识 |
|
| kind |
工作簿的类型。 仅共享有效值。 |
|
| location |
string |
资源所在的地理位置 |
| name |
string |
资源的名称 |
| properties.category |
string |
工作簿类别,在创建时由用户定义。 |
| properties.description |
string |
工作簿的说明。 |
| properties.displayName |
string |
工作簿的用户定义名称(显示名称)。 |
| properties.revision |
string |
此工作簿定义的唯一修订 ID |
| properties.serializedData |
string |
此特定工作簿的配置。 配置数据是包含有效 JSON 的字符串 |
| properties.sourceId |
string |
源资源的 ResourceId。 |
| properties.storageUri |
string |
使用自带存储时的 resourceId 到存储帐户 |
| properties.tags |
string[] |
已弃用,请使用其他标记字段 |
| properties.timeModified |
string (date-time) |
上次修改此工作簿定义的日期和时间(UTC)。 |
| properties.userId |
string |
拥有此工作簿的特定用户的唯一用户 ID。 |
| properties.version |
string |
工作簿架构版本格式,如“Notebook/1.0”,它应与 serializedData 中的工作簿匹配 |
| systemData |
与创建和上次修改资源相关的元数据。 |
|
| tags |
object |
资源标记。 |
| type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
WorkbookError
错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误详细信息。 |
WorkbookErrorDefinition
错误定义。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
服务特定的错误代码,用作 HTTP 错误代码的子状态。 |
| innererror |
内部错误详细信息。 |
|
| message |
string |
错误说明。 |
WorkbookInnerErrorTrace
错误详细信息
| 名称 | 类型 | 说明 |
|---|---|---|
| trace |
string[] |
详细的错误跟踪 |