Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new resource type: Microsoft.ResourceGraph/queries #5478

Merged
merged 66 commits into from
Apr 29, 2019
Merged
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
a892e9f
Adding Workbooks resource type.
ericc1103 Mar 29, 2018
aee9914
Rename workbookDelete.json to WorkbookDelete.json
ericc1103 Mar 29, 2018
4ba66aa
Fixed undefiend parameter issue with Delete verb.
ericc1103 Mar 29, 2018
e6041b2
Merge branch 'master' of https://github.com/ericc1103/azure-rest-api-…
ericc1103 Mar 29, 2018
6672215
Update swagger to add subscriptionId
ericc1103 Mar 30, 2018
92ff8e9
Fixed duplicated operation id issue
ericc1103 Mar 30, 2018
c245a85
Removed links endpoint
ericc1103 Apr 3, 2018
bed6bc3
Removed unused samples
ericc1103 Apr 3, 2018
d3bac20
Revert "Removed unused samples"
ericc1103 Apr 3, 2018
5259a41
Revert "Removed links endpoint"
ericc1103 Apr 3, 2018
4227f6c
Removed link logic and added get by resourceid
ericc1103 Apr 5, 2018
328b75c
Applied PR comments
ericc1103 Apr 5, 2018
b742198
Added Resource Group parameter for GET. Removed get by sourceId since…
ericc1103 Apr 18, 2018
15a0dcb
Merged with upstream. Modify Workbook Resource Type to include RG and…
ericc1103 Apr 18, 2018
12a3962
Resolved the merge conflicts with readme.md
ericc1103 Apr 18, 2018
f78a25b
Merge remote-tracking branch 'upstream/master'
ericc1103 Apr 21, 2018
ebf8df0
Remove a location parameter since ARM routes it as we are using an tr…
ericc1103 Apr 21, 2018
75c93eb
Created newer version (2018-04-01-preview) for workbook resource type.
ericc1103 Apr 26, 2018
b2613f1
Merge remote-tracking branch 'upstream/master'
ericc1103 Apr 26, 2018
86e578d
Added Microsoft/Insights/Operations
ericc1103 Jun 13, 2018
1f479eb
Added Microsoft/Insights/Operations
ericc1103 Jun 13, 2018
2f52c4e
Corrected the api version.
ericc1103 Jun 13, 2018
4dca63c
Made properties of PATCH operation as not required. Updated the versi…
ericc1103 Jun 25, 2018
f59f9fe
Updated Resource properties with the correct fields. Created new defi…
ericc1103 Jun 26, 2018
eb74830
Update readme file
ericc1103 Jun 26, 2018
3fcc797
Uses plural for operation group name
ericc1103 Jul 2, 2018
60eb6f2
Get the latest version from the upstream and resolved the merge conflict
ericc1103 Jul 2, 2018
bd29c56
Removed x-ms-mutability settings
ericc1103 Jul 2, 2018
46c31d1
Removed the location settings for PATCH
ericc1103 Jul 2, 2018
35e87fd
Resolved the merge conflicts
ericc1103 Mar 15, 2019
9f5758c
Added Microsoft.ResourceGraph/SavedQuery resource type
ericc1103 Mar 15, 2019
81c09b4
Fixed various validation errors
ericc1103 Mar 16, 2019
70ea7d1
Updated ARG/resources to add a saved query support along with examples
ericc1103 Mar 21, 2019
1c559d9
Updated ARM/resources based on the feedback
ericc1103 Mar 21, 2019
46f9eed
Prepared for Swagger submittion
ericc1103 Mar 26, 2019
68f9e68
Merge remote-tracking branch 'upstream/master'
ericc1103 Mar 26, 2019
499cdf5
Added saved query entry in readme.md
ericc1103 Mar 26, 2019
87aed5b
Changed HTTP status code of 201 to 200 for DELETE
ericc1103 Apr 12, 2019
84fed1d
Removed a name from payload since it is already specified in url
ericc1103 Apr 12, 2019
bebd7e4
Removed location since it is a global resource and added eTag
ericc1103 Apr 16, 2019
7e32b82
Merge remote-tracking branch 'upstream/master'
ericc1103 Apr 16, 2019
b662233
Moved savedquery.json along with all examples into 2018-09-01-preview…
ericc1103 Apr 16, 2019
fbcceb7
Update saved query metadata in OperationsList.json
ericc1103 Apr 16, 2019
0c3fd31
Updated readme.md file to address a version
ericc1103 Apr 16, 2019
bcb4dfe
Fixed a version for saved query
ericc1103 Apr 16, 2019
be69a86
Fixed indentation of -input-file in readme
ericc1103 Apr 16, 2019
3cf2ff9
Renamed Saved => Graph
ericc1103 Apr 17, 2019
5227309
Merge remote-tracking branch 'upstream/master'
ericc1103 Apr 17, 2019
8bdf140
Applied PR comments
ericc1103 Apr 17, 2019
6e867ba
Restored extended enum value in ResultKind since we are using it
ericc1103 Apr 18, 2019
2824f34
Removed the extended enum value again
ericc1103 Apr 19, 2019
e218366
Apply ARM API team comments
ericc1103 Apr 26, 2019
0a40510
Merge remote-tracking branch 'upstream/master'
ericc1103 Apr 26, 2019
4ed51f7
Merge remote-tracking branch 'upstream/master'
ericc1103 Apr 26, 2019
784e767
Fix examples
ericc1103 Apr 26, 2019
6cee3ce
Fix examples
ericc1103 Apr 26, 2019
2915d70
Added nextLinkName
ericc1103 Apr 27, 2019
8225612
add Go SDK build
jhendrixMSFT Apr 29, 2019
4a454fa
make descriptions match
jhendrixMSFT Apr 29, 2019
d80fb24
Added nextLink definition in OperationListResult
ericc1103 Apr 29, 2019
09cb1a6
Merge branch 'master' of https://github.com/ericc1103/azure-rest-api-…
ericc1103 Apr 29, 2019
dca15ca
Removed a duplicated OperationListResult and reference to resourcegra…
ericc1103 Apr 29, 2019
4032af8
Added nextLinkName: nextLink for x-ms-pageable in operations
ericc1103 Apr 29, 2019
b379fcd
fix formatting and description
jhendrixMSFT Apr 29, 2019
d88ec19
Removed extended from enum
ericc1103 Apr 29, 2019
b7d2a29
Merge branch 'master' of https://github.com/ericc1103/azure-rest-api-…
ericc1103 Apr 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"title": "Create a saved query",
"description": "Create new saved query resource.",
"parameters": {
"subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
"resourceGroupName": "my-resource-group",
"resourceName": "MyDockerVMs",
"api-version": "2018-09-01-preview",
"properties": {
"tags": {},
"properties": {
"description": "Docker VMs in PROD",
"query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'"
}
}
},
"responses": {
"200": {
"body": {
"id": " /subscriptions/024e2271-06fa-46b6-9079-f1ed3c7b070e/resources/my-resource-group/providers/Microsoft.ResourceGraph/queries/MyDockerVMs",
"name": "MyDockerVMs",
"type": "Microsoft.ResourceGraph/queries",
"eTag": "5d64408e-4ca3-41f7-b725-6914f3012afa",
"tags": {},
"properties": {
"description": "Docker VMs in PROD",
"query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'",
"resultKind": "basic",
"timeModified": "2019-03-12T13:51:13-07:00"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"title": "Delete a saved query",
"description": "Delete a saved query resource by subid, resource group, and resource name.",
"parameters": {
"subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
"resourceGroupName": "my-resource-group",
"resourceName": "MyDockerVM",
"api-version": "2018-09-01-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"title": "Get a saved query",
"description": "Get a saved query resource by subid, resource group, and resource name.",
"parameters": {
"subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
"resourceGroupName": "my-resource-group",
"resourceName": "MyDockerVMs",
"api-version": "2018-09-01-preview"
},
"responses": {
"200": {
"body": {
"id": " /subscriptions/024e2271-06fa-46b6-9079-f1ed3c7b070e/resources/my-resource-group/providers/Microsoft.ResourceGraph/queries/MyDockerVMs",
"name": "MyDockerVMs",
"type": "Microsoft.ResourceGraph/queries",
"eTag": "5d64408e-4ca3-41f7-b725-6914f3012afa",
"tags": null,
"properties": {
"description": "Docker VMs in PROD",
"query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'",
"resultKind": "basic",
"timeModified": "2019-03-12T13:51:13-07:00"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"title": "Get a list of saved queries",
"description": "Get a list of saved queries within subscription id and resource group.",
"parameters": {
"subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
"resourceGroupName": "my-resource-group",
"api-version": "2018-09-01-preview"
},
"responses": {
"200": {
"body": {
"nextLink": "https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.ResourceGraph/queries?api-version=2019-09-01-preview&$top=10&$skiptoken=skiptoken",
"value": [
{
"id": "/subscriptions/87f4f8b0-83c1-4aa9-b318-5237aeb15264/resources/rid1/providers/Microsoft.ResourceGraph/queries/MyDockerVMs",
"name": "MyDockerVMs",
"type": "Microsoft.ResourceGraph/queries",
"tags": {},
"eTag": "5d64408e-4ca3-41f7-b725-6914f3012afa",
"properties": {
"description": "Docker VMs in PROD",
"query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'",
"resultKind": "basic",
"timeModified": "2019-03-12T13:51:13-07:00"
}
},
{
"id": "/subscriptions/6abb2f31-3e6a-4134-9968-219a596012a0/resources/rid2/providers/Microsoft.ResourceGraph/queries/MyTestVMs",
"name": "MyTestVMs",
"type": "Microsoft.ResourceGraph/queries",
"tags": {},
"eTag": "b0809832-ca62-4133-8f13-0c46580f9db1",
"properties": {
"description": "Test VMs in PROD",
"query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'test'",
"resultKind": "basic",
"timeModified": "2019-03-13T13:51:13-07:00"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "Update a saved query",
"description": "Update the existing saved query resource.",
"parameters": {
"subscriptionId": "024e2271-06fa-46b6-9079-f1ed3c7b070e",
"resourceGroupName": "my-resource-group",
"resourceName": "MyDockerVMs",
"api-version": "2018-09-01-preview",
"body": {
"tags": null,
"eTag": "b0809832-ca62-4133-8f13-0c46580f9db1",
"properties": {
"description": "Modified description",
"query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'"
}
}
},
"responses": {
"200": {
"body": {
"id": " /subscriptions/024e2271-06fa-46b6-9079-f1ed3c7b070e/resources/my-resource-group/providers/Microsoft.ResourceGraph/queries/MyDockerVMs",
"name": "MyDockerVMs",
"type": "Microsoft.ResourceGraph/queries",
"eTag": "73811091-6188-4523-97b7-b5e7134e7fd9",
"tags": null,
"properties": {
"description": "Modified description",
"query": "where isnotnull(tags['Prod']) and properties.extensions[0].Name == 'docker'",
"resultKind": "basic",
"timeModified": "2019-03-14T13:51:13-07:00"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
"operation": "Query resources",
"description": "Submits a query on resources within specified subscriptions"
}
},
{
"name": "Microsoft.ResourceGraph/queries/action",
"display": {
"provider": "Microsoft Resource Graph",
"resource": "Queries",
"operation": "CRUD operations of graph queries",
"description": "Create/Update/Retrieve a query within specified subscription and resource group."
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "2018-10-30T12:09:03.141Z",
"end": "2018-10-31T12:09:03.141Z"
},
"$top": "2"
"$top": 2
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "2018-10-30T12:09:03.141Z",
"end": "2018-10-31T12:09:03.141Z"
},
"$top": "2",
"$top": 2,
"$skipToken": "ew0KICAiJGlkIjogIjEiLA0KICAiRW5kVGltZSI6ICJcL0RhdGUoMTU1MDc0NT"
}
},
Expand Down
Loading