Skip to content
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"api-version": "2017-11-01-preview",
"groupId": "00000000-0000-0000-0000-000000000001",
"subscriptionId": "00000000-0000-0000-0000-000000000011"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2017-11-01-preview",
"groupId": "00000000-0000-0000-0000-000000000002",
"createGroupRequest": {
"properties ": {
"displayName": "Group Name 2",
"parentGroupId": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000001"
}
}
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000002",
"type": "/providers/Microsoft.Management/managementGroups",
"name": "00000000-0000-0000-0000-000000000002",
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"displayName": "Group Name 2",
"details": {
"version": 1,
"updatedTime": "2017-01-01T00:00:00.00Z",
"updatedBy": "Test",
"parent": {
"parentId": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000001",
"displayName": "Group Name 1"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"api-version": "2017-11-01-preview",
"groupId": "00000000-0000-0000-0000-000000000001"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2017-11-01-preview",
"groupId": "00000000-0000-0000-0000-000000000001"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000001",
"type": "/providers/Microsoft.Management/managementGroups",
"name": "00000000-0000-0000-0000-000000000001",
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"displayName": "Group Name 1",
"details": {
"version": 1,
"updatedTime": "2017-01-01T00:00:00.00Z",
"updatedBy": "Test",
"parent": null
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"api-version": "2017-11-01-preview",
"groupId": "00000000-0000-0000-0000-000000000001",
"subscriptionId": "00000000-0000-0000-0000-000000000011"
},
"responses": {
"200": {
"body": {
"childType": "Subscription",
"childId": "/subscriptions/00000000-0000-0000-0000-000000000011",
"displayName": "Subscription Name 1"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"api-version": "2017-11-01-preview",
"groupId": "00000000-0000-0000-0000-000000000001",
"$expand": "children"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000001",
"type": "/providers/Microsoft.Management/managementGroups",
"name": "00000000-0000-0000-0000-000000000001",
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"displayName": "Group Name 1",
"details": {
"version": 1,
"updatedTime": "2017-01-01T00:00:00Z",
"updatedBy": "Test",
"parent": null
},
"children": [
{
"childType": "ManagementGroup",
"childId": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000002",
"displayName": "Group Name 2"
},
{
"childType": "ManagementGroup",
"childId": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000003",
"displayName": "Group Name 3"
},
{
"childType": "Subscription",
"childId": "/subscriptions/00000000-0000-0000-0000-000000000011",
"displayName": "Subscription Name 1"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"parameters": {
"api-version": "2017-11-01-preview",
"groupId": "00000000-0000-0000-0000-000000000001",
"$expand": "children",
"$recurse": true
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000001",
"type": "/providers/Microsoft.Management/managementGroups",
"name": "00000000-0000-0000-0000-000000000001",
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"displayName": "Group Name 1",
"details": {
"version": 1,
"updatedTime": "2017-01-01T00:00:00Z",
"updatedBy": "Test",
"parent": null
},
"children": [
{
"childType": "ManagementGroup",
"childId": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000002",
"displayName": "Group Name 2",
"children": [
{
"childType": "ManagementGroup",
"childId": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000004",
"displayName": "Group Name 4",
"children": [
{
"childType": "Subscription",
"childId": "/subscriptions/00000000-0000-0000-0000-000000000012",
"displayName": "Subscription Name 2"
},
{
"childType": "Subscription",
"childId": "/subscriptions/00000000-0000-0000-0000-000000000013",
"displayName": "Subscription Name 3"
}
]
}
]
},
{
"childType": "ManagementGroup",
"childId": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000003",
"displayName": "Group Name 3",
"children": [
{
"childType": "Subscription",
"childId": "/subscriptions/00000000-0000-0000-0000-000000000014",
"displayName": "Subscription Name 4"
}
]
},
{
"childType": "Subscription",
"childId": "/subscriptions/00000000-0000-0000-0000-000000000011",
"displayName": "Subscription Name 1"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2017-11-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Management/managementGroups/write",
"display": {
"provider": "Microsoft Management",
"resource": "managementGroups",
"operation": "Create a management group",
"description": "Create a management group."
}
},
{
"name": "Microsoft.Management/managementGroups/read",
"display": {
"provider": "Microsoft Management",
"resource": "managementGroups",
"operation": "Get a management group",
"description": "Get a management group."
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2017-11-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000001",
"type": "/providers/Microsoft.Management/managementGroups",
"name": "00000000-0000-0000-0000-000000000001",
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"displayName": "Group Name 1"
}
},
{
"id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000002",
"type": "/providers/Microsoft.Management/managementGroups",
"name": "00000000-0000-0000-0000-000000000002",
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"displayName": "Group Name 2"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"api-version": "2017-11-01-preview",
"groupId": "00000000-0000-0000-0000-000000000001",
"subscriptionId": "00000000-0000-0000-0000-000000000011"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2017-11-01-preview",
"groupId": "00000000-0000-0000-0000-000000000002",
"createGroupRequest": {
"properties ": {
"parentGroupId": null
}
}
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000002",
"type": "/providers/Microsoft.Management/managementGroups",
"name": "00000000-0000-0000-0000-000000000002",
"properties": {
"tenantId": "00000000-0000-0000-0000-000000000000",
"displayName": "Group Name 2",
"details": {
"version": 1,
"updatedTime": "2017-01-01T00:00:00.00Z",
"updatedBy": "Test",
"parent": null
}
}
}
}
}
}
Loading