Workbooks - Update
更新已新增的活頁簿。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}?api-version=2021-08-01
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}?sourceId={sourceId}&api-version=2021-08-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
資源群組的名稱。 名稱不區分大小寫。 |
resource
|
path | True |
string |
Application Insights 元件資源的名稱。 |
subscription
|
path | True |
string minLength: 1 |
目標訂用帳戶的標識碼。 |
api-version
|
query | True |
string minLength: 1 |
要用於這項作業的 API 版本。 |
source
|
query |
string |
將擷取所有連結活頁簿的 Azure 資源識別碼。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
kind |
活頁簿的種類。 只有有效的值是共用的。 |
|
properties.category |
string |
活頁簿類別,如使用者在建立時所定義。 |
properties.description |
string |
活頁簿的描述。 |
properties.displayName |
string |
活頁簿的使用者定義名稱(顯示名稱)。 |
properties.revision |
string |
此活頁簿定義的唯一修訂標識符 |
properties.serializedData |
string |
此特定活頁簿的設定。 設定數據是包含有效 JSON 的字串 |
properties.tags |
string[] |
與此活頁簿定義相關聯的 0 個或多個標籤清單 |
tags |
object |
資源標籤。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
活頁簿定義已更新。 |
|
201 Created |
活頁簿定義已更新。 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Workbook |
Workbook |
WorkbookManagedUpdate
範例要求
PATCH https://management.azure.com/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2?sourceId=/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group&api-version=2021-08-01
範例回覆
{
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {
"clientId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000"
}
}
},
"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",
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02",
"hidden-title": "Sample workbook"
},
"kind": "shared",
"properties": {
"displayName": "Sample workbook",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourceGroups/my-resource-group\"]}",
"version": "Notebook/1.0",
"category": "workbook",
"userId": "70d90f65-8a70-4e42-b8d5-863725e0a90f",
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
"timeModified": "2020-10-20T22:15:08.1875458Z",
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb",
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
}
}
{
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {
"clientId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000"
}
}
},
"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",
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02",
"hidden-title": "Sample workbook"
},
"kind": "shared",
"properties": {
"displayName": "Sample workbook",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourceGroups/my-resource-group\"]}",
"version": "Notebook/1.0",
"category": "workbook",
"userId": "70d90f65-8a70-4e42-b8d5-863725e0a90f",
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
"timeModified": "2020-10-20T22:15:08.1875458Z",
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb",
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
}
}
WorkbookUpdate
範例要求
PATCH https://management.azure.com/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2?sourceId=/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp&api-version=2021-08-01
範例回覆
{
"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",
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02"
},
"kind": "shared",
"properties": {
"displayName": "Sample workbook",
"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}",
"userId": "userId",
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp",
"version": "Notebook/1.0",
"category": "workbook",
"timeModified": "2020-10-20T22:00:26.4229554Z",
"storageUri": null,
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb"
}
}
{
"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",
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02"
},
"kind": "shared",
"properties": {
"displayName": "Sample workbook",
"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}",
"userId": "userId",
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp",
"version": "Notebook/1.0",
"category": "workbook",
"timeModified": "2020-10-20T22:00:26.4229554Z",
"storageUri": null,
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb"
}
}
定義
名稱 | Description |
---|---|
created |
建立資源的身分識別類型。 |
Identity |
用於 BYOS 的身分識別 |
kind |
活頁簿的種類。 只有有效的值是共用的。 |
Managed |
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 |
Shared |
活頁簿的種類。 只有有效的值是共用的。 |
system |
與建立和上次修改資源相關的元數據。 |
User |
使用者指派的身分識別屬性 |
Workbook |
Application Insights 活頁簿定義。 |
Workbook |
錯誤回應。 |
Workbook |
錯誤定義。 |
Workbook |
錯誤詳細數據 |
Workbook |
更新活頁簿屬性屬性時所提供的參數。 |
createdByType
建立資源的身分識別類型。
值 | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
Identity
用於 BYOS 的身分識別
名稱 | 類型 | Description |
---|---|---|
principalId |
string (uuid) |
系統指派身分識別的服務主體標識碼。 此屬性只會針對系統指派的身分識別提供。 |
tenantId |
string (uuid) |
系統指派身分識別的租用戶標識碼。 此屬性只會針對系統指派的身分識別提供。 |
type |
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 |
|
userAssignedIdentities |
<string,
User |
User-Assigned 身分識別 |
kind
活頁簿的種類。 只有有效的值是共用的。
值 | Description |
---|---|
shared | |
user |
ManagedServiceIdentityType
受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。
值 | Description |
---|---|
None | |
SystemAssigned | |
SystemAssigned,UserAssigned | |
UserAssigned |
SharedTypeKind
活頁簿的種類。 只有有效的值是共用的。
值 | Description |
---|---|
shared | |
user |
systemData
與建立和上次修改資源相關的元數據。
名稱 | 類型 | Description |
---|---|---|
createdAt |
string (date-time) |
資源建立的時間戳(UTC)。 |
createdBy |
string |
建立資源的身分識別。 |
createdByType |
建立資源的身分識別類型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源的身分識別。 |
lastModifiedByType |
上次修改資源的身分識別類型。 |
UserAssignedIdentity
使用者指派的身分識別屬性
名稱 | 類型 | Description |
---|---|---|
clientId |
string (uuid) |
指派之身分識別的用戶端標識碼。 |
principalId |
string (uuid) |
指派之身分識別的主體標識碼。 |
Workbook
Application Insights 活頁簿定義。
名稱 | 類型 | Description |
---|---|---|
etag |
object |
資源 etag |
id |
string |
資源的完整資源標識碼。 例如 - /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 |
此活頁簿定義的唯一修訂標識符 |
properties.serializedData |
string |
此特定活頁簿的設定。 設定數據是包含有效 JSON 的字串 |
properties.sourceId |
string |
來源資源的 ResourceId。 |
properties.storageUri |
string |
使用您自己的記憶體時,將 resourceId 複製到記憶體帳戶 |
properties.tags |
string[] |
已被取代,請使用其他標籤欄位 |
properties.timeModified |
string (date-time) |
上次修改此活頁簿定義的 UTC 日期和時間。 |
properties.userId |
string |
擁有此活頁簿之特定使用者的唯一用戶標識碼。 |
properties.version |
string |
活頁簿架構版本格式,例如 『Notebook/1.0』,這應該符合 serializedData 中的活頁簿 |
systemData |
與建立和上次修改資源相關的元數據。 |
|
tags |
object |
資源標籤。 |
type |
string |
資源的型別。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
WorkbookError
錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤詳細數據。 |
WorkbookErrorDefinition
錯誤定義。
名稱 | 類型 | Description |
---|---|---|
code |
string |
服務特定的錯誤碼,做為 HTTP 錯誤碼的子狀態。 |
innererror |
內部錯誤詳細數據。 |
|
message |
string |
錯誤的描述。 |
WorkbookInnerErrorTrace
錯誤詳細數據
名稱 | 類型 | Description |
---|---|---|
trace |
string[] |
詳細的錯誤追蹤 |
WorkbookUpdateParameters
更新活頁簿屬性屬性時所提供的參數。
名稱 | 類型 | Description |
---|---|---|
kind |
活頁簿的種類。 只有有效的值是共用的。 |
|
properties.category |
string |
活頁簿類別,如使用者在建立時所定義。 |
properties.description |
string |
活頁簿的描述。 |
properties.displayName |
string |
活頁簿的使用者定義名稱(顯示名稱)。 |
properties.revision |
string |
此活頁簿定義的唯一修訂標識符 |
properties.serializedData |
string |
此特定活頁簿的設定。 設定數據是包含有效 JSON 的字串 |
properties.tags |
string[] |
與此活頁簿定義相關聯的 0 個或多個標籤清單 |
tags |
object |
資源標籤。 |