From 2b5a2a4a149265a81efdde9639b18c59d477f47e Mon Sep 17 00:00:00 2001 From: Sugandha Naolekar Date: Wed, 10 Apr 2019 13:52:12 -0700 Subject: [PATCH 1/8] Remove management group scope for exports as we do not support it --- .../stable/2019-01-01/costmanagement.json | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json index 33b430e3bce9..f1451e5cd693 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json @@ -252,7 +252,7 @@ }, "parameters": [ { - "$ref": "#/parameters/scopeQueryParameter" + "$ref": "#/parameters/scopeExportsParameter" }, { "$ref": "#/parameters/apiVersionParameter" @@ -300,7 +300,7 @@ }, "parameters": [ { - "$ref": "#/parameters/scopeQueryParameter" + "$ref": "#/parameters/scopeExportsParameter" }, { "$ref": "#/parameters/apiVersionParameter" @@ -352,7 +352,7 @@ }, "parameters": [ { - "$ref": "#/parameters/scopeQueryParameter" + "$ref": "#/parameters/scopeExportsParameter" }, { "$ref": "#/parameters/apiVersionParameter" @@ -419,7 +419,7 @@ }, "parameters": [ { - "$ref": "#/parameters/scopeQueryParameter" + "$ref": "#/parameters/scopeExportsParameter" }, { "$ref": "#/parameters/apiVersionParameter" @@ -470,7 +470,7 @@ }, "parameters": [ { - "$ref": "#/parameters/scopeQueryParameter" + "$ref": "#/parameters/scopeExportsParameter" }, { "$ref": "#/parameters/apiVersionParameter" @@ -521,7 +521,7 @@ }, "parameters": [ { - "$ref": "#/parameters/scopeQueryParameter" + "$ref": "#/parameters/scopeExportsParameter" }, { "$ref": "#/parameters/apiVersionParameter" @@ -1344,7 +1344,16 @@ "in": "path", "required": true, "type": "string", - "description": "The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope..", + "description": "The scope associated with query operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope..", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + }, + "scopeExportsParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope.", "x-ms-parameter-location": "method", "x-ms-skip-url-encoding": true }, From 3a6a09e2922b606b2c51195780438f9188494991 Mon Sep 17 00:00:00 2001 From: Sugandha Naolekar Date: Wed, 10 Apr 2019 16:59:22 -0700 Subject: [PATCH 2/8] Add scope parameter --- .../2019-01-01/examples/BillingAccountDimensionsList.json | 3 ++- .../examples/BillingAccountDimensionsListExpandAndTop.json | 3 ++- .../examples/BillingAccountDimensionsListWithFilter.json | 3 ++- .../stable/2019-01-01/examples/BillingAccountQuery.json | 1 + .../2019-01-01/examples/BillingAccountQueryGrouping.json | 1 + .../stable/2019-01-01/examples/DepartmentDimensionsList.json | 3 ++- .../examples/DepartmentDimensionsListExpandAndTop.json | 3 ++- .../examples/DepartmentDimensionsListWithFilter.json | 3 ++- .../stable/2019-01-01/examples/DepartmentQuery.json | 1 + .../stable/2019-01-01/examples/DepartmentQueryGrouping.json | 1 + .../2019-01-01/examples/EnrollmentAccountDimensionsList.json | 3 ++- .../examples/EnrollmentAccountDimensionsListExpandAndTop.json | 3 ++- .../examples/EnrollmentAccountDimensionsListWithFilter.json | 3 ++- .../stable/2019-01-01/examples/EnrollmentAccountQuery.json | 1 + .../2019-01-01/examples/EnrollmentAccountQueryGrouping.json | 1 + .../stable/2019-01-01/examples/Export.json | 3 ++- .../stable/2019-01-01/examples/ExportByBillingAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportByDepartment.json | 3 ++- .../stable/2019-01-01/examples/ExportByEnrollmentAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportCreateOrUpdate.json | 1 + .../examples/ExportCreateOrUpdateByBillingAccount.json | 1 + .../2019-01-01/examples/ExportCreateOrUpdateByDepartment.json | 1 + .../examples/ExportCreateOrUpdateByEnrollmentAccount.json | 1 + .../stable/2019-01-01/examples/ExportDelete.json | 3 ++- .../2019-01-01/examples/ExportDeleteByBillingAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportDeleteByDepartment.json | 3 ++- .../2019-01-01/examples/ExportDeleteByEnrollmentAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportExecution.json | 3 ++- .../2019-01-01/examples/ExportExecutionByBillingAccount.json | 3 ++- .../2019-01-01/examples/ExportExecutionByDepartment.json | 3 ++- .../examples/ExportExecutionByEnrollmentAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportExecutionList.json | 3 ++- .../examples/ExportExecutionListByBillingAccount.json | 3 ++- .../2019-01-01/examples/ExportExecutionListByDepartment.json | 3 ++- .../examples/ExportExecutionListByEnrollmentAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportList.json | 3 ++- .../stable/2019-01-01/examples/ExportListByBillingAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportListByDepartment.json | 3 ++- .../2019-01-01/examples/ExportListByEnrollmentAccount.json | 3 ++- .../2019-01-01/examples/ManagementGroupDimensionsList.json | 3 ++- .../examples/ManagementGroupDimensionsListExpandAndTop.json | 3 ++- .../examples/ManagementGroupDimensionsListWithFilter.json | 3 ++- .../stable/2019-01-01/examples/ManagementGroupQuery.json | 1 + .../2019-01-01/examples/ManagementGroupQueryGrouping.json | 1 + .../2019-01-01/examples/ResourceGroupDimensionsList.json | 3 ++- .../stable/2019-01-01/examples/ResourceGroupQuery.json | 1 + .../stable/2019-01-01/examples/ResourceGroupQueryGrouping.json | 1 + .../stable/2019-01-01/examples/SubscriptionDimensionsList.json | 3 ++- .../stable/2019-01-01/examples/SubscriptionQuery.json | 1 + .../stable/2019-01-01/examples/SubscriptionQueryGrouping.json | 1 + 50 files changed, 84 insertions(+), 34 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json index b9f5918e4fa3..48eddc514807 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json @@ -1,7 +1,8 @@ { "parameters": { "api-version": "2019-01-01", - "billingAccountId": "100" + "billingAccountId": "100", + "scope": "billingAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json index 2758e49d8cd3..98b53586a5c3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json @@ -3,7 +3,8 @@ "api-version": "2019-01-01", "billingAccountId": "100", "$expand": "properties/data", - "$top": 5 + "$top": 5, + "scope": "billingAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json index 90bc0b843233..68681ab6afb6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json @@ -4,7 +4,8 @@ "billingAccountId": "100", "$expand": "properties/data", "$top": 5, - "$filter": "properties/category eq 'resourceId'" + "$filter": "properties/category eq 'resourceId'", + "scope": "billingAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json index 92b50ea0cec7..6caf001dc5bd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json @@ -2,6 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "70664866", + "scope": "billingAccounts/" "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json index 0745bf34512f..645f7940b92b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json @@ -2,6 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "70664866", + "scope": "billingAccounts/" "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json index 2bbda0e6a272..3fab384d5567 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "100", - "departmentId": "123" + "departmentId": "123", + "scope": "billingAccounts/100/departments/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json index bfd2ad5a29f3..d322684a4ec9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json @@ -4,7 +4,8 @@ "billingAccountId": "100", "departmentId": "123", "$expand": "properties/data", - "$top": 5 + "$top": 5, + "scope": "billingAccounts/100/departments/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json index 20648e479031..5ae1e3250cc3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json @@ -5,7 +5,8 @@ "departmentId": "123", "$expand": "properties/data", "$top": 5, - "$filter": "properties/category eq 'resourceId'" + "$filter": "properties/category eq 'resourceId'", + "scope": "billingAccounts/100/departments/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json index 8c18343ea77e..ec6bb5ea81d3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json @@ -3,6 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "departmentId": "123", + "scope": "billingAccounts/70664866/departments/", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json index 0598d0eb209f..cfdf899f524f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json @@ -3,6 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "departmentId": "123", + "scope": "billingAccounts/70664866/departments/", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json index f8f029779d6b..6201f4c95680 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "100", - "enrollmentAccountId": "456" + "enrollmentAccountId": "456", + "scope": "billingAccounts/100/enrollmentAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json index 9f05831c65ef..1753fa2ccf11 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json @@ -4,7 +4,8 @@ "billingAccountId": "100", "enrollmentAccountId": "456", "$expand": "properties/data", - "$top": 5 + "$top": 5, + "scope": "billingAccounts/100/enrollmentAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json index d45b42ec7ab4..2c67c4300fc9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json @@ -5,7 +5,8 @@ "enrollmentAccountId": "456", "$expand": "properties/data", "$top": 5, - "$filter": "properties/category eq 'resourceId'" + "$filter": "properties/category eq 'resourceId'", + "scope": "billingAccounts/100/enrollmentAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json index 0971bf9fe43c..c41f220224c1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json @@ -3,6 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "enrollmentAccountId": "456", + "scope": "billingAccounts/70664866/enrollmentAccounts/", "parameters": { "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json index 212d475ef1f8..8f736181fbdd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json @@ -3,6 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "enrollmentAccountId": "456", + "scope": "billingAccounts/70664866/enrollmentAccounts/", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json index f9137eabaf86..1aa16f382738 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json @@ -3,7 +3,8 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "subscriptions/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json index 60aeb7f2ad42..f02539d05798 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "123456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccount/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json index 933958f10d57..3d7540a11742 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "departmentId": "1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/12/departments/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json index cde78ab1a1c7..f62f7c31e20f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "enrollmentAccountId": "1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/12/enrollmentAccounts" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json index 3fb355728a8a..d249f1b8b02a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json @@ -4,6 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", + "scope": "subscriptions/", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json index 4ed4e59be795..f8ce2e7e8b4c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json @@ -3,6 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", + "scope": "billingAccounts/", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json index 7607c3b45024..19b164ddccae 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json @@ -3,6 +3,7 @@ "api-version": "2019-01-01", "departmentId": "1234", "exportName": "TestExport", + "scope": "billingAccounts/12/departments/", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json index cc2743d35598..8fb14fb3aa46 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json @@ -3,6 +3,7 @@ "api-version": "2019-01-01", "enrollmentAccountId": "1234", "exportName": "TestExport", + "scope": "billingAccounts/12/enrollmentAccounts/", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json index 5f684882bf31..56080ca8a941 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json @@ -3,7 +3,8 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "subscriptions/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json index cf6af7b140b6..168258912ef4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "123456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json index 7a5af5221c75..032064aa71b9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "departmentId": "1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/12/departments/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json index e6eef4d34b5a..b27eee9504cb 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "enrollmentAccountId": "1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/12/enrollmentAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json index 916f0ddc6da2..4f727d5c59cc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json @@ -3,7 +3,8 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "subscriptions" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json index b9aff1fd8d4b..ed2d711d7c9e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "123456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json index 249ed27714f1..e67f6def19bc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "departmentId": "1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/12/departments/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json index 510971f17922..1cf34613f7cf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "enrollmentAccountId": "1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/12/enrollmentAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json index 9d17279a2113..f0492927315f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json @@ -3,7 +3,8 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "subscriptions/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json index 4e0ee014c511..67b27b810f8e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "123456", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json index ccc085d712c5..cf1c2a6ee4b0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "departmentId": "1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/12/departments/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByEnrollmentAccount.json index 023a74033716..e63fc04492df 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByEnrollmentAccount.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "enrollmentAccountId": "1234", - "exportName": "TestExport" + "exportName": "TestExport", + "scope": "billingAccounts/12/enrollmentAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json index f481a6eb5595..78a819fca10a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json @@ -2,7 +2,8 @@ "parameters": { "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG" + "resourceGroupName": "MYDEVTESTRG", + "scope": "subscriptions/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json index b957cc281abe..bbfeb6cf7ecf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json @@ -1,7 +1,8 @@ { "parameters": { "api-version": "2019-01-01", - "billingAccountId": "123456" + "billingAccountId": "123456", + "scope": "billingAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json index 45eee8246431..3572aa79fe04 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json @@ -1,7 +1,8 @@ { "parameters": { "api-version": "2019-01-01", - "departmentId": "1234" + "departmentId": "1234", + "scope": "billingAccounts/12/departments/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByEnrollmentAccount.json index f1f922a1a67a..00dfdf4a0992 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByEnrollmentAccount.json @@ -1,7 +1,8 @@ { "parameters": { "api-version": "2019-01-01", - "departmentId": "1234" + "departmentId": "1234", + "scope": "billingAccounts/12/enrollmentAccounts/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json index d9003efbed2b..1478dd47a122 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json @@ -1,7 +1,8 @@ { "parameters": { "api-version": "2019-01-01", - "managementGroupId": "MyMgId" + "managementGroupId": "MyMgId", + "scope": "managementGroups/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json index f8c7b72df3ef..fcd247e3842b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json @@ -3,7 +3,8 @@ "api-version": "2019-01-01", "managementGroupId": "MyMgId", "$expand": "properties/data", - "$top": 5 + "$top": 5, + "scope": "managementGroups/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json index 86ea49c3e36f..7e11dde9b346 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json @@ -4,7 +4,8 @@ "managementGroupId": "MyMgId", "$expand": "properties/data", "$top": 5, - "$filter": "properties/category eq 'resourceId'" + "$filter": "properties/category eq 'resourceId'", + "scope": "managementGroups/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json index a1841f1dac58..f6e8c940d956 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json @@ -2,6 +2,7 @@ "parameters": { "api-version": "2019-01-01", "managementGroupId": "MyMgId", + "scope": "managementGroups/", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json index b0363055b1a3..58f7563ac908 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json @@ -2,6 +2,7 @@ "parameters": { "api-version": "2019-01-01", "managementGroupId": "MyMgId", + "scope": "managementGroups/", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json index dc0e9e8cf879..1dd77960c3ad 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json @@ -4,7 +4,8 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "system.orlando", "$expand": "properties/data", - "$top": 5 + "$top": 5, + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json index 28f48b60520e..81961ce970f4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json @@ -3,6 +3,7 @@ "api-version": "2019-01-01", "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481", "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json index 3f6e8959173b..7989924e4a7e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json @@ -3,6 +3,7 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "ScreenSharingTest-peer", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json index d02d49b3c0e6..fe2afe2bb193 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json @@ -3,7 +3,8 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "$top": 5, - "$expand": "properties/data" + "$expand": "properties/data", + "scope": "subscriptions/" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json index 5486e1b0562a..f4bcf9913452 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json @@ -2,6 +2,7 @@ "parameters": { "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json index 944ece81a2cc..0064dc2a29b9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json @@ -2,6 +2,7 @@ "parameters": { "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", From 3e4d34dc09993994a4c92ee02dffaa626fc84f2c Mon Sep 17 00:00:00 2001 From: Sugandha Naolekar Date: Fri, 12 Apr 2019 10:46:11 -0700 Subject: [PATCH 3/8] syntax error fix --- .../stable/2019-01-01/examples/BillingAccountQueryGrouping.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json index 645f7940b92b..dea10f4635ef 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "70664866", - "scope": "billingAccounts/" + "scope": "billingAccounts/", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", From dda9bf78560444698902a49dadcbf2a5598dd1e9 Mon Sep 17 00:00:00 2001 From: Sugandha Naolekar Date: Fri, 12 Apr 2019 11:42:02 -0700 Subject: [PATCH 4/8] updated examples with scope param and fixed syntax error --- .../stable/2019-01-01/costmanagement.json | 2 +- .../2019-01-01/examples/BillingAccountDimensionsList.json | 2 +- .../examples/BillingAccountDimensionsListExpandAndTop.json | 2 +- .../examples/BillingAccountDimensionsListWithFilter.json | 2 +- .../stable/2019-01-01/examples/BillingAccountQuery.json | 2 +- .../2019-01-01/examples/BillingAccountQueryGrouping.json | 2 +- .../stable/2019-01-01/examples/DepartmentDimensionsList.json | 2 +- .../examples/DepartmentDimensionsListExpandAndTop.json | 2 +- .../examples/DepartmentDimensionsListWithFilter.json | 2 +- .../stable/2019-01-01/examples/DepartmentQuery.json | 2 +- .../stable/2019-01-01/examples/DepartmentQueryGrouping.json | 2 +- .../2019-01-01/examples/EnrollmentAccountDimensionsList.json | 2 +- .../examples/EnrollmentAccountDimensionsListExpandAndTop.json | 2 +- .../examples/EnrollmentAccountDimensionsListWithFilter.json | 2 +- .../stable/2019-01-01/examples/EnrollmentAccountQuery.json | 2 +- .../2019-01-01/examples/EnrollmentAccountQueryGrouping.json | 2 +- .../stable/2019-01-01/examples/Export.json | 2 +- .../stable/2019-01-01/examples/ExportByBillingAccount.json | 2 +- .../stable/2019-01-01/examples/ExportByDepartment.json | 3 ++- .../stable/2019-01-01/examples/ExportByEnrollmentAccount.json | 4 +++- .../stable/2019-01-01/examples/ExportCreateOrUpdate.json | 2 +- .../examples/ExportCreateOrUpdateByBillingAccount.json | 2 +- .../2019-01-01/examples/ExportCreateOrUpdateByDepartment.json | 3 ++- .../examples/ExportCreateOrUpdateByEnrollmentAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportDelete.json | 2 +- .../2019-01-01/examples/ExportDeleteByBillingAccount.json | 2 +- .../stable/2019-01-01/examples/ExportDeleteByDepartment.json | 3 ++- .../2019-01-01/examples/ExportDeleteByEnrollmentAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportExecution.json | 2 +- .../2019-01-01/examples/ExportExecutionByBillingAccount.json | 2 +- .../2019-01-01/examples/ExportExecutionByDepartment.json | 3 ++- .../examples/ExportExecutionByEnrollmentAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportExecutionList.json | 2 +- .../examples/ExportExecutionListByBillingAccount.json | 2 +- .../2019-01-01/examples/ExportExecutionListByDepartment.json | 3 ++- .../examples/ExportExecutionListByEnrollmentAccount.json | 3 ++- .../stable/2019-01-01/examples/ExportList.json | 2 +- .../2019-01-01/examples/ExportListByBillingAccount.json | 2 +- .../stable/2019-01-01/examples/ExportListByDepartment.json | 2 +- .../2019-01-01/examples/ExportListByEnrollmentAccount.json | 2 +- .../2019-01-01/examples/ManagementGroupDimensionsList.json | 2 +- .../examples/ManagementGroupDimensionsListExpandAndTop.json | 2 +- .../examples/ManagementGroupDimensionsListWithFilter.json | 2 +- .../stable/2019-01-01/examples/ManagementGroupQuery.json | 2 +- .../2019-01-01/examples/ManagementGroupQueryGrouping.json | 2 +- .../2019-01-01/examples/ResourceGroupDimensionsList.json | 2 +- .../stable/2019-01-01/examples/ResourceGroupQuery.json | 2 +- .../2019-01-01/examples/ResourceGroupQueryGrouping.json | 2 +- .../2019-01-01/examples/SubscriptionDimensionsList.json | 2 +- .../stable/2019-01-01/examples/SubscriptionQuery.json | 2 +- .../stable/2019-01-01/examples/SubscriptionQueryGrouping.json | 2 +- 51 files changed, 62 insertions(+), 51 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json index f1451e5cd693..8209b00e057f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json @@ -1353,7 +1353,7 @@ "in": "path", "required": true, "type": "string", - "description": "The scope associated with export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope.", + "description": "The scope associated with export operations. This includes '/subscriptions/{subscriptionId}' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope.", "x-ms-parameter-location": "method", "x-ms-skip-url-encoding": true }, diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json index 48eddc514807..100d199eb3d9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "100", - "scope": "billingAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json index 98b53586a5c3..f9ca6624c926 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "$expand": "properties/data", "$top": 5, - "scope": "billingAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json index 68681ab6afb6..d6576ea9c9f3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$expand": "properties/data", "$top": 5, "$filter": "properties/category eq 'resourceId'", - "scope": "billingAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json index 6caf001dc5bd..7cc4ee322fa6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "70664866", - "scope": "billingAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/70664866", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json index dea10f4635ef..a649478a3ba5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "70664866", - "scope": "billingAccounts/", + "scope": "/providers/Microsoft.Billing/billingAccounts/70664866", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json index 3fab384d5567..9647e1f03d3c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "100", "departmentId": "123", - "scope": "billingAccounts/100/departments/" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json index d322684a4ec9..f4413f345f4a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "departmentId": "123", "$expand": "properties/data", "$top": 5, - "scope": "billingAccounts/100/departments/" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json index 5ae1e3250cc3..6aedad9a6713 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "$expand": "properties/data", "$top": 5, "$filter": "properties/category eq 'resourceId'", - "scope": "billingAccounts/100/departments/" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json index ec6bb5ea81d3..f4e9269e4a76 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "departmentId": "123", - "scope": "billingAccounts/70664866/departments/", + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json index cfdf899f524f..b0ca0cd724ed 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "departmentId": "123", - "scope": "billingAccounts/70664866/departments/", + "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json index 6201f4c95680..237ce55b7d2b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "billingAccounts/100/enrollmentAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json index 1753fa2ccf11..5b045dd082be 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "enrollmentAccountId": "456", "$expand": "properties/data", "$top": 5, - "scope": "billingAccounts/100/enrollmentAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json index 2c67c4300fc9..7ee9547c73b2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "$expand": "properties/data", "$top": 5, "$filter": "properties/category eq 'resourceId'", - "scope": "billingAccounts/100/enrollmentAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json index c41f220224c1..be5da384f3a2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "enrollmentAccountId": "456", - "scope": "billingAccounts/70664866/enrollmentAccounts/", + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", "parameters": { "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json index 8f736181fbdd..7cc1c8af5491 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "enrollmentAccountId": "456", - "scope": "billingAccounts/70664866/enrollmentAccounts/", + "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json index 1aa16f382738..7d7a7dee15e1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "subscriptions/" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json index f02539d05798..d8c83cd3b988 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "billingAccount/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json index 3d7540a11742..f83ca02d9c4d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json @@ -1,9 +1,10 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "100", "departmentId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/departments/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json index f62f7c31e20f..8f3197870760 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json @@ -1,9 +1,11 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "100", "enrollmentAccountId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/enrollmentAccounts" + "id": "providers/Microsoft.Billing/billingAccounts/12/enrollmentAccounts/1234/providers/Microsoft.CostManagement/exports/TestExport", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json index d249f1b8b02a..9bc7e041cdf0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "subscriptions/", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json index f8ce2e7e8b4c..fcfb36da221e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "billingAccounts/", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json index 19b164ddccae..2ffd222ce042 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json @@ -1,9 +1,10 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "100", "departmentId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/departments/", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json index 8fb14fb3aa46..fb47ffe17f6f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json @@ -1,9 +1,10 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "100", "enrollmentAccountId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/enrollmentAccounts/", + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json index 56080ca8a941..dff6e51dffe4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "subscriptions/" + "scope": "/subscriptions/{subscriptionId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json index 168258912ef4..16f33c7d192a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "billingAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json index 032064aa71b9..5bcf4ad82ecd 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json @@ -1,9 +1,10 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "123456", "departmentId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/departments/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json index b27eee9504cb..97dd2ec790a2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json @@ -1,9 +1,10 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "100", "enrollmentAccountId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/enrollmentAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json index 4f727d5c59cc..3a69210a1440 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "subscriptions" + "scope": "/subscriptions/{subscriptionId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json index ed2d711d7c9e..600976eb9cbf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "billingAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json index e67f6def19bc..f8ec2eaa575f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json @@ -1,9 +1,10 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "100", "departmentId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/departments/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json index 1cf34613f7cf..14ca2ccf0cc0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json @@ -1,9 +1,10 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "100", "enrollmentAccountId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/enrollmentAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json index f0492927315f..e2572356c13c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "subscriptions/" + "scope": "/subscriptions/{subscriptionId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json index 67b27b810f8e..36fc1aadc3e7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "billingAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json index cf1c2a6ee4b0..3270cca2aa1d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json @@ -1,9 +1,10 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "100", "departmentId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/departments/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByEnrollmentAccount.json index e63fc04492df..e640c5d01422 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByEnrollmentAccount.json @@ -1,9 +1,10 @@ { "parameters": { "api-version": "2019-01-01", + "billingAccountId": "100", "enrollmentAccountId": "1234", "exportName": "TestExport", - "scope": "billingAccounts/12/enrollmentAccounts/" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json index 78a819fca10a..b9028123c911 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "scope": "subscriptions/" + "scope": "/subscriptions/{subscription-id}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json index bbfeb6cf7ecf..1c25cea6979f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "123456", - "scope": "billingAccounts/" + "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json index 3572aa79fe04..8827c3570a57 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "departmentId": "1234", - "scope": "billingAccounts/12/departments/" + "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByEnrollmentAccount.json index 00dfdf4a0992..b5bd1f3e6b60 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByEnrollmentAccount.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "departmentId": "1234", - "scope": "billingAccounts/12/enrollmentAccounts/" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/1234" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json index 1478dd47a122..1c9581fafd4f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "managementGroupId": "MyMgId", - "scope": "managementGroups/" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json index fcd247e3842b..8866577bf5ba 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "managementGroupId": "MyMgId", "$expand": "properties/data", "$top": 5, - "scope": "managementGroups/" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json index 7e11dde9b346..235038fa3b3d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$expand": "properties/data", "$top": 5, "$filter": "properties/category eq 'resourceId'", - "scope": "managementGroups/" + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json index f6e8c940d956..61afcd83ee2b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "managementGroupId": "MyMgId", - "scope": "managementGroups/", + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json index 58f7563ac908..a9729c9f64b0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "managementGroupId": "MyMgId", - "scope": "managementGroups/", + "scope": "/providers/Microsoft.Management/managementGroups/MyMgId", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json index 1dd77960c3ad..da28b9725e6e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json @@ -5,7 +5,7 @@ "resourceGroupName": "system.orlando", "$expand": "properties/data", "$top": 5, - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{resourceGroupName}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json index 81961ce970f4..865b97e14744 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{resourceGroupName}", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json index 7989924e4a7e..20612ad406e3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{resourceGroupName}", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json index fe2afe2bb193..de5f8de85fc7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "$top": 5, "$expand": "properties/data", - "scope": "subscriptions/" + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json index f4bcf9913452..ffdc3b37afc5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json index 0064dc2a29b9..247d0905a948 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "subscriptions/", + "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", From f94bd2d6d776c32a94ef0ed0d527242c6447a922 Mon Sep 17 00:00:00 2001 From: Sugandha Naolekar Date: Fri, 12 Apr 2019 11:56:31 -0700 Subject: [PATCH 5/8] fix scope param by removing '/' slash --- .../2019-01-01/examples/BillingAccountDimensionsList.json | 2 +- .../examples/BillingAccountDimensionsListExpandAndTop.json | 2 +- .../examples/BillingAccountDimensionsListWithFilter.json | 2 +- .../stable/2019-01-01/examples/BillingAccountQuery.json | 2 +- .../stable/2019-01-01/examples/BillingAccountQueryGrouping.json | 2 +- .../stable/2019-01-01/examples/DepartmentDimensionsList.json | 2 +- .../examples/DepartmentDimensionsListExpandAndTop.json | 2 +- .../2019-01-01/examples/DepartmentDimensionsListWithFilter.json | 2 +- .../stable/2019-01-01/examples/DepartmentQuery.json | 2 +- .../stable/2019-01-01/examples/DepartmentQueryGrouping.json | 2 +- .../2019-01-01/examples/EnrollmentAccountDimensionsList.json | 2 +- .../examples/EnrollmentAccountDimensionsListExpandAndTop.json | 2 +- .../examples/EnrollmentAccountDimensionsListWithFilter.json | 2 +- .../stable/2019-01-01/examples/EnrollmentAccountQuery.json | 2 +- .../2019-01-01/examples/EnrollmentAccountQueryGrouping.json | 2 +- .../stable/2019-01-01/examples/Export.json | 2 +- .../stable/2019-01-01/examples/ExportByBillingAccount.json | 2 +- .../stable/2019-01-01/examples/ExportByDepartment.json | 2 +- .../stable/2019-01-01/examples/ExportByEnrollmentAccount.json | 2 +- .../stable/2019-01-01/examples/ExportCreateOrUpdate.json | 2 +- .../examples/ExportCreateOrUpdateByBillingAccount.json | 2 +- .../2019-01-01/examples/ExportCreateOrUpdateByDepartment.json | 2 +- .../examples/ExportCreateOrUpdateByEnrollmentAccount.json | 2 +- .../2019-01-01/examples/ExportDeleteByBillingAccount.json | 2 +- .../stable/2019-01-01/examples/ExportDeleteByDepartment.json | 2 +- .../2019-01-01/examples/ExportDeleteByEnrollmentAccount.json | 2 +- .../stable/2019-01-01/examples/ExportExecution.json | 2 +- .../2019-01-01/examples/ExportExecutionByBillingAccount.json | 2 +- .../stable/2019-01-01/examples/ExportExecutionByDepartment.json | 2 +- .../2019-01-01/examples/ExportExecutionByEnrollmentAccount.json | 2 +- .../stable/2019-01-01/examples/ExportExecutionList.json | 2 +- .../examples/ExportExecutionListByBillingAccount.json | 2 +- .../2019-01-01/examples/ExportExecutionListByDepartment.json | 2 +- .../stable/2019-01-01/examples/ExportList.json | 2 +- .../stable/2019-01-01/examples/ExportListByBillingAccount.json | 2 +- .../stable/2019-01-01/examples/ExportListByDepartment.json | 2 +- .../2019-01-01/examples/ManagementGroupDimensionsList.json | 2 +- .../examples/ManagementGroupDimensionsListExpandAndTop.json | 2 +- .../examples/ManagementGroupDimensionsListWithFilter.json | 2 +- .../stable/2019-01-01/examples/ManagementGroupQuery.json | 2 +- .../2019-01-01/examples/ManagementGroupQueryGrouping.json | 2 +- .../stable/2019-01-01/examples/ResourceGroupDimensionsList.json | 2 +- .../stable/2019-01-01/examples/ResourceGroupQuery.json | 2 +- .../stable/2019-01-01/examples/ResourceGroupQueryGrouping.json | 2 +- .../stable/2019-01-01/examples/SubscriptionDimensionsList.json | 2 +- .../stable/2019-01-01/examples/SubscriptionQuery.json | 2 +- .../stable/2019-01-01/examples/SubscriptionQueryGrouping.json | 2 +- 47 files changed, 47 insertions(+), 47 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json index 100d199eb3d9..7b7a36c5b6de 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "100", - "scope": "/providers/Microsoft.Billing/billingAccounts/100" + "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json index f9ca6624c926..67c04cf6a0ff 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "$expand": "properties/data", "$top": 5, - "scope": "/providers/Microsoft.Billing/billingAccounts/100" + "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json index d6576ea9c9f3..226ca77c6ac7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$expand": "properties/data", "$top": 5, "$filter": "properties/category eq 'resourceId'", - "scope": "/providers/Microsoft.Billing/billingAccounts/100" + "scope": "providers/Microsoft.Billing/billingAccounts/100" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json index 7cc4ee322fa6..4a7272d20d16 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "70664866", - "scope": "/providers/Microsoft.Billing/billingAccounts/70664866", + "scope": "providers/Microsoft.Billing/billingAccounts/70664866", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json index a649478a3ba5..66ff17b94d83 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "70664866", - "scope": "/providers/Microsoft.Billing/billingAccounts/70664866", + "scope": "providers/Microsoft.Billing/billingAccounts/70664866", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json index 9647e1f03d3c..ff35b829e14a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "100", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json index f4413f345f4a..af4bc2065834 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "departmentId": "123", "$expand": "properties/data", "$top": 5, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json index 6aedad9a6713..9075deedd69c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "$expand": "properties/data", "$top": 5, "$filter": "properties/category eq 'resourceId'", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123" + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json index f4e9269e4a76..71bb29afeda9 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQuery.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123", + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json index b0ca0cd724ed..c9f0891e1325 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentQueryGrouping.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "departmentId": "123", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/departments/123", + "scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json index 237ce55b7d2b..b6afccfbd813 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsList.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "100", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json index 5b045dd082be..a99204aeef99 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json @@ -5,7 +5,7 @@ "enrollmentAccountId": "456", "$expand": "properties/data", "$top": 5, - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json index 7ee9547c73b2..f656973802d2 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountDimensionsListWithFilter.json @@ -6,7 +6,7 @@ "$expand": "properties/data", "$top": 5, "$filter": "properties/category eq 'resourceId'", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json index be5da384f3a2..9307d2cc8424 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQuery.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", "parameters": { "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json index 7cc1c8af5491..b9c689207a03 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/EnrollmentAccountQueryGrouping.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "70664866", "enrollmentAccountId": "456", - "scope": "/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", + "scope": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json index 7d7a7dee15e1..ca7e609ac42f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/Export.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json index d8c83cd3b988..81982f13a14f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json index f83ca02d9c4d..5f0b1179cc6c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json index 8f3197870760..a00511951cef 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportByEnrollmentAccount.json @@ -5,7 +5,7 @@ "enrollmentAccountId": "1234", "exportName": "TestExport", "id": "providers/Microsoft.Billing/billingAccounts/12/enrollmentAccounts/1234/providers/Microsoft.CostManagement/exports/TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json index 9bc7e041cdf0..e0889c255765 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdate.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json index fcfb36da221e..a2864274da32 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}", + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json index 2ffd222ce042..9f1236fe245d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments", + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json index fb47ffe17f6f..620863e52a06 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}", + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}", "parameters": { "properties": { "schedule":{ diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json index 16f33c7d192a..b24e337b26d3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json index 5bcf4ad82ecd..ca837ad3c58b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "123456", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json index 97dd2ec790a2..2ee7c54fc119 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDeleteByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json index 3a69210a1440..cd52df733b47 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecution.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "/subscriptions/{subscriptionId}" + "scope": "subscriptions/{subscriptionId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json index 600976eb9cbf..41487377c008 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json index f8ec2eaa575f..6e1afcc52382 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json index 14ca2ccf0cc0..69a65964f712 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionByEnrollmentAccount.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "enrollmentAccountId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json index e2572356c13c..c007354620d6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionList.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "/subscriptions/{subscriptionId}" + "scope": "subscriptions/{subscriptionId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json index 36fc1aadc3e7..5b47ee280df4 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByBillingAccount.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "billingAccountId": "123456", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json index 3270cca2aa1d..451b9014b922 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportExecutionListByDepartment.json @@ -4,7 +4,7 @@ "billingAccountId": "100", "departmentId": "1234", "exportName": "TestExport", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json index b9028123c911..c30789638048 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportList.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", - "scope": "/subscriptions/{subscription-id}" + "scope": "subscriptions/{subscription-id}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json index 1c25cea6979f..3a36e0c73ae1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByBillingAccount.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "billingAccountId": "123456", - "scope": "/providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}" + "scope": "providers/Microsoft.Billing/billingAccounts/{billingAccount-Id}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json index 8827c3570a57..1eb1def5c377 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportListByDepartment.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "departmentId": "1234", - "scope": "/providers/Microsoft.Billing/billingAccounts/12/departments/1234" + "scope": "providers/Microsoft.Billing/billingAccounts/12/departments/1234" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json index 1c9581fafd4f..676dc13d0975 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "managementGroupId": "MyMgId", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json index 8866577bf5ba..13d71998fa75 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListExpandAndTop.json @@ -4,7 +4,7 @@ "managementGroupId": "MyMgId", "$expand": "properties/data", "$top": 5, - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json index 235038fa3b3d..a4e2cac968f6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupDimensionsListWithFilter.json @@ -5,7 +5,7 @@ "$expand": "properties/data", "$top": 5, "$filter": "properties/category eq 'resourceId'", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId" + "scope": "providers/Microsoft.Management/managementGroups/MyMgId" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json index 61afcd83ee2b..75b60311d7da 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQuery.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "managementGroupId": "MyMgId", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId", + "scope": "providers/Microsoft.Management/managementGroups/MyMgId", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json index a9729c9f64b0..294531c37015 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "managementGroupId": "MyMgId", - "scope": "/providers/Microsoft.Management/managementGroups/MyMgId", + "scope": "providers/Microsoft.Management/managementGroups/MyMgId", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json index da28b9725e6e..5da6d592c890 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupDimensionsList.json @@ -5,7 +5,7 @@ "resourceGroupName": "system.orlando", "$expand": "properties/data", "$top": 5, - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{resourceGroupName}" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{resourceGroupName}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json index 865b97e14744..647c751335b0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQuery.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{resourceGroupName}", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{resourceGroupName}", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json index 20612ad406e3..8f6a8a02d2b7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json @@ -3,7 +3,7 @@ "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "ScreenSharingTest-peer", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{resourceGroupName}", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/{resourceGroupName}", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json index de5f8de85fc7..7a51af63b91d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionDimensionsList.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "$top": 5, "$expand": "properties/data", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000" + "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json index ffdc3b37afc5..586a6787e571 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "parameters":{ "type": "Usage", "timeframe": "MonthToDate", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json index 247d0905a948..6ec072e5e180 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQueryGrouping.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2019-01-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000", + "scope": "subscriptions/00000000-0000-0000-0000-000000000000", "parameters":{ "type": "Usage", "timeframe": "TheLastMonth", From aa03136321ebf97bd0a5acb89c68d12f871faad1 Mon Sep 17 00:00:00 2001 From: Sugandha Naolekar Date: Fri, 12 Apr 2019 12:07:11 -0700 Subject: [PATCH 6/8] fix sorting params --- .../stable/2019-01-01/examples/ExportDelete.json | 2 +- .../stable/2019-01-01/examples/SubscriptionQuery.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json index dff6e51dffe4..c6cd33033efe 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ExportDelete.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "MYDEVTESTRG", "exportName": "TestExport", - "scope": "/subscriptions/{subscriptionId}" + "scope": "subscriptions/{subscriptionId}" }, "responses": { "200": { diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json index 586a6787e571..e2d88883016c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json @@ -48,7 +48,7 @@ "sorting": [ { "name": "UsageDate", - "sortingDirection": "Ascending" + "direction": "Ascending" } ] } From 70e18fd97deacb419470ae9a95f2c34d60e38fab Mon Sep 17 00:00:00 2001 From: Sugandha Naolekar Date: Fri, 12 Apr 2019 12:18:34 -0700 Subject: [PATCH 7/8] remove the direction param --- .../2019-01-01/examples/ManagementGroupQueryGrouping.json | 3 +-- .../stable/2019-01-01/examples/SubscriptionQuery.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json index 294531c37015..96f86702b1dc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json @@ -22,8 +22,7 @@ ], "sorting": [ { - "name": "ResourceGroup", - "direction": "Descending" + "name": "ResourceGroup" } ] } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json index e2d88883016c..998adf2c8710 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json @@ -47,8 +47,7 @@ }, "sorting": [ { - "name": "UsageDate", - "direction": "Ascending" + "name": "UsageDate" } ] } From 1c7735d8c106d4ea61a28dbb71bad2a7c659450b Mon Sep 17 00:00:00 2001 From: Sugandha Naolekar Date: Fri, 12 Apr 2019 12:33:26 -0700 Subject: [PATCH 8/8] fix direction param name and add missing example --- .../stable/2019-01-01/costmanagement.json | 3 +++ .../2019-01-01/examples/ManagementGroupQueryGrouping.json | 3 ++- .../stable/2019-01-01/examples/ResourceGroupQueryGrouping.json | 2 +- .../stable/2019-01-01/examples/SubscriptionQuery.json | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json index 8209b00e057f..afe5f3d7c088 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json @@ -161,6 +161,9 @@ }, "ResourceGroupQuery": { "$ref": "./examples/ResourceGroupQuery.json" + }, + "ResourceGroupQueryGrouping": { + "$ref": "./examples/ResourceGroupQueryGrouping.json" }, "BillingAccountQuery": { "$ref": "./examples/BillingAccountQuery.json" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json index 96f86702b1dc..23a82a6b1f4a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ManagementGroupQueryGrouping.json @@ -22,7 +22,8 @@ ], "sorting": [ { - "name": "ResourceGroup" + "name": "ResourceGroup", + "querySortingDirection": "Descending" } ] } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json index 8f6a8a02d2b7..4c83ec96ff03 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/ResourceGroupQueryGrouping.json @@ -24,7 +24,7 @@ "sorting": [ { "name": "ResourceType", - "direction": "Descending" + "querySortingDirection": "Descending" } ] } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json index 998adf2c8710..a002f11dd55e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-01-01/examples/SubscriptionQuery.json @@ -47,7 +47,8 @@ }, "sorting": [ { - "name": "UsageDate" + "name": "UsageDate", + "querySortingDirection": "Ascending" } ] }