-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MG RP new API versions: 2020-10-01 and 2021-04-01 (#13897)
* API 2020-10-01 with 2020-05-01 files * 2020-10-01 API changes * 2021-04-01 API version with 2020-10-01 files * Changes for 2021-04-01 API * PR fixes * Fixed issues with model * PR fixes
- Loading branch information
1 parent
f070607
commit 2aa64e0
Showing
52 changed files
with
5,757 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...nager/Microsoft.Management/stable/2020-10-01/examples/AddManagementGroupSubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"groupId": "Group", | ||
"subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"id": " /providers/Microsoft.Management/managementGroups/Group/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"type": "Microsoft.Management/managementGroups/subscriptions", | ||
"properties": { | ||
"displayName": "Group", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/Group" | ||
}, | ||
"state": "Active", | ||
"tenant": "e751ac82-623b-4913-8d74-22637c832373" | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...Microsoft.Management/stable/2020-10-01/examples/CheckManagementGroupNameAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"checkNameAvailabilityRequest": { | ||
"name": "nameTocheck", | ||
"type": "Microsoft.Management/managementGroups" | ||
}, | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "Error message" | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...urce-manager/Microsoft.Management/stable/2020-10-01/examples/DeleteHierarchySettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"groupId": "root" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...source-manager/Microsoft.Management/stable/2020-10-01/examples/DeleteManagementGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"groupId": "GroupToDelete", | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/GroupToDelete", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "GroupToDelete", | ||
"status": "NotStarted" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...crosoft.Management/stable/2020-10-01/examples/GetAllSubscriptionsFromManagementGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"groupId": "Group" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"id": "/providers/Microsoft.Management/managementGroups/Group/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc", | ||
"type": "Microsoft.Management/managementGroups/subscriptions", | ||
"properties": { | ||
"displayName": "S5", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/Group" | ||
}, | ||
"state": "Active", | ||
"tenant": "e751ac82-623b-4913-8d74-22637c832373" | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...oups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/GetDescendants.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"groupId": "20000000-0000-0000-0000-000000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0001-0000-0000-000000000000", | ||
"properties": { | ||
"displayName": "Group 1", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/20000000-0004-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups/subscriptions", | ||
"name": "20000000-0004-0000-0000-000000000000", | ||
"properties": { | ||
"displayName": "Subscription 4", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
...tgroups/resource-manager/Microsoft.Management/stable/2020-10-01/examples/GetEntities.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0001-0000-0000-000000000000", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "Group 1 Tenant 2", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000" | ||
}, | ||
"permissions": "view", | ||
"inheritedPermissions": "view", | ||
"parentDisplayNameChain": [ | ||
"Tenant Root Group", | ||
"Group 1 Tenant 2 Parent" | ||
], | ||
"parentNameChain": [ | ||
"TenantRootGroup", | ||
"Group1Tenant2Parent" | ||
], | ||
"numberOfDescendants": 3, | ||
"numberOfChildren": 2, | ||
"numberOfChildGroups": 1 | ||
} | ||
}, | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0004-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0004-0000-0000-000000000000", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "Group 4 Tenant 2", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000" | ||
}, | ||
"permissions": "delete", | ||
"inheritedPermissions": "delete", | ||
"parentDisplayNameChain": [ | ||
"Tenant Root Group", | ||
"Group 4 Tenant 2 Parent" | ||
], | ||
"parentNameChain": [ | ||
"TenantRootGroup", | ||
"Group4 Tenant2Parent" | ||
], | ||
"numberOfDescendants": 0, | ||
"numberOfChildren": 0, | ||
"numberOfChildGroups": 0 | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...esource-manager/Microsoft.Management/stable/2020-10-01/examples/GetHierarchySettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"groupId": "root" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/root/settings/default", | ||
"type": "Microsoft.Management/managementGroups/settings", | ||
"name": "root", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"defaultManagementGroup": "/providers/Microsoft.Management/managementGroups/DefaultGroup", | ||
"requireAuthorizationForGroupCreation": true | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
.../resource-manager/Microsoft.Management/stable/2020-10-01/examples/GetManagementGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"groupId": "20000000-0001-0000-0000-000000000000", | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0001-0000-0000-000000000000", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "Group 1 Tenant 2", | ||
"details": { | ||
"version": 1, | ||
"updatedTime": "2018-01-01T00:00:00.00Z", | ||
"updatedBy": "16b8ef21-5c9f-420c-bcc9-e4f8c9f30b4b", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/RootGroup", | ||
"name": "RootGroup", | ||
"displayName": "RootGroup" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...ager/Microsoft.Management/stable/2020-10-01/examples/GetManagementGroupWithAncestors.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"groupId": "20000000-0001-0000-0000-000000000000", | ||
"$expand": "ancestors", | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0001-0000-0000-000000000000", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "Group 1 Tenant 2", | ||
"details": { | ||
"version": 1, | ||
"updatedTime": "2018-01-01T00:00:00.00Z", | ||
"updatedBy": "Test", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000001", | ||
"name": "20000000-0000-0000-0000-000000000001", | ||
"displayName": "Parent display name" | ||
}, | ||
"managementGroupAncestors": [ | ||
"20000000-0000-0000-0000-000000000001", | ||
"20000000-0000-0000-0000-000000000000" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
...manager/Microsoft.Management/stable/2020-10-01/examples/GetManagementGroupWithExpand.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-10-01", | ||
"groupId": "20000000-0001-0000-0000-000000000000", | ||
"$expand": "children", | ||
"Cache-Control": "no-cache" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0001-0000-0000-000000000000", | ||
"properties": { | ||
"tenantId": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "Group 1 Tenant 2", | ||
"details": { | ||
"version": 1, | ||
"updatedTime": "2018-01-01T00:00:00.00Z", | ||
"updatedBy": "Test", | ||
"parent": { | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", | ||
"name": "20000000-0000-0000-0000-000000000000", | ||
"displayName": "20000000-0000-0000-0000-000000000000" | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0002-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0002-0000-0000-000000000000", | ||
"displayName": "Group 2 Tenant 2" | ||
}, | ||
{ | ||
"id": "/providers/Microsoft.Management/managementGroups/20000000-0003-0000-0000-000000000000", | ||
"type": "Microsoft.Management/managementGroups", | ||
"name": "20000000-0003-0000-0000-000000000000", | ||
"displayName": "Group 3 Tenant 2" | ||
}, | ||
{ | ||
"id": "/subscriptions/10000000-F004-0000-0000-000000000000", | ||
"type": "/subscriptions", | ||
"name": "10000000-F004-0000-0000-000000000000", | ||
"displayName": "Subscription 4 Tenant 1" | ||
}, | ||
{ | ||
"id": "/subscriptions/20000000-F005-0000-0000-000000000000", | ||
"type": "/subscriptions", | ||
"name": "20000000-F005-0000-0000-000000000000", | ||
"displayName": "Subscription 5 Tenant 2" | ||
}, | ||
{ | ||
"id": "/subscriptions/30000000-F003-0000-0000-000000000000", | ||
"type": "/subscriptions", | ||
"name": "30000000-F003-0000-0000-000000000000", | ||
"displayName": "Subscription 3 Tenant 3" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.