diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetGroups.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetGroups.json index 943f3fcf7627..4c7880a3e152 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetGroups.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetGroups.json @@ -1,31 +1,31 @@ { - "parameters": { - "api-version": "2017-08-31-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Management/managementGroups/10000000-d002-0000-0000-000000000000", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "10000000-d002-0000-0000-000000000000", - "properties": { - "tenantId": "10000000-0000-0000-0000-000000000000", - "displayName": "Department 2 under Enrollment 1" - } - }, - { - "id": "/providers/Microsoft.Management/managementGroups/10000000-a001-0000-0000-000000000000", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "10000000-a001-0000-0000-000000000000", - "properties": { - "tenantId": "10000000-0000-0000-0000-000000000000", - "displayName": "Account 1, under Department 1" - } - } - ] - } - } - } -} \ No newline at end of file + "parameters": { + "api-version": "2017-08-31-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Management/managementGroups/10000000-d002-0000-0000-000000000000", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "10000000-d002-0000-0000-000000000000", + "properties": { + "tenantId": "10000000-0000-0000-0000-000000000000", + "displayName": "Department 2 under Enrollment 1" + } + }, + { + "id": "/providers/Microsoft.Management/managementGroups/10000000-a001-0000-0000-000000000000", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "10000000-a001-0000-0000-000000000000", + "properties": { + "tenantId": "10000000-0000-0000-0000-000000000000", + "displayName": "Account 1, under Department 1" + } + } + ] + } + } + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroup.json index f0a0140fb957..6d20b094e5c2 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroup.json @@ -1,26 +1,26 @@ { - "parameters": { - "api-version": "2017-08-31-preview", - "groupId": "20000000-0001-0000-0000-000000000000" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", - "type": "/providers/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": "2017-01-01T00:00:00.00Z", - "updatedBy": "Test", - "parent": "null", - "managementGroupType": "Enrollment" - } - } - } - } - } -} \ No newline at end of file + "parameters": { + "api-version": "2017-08-31-preview", + "groupId": "20000000-0001-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", + "type": "/providers/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": "2017-01-01T00:00:00.00Z", + "updatedBy": "Test", + "parent": "null", + "managementGroupType": "Enrollment" + } + } + } + } + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroupWithExpand.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroupWithExpand.json index af848ec7db3a..5f54039fd4e2 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroupWithExpand.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroupWithExpand.json @@ -1,46 +1,48 @@ { - "parameters": { - "api-version": "2017-08-31-preview", - "groupId": "10000000-E001-0000-0000-000000000000", - "$expand": "children" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/10000000-E001-0000-0000-000000000000", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "10000000-E001-0000-0000-000000000000", - "properties": { - "tenantId": "10000000-0000-0000-0000-000000000000", - "displayName": "Enrollment 1, under Tenant 1", - "details": { - "version": 1, - "updatedTime": "2017-02-13T00:00:00Z", - "updatedBy": "*", - "managementGroupType": "Enrollment" - }, - "children": [{ - "childType": "Department", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-D001-0000-0000-000000000000", - "displayName": "Department 1 under Enrollment 1" - }, - { - "childType": "Department", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-D002-0000-0000-000000000000", - "displayName": "Department 2 under Enrollment 1" - }, - { - "childType": "Account", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-A004-0000-0000-000000000000", - "displayName": "Account 4, under Enrollment 1" - }, - { - "childType": "Account", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-A005-0000-0000-000000000000", - "displayName": "Account 5, under Enrollment 1" - }] - } - } - } - } -} \ No newline at end of file + "parameters": { + "api-version": "2017-08-31-preview", + "groupId": "10000000-E001-0000-0000-000000000000", + "$expand": "children" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/10000000-E001-0000-0000-000000000000", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "10000000-E001-0000-0000-000000000000", + "properties": { + "tenantId": "10000000-0000-0000-0000-000000000000", + "displayName": "Enrollment 1, under Tenant 1", + "details": { + "version": 1, + "updatedTime": "2017-02-13T00:00:00Z", + "updatedBy": "*", + "managementGroupType": "Enrollment" + }, + "children": [ + { + "childType": "Department", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-D001-0000-0000-000000000000", + "displayName": "Department 1 under Enrollment 1" + }, + { + "childType": "Department", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-D002-0000-0000-000000000000", + "displayName": "Department 2 under Enrollment 1" + }, + { + "childType": "Account", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-A004-0000-0000-000000000000", + "displayName": "Account 4, under Enrollment 1" + }, + { + "childType": "Account", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-A005-0000-0000-000000000000", + "displayName": "Account 5, under Enrollment 1" + } + ] + } + } + } + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroupWithExpandAndRecurse.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroupWithExpandAndRecurse.json index 32ed7a98d352..8e4aec6d581f 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroupWithExpandAndRecurse.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/examples/GetManagementGroupWithExpandAndRecurse.json @@ -1,155 +1,171 @@ { - "parameters": { - "api-version": "2017-08-31-preview", - "groupId": "10000000-E001-0000-0000-000000000000", - "$expand": "children", - "$recurse": true - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/10000000-e001-0000-0000-000000000000", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "10000000-e001-0000-0000-000000000000", - "properties": { - "tenantId": "10000000-0000-0000-0000-000000000000", - "displayName": "Enrollment 1, under Tenant 1", - "details": { - "version": 1, - "updatedTime": "2017-02-13T00:00:00Z", - "updatedBy": "*", - "managementGroupType": "Enrollment" - }, - "children": [{ - "childType": "Department", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-d001-0000-0000-000000000000", - "displayName": "Department 1 under Enrollment 1", - "children": [{ - "childType": "Account", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-a001-0000-0000-000000000000", - "displayName": "Account 1, under Department 1", - "children": [{ - "childType": "Subscription", - "childId": "/subscriptions/0a64fa3c-9c0d-4fff-8210-0aab1c70a6dd", - "displayName": "12-Month Plan (Prepaid)", - "tenantId": "d51b909d-c07e-464a-b342-ade31d5847a0", - "children": [] - }, - { - "childType": "Subscription", - "childId": "/subscriptions/160a47c4-58fe-4af0-8ebc-83f90f084650", - "displayName": "Pay-As-You-Go", - "tenantId": "d51b909d-c07e-464a-b342-ade31d5847a0", - "children": [] - }, - { - "childType": "Subscription", - "childId": "/subscriptions/22cf013b-58b3-43a6-be81-d0c490452cd8", - "displayName": "12-Month Plan (Prepaid)", - "tenantId": "d51b909d-c07e-464a-b342-ade31d5847a0", - "children": [] - }, - { - "childType": "Subscription", - "childId": "/subscriptions/10000000-f001-0000-0000-000000000000", - "displayName": "10000000-f001-0000-0000-000000000000", - "children": [] - }] - }] - }, - { - "childType": "Department", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-d002-0000-0000-000000000000", - "displayName": "Department 2 under Enrollment 1", - "children": [{ - "childType": "Account", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-a002-0000-0000-000000000000", - "displayName": "Account 2, under Department 2", - "children": [{ - "childType": "Subscription", - "childId": "/subscriptions/440db568-e343-4859-8bf7-5fc96af77d88", - "displayName": "Pay-As-You-Go", - "tenantId": "d51b909d-c07e-464a-b342-ade31d5847a0", - "children": [] - }] - }, - { - "childType": "Account", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-a003-0000-0000-000000000000", - "displayName": "Account 3, under Department 2", - "children": [{ - "childType": "Subscription", - "childId": "/subscriptions/169b81b5-a668-4dad-bc50-fc5e66ba7b91", - "displayName": "Pay-As-You-Go", - "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", - "children": [] - }, - { - "childType": "Subscription", - "childId": "/subscriptions/24aa285d-b606-4c08-80a4-207b7554746b", - "displayName": "Pay-As-You-Go", - "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", - "children": [] - }, - { - "childType": "Subscription", - "childId": "/subscriptions/6c8932e6-b1b7-4e8b-ac68-47f815ac9325", - "displayName": "Pay-As-You-Go", - "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", - "children": [] - }] - }] - }, - { - "childType": "Account", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-a004-0000-0000-000000000000", - "displayName": "Account 4, under Enrollment 1", - "children": [{ - "childId": "/providers/Microsoft.Management/managementGroups/10000000-0001-0000-0000-000000000000", - "displayName": "Modern group 1, under Account 4", - "children": [{ - "childType": "Subscription", - "childId": "/subscriptions/e9836373-b0a9-4716-b8a9-a55b6286524f", - "displayName": "Pay-As-You-Go", - "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", - "children": [] - }, - { - "childType": "Subscription", - "childId": "/subscriptions/978526d0-e5ac-4e56-9d29-57fe370c0817", - "displayName": "Free Trial", - "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", - "children": [] - }] - }, - { - "childId": "/providers/Microsoft.Management/managementGroups/10000000-0002-0000-0000-000000000000", - "displayName": "Modern Group 2, under Account 4", - "children": [] - }, - { - "childType": "Subscription", - "childId": "/subscriptions/bebc95ad-bf1b-4135-a5d5-a72d5734cfa5", - "displayName": "Pay-As-You-Go-OIDC", - "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", - "children": [] - }, - { - "childType": "Subscription", - "childId": "/subscriptions/d7b75696-f99c-454e-aaaf-35de00d8c5b6", - "displayName": "Pay-As-You-Go", - "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", - "children": [] - }] - }, - { - "childType": "Account", - "childId": "/providers/Microsoft.Management/managementGroups/10000000-a005-0000-0000-000000000000", - "displayName": "Account 5, under Enrollment 1", - "children": [] - }] - } - } - } - } -} \ No newline at end of file + "parameters": { + "api-version": "2017-08-31-preview", + "groupId": "10000000-E001-0000-0000-000000000000", + "$expand": "children", + "$recurse": true + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/10000000-e001-0000-0000-000000000000", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "10000000-e001-0000-0000-000000000000", + "properties": { + "tenantId": "10000000-0000-0000-0000-000000000000", + "displayName": "Enrollment 1, under Tenant 1", + "details": { + "version": 1, + "updatedTime": "2017-02-13T00:00:00Z", + "updatedBy": "*", + "managementGroupType": "Enrollment" + }, + "children": [ + { + "childType": "Department", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-d001-0000-0000-000000000000", + "displayName": "Department 1 under Enrollment 1", + "children": [ + { + "childType": "Account", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-a001-0000-0000-000000000000", + "displayName": "Account 1, under Department 1", + "children": [ + { + "childType": "Subscription", + "childId": "/subscriptions/0a64fa3c-9c0d-4fff-8210-0aab1c70a6dd", + "displayName": "12-Month Plan (Prepaid)", + "tenantId": "d51b909d-c07e-464a-b342-ade31d5847a0", + "children": [] + }, + { + "childType": "Subscription", + "childId": "/subscriptions/160a47c4-58fe-4af0-8ebc-83f90f084650", + "displayName": "Pay-As-You-Go", + "tenantId": "d51b909d-c07e-464a-b342-ade31d5847a0", + "children": [] + }, + { + "childType": "Subscription", + "childId": "/subscriptions/22cf013b-58b3-43a6-be81-d0c490452cd8", + "displayName": "12-Month Plan (Prepaid)", + "tenantId": "d51b909d-c07e-464a-b342-ade31d5847a0", + "children": [] + }, + { + "childType": "Subscription", + "childId": "/subscriptions/10000000-f001-0000-0000-000000000000", + "displayName": "10000000-f001-0000-0000-000000000000", + "children": [] + } + ] + } + ] + }, + { + "childType": "Department", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-d002-0000-0000-000000000000", + "displayName": "Department 2 under Enrollment 1", + "children": [ + { + "childType": "Account", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-a002-0000-0000-000000000000", + "displayName": "Account 2, under Department 2", + "children": [ + { + "childType": "Subscription", + "childId": "/subscriptions/440db568-e343-4859-8bf7-5fc96af77d88", + "displayName": "Pay-As-You-Go", + "tenantId": "d51b909d-c07e-464a-b342-ade31d5847a0", + "children": [] + } + ] + }, + { + "childType": "Account", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-a003-0000-0000-000000000000", + "displayName": "Account 3, under Department 2", + "children": [ + { + "childType": "Subscription", + "childId": "/subscriptions/169b81b5-a668-4dad-bc50-fc5e66ba7b91", + "displayName": "Pay-As-You-Go", + "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", + "children": [] + }, + { + "childType": "Subscription", + "childId": "/subscriptions/24aa285d-b606-4c08-80a4-207b7554746b", + "displayName": "Pay-As-You-Go", + "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", + "children": [] + }, + { + "childType": "Subscription", + "childId": "/subscriptions/6c8932e6-b1b7-4e8b-ac68-47f815ac9325", + "displayName": "Pay-As-You-Go", + "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", + "children": [] + } + ] + } + ] + }, + { + "childType": "Account", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-a004-0000-0000-000000000000", + "displayName": "Account 4, under Enrollment 1", + "children": [ + { + "childId": "/providers/Microsoft.Management/managementGroups/10000000-0001-0000-0000-000000000000", + "displayName": "Modern group 1, under Account 4", + "children": [ + { + "childType": "Subscription", + "childId": "/subscriptions/e9836373-b0a9-4716-b8a9-a55b6286524f", + "displayName": "Pay-As-You-Go", + "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", + "children": [] + }, + { + "childType": "Subscription", + "childId": "/subscriptions/978526d0-e5ac-4e56-9d29-57fe370c0817", + "displayName": "Free Trial", + "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", + "children": [] + } + ] + }, + { + "childId": "/providers/Microsoft.Management/managementGroups/10000000-0002-0000-0000-000000000000", + "displayName": "Modern Group 2, under Account 4", + "children": [] + }, + { + "childType": "Subscription", + "childId": "/subscriptions/bebc95ad-bf1b-4135-a5d5-a72d5734cfa5", + "displayName": "Pay-As-You-Go-OIDC", + "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", + "children": [] + }, + { + "childType": "Subscription", + "childId": "/subscriptions/d7b75696-f99c-454e-aaaf-35de00d8c5b6", + "displayName": "Pay-As-You-Go", + "tenantId": "9aad97db-3d48-4009-ae55-d1bc13ca4936", + "children": [] + } + ] + }, + { + "childType": "Account", + "childId": "/providers/Microsoft.Management/managementGroups/10000000-a005-0000-0000-000000000000", + "displayName": "Account 5, under Enrollment 1", + "children": [] + } + ] + } + } + } + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/management.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/management.json index 6a83ef237208..370ee20ee6e2 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/management.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-08-31-preview/management.json @@ -1,589 +1,589 @@ { - "swagger": "2.0", - "host": "management.azure.com", - "info": { - "version": "2017-08-31-preview", - "title": "Management Groups API", - "description": "The Azure Management Groups API enables consolidation of multiple \nsubscriptions/resources into an organizational hierarchy and centrally \nmanage access control, policies, alerting and reporting for those resources.\n" - }, - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } -], -"securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" + "swagger": "2.0", + "host": "management.azure.com", + "info": { + "version": "2017-08-31-preview", + "title": "Management Groups API", + "description": "The Azure Management Groups API enables consolidation of multiple \nsubscriptions/resources into an organizational hierarchy and centrally \nmanage access control, policies, alerting and reporting for those resources.\n" + }, + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] } - } -}, - "tags": [ - { - "name": "ManagementGroups", - "description": "A Management Group is a customer defined scope (grouping mechanism) that \nprovides access control (authorization), policy management and reporting. \nManagement Groups are organized in a strictly tree-based hierarchy.\n" - } - ], - "paths": { - "/providers/Microsoft.Management/managementGroups": { - "get": { - "tags": [ - "ManagementGroups" - ], - "operationId": "ManagementGroups_List", - "description": "List management groups for the authenticated user.\n", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "$skiptoken", - "in": "query", - "required": false, - "type": "string", - "description": "Page continuation token is only used if a previous operation returned a partial result. \nIf a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.\n" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagementGroupListResult" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorResponse" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GetManagementGroups": { - "$ref": "./examples/GetGroups.json" - } - } - } + } }, - "/providers/Microsoft.Management/managementGroups/{groupId}": { - "get": { - "tags": [ - "ManagementGroups" - ], - "operationId": "ManagementGroups_Get", - "description": "Get the details of the management group.\n", - "parameters": [ - { - "$ref": "#/parameters/GroupIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ExpandParameter" - }, - { - "$ref": "#/parameters/RecurseParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagementGroupWithHierarchy" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "tags": [ + { + "name": "ManagementGroups", + "description": "A Management Group is a customer defined scope (grouping mechanism) that \nprovides access control (authorization), policy management and reporting. \nManagement Groups are organized in a strictly tree-based hierarchy.\n" + } + ], + "paths": { + "/providers/Microsoft.Management/managementGroups": { + "get": { + "tags": [ + "ManagementGroups" + ], + "operationId": "ManagementGroups_List", + "description": "List management groups for the authenticated user.\n", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$skiptoken", + "in": "query", + "required": false, + "type": "string", + "description": "Page continuation token is only used if a previous operation returned a partial result. \nIf a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.\n" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementGroupListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetManagementGroups": { + "$ref": "./examples/GetGroups.json" + } + } } - } }, - "x-ms-examples": { - "GetManagementGroup": { - "$ref": "./examples/GetManagementGroup.json" - }, - "GetManagementGroupWithExpand": { - "$ref": "./examples/GetManagementGroupWithExpand.json" - }, - "GetManagementGroupsWithExpandAndRecurse": { - "$ref": "./examples/GetManagementGroupWithExpandAndRecurse.json" - } - } - } - }, - "/providers/Microsoft.Management/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists all of the available management REST API operations.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" + "/providers/Microsoft.Management/managementGroups/{groupId}": { + "get": { + "tags": [ + "ManagementGroups" + ], + "operationId": "ManagementGroups_Get", + "description": "Get the details of the management group.\n", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + }, + { + "$ref": "#/parameters/RecurseParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementGroupWithHierarchy" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "x-ms-examples": { + "GetManagementGroup": { + "$ref": "./examples/GetManagementGroup.json" + }, + "GetManagementGroupWithExpand": { + "$ref": "./examples/GetManagementGroupWithExpand.json" + }, + "GetManagementGroupsWithExpandAndRecurse": { + "$ref": "./examples/GetManagementGroupWithExpandAndRecurse.json" } } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - } - }, - "definitions": { - "ErrorResponse": { - "description": "The error object.", - "properties": { - "error": { - "title": "Error", - "$ref": "#/definitions/ErrorDetails" - } - } - }, - "ErrorDetails": { - "description": "The details of the error.", - "properties": { - "code": { - "description": "One of a server-defined set of error codes.", - "type": "string" }, - "message": { - "description": "A human-readable representation of the error.", - "type": "string" - }, - "target": { - "description": "(Optional) The target of the error.", - "type": "string" - } - } - }, - "Operation": { - "description": "A Management REST API operation.", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}.", - "type": "string", - "readOnly": true - }, - "display": { - "description": "The object that represents the operation.", - "properties": { - "provider": { - "description": "Service provider: Microsoft.Management.", - "type": "string", - "readOnly": true - }, - "resource": { - "description": "Resource on which the operation is performed: Invoice, etc.", - "type": "string", - "readOnly": true + "/providers/Microsoft.Management/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available management REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } }, - "operation": { - "description": "Operation type: Read, write, delete, etc.", - "type": "string", - "readOnly": true + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } } }, - "OperationListResult": { - "description": "Result listing operations. It contains a list of operations and a URL link to get the next set of results.", - "properties": { - "value": { - "description": "List of management operations supported by the Microsoft.Management resource provider.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Operation" + "definitions": { + "ErrorResponse": { + "description": "The error object.", + "properties": { + "error": { + "title": "Error", + "$ref": "#/definitions/ErrorDetails" } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string", - "readOnly": true } - } - }, - "ManagementGroupListResult": { - "description": "The result of listing management groups.", - "properties": { - "value": { - "description": "The list of management groups.", - "type": "array", - "items": { - "$ref": "#/definitions/ManagementGroupInfo" - } - }, - "nextLink": { - "description": "The URL to the next page of results.", - "type": "string", - "readOnly" : true - } - } - }, - "ManagementGroupInfo": { - "description": "The management group.", - "properties": { - "id": { - "type": "string", - "description": "The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", - "readOnly": true - }, - "type": { - "type": "string", - "description": "The type of the resource. E.g. /providers/Microsoft.Management/managementGroups", - "readOnly": true - }, - "name": { - "type": "string", - "format": "uuid", - "description": "The name of the management group. E.g. 20000000-0000-0000-0000-000000000000", - "readOnly": true - }, - "properties": { - "title": "Properties", - "x-ms-client-flatten" : true, - "$ref": "#/definitions/ManagementGroupInfoProperties" - } - } - }, - "ManagementGroupInfoProperties": { - "description": "The generic properties of a management group.", - "type": "object", - "properties": { - "tenantId": { - "type": "string", - "format": "uuid", - "description": "The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000" - }, - "displayName": { - "type": "string", - "description": "The friendly name of the management group." - } - } - }, - "ManagementGroup": { - "description": "The management group details.", - "properties": { - "id": { - "type": "string", - "description": "The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", - "readOnly": true - }, - "type": { - "type": "string", - "description": "The type of the resource. E.g. /providers/Microsoft.Management/managementGroups", - "readOnly": true - }, - "name": { - "type": "string", - "format": "uuid", - "description": "The name of the management group. E.g. 20000000-0000-0000-0000-000000000000", - "readOnly": true - }, - "properties": { - "title": "Properties", - "x-ms-client-flatten" : true, - "$ref": "#/definitions/ManagementGroupProperties" - } - } - }, - "ManagementGroupProperties": { - "description": "The generic properties of a management group.", - "type": "object", - "properties": { - "tenantId": { - "type": "string", - "format": "uuid", - "description": "The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000" - }, - "displayName": { - "type": "string", - "description": "The friendly name of the management group." - }, - "details": { - "title": "Details", - "$ref": "#/definitions/ManagementGroupDetailsProperties" - } - } - }, - "ManagementGroupDetailsProperties": { - "description": "The details properties of a management group.", - "type": "object", - "properties": { - "version": { - "type": "number", - "format": "int32", - "description": "The version number of the object." - }, - "updatedTime": { - "type": "string", - "format": "date-time", - "description": "The date and time when this object was last updated." - }, - "updatedBy": { - "type": "string", - "description": "The identity of the principal or process that updated the object." - }, - "parent": { - "title": "Parent", - "$ref": "#/definitions/ParentGroupInfo" - }, - "managementGroupType": { - "title": "Management Group Type", - "$ref": "#/definitions/ManagementGroupType" - } - } - }, - "ParentGroupInfo": { - "description": "(Optional) The ID of the parent management group.", - "properties": { - "parentId": { - "type": "string", - "description": "The ID of the parent management group. E.g. /providers/Microsoft.Management/managementGroups/30000000-0000-0000-0000-000000000000" }, - "displayName": { - "type": "string", - "description": "The friendly name of the management group." - } - } - }, - "ManagementGroupType": { - "type": "string", - "enum": [ - "Enrollment", - "Department", - "Account", - "Subscription" - ], - "description": "(Optional) The type of the management group." - }, - "ManagementGroupWithChildren": { - "description": "The management group details.", - "properties": { - "id": { - "type": "string", - "description": "The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", - "readOnly": true + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "One of a server-defined set of error codes.", + "type": "string" + }, + "message": { + "description": "A human-readable representation of the error.", + "type": "string" + }, + "target": { + "description": "(Optional) The target of the error.", + "type": "string" + } + } }, - "type": { - "type": "string", - "description": "The type of the resource. E.g. /providers/Microsoft.Management/managementGroups", - "readOnly": true + "Operation": { + "description": "A Management REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Management.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: Invoice, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + } + } + } + } }, - "name": { - "type": "string", - "format": "uuid", - "description": "The name of the management group. E.g. 20000000-0000-0000-0000-000000000000", - "readOnly": true + "OperationListResult": { + "description": "Result listing operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of management operations supported by the Microsoft.Management resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } }, - "properties": { - "title": "Properties", - "x-ms-client-flatten" : true, - "$ref": "#/definitions/ManagementGroupPropertiesWithChildren" - } - } - }, - "ManagementGroupPropertiesWithChildren": { - "description": "The generic properties of a management group.", - "type": "object", - "properties": { - "tenantId": { - "type": "string", - "format": "uuid", - "description": "The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000" + "ManagementGroupListResult": { + "description": "The result of listing management groups.", + "properties": { + "value": { + "description": "The list of management groups.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupInfo" + } + }, + "nextLink": { + "description": "The URL to the next page of results.", + "type": "string", + "readOnly": true + } + } }, - "displayName": { - "type": "string", - "description": "The friendly name of the management group." + "ManagementGroupInfo": { + "description": "The management group.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the resource. E.g. /providers/Microsoft.Management/managementGroups", + "readOnly": true + }, + "name": { + "type": "string", + "format": "uuid", + "description": "The name of the management group. E.g. 20000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementGroupInfoProperties" + } + } }, - "details": { - "title" : "Details", - "$ref": "#/definitions/ManagementGroupDetailsProperties" + "ManagementGroupInfoProperties": { + "description": "The generic properties of a management group.", + "type": "object", + "properties": { + "tenantId": { + "type": "string", + "format": "uuid", + "description": "The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the management group." + } + } }, - "children": { - "description": "The list of children.", - "type": "array", - "items": { - "$ref": "#/definitions/ManagementGroupChildInfo" - } - } - } - }, - "ManagementGroupChildInfo": { - "description": "The unique identifier (ID) of a management group.", - "properties": { - "childType": { - "title" : "Management Group Child Info", - "$ref": "#/definitions/ManagementGroupType" + "ManagementGroup": { + "description": "The management group details.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the resource. E.g. /providers/Microsoft.Management/managementGroups", + "readOnly": true + }, + "name": { + "type": "string", + "format": "uuid", + "description": "The name of the management group. E.g. 20000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementGroupProperties" + } + } }, - "childId": { - "type": "string", - "description": "The ID of the child resource (management group or subscription). E.g. /providers/Microsoft.Management/managementGroups/40000000-0000-0000-0000-000000000000" + "ManagementGroupProperties": { + "description": "The generic properties of a management group.", + "type": "object", + "properties": { + "tenantId": { + "type": "string", + "format": "uuid", + "description": "The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the management group." + }, + "details": { + "title": "Details", + "$ref": "#/definitions/ManagementGroupDetailsProperties" + } + } }, - "displayName": { - "type": "string", - "description": "The friendly name of the child resource." + "ManagementGroupDetailsProperties": { + "description": "The details properties of a management group.", + "type": "object", + "properties": { + "version": { + "type": "number", + "format": "int32", + "description": "The version number of the object." + }, + "updatedTime": { + "type": "string", + "format": "date-time", + "description": "The date and time when this object was last updated." + }, + "updatedBy": { + "type": "string", + "description": "The identity of the principal or process that updated the object." + }, + "parent": { + "title": "Parent", + "$ref": "#/definitions/ParentGroupInfo" + }, + "managementGroupType": { + "title": "Management Group Type", + "$ref": "#/definitions/ManagementGroupType" + } + } }, - "tenantId": { - "type": "string", - "format": "uuid", - "description": "(Optional) The AAD Tenant ID associated with the child resource." - } - } - }, - "ManagementGroupWithHierarchy": { - "description": "The management group details.", - "properties": { - "id": { - "type": "string", - "description": "The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", - "readOnly": true + "ParentGroupInfo": { + "description": "(Optional) The ID of the parent management group.", + "properties": { + "parentId": { + "type": "string", + "description": "The ID of the parent management group. E.g. /providers/Microsoft.Management/managementGroups/30000000-0000-0000-0000-000000000000" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the management group." + } + } }, - "type": { - "type": "string", - "description": "The type of the resource. E.g. /providers/Microsoft.Management/managementGroups", - "readOnly": true + "ManagementGroupType": { + "type": "string", + "enum": [ + "Enrollment", + "Department", + "Account", + "Subscription" + ], + "description": "(Optional) The type of the management group." + }, + "ManagementGroupWithChildren": { + "description": "The management group details.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the resource. E.g. /providers/Microsoft.Management/managementGroups", + "readOnly": true + }, + "name": { + "type": "string", + "format": "uuid", + "description": "The name of the management group. E.g. 20000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementGroupPropertiesWithChildren" + } + } }, - "name": { - "type": "string", - "format": "uuid", - "description": "The name of the management group. E.g. 20000000-0000-0000-0000-000000000000", - "readOnly": true + "ManagementGroupPropertiesWithChildren": { + "description": "The generic properties of a management group.", + "type": "object", + "properties": { + "tenantId": { + "type": "string", + "format": "uuid", + "description": "The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the management group." + }, + "details": { + "title": "Details", + "$ref": "#/definitions/ManagementGroupDetailsProperties" + }, + "children": { + "description": "The list of children.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupChildInfo" + } + } + } }, - "properties": { - "title": "Properties", - "x-ms-client-flatten" : true, - "$ref": "#/definitions/ManagementGroupPropertiesWithHierarchy" - } - } - }, - "ManagementGroupPropertiesWithHierarchy": { - "description": "The generic properties of a management group.", - "type": "object", - "properties": { - "tenantId": { - "type": "string", - "format": "uuid", - "description": "The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000" + "ManagementGroupChildInfo": { + "description": "The unique identifier (ID) of a management group.", + "properties": { + "childType": { + "title": "Management Group Child Info", + "$ref": "#/definitions/ManagementGroupType" + }, + "childId": { + "type": "string", + "description": "The ID of the child resource (management group or subscription). E.g. /providers/Microsoft.Management/managementGroups/40000000-0000-0000-0000-000000000000" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the child resource." + }, + "tenantId": { + "type": "string", + "format": "uuid", + "description": "(Optional) The AAD Tenant ID associated with the child resource." + } + } }, - "displayName": { - "type": "string", - "description": "The friendly name of the management group." + "ManagementGroupWithHierarchy": { + "description": "The management group details.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the management group. E.g. /providers/Microsoft.Management/managementGroups/20000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the resource. E.g. /providers/Microsoft.Management/managementGroups", + "readOnly": true + }, + "name": { + "type": "string", + "format": "uuid", + "description": "The name of the management group. E.g. 20000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementGroupPropertiesWithHierarchy" + } + } }, - "details": { - "title" : "Details", - "$ref": "#/definitions/ManagementGroupDetailsProperties" + "ManagementGroupPropertiesWithHierarchy": { + "description": "The generic properties of a management group.", + "type": "object", + "properties": { + "tenantId": { + "type": "string", + "format": "uuid", + "description": "The AAD Tenant ID associated with the management group. E.g. 10000000-0000-0000-0000-000000000000" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the management group." + }, + "details": { + "title": "Details", + "$ref": "#/definitions/ManagementGroupDetailsProperties" + }, + "children": { + "description": "The list of children.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupRecursiveChildInfo" + } + } + } }, - "children": { - "description": "The list of children.", - "type": "array", - "items": { - "$ref": "#/definitions/ManagementGroupRecursiveChildInfo" - } + "ManagementGroupRecursiveChildInfo": { + "description": "The unique identifier (ID) of a management group.", + "properties": { + "childType": { + "title": "Management Group Recursive Child Info", + "$ref": "#/definitions/ManagementGroupType" + }, + "childId": { + "type": "string", + "description": "The ID of the child resource (management group or subscription). E.g. /providers/Microsoft.Management/managementGroups/40000000-0000-0000-0000-000000000000" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the child resource." + }, + "tenantId": { + "type": "string", + "format": "uuid", + "description": "(Optional) The AAD Tenant ID associated with the child resource." + }, + "children": { + "description": "The list of children.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupRecursiveChildInfo" + } + } + } } - } }, - "ManagementGroupRecursiveChildInfo": { - "description": "The unique identifier (ID) of a management group.", - "properties": { - "childType": { - "title" : "Management Group Recursive Child Info", - "$ref": "#/definitions/ManagementGroupType" - }, - "childId": { - "type": "string", - "description": "The ID of the child resource (management group or subscription). E.g. /providers/Microsoft.Management/managementGroups/40000000-0000-0000-0000-000000000000" + "parameters": { + "GroupIdParameter": { + "name": "groupId", + "in": "path", + "required": true, + "type": "string", + "format": "uuid", + "description": "Management Group ID.", + "x-ms-parameter-location": "client" }, - "displayName": { - "type": "string", - "description": "The friendly name of the child resource." + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2017-08-31-preview." }, - "tenantId": { - "type": "string", - "format": "uuid", - "description": "(Optional) The AAD Tenant ID associated with the child resource." + "ExpandParameter": { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "children" + ], + "x-ms-parameter-location": "method", + "description": "The $expand=children query string parameter allows clients to request inclusion of children in the response payload." }, - "children": { - "description": "The list of children.", - "type": "array", - "items": { - "$ref": "#/definitions/ManagementGroupRecursiveChildInfo" - } + "RecurseParameter": { + "name": "$recurse", + "in": "query", + "required": false, + "type": "boolean", + "x-ms-parameter-location": "method", + "description": "The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload." } - } - } - }, - "parameters": { - "GroupIdParameter": { - "name": "groupId", - "in": "path", - "required": true, - "type": "string", - "format": "uuid", - "description": "Management Group ID.", - "x-ms-parameter-location": "client" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Version of the API to be used with the client request. The current version is 2017-08-31-preview." - }, - "ExpandParameter": { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "children" - ], - "x-ms-parameter-location" : "method", - "description": "The $expand=children query string parameter allows clients to request inclusion of children in the response payload." - }, - "RecurseParameter": { - "name": "$recurse", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location" : "method", - "description": "The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload." } - } -} \ No newline at end of file +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/addManagementGroupSubscription.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/addManagementGroupSubscription.json index 67d4bd31de9f..24f41978e4bb 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/addManagementGroupSubscription.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/addManagementGroupSubscription.json @@ -1,10 +1,10 @@ { - "parameters": { - "api-version": "2017-11-01-preview", - "groupId": "00000000-0000-0000-0000-000000000001", - "subscriptionId": "00000000-0000-0000-0000-000000000011" - }, - "responses": { - "204": {} - } -} \ No newline at end of file + "parameters": { + "api-version": "2017-11-01-preview", + "groupId": "00000000-0000-0000-0000-000000000001", + "subscriptionId": "00000000-0000-0000-0000-000000000011" + }, + "responses": { + "204": {} + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/createOrUpdateManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/createOrUpdateManagementGroup.json index 04d978153597..e21c571006e2 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/createOrUpdateManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/createOrUpdateManagementGroup.json @@ -1,34 +1,34 @@ { - "parameters": { - "api-version": "2017-11-01-preview", - "groupId": "00000000-0000-0000-0000-000000000002", - "createManagementGroupRequest": { - "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" - } - } - } + "parameters": { + "api-version": "2017-11-01-preview", + "groupId": "00000000-0000-0000-0000-000000000002", + "createManagementGroupRequest": { + "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" } + } } + } } -} \ No newline at end of file + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/deleteManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/deleteManagementGroup.json index 08b962ed5213..ff22f28f9493 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/deleteManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/deleteManagementGroup.json @@ -1,10 +1,10 @@ { - "parameters": { - "api-version": "2017-11-01-preview", - "groupId": "00000000-0000-0000-0000-000000000001" - }, - "responses": { - "200": {}, - "204": {} - } -} \ No newline at end of file + "parameters": { + "api-version": "2017-11-01-preview", + "groupId": "00000000-0000-0000-0000-000000000001" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroup.json index 8f9f6d275303..0f1d726e602e 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroup.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupSubscription.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupSubscription.json index 082ceba854e3..49236a5153ba 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupSubscription.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupSubscription.json @@ -1,16 +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" - } - } + "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" + } } -} \ No newline at end of file + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupWithExpand.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupWithExpand.json index 92208cbaa967..4312c730a6b5 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupWithExpand.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupWithExpand.json @@ -5,43 +5,43 @@ "$expand": "children", "Cache-Control": "no-cache" }, - "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": { - "parentId": "/providers/Microsoft.Management/managementGroups/RootGroup", - "displayName": "RootGroup" - } - }, - "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" - } - ] - } + "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": { + "parentId": "/providers/Microsoft.Management/managementGroups/RootGroup", + "displayName": "RootGroup" } + }, + "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" + } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupWithExpandAndRecurse.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupWithExpandAndRecurse.json index af11b4d0169f..1b697a323d0c 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupWithExpandAndRecurse.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getManagementGroupWithExpandAndRecurse.json @@ -6,69 +6,69 @@ "$recurse": true, "Cache-Control": "no-cache" }, - "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": { - "parentId": "/providers/Microsoft.Management/managementGroups/RootGroup", - "displayName": "RootGroup" - } - }, - "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" - } - ] + "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": { + "parentId": "/providers/Microsoft.Management/managementGroups/RootGroup", + "displayName": "RootGroup" + } + }, + "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" } + ] } + } } -} \ No newline at end of file + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getOperations.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getOperations.json index 04bc7a9275b9..e870251e7f5b 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getOperations.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/getOperations.json @@ -1,31 +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." - } - } - ] + "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." + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/listManagementGroups.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/listManagementGroups.json index 3537c1893f49..d8a30b613b3b 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/listManagementGroups.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/listManagementGroups.json @@ -1,31 +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" - } - } - ] + "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" + } + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/removeManagementGroupSubscription.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/removeManagementGroupSubscription.json index 67d4bd31de9f..24f41978e4bb 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/removeManagementGroupSubscription.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/removeManagementGroupSubscription.json @@ -1,10 +1,10 @@ { - "parameters": { - "api-version": "2017-11-01-preview", - "groupId": "00000000-0000-0000-0000-000000000001", - "subscriptionId": "00000000-0000-0000-0000-000000000011" - }, - "responses": { - "204": {} - } -} \ No newline at end of file + "parameters": { + "api-version": "2017-11-01-preview", + "groupId": "00000000-0000-0000-0000-000000000001", + "subscriptionId": "00000000-0000-0000-0000-000000000011" + }, + "responses": { + "204": {} + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/updateManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/updateManagementGroup.json index 7e815ef190a6..e21c571006e2 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/updateManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/examples/updateManagementGroup.json @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/management.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/management.json index 19eb90ccb5f7..836e39e13ed0 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/management.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2017-11-01-preview/management.json @@ -1,699 +1,699 @@ { - "swagger": "2.0", - "host": "management.azure.com", - "info": { - "version": "2017-11-01-preview", - "title": "Management Groups API", - "description": "The Azure Management Groups API enables consolidation of multiple \nsubscriptions/resources into an organizational hierarchy and centrally \nmanage access control, policies, alerting and reporting for those resources.\n" + "swagger": "2.0", + "host": "management.azure.com", + "info": { + "version": "2017-11-01-preview", + "title": "Management Groups API", + "description": "The Azure Management Groups API enables consolidation of multiple \nsubscriptions/resources into an organizational hierarchy and centrally \nmanage access control, policies, alerting and reporting for those resources.\n" + }, + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "ManagementGroups", + "description": "A Management Group is a customer defined scope (grouping mechanism) that \nprovides access control (authorization), policy management and reporting. \nManagement Groups are organized in a strictly tree-based hierarchy.\n" }, - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" + { + "name": "Operations", + "description": "Management operations supported by the Microsoft.Management resource provider.\n" + } + ], + "paths": { + "/providers/Microsoft.Management/managementGroups": { + "get": { + "tags": [ + "ManagementGroups" + ], + "operationId": "ManagementGroups_List", + "description": "List management groups for the authenticated user.\n", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/CacheControlHeader" + }, + { + "name": "$skiptoken", + "in": "query", + "required": false, + "type": "string", + "description": "Page continuation token is only used if a previous operation returned a partial result. \nIf a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.\n" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementGroupListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetManagementGroups": { + "$ref": "./examples/listManagementGroups.json" + } } + } }, - "tags": [ - { - "name": "ManagementGroups", - "description": "A Management Group is a customer defined scope (grouping mechanism) that \nprovides access control (authorization), policy management and reporting. \nManagement Groups are organized in a strictly tree-based hierarchy.\n" + "/providers/Microsoft.Management/managementGroups/{groupId}": { + "get": { + "tags": [ + "ManagementGroups" + ], + "operationId": "ManagementGroups_Get", + "description": "Get the details of the management group.\n", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + }, + { + "$ref": "#/parameters/RecurseParameter" + }, + { + "$ref": "#/parameters/CacheControlHeader" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementGroup" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } }, - { - "name": "Operations", - "description": "Management operations supported by the Microsoft.Management resource provider.\n" + "x-ms-examples": { + "GetManagementGroup": { + "$ref": "./examples/getManagementGroup.json" + }, + "GetManagementGroupWithExpand": { + "$ref": "./examples/getManagementGroupWithExpand.json" + }, + "GetManagementGroupsWithExpandAndRecurse": { + "$ref": "./examples/getManagementGroupWithExpandAndRecurse.json" + } } - ], - "paths": { - "/providers/Microsoft.Management/managementGroups": { - "get": { - "tags": [ - "ManagementGroups" - ], - "operationId": "ManagementGroups_List", - "description": "List management groups for the authenticated user.\n", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/CacheControlHeader" - }, - { - "name": "$skiptoken", - "in": "query", - "required": false, - "type": "string", - "description": "Page continuation token is only used if a previous operation returned a partial result. \nIf a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.\n" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagementGroupListResult" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GetManagementGroups": { - "$ref": "./examples/listManagementGroups.json" - } - } + }, + "put": { + "tags": [ + "ManagementGroups" + ], + "operationId": "ManagementGroups_CreateOrUpdate", + "description": "Create or update a management group.\nIf a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated.\n", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/CreateManagementGroupRequestParameter" + }, + { + "$ref": "#/parameters/CacheControlHeader" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementGroup" } - }, - "/providers/Microsoft.Management/managementGroups/{groupId}": { - "get": { - "tags": [ - "ManagementGroups" - ], - "operationId": "ManagementGroups_Get", - "description": "Get the details of the management group.\n", - "parameters": [ - { - "$ref": "#/parameters/GroupIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ExpandParameter" - }, - { - "$ref": "#/parameters/RecurseParameter" - }, - { - "$ref": "#/parameters/CacheControlHeader" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagementGroup" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "GetManagementGroup": { - "$ref": "./examples/getManagementGroup.json" - }, - "GetManagementGroupWithExpand": { - "$ref": "./examples/getManagementGroupWithExpand.json" - }, - "GetManagementGroupsWithExpandAndRecurse": { - "$ref": "./examples/getManagementGroupWithExpandAndRecurse.json" - } - } - }, - "put": { - "tags": [ - "ManagementGroups" - ], - "operationId": "ManagementGroups_CreateOrUpdate", - "description": "Create or update a management group.\nIf a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated.\n", - "parameters": [ - { - "$ref": "#/parameters/GroupIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/CreateManagementGroupRequestParameter" - }, - { - "$ref": "#/parameters/CacheControlHeader" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagementGroup" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PutManagementGroup": { - "$ref": "./examples/createOrUpdateManagementGroup.json" - } - } - }, - "patch": { - "tags": [ - "ManagementGroups" - ], - "operationId": "ManagementGroups_Update", - "description": "Update a management group.\n", - "parameters": [ - { - "$ref": "#/parameters/GroupIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/CreateManagementGroupRequestParameter" - }, - { - "$ref": "#/parameters/CacheControlHeader" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ManagementGroup" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PatchManagementGroup": { - "$ref": "./examples/updateManagementGroup.json" - } - } - }, - "delete": { - "tags": [ - "ManagementGroups" - ], - "operationId": "ManagementGroups_Delete", - "description": "Delete management group.\nIf a management group contains child resources, the request will fail.\n", - "parameters": [ - { - "$ref": "#/parameters/GroupIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/CacheControlHeader" - } - ], - "responses": { - "200": { - "description": "OK - management group deleted successfully" - }, - "204": { - "description": "NoContent - management group does not exist" - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DeleteManagementGroup": { - "$ref": "./examples/deleteManagementGroup.json" - } - } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } }, - "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}": { - "put": { - "tags": [ - "ManagementGroups" - ], - "operationId": "ManagementGroupSubscriptions_Create", - "description": "Associates existing subscription with the management group.\n", - "parameters": [ - { - "$ref": "#/parameters/GroupIdParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/CacheControlHeader" - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "AddSubscriptionToManagementGroup": { - "$ref": "./examples/addManagementGroupSubscription.json" - } - } - }, - "delete": { - "tags": [ - "ManagementGroups" - ], - "operationId": "ManagementGroupSubscriptions_Delete", - "description": "De-associates subscription from the management group.\n", - "parameters": [ - { - "$ref": "#/parameters/GroupIdParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/CacheControlHeader" - } - ], - "responses": { - "204": { - "description": "No Content - subscription deleted successfully" - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DeleteSubscriptionFromManagementGroup": { - "$ref": "./examples/removeManagementGroupSubscription.json" - } - } + "x-ms-examples": { + "PutManagementGroup": { + "$ref": "./examples/createOrUpdateManagementGroup.json" + } + } + }, + "patch": { + "tags": [ + "ManagementGroups" + ], + "operationId": "ManagementGroups_Update", + "description": "Update a management group.\n", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/CreateManagementGroupRequestParameter" + }, + { + "$ref": "#/parameters/CacheControlHeader" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementGroup" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } }, - "/providers/Microsoft.Management/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists all of the available Management REST API operations.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } + "x-ms-examples": { + "PatchManagementGroup": { + "$ref": "./examples/updateManagementGroup.json" + } + } + }, + "delete": { + "tags": [ + "ManagementGroups" + ], + "operationId": "ManagementGroups_Delete", + "description": "Delete management group.\nIf a management group contains child resources, the request will fail.\n", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/CacheControlHeader" + } + ], + "responses": { + "200": { + "description": "OK - management group deleted successfully" + }, + "204": { + "description": "NoContent - management group does not exist" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } + }, + "x-ms-examples": { + "DeleteManagementGroup": { + "$ref": "./examples/deleteManagementGroup.json" + } } + } }, - "definitions": { - "ErrorResponse": { - "description": "The error object.", - "properties": { - "error": { - "title": "Error", - "$ref": "#/definitions/ErrorDetails" - } + "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}": { + "put": { + "tags": [ + "ManagementGroups" + ], + "operationId": "ManagementGroupSubscriptions_Create", + "description": "Associates existing subscription with the management group.\n", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/CacheControlHeader" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } }, - "ErrorDetails": { - "description": "The details of the error.", - "properties": { - "code": { - "description": "One of a server-defined set of error codes.", - "type": "string" - }, - "message": { - "description": "A human-readable representation of the error.", - "type": "string" - } + "x-ms-examples": { + "AddSubscriptionToManagementGroup": { + "$ref": "./examples/addManagementGroupSubscription.json" + } + } + }, + "delete": { + "tags": [ + "ManagementGroups" + ], + "operationId": "ManagementGroupSubscriptions_Delete", + "description": "De-associates subscription from the management group.\n", + "parameters": [ + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/CacheControlHeader" + } + ], + "responses": { + "204": { + "description": "No Content - subscription deleted successfully" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } }, - "Operation": { - "description": "Operation supported by the Microsoft.Management resource provider.", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}.", - "type": "string", - "readOnly": true - }, - "display": { - "description": "The object that represents the operation.", - "properties": { - "provider": { - "description": "The name of the provider.", - "type": "string", - "readOnly": true - }, - "resource": { - "description": "The resource on which the operation is performed.", - "type": "string", - "readOnly": true - }, - "operation": { - "description": "The operation that can be performed.", - "type": "string", - "readOnly": true - }, - "description": { - "description": "Operation description.", - "type": "string", - "readOnly": true - } - } - } + "x-ms-examples": { + "DeleteSubscriptionFromManagementGroup": { + "$ref": "./examples/removeManagementGroupSubscription.json" + } + } + } + }, + "/providers/Microsoft.Management/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available Management REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" } - }, - "OperationListResult": { - "description": "Describes the result of the request to list Microsoft.Management operations.", - "properties": { - "value": { - "description": "List of operations supported by the Microsoft.Management resource provider.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Operation" - } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string", - "readOnly": true - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" } + } }, - "ManagementGroupListResult": { - "description": "Describes the result of the request to list management groups.", - "properties": { - "value": { - "description": "The list of management groups.", - "type": "array", - "items": { - "$ref": "#/definitions/ManagementGroupInfo" - } - }, - "nextLink": { - "description": "The URL to use for getting the next set of results.", - "type": "string", - "readOnly": true - } - } + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ErrorResponse": { + "description": "The error object.", + "properties": { + "error": { + "title": "Error", + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "One of a server-defined set of error codes.", + "type": "string" }, - "ManagementGroupInfo": { - "description": "The management group resource.", - "properties": { - "id": { - "type": "string", - "description": "The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000", - "readOnly": true - }, - "type": { - "type": "string", - "description": "The type of the resource. For example, /providers/Microsoft.Management/managementGroups", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The name of the management group. For example, 00000000-0000-0000-0000-000000000000", - "readOnly": true - }, - "properties": { - "title": "Properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ManagementGroupInfoProperties" - } - } + "message": { + "description": "A human-readable representation of the error.", + "type": "string" + } + } + }, + "Operation": { + "description": "Operation supported by the Microsoft.Management resource provider.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true }, - "ManagementGroupInfoProperties": { - "description": "The generic properties of a management group.", - "type": "object", - "properties": { - "tenantId": { - "type": "string", - "description": "The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000" - }, - "displayName": { - "type": "string", - "description": "The friendly name of the management group." - } + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "The name of the provider.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "The resource on which the operation is performed.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "The operation that can be performed.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Operation description.", + "type": "string", + "readOnly": true } + } + } + } + }, + "OperationListResult": { + "description": "Describes the result of the request to list Microsoft.Management operations.", + "properties": { + "value": { + "description": "List of operations supported by the Microsoft.Management resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } }, - "ManagementGroup": { - "description": "The management group details.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "type": "string", - "description": "The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000", - "readOnly": true - }, - "type": { - "type": "string", - "description": "The type of the resource. For example, /providers/Microsoft.Management/managementGroups", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The name of the management group. For example, 00000000-0000-0000-0000-000000000000", - "readOnly": true - }, - "properties": { - "title": "Properties", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ManagementGroupProperties" - } - } + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ManagementGroupListResult": { + "description": "Describes the result of the request to list management groups.", + "properties": { + "value": { + "description": "The list of management groups.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupInfo" + } }, - "ManagementGroupProperties": { - "description": "The generic properties of a management group.", - "type": "object", - "properties": { - "tenantId": { - "type": "string", - "description": "The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000" - }, - "displayName": { - "type": "string", - "description": "The friendly name of the management group." - }, - "details": { - "title": "Details", - "$ref": "#/definitions/ManagementGroupDetails" - }, - "children": { - "description": "The list of children.", - "type": "array", - "items": { - "$ref": "#/definitions/ManagementGroupChildInfo" - } - } - } + "nextLink": { + "description": "The URL to use for getting the next set of results.", + "type": "string", + "readOnly": true + } + } + }, + "ManagementGroupInfo": { + "description": "The management group resource.", + "properties": { + "id": { + "type": "string", + "description": "The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000", + "readOnly": true }, - "ManagementGroupDetails": { - "description": "The details of a management group.", - "type": "object", - "properties": { - "version": { - "type": "number", - "format": "int32", - "description": "The version number of the object." - }, - "updatedTime": { - "type": "string", - "format": "date-time", - "description": "The date and time when this object was last updated." - }, - "updatedBy": { - "type": "string", - "description": "The identity of the principal or process that updated the object." - }, - "parent": { - "title": "Parent", - "$ref": "#/definitions/ParentGroupInfo" - } - } + "type": { + "type": "string", + "description": "The type of the resource. For example, /providers/Microsoft.Management/managementGroups", + "readOnly": true }, - "ManagementGroupChildInfo": { - "description": "The child information of a management group.", - "properties": { - "childType": { - "title": "The type of child resource.", - "$ref": "#/definitions/ManagementGroupChildType" - }, - "childId": { - "type": "string", - "description": "The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" - }, - "displayName": { - "type": "string", - "description": "The friendly name of the child resource." - }, - "children": { - "description": "The list of children.", - "type": "array", - "items": { - "$ref": "#/definitions/ManagementGroupChildInfo" - } - } - } + "name": { + "type": "string", + "description": "The name of the management group. For example, 00000000-0000-0000-0000-000000000000", + "readOnly": true }, - "ParentGroupInfo": { - "description": "(Optional) The ID of the parent management group.", - "properties": { - "parentId": { - "type": "string", - "description": "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" - }, - "displayName": { - "type": "string", - "description": "The friendly name of the parent management group." - } - } + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementGroupInfoProperties" + } + } + }, + "ManagementGroupInfoProperties": { + "description": "The generic properties of a management group.", + "type": "object", + "properties": { + "tenantId": { + "type": "string", + "description": "The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000" }, - "ManagementGroupChildType": { - "type": "string", - "enum": [ - "ManagementGroup", - "Subscription" - ], - "description": "The type of child resource." + "displayName": { + "type": "string", + "description": "The friendly name of the management group." + } + } + }, + "ManagementGroup": { + "description": "The management group details.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "description": "The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000", + "readOnly": true }, - "CreateManagementGroupRequest": { - "description": "Management group creation parameters.", - "type": "object", - "properties": { - "displayName": { - "type": "string", - "description": "The friendly name of the management group." - }, - "parentId": { - "type": "string", - "description": "(Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" - } - } + "type": { + "type": "string", + "description": "The type of the resource. For example, /providers/Microsoft.Management/managementGroups", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the management group. For example, 00000000-0000-0000-0000-000000000000", + "readOnly": true + }, + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementGroupProperties" } + } }, - "parameters": { - "GroupIdParameter": { - "name": "groupId", - "in": "path", - "required": true, - "type": "string", - "description": "Management Group ID.", - "x-ms-parameter-location": "method" + "ManagementGroupProperties": { + "description": "The generic properties of a management group.", + "type": "object", + "properties": { + "tenantId": { + "type": "string", + "description": "The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000" }, - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription ID.", - "x-ms-parameter-location": "method" + "displayName": { + "type": "string", + "description": "The friendly name of the management group." }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Version of the API to be used with the client request. The current version is 2017-11-01-preview." + "details": { + "title": "Details", + "$ref": "#/definitions/ManagementGroupDetails" }, - "ExpandParameter": { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "children" - ], - "x-ms-parameter-location": "method", - "description": "The $expand=children query string parameter allows clients to request inclusion of children in the response payload." + "children": { + "description": "The list of children.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupChildInfo" + } + } + } + }, + "ManagementGroupDetails": { + "description": "The details of a management group.", + "type": "object", + "properties": { + "version": { + "type": "number", + "format": "int32", + "description": "The version number of the object." }, - "RecurseParameter": { - "name": "$recurse", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method", - "description": "The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload." + "updatedTime": { + "type": "string", + "format": "date-time", + "description": "The date and time when this object was last updated." }, - "CreateManagementGroupRequestParameter": { - "name": "createManagementGroupRequest", - "in": "body", - "required": true, - "description": "Management group creation parameters.", - "x-ms-parameter-location": "method", - "schema": { - "$ref": "#/definitions/CreateManagementGroupRequest" - } + "updatedBy": { + "type": "string", + "description": "The identity of the principal or process that updated the object." }, - "CacheControlHeader": { - "name": "Cache-Control", - "in": "header", - "default": "no-cache", - "description": "Indicates that the request shouldn't utilize any caches.", - "x-ms-parameter-location": "method", - "type": "string" + "parent": { + "title": "Parent", + "$ref": "#/definitions/ParentGroupInfo" } + } + }, + "ManagementGroupChildInfo": { + "description": "The child information of a management group.", + "properties": { + "childType": { + "title": "The type of child resource.", + "$ref": "#/definitions/ManagementGroupChildType" + }, + "childId": { + "type": "string", + "description": "The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the child resource." + }, + "children": { + "description": "The list of children.", + "type": "array", + "items": { + "$ref": "#/definitions/ManagementGroupChildInfo" + } + } + } + }, + "ParentGroupInfo": { + "description": "(Optional) The ID of the parent management group.", + "properties": { + "parentId": { + "type": "string", + "description": "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the parent management group." + } + } + }, + "ManagementGroupChildType": { + "type": "string", + "enum": [ + "ManagementGroup", + "Subscription" + ], + "description": "The type of child resource." + }, + "CreateManagementGroupRequest": { + "description": "Management group creation parameters.", + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "The friendly name of the management group." + }, + "parentId": { + "type": "string", + "description": "(Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000" + } + } + } + }, + "parameters": { + "GroupIdParameter": { + "name": "groupId", + "in": "path", + "required": true, + "type": "string", + "description": "Management Group ID.", + "x-ms-parameter-location": "method" + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription ID.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2017-11-01-preview." + }, + "ExpandParameter": { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "children" + ], + "x-ms-parameter-location": "method", + "description": "The $expand=children query string parameter allows clients to request inclusion of children in the response payload." + }, + "RecurseParameter": { + "name": "$recurse", + "in": "query", + "required": false, + "type": "boolean", + "x-ms-parameter-location": "method", + "description": "The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload." + }, + "CreateManagementGroupRequestParameter": { + "name": "createManagementGroupRequest", + "in": "body", + "required": true, + "description": "Management group creation parameters.", + "x-ms-parameter-location": "method", + "schema": { + "$ref": "#/definitions/CreateManagementGroupRequest" + } + }, + "CacheControlHeader": { + "name": "Cache-Control", + "in": "header", + "default": "no-cache", + "description": "Indicates that the request shouldn't utilize any caches.", + "x-ms-parameter-location": "method", + "type": "string" } -} \ No newline at end of file + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/AddManagementGroupSubscription.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/AddManagementGroupSubscription.json index 563386633ca3..b6ccb75df860 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/AddManagementGroupSubscription.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/AddManagementGroupSubscription.json @@ -1,12 +1,11 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "groupId": "Group", - "subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", - "Cache-Control": "no-cache" - }, - "responses": { - "204": { - } - } + "parameters": { + "api-version": "2018-01-01-preview", + "groupId": "Group", + "subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", + "Cache-Control": "no-cache" + }, + "responses": { + "204": {} + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/CheckManagementGroupNameAvailability.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/CheckManagementGroupNameAvailability.json index d93ef086f89e..410980412b47 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/CheckManagementGroupNameAvailability.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/CheckManagementGroupNameAvailability.json @@ -14,4 +14,4 @@ "message": "" } } -} \ No newline at end of file +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/DeleteManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/DeleteManagementGroup.json index 4df9fbc72a10..1be1ddb5b7f1 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/DeleteManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/DeleteManagementGroup.json @@ -1,21 +1,20 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "groupId": "GroupToDelete", - "Cache-Control": "no-cache" - }, - "responses": { - "202": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/GroupToDelete", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "GroupToDelete", - "properties": { - "provisioningState": "Updating" - } - } - }, - "204": { + "parameters": { + "api-version": "2018-01-01-preview", + "groupId": "GroupToDelete", + "Cache-Control": "no-cache" + }, + "responses": { + "202": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/GroupToDelete", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "GroupToDelete", + "properties": { + "provisioningState": "Updating" } - } + } + }, + "204": {} + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/EntitiesGetHierarchy.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/EntitiesGetHierarchy.json index 82afdb772774..269a0825430d 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/EntitiesGetHierarchy.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/EntitiesGetHierarchy.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetEntities.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetEntities.json index bad16af10cc4..6cdc91121e33 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetEntities.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetEntities.json @@ -1,41 +1,41 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "Cache-Control": "no-cache" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", - "type": "/providers/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" - } - }, - { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0004-0000-0000-000000000000", - "type": "/providers/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" - } - } - ], - "nextLink": null + "parameters": { + "api-version": "2018-01-01-preview", + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", + "type": "/providers/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" } - } + }, + { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0004-0000-0000-000000000000", + "type": "/providers/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" + } + } + ], + "nextLink": null + } } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroup.json index 1da8ab6d49d4..4c9cb437e4f6 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroup.json @@ -1,30 +1,30 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "groupId": "20000000-0001-0000-0000-000000000000", - "Cache-Control": "no-cache" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", - "type": "/providers/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" - } - } - } - } - } - } + "parameters": { + "api-version": "2018-01-01-preview", + "groupId": "20000000-0001-0000-0000-000000000000", + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", + "type": "/providers/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" + } + } + } + } + } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroupWithExpand.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroupWithExpand.json index 06b85601affa..9a07274cb31e 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroupWithExpand.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroupWithExpand.json @@ -1,63 +1,63 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "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": "/providers/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": "/providers/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": "/providers/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" - } - ] - } + "parameters": { + "api-version": "2018-01-01-preview", + "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": "/providers/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": "/providers/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": "/providers/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" + } + ] } + } } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroupWithExpandAndRecurse.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroupWithExpandAndRecurse.json index 483d09f79f85..f8e5d81ad6a1 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroupWithExpandAndRecurse.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetManagementGroupWithExpandAndRecurse.json @@ -1,74 +1,74 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "groupId": "20000000-0001-0000-0000-000000000000", - "$expand": "children", - "$recurse": true, - "Cache-Control": "no-cache" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/RootGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "RootGroup", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "RootGroup", - "details": { - "version": 2, - "updatedTime": "2018-01-25T02:26:49.0022093Z", - "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", - "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/Child", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "Child", - "displayName": "Child", - "roles": [ - "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - ], - "children": [ - { - "id": "/providers/Microsoft.Management/managementGroups/Leaf", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "Leaf", - "displayName": "Leaf", - "roles": [ - "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - ], - "children": [ - { - "id": "/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc", - "type": "/subscriptions", - "name": "728bcbe4-8d56-4510-86c2-4921b8beefbc", - "displayName": "Pay-As-You-Go", - "roles": [ - "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - ] - } - ] - } - ] - }, - { - "id": "/providers/Microsoft.Management/managementGroups/AnotherChild", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "AnotherChild", - "displayName": "Leaf", - "roles": [ - "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - ] - } - ] - } - } - } - } -} \ No newline at end of file + "parameters": { + "api-version": "2018-01-01-preview", + "groupId": "20000000-0001-0000-0000-000000000000", + "$expand": "children", + "$recurse": true, + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/RootGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "RootGroup", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "RootGroup", + "details": { + "version": 2, + "updatedTime": "2018-01-25T02:26:49.0022093Z", + "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", + "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/Child", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "Child", + "displayName": "Child", + "roles": [ + "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + ], + "children": [ + { + "id": "/providers/Microsoft.Management/managementGroups/Leaf", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "Leaf", + "displayName": "Leaf", + "roles": [ + "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + ], + "children": [ + { + "id": "/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc", + "type": "/subscriptions", + "name": "728bcbe4-8d56-4510-86c2-4921b8beefbc", + "displayName": "Pay-As-You-Go", + "roles": [ + "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + ] + } + ] + } + ] + }, + { + "id": "/providers/Microsoft.Management/managementGroups/AnotherChild", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "AnotherChild", + "displayName": "Leaf", + "roles": [ + "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + ] + } + ] + } + } + } + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetOperationResult.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetOperationResult.json index f8ee25757ec5..7626217abf55 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetOperationResult.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/GetOperationResult.json @@ -1,31 +1,30 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "operationResultsId": "7db49d55-a1f3-4abb-8c3e-94d1092a38c0" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "ChildGroup", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "AlternateDisplayName", - "details": { - "version": 2, - "updatedTime": "2018-01-25T02:46:59.0545645Z", - "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", - "parent": { - "id": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup", - "name": "AlternateRootGroup", - "displayName": "AlternateRootGroup" - } - } - } + "parameters": { + "api-version": "2018-01-01-preview", + "operationResultsId": "7db49d55-a1f3-4abb-8c3e-94d1092a38c0" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "ChildGroup", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "AlternateDisplayName", + "details": { + "version": 2, + "updatedTime": "2018-01-25T02:46:59.0545645Z", + "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup", + "name": "AlternateRootGroup", + "displayName": "AlternateRootGroup" } - }, - "404": { + } } - } + } + }, + "404": {} + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/ListManagementGroups.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/ListManagementGroups.json index f05cb49fa47e..8110b1890dc8 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/ListManagementGroups.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/ListManagementGroups.json @@ -1,33 +1,33 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "Cache-Control": "no-cache" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "20000000-0001-0000-0000-000000000000", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "Group 1 Tenant 2" - } - }, - { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0004-0000-0000-000000000000", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "20000000-0004-0000-0000-000000000000", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "Group 4 Tenant 2" - } - } - ], - "nextLink": null + "parameters": { + "api-version": "2018-01-01-preview", + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "20000000-0001-0000-0000-000000000000", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "Group 1 Tenant 2" } - } + }, + { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0004-0000-0000-000000000000", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "20000000-0004-0000-0000-000000000000", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "Group 4 Tenant 2" + } + } + ], + "nextLink": null + } } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PatchManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PatchManagementGroup.json index 719880383982..a65ad8561fd2 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PatchManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PatchManagementGroup.json @@ -1,34 +1,34 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "groupId": "ChildGroup", - "patchGroupRequest": { - "displayName": "AlternateDisplayName", - "parentGroupId": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup" - }, - "Cache-Control": "no-cache" + "parameters": { + "api-version": "2018-01-01-preview", + "groupId": "ChildGroup", + "patchGroupRequest": { + "displayName": "AlternateDisplayName", + "parentGroupId": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup" }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "ChildGroup", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "AlternateDisplayName", - "details": { - "version": 2, - "updatedTime": "2018-01-25T02:46:59.0545645Z", - "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", - "parent": { - "id": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup", - "name": "AlternateRootGroup", - "displayName": "AlternateRootGroup" - } - } - } + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "ChildGroup", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "AlternateDisplayName", + "details": { + "version": 2, + "updatedTime": "2018-01-25T02:46:59.0545645Z", + "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup", + "name": "AlternateRootGroup", + "displayName": "AlternateRootGroup" } + } } + } } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PutManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PutManagementGroup.json index 488db10285c4..13156d60aa8c 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PutManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/PutManagementGroup.json @@ -1,48 +1,48 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "groupId": "ChildGroup", - "createGroupRequest": { - "properties": { - "displayName": "ChildGroup", - "parent": { - "id": "/providers/Microsoft.Management/managementGroups/RootGroup" - } - } - }, - "Cache-Control": "no-cache" + "parameters": { + "api-version": "2018-01-01-preview", + "groupId": "ChildGroup", + "createGroupRequest": { + "properties": { + "displayName": "ChildGroup", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/RootGroup" + } + } }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "ChildGroup", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "ChildGroup", - "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" - } - } - } - } - }, - "202": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "ChildGroup", - "properties": { - "provisioningState": "Updating" - } + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "ChildGroup", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "ChildGroup", + "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" } + } + } + } + }, + "202": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "ChildGroup", + "properties": { + "provisioningState": "Updating" } + } } -} \ No newline at end of file + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/RemoveManagementGroupSubscription.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/RemoveManagementGroupSubscription.json index 563386633ca3..b6ccb75df860 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/RemoveManagementGroupSubscription.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/examples/RemoveManagementGroupSubscription.json @@ -1,12 +1,11 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "groupId": "Group", - "subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", - "Cache-Control": "no-cache" - }, - "responses": { - "204": { - } - } + "parameters": { + "api-version": "2018-01-01-preview", + "groupId": "Group", + "subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", + "Cache-Control": "no-cache" + }, + "responses": { + "204": {} + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/management.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/management.json index 3a411aa21586..f9740d9dc3d0 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/management.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/management.json @@ -1278,4 +1278,4 @@ "description": "The view parameter allows clients to request that the list of entities be returned in the form of a hierarchy." } } -} \ No newline at end of file +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/AddManagementGroupSubscription.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/AddManagementGroupSubscription.json index 906b8ea35511..3c4c47617aa2 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/AddManagementGroupSubscription.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/AddManagementGroupSubscription.json @@ -1,12 +1,11 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "groupId": "Group", - "subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", - "Cache-Control": "no-cache" - }, - "responses": { - "204": { - } - } + "parameters": { + "api-version": "2018-03-01-preview", + "groupId": "Group", + "subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", + "Cache-Control": "no-cache" + }, + "responses": { + "204": {} + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/CheckManagementGroupNameAvailability.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/CheckManagementGroupNameAvailability.json index 77b5436cb7bc..069f200486bc 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/CheckManagementGroupNameAvailability.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/CheckManagementGroupNameAvailability.json @@ -14,4 +14,4 @@ "message": "" } } -} \ No newline at end of file +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/DeleteManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/DeleteManagementGroup.json index dce84439f257..38035fc75f95 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/DeleteManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/DeleteManagementGroup.json @@ -1,21 +1,20 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "groupId": "GroupToDelete", - "Cache-Control": "no-cache" - }, - "responses": { - "202": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/GroupToDelete", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "GroupToDelete", - "properties": { - "provisioningState": "Updating" - } - } - }, - "204": { + "parameters": { + "api-version": "2018-03-01-preview", + "groupId": "GroupToDelete", + "Cache-Control": "no-cache" + }, + "responses": { + "202": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/GroupToDelete", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "GroupToDelete", + "properties": { + "provisioningState": "Updating" } - } + } + }, + "204": {} + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/EntitiesGetHierarchy.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/EntitiesGetHierarchy.json index 2bf318b90cee..e94d169a1ef4 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/EntitiesGetHierarchy.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/EntitiesGetHierarchy.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetEntities.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetEntities.json index d233d7d30ea0..6b34a9dd0670 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetEntities.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetEntities.json @@ -1,52 +1,65 @@ { - "parameters": { - "api-version": "2018-01-01-preview", - "Cache-Control": "no-cache" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", - "type": "/providers/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": "/providers/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 + "parameters": { + "api-version": "2018-01-01-preview", + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", + "type": "/providers/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": "/providers/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 + } } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroup.json index 1927554effa6..50ee93e3c456 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroup.json @@ -1,30 +1,30 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "groupId": "20000000-0001-0000-0000-000000000000", - "Cache-Control": "no-cache" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", - "type": "/providers/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" - } - } - } - } - } - } + "parameters": { + "api-version": "2018-03-01-preview", + "groupId": "20000000-0001-0000-0000-000000000000", + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", + "type": "/providers/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" + } + } + } + } + } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroupWithExpand.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroupWithExpand.json index a08e4241dfe9..4bc09095cd36 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroupWithExpand.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroupWithExpand.json @@ -1,63 +1,63 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "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": "/providers/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": "/providers/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": "/providers/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" - } - ] - } + "parameters": { + "api-version": "2018-03-01-preview", + "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": "/providers/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": "/providers/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": "/providers/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" + } + ] } + } } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroupWithExpandAndRecurse.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroupWithExpandAndRecurse.json index 01bc140ad49e..86e91a853fa7 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroupWithExpandAndRecurse.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetManagementGroupWithExpandAndRecurse.json @@ -1,74 +1,74 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "groupId": "20000000-0001-0000-0000-000000000000", - "$expand": "children", - "$recurse": true, - "Cache-Control": "no-cache" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/RootGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "RootGroup", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "RootGroup", - "details": { - "version": 2, - "updatedTime": "2018-01-25T02:26:49.0022093Z", - "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", - "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/Child", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "Child", - "displayName": "Child", - "roles": [ - "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - ], - "children": [ - { - "id": "/providers/Microsoft.Management/managementGroups/Leaf", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "Leaf", - "displayName": "Leaf", - "roles": [ - "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - ], - "children": [ - { - "id": "/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc", - "type": "/subscriptions", - "name": "728bcbe4-8d56-4510-86c2-4921b8beefbc", - "displayName": "Pay-As-You-Go", - "roles": [ - "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - ] - } - ] - } - ] - }, - { - "id": "/providers/Microsoft.Management/managementGroups/AnotherChild", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "AnotherChild", - "displayName": "Leaf", - "roles": [ - "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" - ] - } - ] - } - } - } - } -} \ No newline at end of file + "parameters": { + "api-version": "2018-03-01-preview", + "groupId": "20000000-0001-0000-0000-000000000000", + "$expand": "children", + "$recurse": true, + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/RootGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "RootGroup", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "RootGroup", + "details": { + "version": 2, + "updatedTime": "2018-01-25T02:26:49.0022093Z", + "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", + "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/Child", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "Child", + "displayName": "Child", + "roles": [ + "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + ], + "children": [ + { + "id": "/providers/Microsoft.Management/managementGroups/Leaf", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "Leaf", + "displayName": "Leaf", + "roles": [ + "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + ], + "children": [ + { + "id": "/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc", + "type": "/subscriptions", + "name": "728bcbe4-8d56-4510-86c2-4921b8beefbc", + "displayName": "Pay-As-You-Go", + "roles": [ + "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + ] + } + ] + } + ] + }, + { + "id": "/providers/Microsoft.Management/managementGroups/AnotherChild", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "AnotherChild", + "displayName": "Leaf", + "roles": [ + "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635" + ] + } + ] + } + } + } + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetOperationResult.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetOperationResult.json index 74f24b6cf461..050715b31d26 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetOperationResult.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/GetOperationResult.json @@ -1,31 +1,30 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "operationResultsId": "7db49d55-a1f3-4abb-8c3e-94d1092a38c0" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "ChildGroup", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "AlternateDisplayName", - "details": { - "version": 2, - "updatedTime": "2018-01-25T02:46:59.0545645Z", - "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", - "parent": { - "id": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup", - "name": "AlternateRootGroup", - "displayName": "AlternateRootGroup" - } - } - } + "parameters": { + "api-version": "2018-03-01-preview", + "operationResultsId": "7db49d55-a1f3-4abb-8c3e-94d1092a38c0" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "ChildGroup", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "AlternateDisplayName", + "details": { + "version": 2, + "updatedTime": "2018-01-25T02:46:59.0545645Z", + "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup", + "name": "AlternateRootGroup", + "displayName": "AlternateRootGroup" } - }, - "404": { + } } - } + } + }, + "404": {} + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/ListManagementGroups.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/ListManagementGroups.json index bdf8360c63b2..734ae3572066 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/ListManagementGroups.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/ListManagementGroups.json @@ -1,33 +1,33 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "Cache-Control": "no-cache" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "20000000-0001-0000-0000-000000000000", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "Group 1 Tenant 2" - } - }, - { - "id": "/providers/Microsoft.Management/managementGroups/20000000-0004-0000-0000-000000000000", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "20000000-0004-0000-0000-000000000000", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "Group 4 Tenant 2" - } - } - ], - "nextLink": null + "parameters": { + "api-version": "2018-03-01-preview", + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0001-0000-0000-000000000000", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "20000000-0001-0000-0000-000000000000", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "Group 1 Tenant 2" } - } + }, + { + "id": "/providers/Microsoft.Management/managementGroups/20000000-0004-0000-0000-000000000000", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "20000000-0004-0000-0000-000000000000", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "Group 4 Tenant 2" + } + } + ], + "nextLink": null + } } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/PatchManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/PatchManagementGroup.json index df933c959b63..c2a063902c1e 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/PatchManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/PatchManagementGroup.json @@ -1,34 +1,34 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "groupId": "ChildGroup", - "patchGroupRequest": { - "displayName": "AlternateDisplayName", - "parentGroupId": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup" - }, - "Cache-Control": "no-cache" + "parameters": { + "api-version": "2018-03-01-preview", + "groupId": "ChildGroup", + "patchGroupRequest": { + "displayName": "AlternateDisplayName", + "parentGroupId": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup" }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "ChildGroup", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "AlternateDisplayName", - "details": { - "version": 2, - "updatedTime": "2018-01-25T02:46:59.0545645Z", - "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", - "parent": { - "id": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup", - "name": "AlternateRootGroup", - "displayName": "AlternateRootGroup" - } - } - } + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "ChildGroup", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "AlternateDisplayName", + "details": { + "version": 2, + "updatedTime": "2018-01-25T02:46:59.0545645Z", + "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab", + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup", + "name": "AlternateRootGroup", + "displayName": "AlternateRootGroup" } + } } + } } + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/PutManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/PutManagementGroup.json index 0a75e97d54c8..a92167c98a44 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/PutManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/PutManagementGroup.json @@ -1,54 +1,54 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "groupId": "ChildGroup", - "createManagementGroupRequest": { - "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "ChildGroup", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "ChildGroup", - "details": { - "parent": { - "id": "/providers/Microsoft.Management/managementGroups/RootGroup" - } - } - } - }, - "Cache-Control": "no-cache" + "parameters": { + "api-version": "2018-03-01-preview", + "groupId": "ChildGroup", + "createManagementGroupRequest": { + "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "ChildGroup", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "ChildGroup", + "details": { + "parent": { + "id": "/providers/Microsoft.Management/managementGroups/RootGroup" + } + } + } }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "ChildGroup", - "properties": { - "tenantId": "20000000-0000-0000-0000-000000000000", - "displayName": "ChildGroup", - "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" - } - } - } - } - }, - "202": { - "body": { - "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", - "type": "/providers/Microsoft.Management/managementGroups", - "name": "ChildGroup", - "properties": { - "provisioningState": "Updating" - } + "Cache-Control": "no-cache" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "ChildGroup", + "properties": { + "tenantId": "20000000-0000-0000-0000-000000000000", + "displayName": "ChildGroup", + "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" } + } + } + } + }, + "202": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/ChildGroup", + "type": "/providers/Microsoft.Management/managementGroups", + "name": "ChildGroup", + "properties": { + "provisioningState": "Updating" } + } } -} \ No newline at end of file + } +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/RemoveManagementGroupSubscription.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/RemoveManagementGroupSubscription.json index 906b8ea35511..3c4c47617aa2 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/RemoveManagementGroupSubscription.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/RemoveManagementGroupSubscription.json @@ -1,12 +1,11 @@ { - "parameters": { - "api-version": "2018-03-01-preview", - "groupId": "Group", - "subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", - "Cache-Control": "no-cache" - }, - "responses": { - "204": { - } - } + "parameters": { + "api-version": "2018-03-01-preview", + "groupId": "Group", + "subscriptionId": "728bcbe4-8d56-4510-86c2-4921b8beefbc", + "Cache-Control": "no-cache" + }, + "responses": { + "204": {} + } } diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/StartTenantBackfillRequest.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/StartTenantBackfillRequest.json index 6638cf8528fb..ebf478b568ca 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/StartTenantBackfillRequest.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/StartTenantBackfillRequest.json @@ -1,8 +1,7 @@ { "parameters": { "api-version": "2018-03-01-preview", - "startTenantBackfillRequest": { - } + "startTenantBackfillRequest": {} }, "responses": { "200": { @@ -10,4 +9,4 @@ "status": "Started" } } -} \ No newline at end of file +} diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/TenantBackfillStatusRequest.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/TenantBackfillStatusRequest.json index ad04f5604af0..e80a4a561964 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/TenantBackfillStatusRequest.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/examples/TenantBackfillStatusRequest.json @@ -1,8 +1,7 @@ { "parameters": { "api-version": "2018-03-01-preview", - "tenantBackfillStatusRequest": { - } + "tenantBackfillStatusRequest": {} }, "responses": { "200": { diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/management.json b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/management.json index 44c890b2287b..cd93ff619537 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/management.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-03-01-preview/management.json @@ -1508,4 +1508,4 @@ "description": "The view parameter allows clients to filter the type of data that is returned by the getEntities call." } } -} \ No newline at end of file +}