-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
9,189 additions
and
1 deletion.
There are no files selected for viewing
1,478 changes: 1,478 additions & 0 deletions
1,478
...anagement/resource-manager/Microsoft.CostManagement/stable/2019-11-01/costmanagement.json
Large diffs are not rendered by default.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
...ger/Microsoft.CostManagement/stable/2019-11-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,45 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01", | ||
"billingAccountId": "100", | ||
"scope": "providers/Microsoft.Billing/billingAccounts/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 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...t.CostManagement/stable/2019-11-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,59 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01", | ||
"billingAccountId": "100", | ||
"$expand": "properties/data", | ||
"$top": 5, | ||
"scope": "providers/Microsoft.Billing/billingAccounts/100" | ||
}, | ||
"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 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...oft.CostManagement/stable/2019-11-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,40 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01", | ||
"billingAccountId": "100", | ||
"$expand": "properties/data", | ||
"$top": 5, | ||
"$filter": "properties/category eq 'resourceId'", | ||
"scope": "providers/Microsoft.Billing/billingAccounts/100" | ||
}, | ||
"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/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.CostManagement/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-10-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
107 changes: 107 additions & 0 deletions
107
...urce-manager/Microsoft.CostManagement/stable/2019-11-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,107 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01", | ||
"billingAccountId": "70664866", | ||
"scope": "providers/Microsoft.Billing/billingAccounts/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": { | ||
"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=2019-10-01&$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" | ||
] | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...ager/Microsoft.CostManagement/stable/2019-11-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,69 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01", | ||
"billingAccountId": "70664866", | ||
"scope": "providers/Microsoft.Billing/billingAccounts/70664866", | ||
"parameters": { | ||
"type": "Usage", | ||
"timeframe": "TheLastMonth", | ||
"dataset": { | ||
"granularity": "None", | ||
"aggregation": { | ||
"totalCost": { | ||
"name": "PreTaxCost", | ||
"function": "Sum" | ||
} | ||
}, | ||
"grouping": [ | ||
{ | ||
"type": "Dimension", | ||
"name": "ResourceGroup" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"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=2019-10-01&$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" | ||
] | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...manager/Microsoft.CostManagement/stable/2019-11-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,46 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-10-01", | ||
"billingAccountId": "100", | ||
"departmentId": "123", | ||
"scope": "providers/Microsoft.Billing/billingAccounts/100/departments/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.