-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR - Introduce new API version (2019-01-01) with new (Export-related …
…APIs) introduced (#5127) * introduce new stable version folder 2019-01-01 * new export examples * update (new) stable version 2019-01-01 with all operations introduced with preview folders (2018-12-01-preview) * export example files for enrollmentAccount * to be cont.. made fixes. pending - references to report definitions/files * no errors state. * introduced sorting propery for query dataset updated names of definitions that use 'report' to 'query' * update (new) stable version 2019-01-01 with operations - Dimensions, Query and Export * format cost-management file to remove spaces. * addressed pr review comment * replace ExportDefinition with QueryDefinition (Definition) * remove unused definition * updating readme files * readme updated to update tag package name per reviewers suggestion to fix check errors. * Based on ARM review introduced the use of 'scope' and abstracted out different scopes for API paths defined * ARM review based changes. * ARM review based change. Updated path to represent 'scope'. * updated query parameter scope to include management group path
- Loading branch information
1 parent
c8be36b
commit 279463b
Showing
53 changed files
with
6,332 additions
and
1 deletion.
There are no files selected for viewing
1,414 changes: 1,414 additions & 0 deletions
1,414
...anagement/resource-manager/Microsoft.CostManagement/stable/2019-01-01/costmanagement.json
Large diffs are not rendered by default.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
...ger/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"billingAccountId": "100" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", | ||
"name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", | ||
"type": "microsoft.CostManagement/dimensions", | ||
"properties": { | ||
"data": [], | ||
"total": 377, | ||
"category": "ResourceGroup", | ||
"usageStart": "2018-05-01T00:00:00-07:00", | ||
"usageEnd": "2018-05-31T00:00:00-07:00", | ||
"description": "Resource group", | ||
"filterEnabled": true, | ||
"groupingEnabled": true | ||
} | ||
}, | ||
{ | ||
"id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", | ||
"name": "dimensions_ResourceType_2018-05-01_2018-05-31", | ||
"type": "microsoft.CostManagement/dimensions", | ||
"properties": { | ||
"data": [], | ||
"total": 37, | ||
"category": "ResourceType", | ||
"usageStart": "2018-05-01T00:00:00-07:00", | ||
"usageEnd": "2018-05-31T00:00:00-07:00", | ||
"description": "Resource type", | ||
"filterEnabled": true, | ||
"groupingEnabled": true | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
...t.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListExpandAndTop.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"billingAccountId": "100", | ||
"$expand": "properties/data", | ||
"$top": 5 | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", | ||
"name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", | ||
"type": "microsoft.CostManagement/dimensions", | ||
"properties": { | ||
"data": [ | ||
"thoroetrg01", | ||
"default-notificationhubs-westus", | ||
"jedikeyvaultrg", | ||
"contosocodeflow8d4a", | ||
"noobaa" | ||
], | ||
"total": 377, | ||
"category": "ResourceGroup", | ||
"usageStart": "2018-05-01T00:00:00-07:00", | ||
"usageEnd": "2018-05-31T00:00:00-07:00", | ||
"description": "Resource group", | ||
"filterEnabled": true, | ||
"groupingEnabled": true | ||
} | ||
}, | ||
{ | ||
"id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31_5", | ||
"name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", | ||
"type": "microsoft.CostManagement/dimensions", | ||
"properties": { | ||
"data": [ | ||
"microsoft.automation/automationaccounts", | ||
"microsoft.databricks/workspaces", | ||
"microsoft.dbformysql/servers", | ||
"microsoft.containerregistry/registries", | ||
"microsoft.search/searchservices" | ||
], | ||
"total": 37, | ||
"category": "ResourceType", | ||
"usageStart": "2018-05-01T00:00:00-07:00", | ||
"usageEnd": "2018-05-31T00:00:00-07:00", | ||
"description": "Resource type", | ||
"filterEnabled": true, | ||
"groupingEnabled": true | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...oft.CostManagement/stable/2019-01-01/examples/BillingAccountDimensionsListWithFilter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"billingAccountId": "100", | ||
"$expand": "properties/data", | ||
"$top": 5, | ||
"$filter": "properties/category eq 'resourceId'" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.CostManagement/dimensions_ResourceId_2018-05-01_2018-05-31_5", | ||
"name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", | ||
"type": "microsoft.CostManagement/dimensions", | ||
"properties": { | ||
"data": [ | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", | ||
"/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", | ||
"/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" | ||
], | ||
"total": 1409, | ||
"category": "ResourceId", | ||
"usageStart": "2018-05-01T00:00:00-07:00", | ||
"usageEnd": "2018-05-31T00:00:00-07:00", | ||
"description": "Resource Id", | ||
"filterEnabled": true, | ||
"groupingEnabled": true, | ||
"nextLink": "http://management.azure.com/ccmapi/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
110 changes: 110 additions & 0 deletions
110
...urce-manager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQuery.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"billingAccountId": "70664866", | ||
"parameters":{ | ||
"type": "Usage", | ||
"timeframe": "MonthToDate", | ||
"dataset": { | ||
"granularity": "Daily", | ||
"filter":{ | ||
"and": [ | ||
{ | ||
"or":[ | ||
{ | ||
"dimension": { | ||
"name": "ResourceLocation", | ||
"operator": "In", | ||
"values": [ | ||
"East US", | ||
"West Europe" | ||
] | ||
} | ||
}, | ||
{ | ||
"tag": { | ||
"name": "Environment", | ||
"operator": "In", | ||
"values": [ | ||
"UAT", | ||
"Prod" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"dimension": { | ||
"name": "ResourceGroup", | ||
"operator": "In", | ||
"values": [ | ||
"API" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", | ||
"name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", | ||
"type": "microsoft.costmanagement/Query", | ||
"properties": { | ||
"nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2018-05-31&$skiptoken=AQAAAA%3D%3D", | ||
"columns": [ | ||
{ | ||
"name": "PreTaxCost", | ||
"type": "Number" | ||
}, | ||
{ | ||
"name": "ResourceGroup", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "UsageDate", | ||
"type": "Number" | ||
}, | ||
{ | ||
"name": "Currency", | ||
"type": "String" | ||
} | ||
], | ||
"rows": [ | ||
[ | ||
19.545363672276512, | ||
"JapanUnifia-Trial", | ||
20180331, | ||
"USD" | ||
], | ||
[ | ||
173.41979241290323, | ||
"RVIIOT-TRIAL", | ||
20180331, | ||
"USD" | ||
], | ||
[ | ||
20.359416562625452, | ||
"VSTSHOL-1595322048000", | ||
20180331, | ||
"USD" | ||
], | ||
[ | ||
0.16677720329728665, | ||
"gs-stms-dev", | ||
20180331, | ||
"USD" | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...ager/Microsoft.CostManagement/stable/2019-01-01/examples/BillingAccountQueryGrouping.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"billingAccountId": "70664866", | ||
"parameters":{ | ||
"type": "Usage", | ||
"timeframe": "TheLastMonth", | ||
"dataset": { | ||
"granularity": "None", | ||
"aggregation": { | ||
"totalCost": { | ||
"name": "PreTaxCost", | ||
"function": "Sum" | ||
} | ||
}, | ||
"grouping": [ | ||
{ | ||
"type": "Dimension", | ||
"name": "ResourceGroup" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", | ||
"name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", | ||
"type": "microsoft.costmanagement/Query", | ||
"properties": { | ||
"nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2018-05-31&$skiptoken=AQAAAA%3D%3D", | ||
"columns": [ | ||
{ | ||
"name": "PreTaxCost", | ||
"type": "Number" | ||
}, | ||
{ | ||
"name": "ResourceGroup", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "Currency", | ||
"type": "String" | ||
} | ||
], | ||
"rows": [ | ||
[ | ||
19.545363672276512, | ||
"JapanUnifia-Trial", | ||
"USD" | ||
], | ||
[ | ||
173.41979241290323, | ||
"RVIIOT-TRIAL", | ||
"USD" | ||
], | ||
[ | ||
20.359416562625452, | ||
"VSTSHOL-1595322048000", | ||
"USD" | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...manager/Microsoft.CostManagement/stable/2019-01-01/examples/DepartmentDimensionsList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-01", | ||
"billingAccountId": "100", | ||
"departmentId": "123" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceGroup_2018-05-01_2018-05-31", | ||
"name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", | ||
"type": "microsoft.CostManagement/dimensions", | ||
"properties": { | ||
"data": [], | ||
"total": 377, | ||
"category": "ResourceGroup", | ||
"usageStart": "2018-05-01T00:00:00-07:00", | ||
"usageEnd": "2018-05-31T00:00:00-07:00", | ||
"description": "Resource group", | ||
"filterEnabled": true, | ||
"groupingEnabled": true | ||
} | ||
}, | ||
{ | ||
"id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.CostManagement/dimensions_ResourceType_2018-05-01_2018-05-31", | ||
"name": "dimensions_ResourceType_2018-05-01_2018-05-31", | ||
"type": "microsoft.CostManagement/dimensions", | ||
"properties": { | ||
"data": [], | ||
"total": 37, | ||
"category": "ResourceType", | ||
"usageStart": "2018-05-01T00:00:00-07:00", | ||
"usageEnd": "2018-05-31T00:00:00-07:00", | ||
"description": "Resource type", | ||
"filterEnabled": true, | ||
"groupingEnabled": true | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.