Skip to content

Commit 4067533

Browse files
tonyksleeMirzaSikander
authored andcommitted
Add Workbooks_ListBySubscription Definition (Azure#13319)
* added listBySubscription operation to workbooks_API along with the corresponding example json * fixed operationId
1 parent 6edca71 commit 4067533

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-10-20",
4+
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
5+
"resourceGroupName": "my-resource-group",
6+
"category": "workbook"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": [],
11+
"nextLink": null
12+
}
13+
}
14+
}

specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-10-20/workbooks_API.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,57 @@
3434
}
3535
},
3636
"paths": {
37+
"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/workbooks": {
38+
"get": {
39+
"description": "Get all private workbooks defined within a specified subscription and category.",
40+
"operationId": "Workbooks_ListBySubscription",
41+
"parameters": [
42+
{
43+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
44+
},
45+
{
46+
"$ref": "#/parameters/CategoryParameter"
47+
},
48+
{
49+
"$ref": "#/parameters/TagsParameter"
50+
},
51+
{
52+
"$ref": "#/parameters/CanFetchWorkbookContentParameter"
53+
},
54+
{
55+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
56+
}
57+
],
58+
"responses": {
59+
"200": {
60+
"description": "A list containing 0 or more workbook definitions.",
61+
"schema": {
62+
"$ref": "#/definitions/WorkbooksListResult"
63+
}
64+
},
65+
"default": {
66+
"description": "Error response describing why the operation failed.",
67+
"schema": {
68+
"$ref": "#/definitions/WorkbookError"
69+
}
70+
}
71+
},
72+
"x-ms-pageable": {
73+
"nextLinkName": "nextLink"
74+
},
75+
"x-ms-examples": {
76+
"WorkbooksList": {
77+
"$ref": "./examples/WorkbooksList.json"
78+
},
79+
"WorkbooksList2": {
80+
"$ref": "./examples/WorkbooksList2.json"
81+
},
82+
"WorkbooksManagedList": {
83+
"$ref": "./examples/WorkbooksManagedList.json"
84+
}
85+
}
86+
}
87+
},
3788
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks": {
3889
"get": {
3990
"description": "Get all Workbooks defined within a specified resource group and category.",

0 commit comments

Comments
 (0)