Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Expand Up @@ -1220,14 +1220,6 @@
"items": {
"$ref": "#/definitions/ManagementGroupChildInfo"
}
},
"path": {
"description": "The path from the root to the current group.",
"x-nullable": true,
"type": "array",
"items": {
"$ref": "#/definitions/ManagementGroupPathElement"
}
}
}
},
Expand All @@ -1252,6 +1244,14 @@
"parent": {
"title": "Parent",
"$ref": "#/definitions/ParentGroupInfo"
},
"path": {
"description": "The path from the root to the current group.",
"x-nullable": true,
"type": "array",
"items": {
"$ref": "#/definitions/ManagementGroupPathElement"
}
}
}
},
Expand Down
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"
}
}
}
}
}
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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parameters": {
"api-version": "2020-10-01",
"groupId": "root"
},
"responses": {
"200": {}
}
}
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": {}
}
}
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
}
}
}
}
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
}
}
}
}
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
}
}
}
}
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
}
}
}
}
}
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"
}
}
}
}
}
}
}
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"
]
}
}
}
}
}
}
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"
}
]
}
}
}
}
}
Loading