Skip to content

Commit

Permalink
MGRP S360 Vuln (#22832)
Browse files Browse the repository at this point in the history
* Add blockchain to latest profile

* Add additional types

* Fix Swagger issues

* Solve validation

---------

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
  • Loading branch information
ramoka178 and markcowl authored Apr 6, 2023
1 parent 9a46bdb commit 7ef6c70
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"type": "Microsoft.Management/managementGroups",
"name": "GroupToDelete",
"status": "NotStarted"
},
"headers": {
"azure-asyncoperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/GroupToDelete?api-version=2020-05-01"
}
},
"204": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
}
],
"nextLink": null
"@nextLink": null
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
}
],
"nextLink": null
"@nextLink": null
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2020-05-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"display": {
"provider": "aaaaaaaaaaaaaaaaaaaaa",
"resource": "aaaaaaaaaaaaa",
"operation": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"description": "aaaaaaaaaaaaaaaaaaaaaa"
}
}
],
"nextLink": "aaaaaaaaaaaaaaaaaaa"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
"nextLinkName": "@nextLink"
},
"x-ms-examples": {
"ListManagementGroups": {
Expand Down Expand Up @@ -712,6 +712,11 @@
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List Operations": {
"$ref": "./examples/ListOperations.json"
}
}
}
},
Expand Down Expand Up @@ -1059,7 +1064,7 @@
"$ref": "#/definitions/ManagementGroupInfo"
}
},
"nextLink": {
"@nextLink": {
"description": "The URL to use for getting the next set of results.",
"type": "string",
"readOnly": true
Expand Down Expand Up @@ -1431,7 +1436,7 @@
"$ref": "#/definitions/HierarchySettingsInfo"
}
},
"nextLink": {
"@nextLink": {
"description": "The URL to use for getting the next set of results.",
"type": "string",
"readOnly": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"properties": {
"displayName": "S5",
"parent": {
"id": "/providers/Microsoft.Management/managementGroups/Group",
"name": "name",
"displayName": "displayName"
"id": "/providers/Microsoft.Management/managementGroups/Group"
},
"state": "Active",
"tenant": "e751ac82-623b-4913-8d74-22637c832373"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
}
],
"nextLink": null
"@nextLink": null
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
}
],
"nextLink": null
"@nextLink": null
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
"nextLinkName": "@nextLink"
},
"x-ms-examples": {
"ListManagementGroups": {
Expand Down Expand Up @@ -1070,7 +1070,7 @@
"$ref": "#/definitions/ManagementGroupInfo"
}
},
"nextLink": {
"@nextLink": {
"description": "The URL to use for getting the next set of results.",
"type": "string",
"readOnly": true
Expand Down Expand Up @@ -1173,7 +1173,7 @@
},
"parent": {
"title": "Parent",
"$ref": "#/definitions/ParentGroupBagInfo",
"$ref": "#/definitions/DescendantParentGroupInfo",
"x-nullable": true
},
"state": {
Expand Down Expand Up @@ -1450,7 +1450,7 @@
"$ref": "#/definitions/HierarchySettingsInfo"
}
},
"nextLink": {
"@nextLink": {
"description": "The URL to use for getting the next set of results.",
"type": "string",
"readOnly": true
Expand Down Expand Up @@ -1579,24 +1579,6 @@
}
}
},
"ParentGroupBagInfo": {
"description": "The ID, name and displayName of the parent management group.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000"
},
"name": {
"type": "string",
"description": "The name of the parent management group. For example, 00000000-0000-0000-0000-000000000000"
},
"displayName": {
"type": "string",
"description": "The friendly name of the parent management group."
}
}
},
"EntityListResult": {
"description": "Describes the result of the request to view entities.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"properties": {
"displayName": "Group",
"parent": {
"id": "/providers/Microsoft.Management/managementGroups/Group",
"name": "name",
"displayName": "displayName"
"id": "/providers/Microsoft.Management/managementGroups/Group"
},
"state": "Active",
"tenant": "e751ac82-623b-4913-8d74-22637c832373"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"properties": {
"displayName": "S5",
"parent": {
"id": "/providers/Microsoft.Management/managementGroups/Group",
"name": "name",
"displayName": "displayName"
"id": "/providers/Microsoft.Management/managementGroups/Group"
},
"state": "Active",
"tenant": "e751ac82-623b-4913-8d74-22637c832373"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@
},
"parent": {
"title": "Parent",
"$ref": "#/definitions/ParentGroupBagInfo",
"$ref": "#/definitions/DescendantParentGroupInfo",
"x-nullable": true
},
"state": {
Expand Down Expand Up @@ -1608,24 +1608,6 @@
}
}
},
"ParentGroupBagInfo": {
"description": "The ID, name and displayName of the parent management group.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000"
},
"name": {
"type": "string",
"description": "The name of the parent management group. For example, 00000000-0000-0000-0000-000000000000"
},
"displayName": {
"type": "string",
"description": "The friendly name of the parent management group."
}
}
},
"EntityListResult": {
"description": "Describes the result of the request to view entities.",
"properties": {
Expand Down

0 comments on commit 7ef6c70

Please sign in to comment.