UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 47.6 kB
{"openapi":"3.0.0","info":{"title":"CostManagementClient","version":"2019-04-01-preview","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/costmanagement.json","version":"2.0"}],"x-preferred":true,"x-providerName":"azure.com","x-serviceName":"cost-management-costmanagement","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/providers/Microsoft.CostManagement/operations":{"get":{"description":"Lists all of the available consumption REST API operations.","operationId":"Operations_List","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationListResult"}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Operations"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/providers/Microsoft.CostManagement/views":{"get":{"description":"Lists all views by tenant and object.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/costmanagement/"},"operationId":"Views_List","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewListResult"},"examples":{"PrivateViewList":{"$ref":"#/components/examples/PrivateViewList"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Views"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/providers/Microsoft.CostManagement/views/{viewName}":{"delete":{"description":"The operation to delete a view.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/costmanagement/"},"operationId":"Views_Delete","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/viewNameParameter"}],"responses":{"200":{"description":"OK. The request has succeeded."},"204":{"description":"NoContent. Resource is not available."},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Views"]},"get":{"description":"Gets the view by view name.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/costmanagement/"},"operationId":"Views_Get","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/viewNameParameter"}],"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"},"examples":{"PrivateView":{"$ref":"#/components/examples/PrivateView"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Views"]},"put":{"description":"The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/costmanagement/"},"operationId":"Views_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/viewNameParameter"}],"requestBody":{"$ref":"#/components/requestBodies/View"},"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"},"examples":{"CreateOrUpdatePrivateView":{"$ref":"#/components/examples/CreateOrUpdatePrivateView"}}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"},"examples":{"CreateOrUpdatePrivateView":{"$ref":"#/components/examples/CreateOrUpdatePrivateView"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Views"]}},"/{scope}/providers/Microsoft.CostManagement/budgets":{"get":{"description":"Lists all budgets for the defined scope.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/cost-management/"},"operationId":"Budgets_List","parameters":[{"$ref":"#/components/parameters/scopeBudgetParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetsListResult"},"examples":{"BudgetsList":{"$ref":"#/components/examples/BudgetsList"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Budgets"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}":{"delete":{"description":"The operation to delete a budget.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/cost-management/"},"operationId":"Budget_Delete","parameters":[{"$ref":"#/components/parameters/scopeBudgetParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/budgetNameParameter"}],"responses":{"200":{"description":"OK. The request has succeeded."},"204":{"description":"NoContent. Resource is not available."},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Budgets"]},"get":{"description":"Gets the budget for the scope by budget name.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/cost-management/"},"operationId":"Budget_Get","parameters":[{"$ref":"#/components/parameters/scopeBudgetParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/budgetNameParameter"}],"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetModel"},"examples":{"Budget":{"$ref":"#/components/examples/Budget"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Budgets"]},"put":{"description":"The operation to create or update a budget. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/cost-management/"},"operationId":"Budget_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/scopeBudgetParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/budgetNameParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetModel"}}},"description":"Parameters supplied to the Create Budget operation.","x-required":true},"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetModel"},"examples":{"CreateOrUpdateBudget":{"$ref":"#/components/examples/CreateOrUpdateBudget"}}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetModel"},"examples":{"CreateOrUpdateBudget":{"$ref":"#/components/examples/CreateOrUpdateBudget"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Budgets"]}},"/{scope}/providers/Microsoft.CostManagement/views":{"get":{"description":"Lists all views at the given scope.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/costmanagement/"},"operationId":"Views_ListByScope","parameters":[{"$ref":"#/components/parameters/scopeViewParameter"},{"$ref":"#/components/parameters/apiVersionParameter"}],"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewListResult"},"examples":{"ResourceGroupViewList":{"$ref":"#/components/examples/ResourceGroupViewList"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Views"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/{scope}/providers/Microsoft.CostManagement/views/{viewName}":{"delete":{"description":"The operation to delete a view.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/costmanagement/"},"operationId":"Views_DeleteByScope","parameters":[{"$ref":"#/components/parameters/scopeViewParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/viewNameParameter"}],"responses":{"200":{"description":"OK. The request has succeeded."},"204":{"description":"NoContent. Resource is not available."},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Views"]},"get":{"description":"Gets the view for the defined scope by view name.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/costmanagement/"},"operationId":"Views_GetByScope","parameters":[{"$ref":"#/components/parameters/scopeViewParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/viewNameParameter"}],"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"},"examples":{"ResourceGroupView":{"$ref":"#/components/examples/ResourceGroupView"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Views"]},"put":{"description":"The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.","externalDocs":{"url":"https://docs.microsoft.com/en-us/rest/api/costmanagement/"},"operationId":"Views_CreateOrUpdateByScope","parameters":[{"$ref":"#/components/parameters/scopeViewParameter"},{"$ref":"#/components/parameters/apiVersionParameter"},{"$ref":"#/components/parameters/viewNameParameter"}],"requestBody":{"$ref":"#/components/requestBodies/View"},"responses":{"200":{"description":"OK. The request has succeeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"},"examples":{"ResourceGroupCreateOrUpdateView":{"$ref":"#/components/examples/ResourceGroupCreateOrUpdateView"}}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"},"examples":{"ResourceGroupCreateOrUpdateView":{"$ref":"#/components/examples/ResourceGroupCreateOrUpdateView"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"tags":["Views"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"PrivateViewList":{"value":{"value":[{"eTag":"\"1d4ff9fe66f1d10\"","id":"/providers/Microsoft.CostManagement/views/swaggerExample","name":"swaggerExample","properties":{"accumulated":"true","chart":"Table","displayName":"swagger Example","kpis":[{"enabled":true,"type":"Forecast"},{"enabled":true,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo","type":"Budget"}],"metric":"ActualCost","pivots":[{"name":"ServiceName","type":"Dimension"},{"name":"MeterCategory","type":"Dimension"},{"name":"swaggerTagKey","type":"TagKey"}],"query":{"dataset":{"aggregation":{"totalCost":{"function":"Sum","name":"PreTaxCost"}},"granularity":"Daily","grouping":[],"sorting":[{"direction":"Ascending","name":"UsageDate"}]},"timeframe":"MonthToDate","type":"Usage"},"scope":""},"type":"Microsoft.CostManagement/Views"},{"eTag":"\"1d4ffa5a9c2430c\"","id":"/providers/Microsoft.CostManagement/views/swaggerExample2","name":"swaggerExample2","properties":{"accumulated":"true","chart":"GroupedColumn","displayName":"swagger Example 2","kpis":[{"enabled":true,"type":"Forecast"},{"enabled":true,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo","type":"Budget"}],"metric":"ActualCost","pivots":[{"name":"ServiceName","type":"Dimension"},{"name":"MeterCategory","type":"Dimension"},{"name":"swaggerTagKey","type":"TagKey"}],"query":{"dataset":{"aggregation":{"totalCost":{"function":"Sum","name":"PreTaxCost"}},"granularity":"Daily","grouping":[],"sorting":[{"direction":"Ascending","name":"UsageDate"}]},"timeframe":"LastMonthToDate","type":"Usage"},"scope":""},"type":"Microsoft.CostManagement/Views"}]}},"PrivateView":{"value":{"eTag":"\"1d4ff9fe66f1d10\"","id":"/providers/Microsoft.CostManagement/views/swaggerExample","name":"swaggerExample","properties":{"accumulated":"true","chart":"Table","displayName":"swagger Example","kpis":[{"enabled":true,"type":"Forecast"},{"enabled":true,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo","type":"Budget"}],"metric":"ActualCost","pivots":[{"name":"ServiceName","type":"Dimension"},{"name":"MeterCategory","type":"Dimension"},{"name":"swaggerTagKey","type":"TagKey"}],"query":{"dataset":{"aggregation":{"totalCost":{"function":"Sum","name":"PreTaxCost"}},"granularity":"Daily","grouping":[],"sorting":[{"direction":"Ascending","name":"UsageDate"}]},"timeframe":"MonthToDate","type":"Usage"},"scope":""},"type":"Microsoft.CostManagement/Views"}},"CreateOrUpdatePrivateView":{"value":{"eTag":"\"1d4ffa5a9c2430c\"","id":"/providers/Microsoft.CostManagement/views/swaggerExample","name":"swaggerExample","properties":{"accumulated":"true","chart":"Table","displayName":"swagger Example","kpis":[{"enabled":true,"type":"Forecast"},{"enabled":true,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo","type":"Budget"}],"metric":"ActualCost","pivots":[{"name":"ServiceName","type":"Dimension"},{"name":"MeterCategory","type":"Dimension"},{"name":"swaggerTagKey","type":"TagKey"}],"query":{"dataset":{"aggregation":{"totalCost":{"function":"Sum","name":"PreTaxCost"}},"granularity":"Daily","grouping":[],"sorting":[{"direction":"Ascending","name":"UsageDate"}]},"timeframe":"MonthToDate","type":"Usage"},"scope":""},"type":"Microsoft.CostManagement/Views"}},"BudgetsList":{"value":{"value":[{"eTag":"\"1d34d012214157f\"","id":"subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget","name":"TestBudget","properties":{"amount":100.65,"category":"Cost","currentSpend":{"amount":80.89,"unit":"USD"},"filter":{"and":[{"dimension":{"name":"ResourceGroupName","operator":"In","values":["MYDEVTESTRG"]}},{"dimension":{"name":"ResourceId","operator":"In","values":["/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MYVM2","/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"]}},{"dimension":{"name":"Meter","operator":"In","values":["00000000-0000-0000-0000-000000000000"]}},{"tag":{"name":"Dev","operator":"In","values":["engineering"]}}]},"notifications":{"Actual_GreaterThanOrEqualTo_90_Percent":{"contactEmails":["johndoe@contoso.com","janesmith@contoso.com"],"contactGroups":["/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"],"contactRoles":["Contributor","Reader"],"enabled":true,"operator":"GreaterThanOrEqualTo","threshold":90},"Actual_GreaterThan_80_Percent":{"contactEmails":["johndoe@contoso.com","janesmith@contoso.com"],"contactRoles":["Contributor","Reader"],"enabled":true,"operator":"GreaterThan","threshold":80}},"timeGrain":"Monthly","timePeriod":{"endDate":"2018-10-31T00:00:00Z","startDate":"2017-10-01T00:00:00Z"}},"type":"Microsoft.Consumption/budgets"},{"eTag":"\"1d34d012214157f\"","id":"subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget","name":"TestBudget","properties":{"amount":600.65,"category":"Cost","currentSpend":{"amount":120.89,"unit":"USD"},"filter":{"and":[{"dimension":{"name":"ResourceGroupName","operator":"In","values":["MYDEVTESTRG"]}},{"dimension":{"name":"ResourceId","operator":"In","values":["/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MYVM2","/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"]}},{"dimension":{"name":"Meter","operator":"In","values":["00000000-0000-0000-0000-000000000000"]}},{"tag":{"name":"Dev","operator":"In","values":["engineering"]}}]},"notifications":{"Actual_GreaterThanOrEqualTo_60_Percent":{"contactEmails":["johndoe@contoso.com","janesmith@contoso.com"],"contactGroups":["/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"],"contactRoles":["Contributor","Reader"],"enabled":true,"operator":"GreaterThanOrEqualTo","threshold":60},"Actual_GreaterThan_40_Percent":{"contactEmails":["johndoe@contoso.com","janesmith@contoso.com"],"contactRoles":["Contributor","Reader"],"enabled":true,"operator":"GreaterThan","threshold":40}},"timeGrain":"Monthly","timePeriod":{"endDate":"2018-10-31T00:00:00Z","startDate":"2017-10-01T00:00:00Z"}},"type":"Microsoft.Consumption/budgets"}]}},"Budget":{"value":{"eTag":"\"1d34d012214157f\"","id":"subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget","name":"TestBudget","properties":{"amount":100.65,"category":"Cost","currentSpend":{"amount":80.89,"unit":"USD"},"filter":{"and":[{"dimension":{"name":"ResourceGroupName","operator":"In","values":["MYDEVTESTRG"]}},{"dimension":{"name":"ResourceId","operator":"In","values":["/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MYVM2","/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"]}},{"dimension":{"name":"Meter","operator":"In","values":["00000000-0000-0000-0000-000000000000"]}},{"tag":{"name":"Dev","operator":"In","values":["engineering"]}}]},"notifications":{"Actual_GreaterThan_80_Percent":{"contactEmails":["johndoe@contoso.com","janesmith@contoso.com"],"contactGroups":["/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"],"contactRoles":["Contributor","Reader"],"enabled":true,"operator":"GreaterThan","threshold":80}},"timeGrain":"Monthly","timePeriod":{"endDate":"2018-10-31T00:00:00Z","startDate":"2017-10-01T00:00:00Z"}},"type":"Microsoft.Consumption/budgets"}},"CreateOrUpdateBudget":{"value":{"eTag":"\"1d34d012214157f\"","id":"subscriptions/{subscription-id}/providers/Microsoft.Consumption/budgets/TestBudget","name":"TestBudget","properties":{"amount":100.65,"category":"Cost","currentSpend":{"amount":80.89,"unit":"USD"},"filter":{"and":[{"dimension":{"name":"ResourceGroupName","operator":"In","values":["MYDEVTESTRG"]}},{"dimension":{"name":"ResourceId","operator":"In","values":["/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MYVM2","/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"]}},{"dimension":{"name":"Meter","operator":"In","values":["00000000-0000-0000-0000-000000000000"]}},{"tag":{"name":"Dev","operator":"In","values":["engineering"]}}]},"notifications":{"Actual_GreaterThan_80_Percent":{"contactEmails":["johndoe@contoso.com","janesmith@contoso.com"],"contactGroups":["/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"],"contactRoles":["Contributor","Reader"],"enabled":true,"operator":"GreaterThan","threshold":80}},"timeGrain":"Monthly","timePeriod":{"endDate":"2018-10-31T00:00:00Z","startDate":"2017-10-01T00:00:00Z"}},"type":"Microsoft.Consumption/budgets"}},"ResourceGroupViewList":{"value":{"value":[{"eTag":"\"1d4ff9fe66f1d10\"","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample","name":"swaggerExample","properties":{"accumulated":"true","chart":"Table","displayName":"swagger Example","kpis":[{"enabled":true,"type":"Forecast"},{"enabled":true,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo","type":"Budget"}],"metric":"ActualCost","pivots":[{"name":"ServiceName","type":"Dimension"},{"name":"MeterCategory","type":"Dimension"},{"name":"swaggerTagKey","type":"TagKey"}],"query":{"dataset":{"aggregation":{"totalCost":{"function":"Sum","name":"PreTaxCost"}},"granularity":"Daily","grouping":[],"sorting":[{"direction":"Ascending","name":"UsageDate"}]},"timeframe":"MonthToDate","type":"Usage"},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"},"type":"Microsoft.CostManagement/Views"},{"eTag":"\"1d4ffa5a9c2430c\"","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample2","name":"swaggerExample2","properties":{"accumulated":"true","chart":"GroupedColumn","displayName":"swagger Example 2","kpis":[{"enabled":true,"type":"Forecast"},{"enabled":true,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo","type":"Budget"}],"metric":"ActualCost","pivots":[{"name":"ServiceName","type":"Dimension"},{"name":"MeterCategory","type":"Dimension"},{"name":"swaggerTagKey","type":"TagKey"}],"query":{"dataset":{"aggregation":{"totalCost":{"function":"Sum","name":"PreTaxCost"}},"granularity":"Daily","grouping":[],"sorting":[{"direction":"Ascending","name":"UsageDate"}]},"timeframe":"LastMonthToDate","type":"Usage"},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"},"type":"Microsoft.CostManagement/Views"}]}},"ResourceGroupView":{"value":{"eTag":"\"1d4ff9fe66f1d10\"","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample","name":"swaggerExample","properties":{"accumulated":"true","chart":"Table","displayName":"swagger Example","kpis":[{"enabled":true,"type":"Forecast"},{"enabled":true,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo","type":"Budget"}],"metric":"ActualCost","pivots":[{"name":"ServiceName","type":"Dimension"},{"name":"MeterCategory","type":"Dimension"},{"name":"swaggerTagKey","type":"TagKey"}],"query":{"dataset":{"aggregation":{"totalCost":{"function":"Sum","name":"PreTaxCost"}},"granularity":"Daily","grouping":[],"sorting":[{"direction":"Ascending","name":"UsageDate"}]},"timeframe":"MonthToDate","type":"Usage"},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"},"type":"Microsoft.CostManagement/Views"}},"ResourceGroupCreateOrUpdateView":{"value":{"eTag":"\"1d4ffa5a9c2430c\"","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/views/swaggerExample","name":"swaggerExample","properties":{"accumulated":"true","chart":"Table","displayName":"swagger Example","kpis":[{"enabled":true,"type":"Forecast"},{"enabled":true,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Consumption/budgets/swaggerDemo","type":"Budget"}],"metric":"ActualCost","pivots":[{"name":"ServiceName","type":"Dimension"},{"name":"MeterCategory","type":"Dimension"},{"name":"swaggerTagKey","type":"TagKey"}],"query":{"dataset":{"aggregation":{"totalCost":{"function":"Sum","name":"PreTaxCost"}},"granularity":"Daily","grouping":[],"sorting":[{"direction":"Ascending","name":"UsageDate"}]},"timeframe":"MonthToDate","type":"Usage"},"scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"},"type":"Microsoft.CostManagement/Views"}}},"parameters":{"apiVersionParameter":{"description":"Version of the API to be used with the client request. The current version is 2019-04-01-preview","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"PrivateViewList":{"value":"2019-04-01-preview"},"DeletePrivateView":{"value":"2019-04-01-preview"},"PrivateView":{"value":"2019-04-01-preview"},"CreateOrUpdatePrivateView":{"value":"2019-04-01-preview"},"BudgetsList":{"value":"2019-05-01-preview"},"DeleteBudget":{"value":"2019-05-01-preview"},"Budget":{"value":"2019-05-01-preview"},"CreateOrUpdateBudget":{"value":"2019-05-01-preview"},"ResourceGroupViewList":{"value":"2019-04-01-preview"},"ResourceGroupDeleteView":{"value":"2019-04-01-preview"},"ResourceGroupView":{"value":"2019-04-01-preview"},"ResourceGroupCreateOrUpdateView":{"value":"2019-04-01-preview"}}},"billingAccountIdParameter":{"description":"BillingAccount ID","in":"path","name":"billingAccountId","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"budgetNameParameter":{"description":"Budget Name.","in":"path","name":"budgetName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"DeleteBudget":{"value":"TestBudget"},"Budget":{"value":"TestBudget"},"CreateOrUpdateBudget":{"value":"TestBudget"}}},"departmentIdParameter":{"description":"Department ID","in":"path","name":"departmentId","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"enrollmentAccountIdParameter":{"description":"Enrollment Account ID","in":"path","name":"enrollmentAccountId","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"managementGroupIdParameter":{"description":"ManagementGroup ID","in":"path","name":"managementGroupId","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"resourceGroupNameParameter":{"description":"Azure Resource Group Name.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"}},"scopeBudgetParameter":{"description":"The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.","in":"path","name":"scope","required":true,"x-ms-parameter-location":"method","x-ms-skip-url-encoding":true,"schema":{"type":"string"},"examples":{"BudgetsList":{"value":"subscriptions/00000000-0000-0000-0000-000000000000"},"DeleteBudget":{"value":"subscriptions/00000000-0000-0000-0000-000000000000"},"Budget":{"value":"subscriptions/00000000-0000-0000-0000-000000000000"},"CreateOrUpdateBudget":{"value":"subscriptions/00000000-0000-0000-0000-000000000000"}}},"scopeViewParameter":{"description":"The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope.","in":"path","name":"scope","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"ResourceGroupViewList":{"value":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"},"ResourceGroupDeleteView":{"value":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"},"ResourceGroupView":{"value":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"},"ResourceGroupCreateOrUpdateView":{"value":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"}}},"subscriptionIdParameter":{"description":"Azure Subscription ID.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"}},"viewNameParameter":{"description":"View name","in":"path","name":"viewName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"DeletePrivateView":{"value":"TestView"},"PrivateView":{"value":"swaggerExample"},"CreateOrUpdatePrivateView":{"value":"swaggerExample"},"ResourceGroupDeleteView":{"value":"TestView"},"ResourceGroupView":{"value":"swaggerExample"},"ResourceGroupCreateOrUpdateView":{"value":"swaggerExample"}}}},"requestBodies":{"View":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}},"description":"Parameters supplied to the CreateOrUpdate View operation.","required":true}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow.","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"BudgetModel":{"allOf":[{"$ref":"#/components/schemas/ProxyResource"}],"description":"A budget resource.","properties":{"properties":{"$ref":"#/components/schemas/BudgetProperties"}}},"BudgetProperties":{"description":"The properties of the budget.","properties":{"amount":{"description":"The total amount of cost to track with the budget","format":"decimal","type":"number"},"category":{"description":"The category of the budget, whether the budget tracks cost or usage.","enum":["Cost","Usage"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"CategoryType"}},"currentSpend":{"$ref":"#/components/schemas/CurrentSpend"},"filter":{"$ref":"#/components/schemas/ReportConfigFilter"},"notifications":{"additionalProperties":{"$ref":"#/components/schemas/Notification"},"description":"Dictionary of notifications associated with the budget. Budget can have up to five notifications.","maxItems":5,"type":"object"},"timeGrain":{"description":"The time covered by a budget. Tracking of the amount will be reset based on the time grain.","enum":["Monthly","Quarterly","Annually"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"TimeGrainType"}},"timePeriod":{"$ref":"#/components/schemas/BudgetTimePeriod"}},"required":["category","amount","timeGrain","timePeriod"]},"BudgetTimePeriod":{"description":"The start and end date for a budget.","properties":{"endDate":{"description":"The end date for the budget. If not provided, we default this to 10 years from the start date.","format":"date-time","type":"string"},"startDate":{"description":"The start date for the budget.","format":"date-time","type":"string"}},"required":["startDate"]},"BudgetsListResult":{"description":"Result of listing budgets. It contains a list of available budgets in the scope provided.","properties":{"nextLink":{"description":"The link (url) to the next page of results.","readOnly":true,"type":"string"},"value":{"description":"The list of budgets.","items":{"$ref":"#/components/schemas/BudgetModel"},"readOnly":true,"type":"array"}}},"CurrentSpend":{"description":"The current amount of cost which is being tracked for a budget.","properties":{"amount":{"description":"The total amount of cost which is being tracked by the budget.","format":"decimal","readOnly":true,"type":"number"},"unit":{"description":"The unit of measure for the budget amount.","readOnly":true,"type":"string"}}},"ErrorBase":{"description":"The details of the error.","properties":{"code":{"description":"A machine readable error code.","readOnly":true,"type":"string"},"message":{"description":"A human readable error message.","readOnly":true,"type":"string"},"target":{"description":"Indicates which property in the request is responsible for the error.","readOnly":true,"type":"string"}}},"ErrorDetails":{"description":"The details of the error.","properties":{"code":{"description":"A machine readable error code.","readOnly":true,"type":"string"},"details":{"description":"error details.","items":{"$ref":"#/components/schemas/ErrorBase"},"type":"array"},"message":{"description":"A human readable error message.","readOnly":true,"type":"string"},"target":{"description":"Indicates which property in the request is responsible for the error.","type":"string"}}},"ErrorResponse":{"description":"Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.","properties":{"error":{"$ref":"#/components/schemas/ErrorDetails"}},"type":"object"},"KpiProperties":{"description":"Each KPI must contain a 'type' and 'enabled' key.","properties":{"enabled":{"description":"show the KPI in the UI?","type":"boolean"},"id":{"description":"ID of resource related to metric (budget).","type":"string"},"type":{"description":"KPI type (Forecast, Budget).","enum":["Forecast","Budget"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"KpiTypeType"}}},"type":"object"},"Notification":{"description":"The notification associated with a budget.","properties":{"contactEmails":{"description":"Email addresses to send the budget notification to when the threshold is exceeded.","items":{"type":"string"},"maxItems":50,"minItems":1,"type":"array"},"contactGroups":{"description":"Action groups to send the budget notification to when the threshold is exceeded.","items":{"type":"string"},"maxItems":50,"minItems":0,"type":"array"},"contactRoles":{"description":"Contact roles to send the budget notification to when the threshold is exceeded.","items":{"type":"string"},"type":"array"},"enabled":{"description":"The notification is enabled or not.","type":"boolean"},"operator":{"description":"The comparison operator.","enum":["EqualTo","GreaterThan","GreaterThanOrEqualTo"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"NotificationOperatorType"}},"threshold":{"description":"Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.","format":"decimal","type":"number"}},"required":["enabled","operator","threshold","contactEmails"]},"Operation":{"description":"A Cost management REST API operation.","properties":{"display":{"description":"The object that represents the operation.","properties":{"operation":{"description":"Operation type: Read, write, delete, etc.","readOnly":true,"type":"string"},"provider":{"description":"Service provider: Microsoft.CostManagement.","readOnly":true,"type":"string"},"resource":{"description":"Resource on which the operation is performed: Dimensions, Query.","readOnly":true,"type":"string"}}},"name":{"description":"Operation name: {provider}/{resource}/{operation}.","readOnly":true,"type":"string"}},"type":"object"},"OperationListResult":{"description":"Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results.","properties":{"nextLink":{"description":"URL to get the next set of operation list results if there are any.","readOnly":true,"type":"string"},"value":{"description":"List of cost management operations supported by the Microsoft.CostManagement resource provider.","items":{"$ref":"#/components/schemas/Operation"},"readOnly":true,"type":"array"}}},"PivotProperties":{"description":"Each pivot must contain a 'type' and 'name'.","properties":{"name":{"description":"Data field to show in view.","type":"string"},"type":{"description":"Data type to show in view.","enum":["Dimension","TagKey"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"PivotTypeType"}}},"type":"object"},"ProxyResource":{"description":"The Resource model definition.","properties":{"eTag":{"description":"eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.","type":"string"},"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"name":{"description":"Resource name.","readOnly":true,"type":"string"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"x-ms-azure-resource":true},"ReportConfigAggregation":{"description":"The aggregation expression to be used in the report.","properties":{"function":{"description":"The name of the aggregation function to use.","enum":["Sum"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"FunctionType"}},"name":{"description":"The name of the column to aggregate.","type":"string"}},"required":["name","function"]},"ReportConfigColumnType":{"description":"The type of the column in the report.","enum":["Tag","Dimension"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ReportConfigColumnType"}},"ReportConfigComparisonExpression":{"description":"The comparison expression to be used in the report.","properties":{"name":{"description":"The name of the column to use in comparison.","type":"string"},"operator":{"description":"The operator to use for comparison.","enum":["In","Contains"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"OperatorType"}},"values":{"description":"Array of values to use for comparison","items":{"type":"string"},"minItems":1,"type":"array"}},"required":["name","operator","values"]},"ReportConfigDataset":{"description":"The definition of data present in the report.","properties":{"aggregation":{"additionalProperties":{"$ref":"#/components/schemas/ReportConfigAggregation"},"description":"Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.","maxItems":2,"type":"object"},"configuration":{"$ref":"#/components/schemas/ReportConfigDatasetConfiguration"},"filter":{"$ref":"#/components/schemas/ReportConfigFilter"},"granularity":{"description":"The granularity of rows in the report.","enum":["Daily","Monthly"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"GranularityType"}},"grouping":{"description":"Array of group by expression to use in the report. Report can have up to 2 group by clauses.","items":{"$ref":"#/components/schemas/ReportConfigGrouping"},"maxItems":2,"type":"array"},"sorting":{"description":"Array of order by expression to use in the report.","items":{"$ref":"#/components/schemas/ReportConfigSorting"},"type":"array"}}},"ReportConfigDatasetConfiguration":{"description":"The configuration of dataset in the report.","properties":{"columns":{"description":"Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.","items":{"type":"string"},"type":"array"}}},"ReportConfigDefinition":{"description":"The definition of a report config.","properties":{"dataset":{"$ref":"#/components/schemas/ReportConfigDataset"},"timePeriod":{"$ref":"#/components/schemas/ReportConfigTimePeriod"},"timeframe":{"description":"The time frame for pulling data for the report. If custom, then a specific time period must be provided.","enum":["WeekToDate","MonthToDate","YearToDate","Custom"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"TimeframeType"}},"type":{"description":"The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.","enum":["Usage"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ReportType"}}},"required":["type","timeframe"]},"ReportConfigFilter":{"description":"The filter expression to be used in the report.","properties":{"and":{"description":"The logical \"AND\" expression. Must have at least 2 items.","items":{"$ref":"#/components/schemas/ReportConfigFilter"},"minItems":2,"type":"array"},"dimension":{"$ref":"#/components/schemas/ReportConfigComparisonExpression"},"not":{"$ref":"#/components/schemas/ReportConfigFilter"},"or":{"description":"The logical \"OR\" expression. Must have at least 2 items.","items":{"$ref":"#/components/schemas/ReportConfigFilter"},"minItems":2,"type":"array"},"tag":{"$ref":"#/components/schemas/ReportConfigComparisonExpression"}}},"ReportConfigGrouping":{"description":"The group by expression to be used in the report.","properties":{"name":{"description":"The name of the column to group. This version supports subscription lowest possible grain.","type":"string"},"type":{"$ref":"#/components/schemas/ReportConfigColumnType"}},"required":["type","name"]},"ReportConfigSorting":{"description":"The order by expression to be used in the report.","properties":{"direction":{"description":"Direction of sort.","enum":["Ascending","Descending"],"type":"string"},"name":{"description":"The name of the column to sort.","type":"string"}},"required":["name"]},"ReportConfigTimePeriod":{"description":"The start and end date for pulling data for the report.","properties":{"from":{"description":"The start date to pull data from.","format":"date-time","type":"string"},"to":{"description":"The end date to pull data to.","format":"date-time","type":"string"}},"required":["from","to"]},"Resource":{"description":"The Resource model definition.","properties":{"id":{"description":"Resource Id.","readOnly":true,"type":"string"},"name":{"description":"Resource name.","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","readOnly":true,"type":"object"},"type":{"description":"Resource type.","readOnly":true,"type":"string"}},"x-ms-azure-resource":true},"Scope":{"description":"The Scope model definition","properties":{"childScope":{"$ref":"#/components/schemas/Scope"},"id":{"description":"Scope id","type":"string"},"name":{"description":"Scope name","type":"string"},"type":{"description":"Scope type","type":"string"}},"type":"object"},"View":{"allOf":[{"$ref":"#/components/schemas/ProxyResource"}],"description":"States and configurations of Cost Analysis.","properties":{"properties":{"$ref":"#/components/schemas/ViewProperties"}},"type":"object"},"ViewListResult":{"description":"Result of listing views. It contains a list of available views.","properties":{"nextLink":{"description":"The link (url) to the next page of results.","readOnly":true,"type":"string"},"value":{"description":"The list of views.","items":{"$ref":"#/components/schemas/View"},"readOnly":true,"type":"array"}},"type":"object"},"ViewProperties":{"description":"The properties of the view.","properties":{"accumulated":{"description":"Show costs accumulated over time.","enum":["true","false"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"AccumulatedType"}},"chart":{"description":"Chart type of the main view in Cost Analysis. Required.","enum":["Area","Line","StackedColumn","GroupedColumn","Table"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ChartType"}},"createdOn":{"description":"Date the user created this view.","format":"date-time","readOnly":true,"type":"string"},"displayName":{"description":"User input name of the view. Required.","type":"string"},"kpis":{"description":"List of KPIs to show in Cost Analysis UI.","items":{"$ref":"#/components/schemas/KpiProperties"},"type":"array"},"metric":{"description":"Metric to use when displaying costs.","enum":["ActualCost","AmortizedCost","AHUB"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"MetricType"}},"modifiedOn":{"description":"Date when the user last modified this view.","format":"date-time","readOnly":true,"type":"string"},"pivots":{"description":"Configuration of 3 sub-views in the Cost Analysis UI.","items":{"$ref":"#/components/schemas/PivotProperties"},"type":"array"},"query":{"$ref":"#/components/schemas/ReportConfigDefinition"},"scope":{"description":"Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.","type":"string"}},"type":"object"}}}}