Skip to content

Commit

Permalink
Add Workbooks_ListBySubscription Definition (Azure#13319)
Browse files Browse the repository at this point in the history
* added listBySubscription operation to workbooks_API along with the corresponding example json

* fixed operationId
  • Loading branch information
tonykslee authored and MirzaSikander committed Mar 22, 2021
1 parent 6edca71 commit 4067533
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2020-10-20",
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
"resourceGroupName": "my-resource-group",
"category": "workbook"
},
"responses": {
"200": {
"body": [],
"nextLink": null
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,57 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/workbooks": {
"get": {
"description": "Get all private workbooks defined within a specified subscription and category.",
"operationId": "Workbooks_ListBySubscription",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/CategoryParameter"
},
{
"$ref": "#/parameters/TagsParameter"
},
{
"$ref": "#/parameters/CanFetchWorkbookContentParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "A list containing 0 or more workbook definitions.",
"schema": {
"$ref": "#/definitions/WorkbooksListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/WorkbookError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"WorkbooksList": {
"$ref": "./examples/WorkbooksList.json"
},
"WorkbooksList2": {
"$ref": "./examples/WorkbooksList2.json"
},
"WorkbooksManagedList": {
"$ref": "./examples/WorkbooksManagedList.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks": {
"get": {
"description": "Get all Workbooks defined within a specified resource group and category.",
Expand Down

0 comments on commit 4067533

Please sign in to comment.