Skip to content

Commit 0c21a10

Browse files
authored
[Hub Generated] Review request for Microsoft.Management to add version stable/2023-04-01 (#24976)
* Adds base for updating Microsoft.Management from version stable/2021-04-01 to version 2023-04-01 * Updates readme * Updates API version in new specs and examples
1 parent 6885351 commit 0c21a10

26 files changed

+2945
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01",
4+
"groupId": "Group",
5+
"subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc",
6+
"Cache-Control": "no-cache"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"name": "728bcbe4-8d56-4510-86c2-4921b8beefbc",
12+
"id": " /providers/Microsoft.Management/managementGroups/Group/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc",
13+
"type": "Microsoft.Management/managementGroups/subscriptions",
14+
"properties": {
15+
"displayName": "Group",
16+
"parent": {
17+
"id": "/providers/Microsoft.Management/managementGroups/Group"
18+
},
19+
"state": "Active",
20+
"tenant": "e751ac82-623b-4913-8d74-22637c832373"
21+
}
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01",
4+
"checkNameAvailabilityRequest": {
5+
"name": "nameTocheck",
6+
"type": "Microsoft.Management/managementGroups"
7+
},
8+
"Cache-Control": "no-cache"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": false,
14+
"reason": "AlreadyExists",
15+
"message": "Error message"
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01",
4+
"groupId": "root"
5+
},
6+
"responses": {
7+
"200": {}
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01",
4+
"groupId": "GroupToDelete",
5+
"Cache-Control": "no-cache"
6+
},
7+
"responses": {
8+
"202": {
9+
"headers": {
10+
"Location": "https://management.azure.com/providers/Microsoft.Management/managementGroups/GroupToDelete?api-version=2023-04-01"
11+
},
12+
"body": {
13+
"id": "/providers/Microsoft.Management/managementGroups/GroupToDelete",
14+
"type": "Microsoft.Management/managementGroups",
15+
"name": "GroupToDelete",
16+
"status": "NotStarted"
17+
}
18+
},
19+
"204": {}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01",
4+
"groupId": "Group"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"name": "728bcbe4-8d56-4510-86c2-4921b8beefbc",
12+
"id": "/providers/Microsoft.Management/managementGroups/Group/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc",
13+
"type": "Microsoft.Management/managementGroups/subscriptions",
14+
"properties": {
15+
"displayName": "S5",
16+
"parent": {
17+
"id": "/providers/Microsoft.Management/managementGroups/Group"
18+
},
19+
"state": "Active",
20+
"tenant": "e751ac82-623b-4913-8d74-22637c832373"
21+
}
22+
}
23+
],
24+
"nextLink": null
25+
}
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01",
4+
"groupId": "20000000-0000-0000-0000-000000000000"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000",
12+
"type": "Microsoft.Management/managementGroups",
13+
"name": "20000000-0001-0000-0000-000000000000",
14+
"properties": {
15+
"displayName": "Group 1",
16+
"parent": {
17+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000"
18+
}
19+
}
20+
},
21+
{
22+
"id": "/subscriptions/20000000-0004-0000-0000-000000000000",
23+
"type": "Microsoft.Management/managementGroups/subscriptions",
24+
"name": "20000000-0004-0000-0000-000000000000",
25+
"properties": {
26+
"displayName": "Subscription 4",
27+
"parent": {
28+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000"
29+
}
30+
}
31+
}
32+
],
33+
"nextLink": null
34+
}
35+
}
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000",
11+
"type": "Microsoft.Management/managementGroups",
12+
"name": "20000000-0001-0000-0000-000000000000",
13+
"properties": {
14+
"tenantId": "20000000-0000-0000-0000-000000000000",
15+
"displayName": "Group 1 Tenant 2",
16+
"parent": {
17+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000"
18+
},
19+
"permissions": "view",
20+
"inheritedPermissions": "view",
21+
"parentDisplayNameChain": [
22+
"Tenant Root Group",
23+
"Group 1 Tenant 2 Parent"
24+
],
25+
"parentNameChain": [
26+
"TenantRootGroup",
27+
"Group1Tenant2Parent"
28+
],
29+
"numberOfDescendants": 3,
30+
"numberOfChildren": 2,
31+
"numberOfChildGroups": 1
32+
}
33+
},
34+
{
35+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0004-0000-0000-000000000000",
36+
"type": "Microsoft.Management/managementGroups",
37+
"name": "20000000-0004-0000-0000-000000000000",
38+
"properties": {
39+
"tenantId": "20000000-0000-0000-0000-000000000000",
40+
"displayName": "Group 4 Tenant 2",
41+
"parent": {
42+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000"
43+
},
44+
"permissions": "delete",
45+
"inheritedPermissions": "delete",
46+
"parentDisplayNameChain": [
47+
"Tenant Root Group",
48+
"Group 4 Tenant 2 Parent"
49+
],
50+
"parentNameChain": [
51+
"TenantRootGroup",
52+
"Group4 Tenant2Parent"
53+
],
54+
"numberOfDescendants": 0,
55+
"numberOfChildren": 0,
56+
"numberOfChildGroups": 0
57+
}
58+
}
59+
],
60+
"nextLink": null
61+
}
62+
}
63+
}
64+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01",
4+
"groupId": "root"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/providers/Microsoft.Management/managementGroups/root/settings/default",
10+
"type": "Microsoft.Management/managementGroups/settings",
11+
"name": "root",
12+
"properties": {
13+
"tenantId": "20000000-0000-0000-0000-000000000000",
14+
"defaultManagementGroup": "/providers/Microsoft.Management/managementGroups/DefaultGroup",
15+
"requireAuthorizationForGroupCreation": true
16+
}
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01",
4+
"groupId": "20000000-0001-0000-0000-000000000000",
5+
"Cache-Control": "no-cache"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000",
11+
"type": "Microsoft.Management/managementGroups",
12+
"name": "20000000-0001-0000-0000-000000000000",
13+
"properties": {
14+
"tenantId": "20000000-0000-0000-0000-000000000000",
15+
"displayName": "Group 1 Tenant 2",
16+
"details": {
17+
"version": 1,
18+
"updatedTime": "2018-01-01T00:00:00.00Z",
19+
"updatedBy": "16b8ef21-5c9f-420c-bcc9-e4f8c9f30b4b",
20+
"parent": {
21+
"id": "/providers/Microsoft.Management/managementGroups/RootGroup",
22+
"name": "RootGroup",
23+
"displayName": "RootGroup"
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01",
4+
"groupId": "20000000-0001-0000-0000-00000000000",
5+
"$expand": "ancestors",
6+
"Cache-Control": "no-cache"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000",
12+
"type": "Microsoft.Management/managementGroups",
13+
"name": "20000000-0001-0000-0000-000000000000",
14+
"properties": {
15+
"tenantId": "20000000-0000-0000-0000-000000000000",
16+
"displayName": "Group 1 Tenant 2",
17+
"details": {
18+
"version": 1,
19+
"updatedTime": "2018-01-01T00:00:00.00Z",
20+
"updatedBy": "Test",
21+
"parent": {
22+
"id": "/providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000001",
23+
"name": "20000000-0000-0000-0000-000000000001",
24+
"displayName": "Parent display name"
25+
},
26+
"managementGroupAncestorsChain": [
27+
{
28+
"name": "20000000-0000-0000-0000-000000000001",
29+
"displayName": "Parent display name"
30+
},
31+
{
32+
"name": "20000000-0000-0000-0000-000000000000",
33+
"displayName": "Grandparent display name"
34+
}
35+
]
36+
}
37+
}
38+
}
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)