Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - Introduce new API version (2019-01-01) with new (Export-related APIs) introduced #5127

Merged
merged 20 commits into from
Feb 4, 2019
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
632330c
introduce new stable version folder 2019-01-01
shbhamsft Jan 30, 2019
df98b6f
new export examples
shbhamsft Jan 30, 2019
aa94ff1
update (new) stable version 2019-01-01 with all operations introduced…
shbhamsft Jan 30, 2019
a74585a
export example files for enrollmentAccount
shbhamsft Jan 31, 2019
6070298
to be cont.. made fixes.
shbhamsft Jan 31, 2019
0a325cd
no errors state.
shbhamsft Jan 31, 2019
dd8a37f
introduced sorting propery for query dataset
shbhamsft Jan 31, 2019
a12eb18
update (new) stable version 2019-01-01 with operations - Dimensions, …
shbhamsft Jan 30, 2019
02de3fd
Merge branch 'export2' of https://github.com/shbha/azure-rest-api-spe…
shbhamsft Jan 31, 2019
4a51b62
format cost-management file to remove spaces.
shbhamsft Jan 31, 2019
6e7e280
addressed pr review comment
shbhamsft Jan 31, 2019
5b6fdd2
replace ExportDefinition with QueryDefinition (Definition)
shbhamsft Jan 31, 2019
2f59905
remove unused definition
shbhamsft Jan 31, 2019
3a72df2
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
shbhamsft Jan 31, 2019
fe4378e
updating readme files
shbhamsft Feb 1, 2019
1fd359a
readme updated to update tag package name per reviewers suggestion to…
shbhamsft Feb 1, 2019
8b2e7a5
Based on ARM review introduced the use of 'scope' and abstracted out …
shbhamsft Feb 2, 2019
fe55f18
ARM review based changes.
shbhamsft Feb 2, 2019
97b0e06
ARM review based change. Updated path to represent 'scope'.
shbhamsft Feb 2, 2019
526b092
updated query parameter scope to include management group path
shbhamsft Feb 4, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

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.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31",
"name": "dimensions_ResourceGroup_2018-05-01_2018-05-31",
"type": "microsoft.consumption/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.consumption/dimensions_ResourceType_2018-05-01_2018-05-31",
"name": "dimensions_ResourceType_2018-05-01_2018-05-31",
"type": "microsoft.consumption/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
}
}
]
}
}
}
}
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.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5",
"name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5",
"type": "microsoft.consumption/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.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5",
"name": "dimensions_ResourceType_2018-05-01_2018-05-31_5",
"type": "microsoft.consumption/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
}
}
]
}
}
}
}
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.consumption/dimensions_ResourceId_2018-05-01_2018-05-31_5",
"name": "dimensions_ResourceId_2018-05-01_2018-05-31_5",
"type": "microsoft.consumption/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.Consumption/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2019-01-01&$expand=properties/data&$skiptoken=AQAAAA%3D%3D"
}
}
]
}
}
}
}
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"
]
]
}
}
]
}
}
}
}
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"
]
]
}
}
]
}
}
}
}
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.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31",
"name": "dimensions_ResourceGroup_2018-05-01_2018-05-31",
"type": "microsoft.consumption/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.consumption/dimensions_ResourceType_2018-05-01_2018-05-31",
"name": "dimensions_ResourceType_2018-05-01_2018-05-31",
"type": "microsoft.consumption/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
}
}
]
}
}
}
}
Loading