Microsoft.Billing (preview:2019-03-01)

2025/10/30 • 36 new, 36 deleted methods

Dimensions_ListByBillingAccount (new)
Description Lists the dimensions by billingAccount Id.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
billingAccountId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListByEnrollmentAccount (new)
Description Lists the dimensions by Enrollment Account Id.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListByDepartment (new)
Description Lists the dimensions by Department Id.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListByManagementGroup (new)
Description Lists the dimensions by managementGroup Id.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
managementGroupId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListBySubscription (new)
Description Lists the dimensions by subscription Id.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
subscriptionId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageBySubscription (new)
Description Query the usage data for subscriptionId.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
subscriptionId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageBySubscription (new)
Description Forecast the usage data for subscriptionId.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
subscriptionId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListByResourceGroup (new)
Description Lists the dimensions by resource group Id.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByResourceGroup (new)
Description Query the usage data for subscriptionId and resource group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByResourceGroup (new)
Description Forecast the usage data for subscriptionId and resource group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByBillingAccount (new)
Description Query the usage data for billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
billingAccountId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByBillingAccount (new)
Description Forecast the usage data for billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
billingAccountId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByEnrollmentAccount (new)
Description Query the usage data for an enrollment account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByEnrollmentAccount (new)
Description Forecast the usage data for an enrollment account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByDepartment (new)
Description Query the usage data for department.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByDepartment (new)
Description Forecast the usage data for department.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByManagementGroup (new)
Description Lists the usage data for management group.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
managementGroupId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByManagementGroup (new)
Description Lists the usage data for management group.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
managementGroupId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByExternalBillingAccount (new)
Description Forecast the usage data for external billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}/Forecast
{
api-version: string ,
externalBillingAccountName: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_List (new)
Description List all cloud connector definitions
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/cloudConnectors
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_Get (new)
Description Get a cloud connector definition
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
{
api-version: string ,
connectorName: string ,
$expand: string ,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_CreateOrUpdate (new)
Description Create or update a cloud connector definition
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
{
api-version: string ,
connectorName: string ,
connector:
{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_Delete (new)
Description Delete a cloud connector definition
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
{
api-version: string ,
connectorName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_Update (new)
Description Update a cloud connector definition
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
{
api-version: string ,
connectorName: string ,
connector:
{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_CheckEligibility (new)
Description Check if a connector already exists and return it's definition
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/checkConnectorEligibility
{
api-version: string ,
connectorCredentials:
{
kind: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalBillingAccount_List (new)
Description List all ExternalBillingAccount definitions
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalBillingAccounts
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
connectorId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalBillingAccount_Get (new)
Description Get a ExternalBillingAccount definition
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}
{
api-version: string ,
externalBillingAccountName: string ,
$expand: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
connectorId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_ListByExternalBillingAccount (new)
Description List all ExternalSubscriptions by ExternalBillingAccount definitions
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}/externalSubscriptions
{
api-version: string ,
externalBillingAccountName: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
managementGroupId: string ,
providerBillingAccountId: string ,
providerAccountId: string ,
externalBillingAccountId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_List (new)
Description List all ExternalSubscription definitions
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalSubscriptions
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
managementGroupId: string ,
providerBillingAccountId: string ,
providerAccountId: string ,
externalBillingAccountId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_Get (new)
Description Get an ExternalSubscription definition
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}
{
api-version: string ,
externalSubscriptionName: string ,
$expand: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
managementGroupId: string ,
providerBillingAccountId: string ,
providerAccountId: string ,
externalBillingAccountId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_ListByManagementGroup (new)
Description List all ExternalSubscription definitions for Management Group
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/externalSubscriptions
{
api-version: string ,
managementGroupId: string ,
$recurse: boolean ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
managementGroupId: string ,
providerBillingAccountId: string ,
providerAccountId: string ,
externalBillingAccountId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_UpdateManagementGroup (new)
Description Updates the management group of an ExternalSubscription
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}
{
api-version: string ,
managementGroupId: string ,
externalSubscriptionName: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ShowbackRules_List (new)
Description Get list all Showback Rules.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/showbackRules
{
api-version: string ,
billingAccountId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
status: enum ,
version: integer ,
scopes:
[
{
id: string ,
name: string ,
type: string ,
childScope: string ,
}
,
]
,
creationTime: string ,
deprecationTime: string ,
modificationTime: string ,
ruleType: enum ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ShowbackRule_GetBillingAccountId (new)
Description Gets the showback rule by rule name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/showbackRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
status: enum ,
version: integer ,
scopes:
[
{
id: string ,
name: string ,
type: string ,
childScope: string ,
}
,
]
,
creationTime: string ,
deprecationTime: string ,
modificationTime: string ,
ruleType: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ShowbackRule_CreateUpdateRule (new)
Description Create/Update showback rule for billing account.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/showbackRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
showbackRule:
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
status: enum ,
version: integer ,
scopes:
[
{
id: string ,
name: string ,
type: string ,
childScope: string ,
}
,
]
,
creationTime: string ,
deprecationTime: string ,
modificationTime: string ,
ruleType: enum ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
status: enum ,
version: integer ,
scopes:
[
{
id: string ,
name: string ,
type: string ,
childScope: string ,
}
,
]
,
creationTime: string ,
deprecationTime: string ,
modificationTime: string ,
ruleType: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Operations_List (new)
Description Lists all of the available consumption REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListByBillingAccount (removed)
Description Lists the dimensions by billingAccount Id.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
billingAccountId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListByEnrollmentAccount (removed)
Description Lists the dimensions by Enrollment Account Id.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListByDepartment (removed)
Description Lists the dimensions by Department Id.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListByManagementGroup (removed)
Description Lists the dimensions by managementGroup Id.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
managementGroupId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListBySubscription (removed)
Description Lists the dimensions by subscription Id.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
subscriptionId: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageBySubscription (removed)
Description Query the usage data for subscriptionId.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
subscriptionId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageBySubscription (removed)
Description Forecast the usage data for subscriptionId.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
subscriptionId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Dimensions_ListByResourceGroup (removed)
Description Lists the dimensions by resource group Id.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/dimensions
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByResourceGroup (removed)
Description Query the usage data for subscriptionId and resource group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByResourceGroup (removed)
Description Forecast the usage data for subscriptionId and resource group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByBillingAccount (removed)
Description Query the usage data for billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
billingAccountId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByBillingAccount (removed)
Description Forecast the usage data for billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
billingAccountId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByEnrollmentAccount (removed)
Description Query the usage data for an enrollment account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByEnrollmentAccount (removed)
Description Forecast the usage data for an enrollment account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByDepartment (removed)
Description Query the usage data for department.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByDepartment (removed)
Description Forecast the usage data for department.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Query_UsageByManagementGroup (removed)
Description Lists the usage data for management group.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
managementGroupId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByManagementGroup (removed)
Description Lists the usage data for management group.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/Forecast
{
api-version: string ,
managementGroupId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Forecast_UsageByExternalBillingAccount (removed)
Description Forecast the usage data for external billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}/Forecast
{
api-version: string ,
externalBillingAccountName: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_List (removed)
Description List all cloud connector definitions
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/cloudConnectors
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_Get (removed)
Description Get a cloud connector definition
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
{
api-version: string ,
connectorName: string ,
$expand: string ,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_CreateOrUpdate (removed)
Description Create or update a cloud connector definition
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
{
api-version: string ,
connectorName: string ,
connector:
{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_Delete (removed)
Description Delete a cloud connector definition
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
{
api-version: string ,
connectorName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
CloudConnector_Update (removed)
Description Update a cloud connector definition
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
{
api-version: string ,
connectorName: string ,
connector:
{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_CheckEligibility (removed)
Description Check if a connector already exists and return it's definition
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/checkConnectorEligibility
{
api-version: string ,
connectorCredentials:
{
kind: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
providerBillingAccountDisplayName: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
externalBillingAccountId: string ,
defaultManagementGroupId: string ,
subscriptionId: string ,
billingModel: enum ,
daysTrialRemaining: integer ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalBillingAccount_List (removed)
Description List all ExternalBillingAccount definitions
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalBillingAccounts
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
connectorId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalBillingAccount_Get (removed)
Description Get a ExternalBillingAccount definition
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}
{
api-version: string ,
externalBillingAccountName: string ,
$expand: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
providerBillingAccountId: string ,
connectorId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_ListByExternalBillingAccount (removed)
Description List all ExternalSubscriptions by ExternalBillingAccount definitions
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}/externalSubscriptions
{
api-version: string ,
externalBillingAccountName: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
managementGroupId: string ,
providerBillingAccountId: string ,
providerAccountId: string ,
externalBillingAccountId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_List (removed)
Description List all ExternalSubscription definitions
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalSubscriptions
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
managementGroupId: string ,
providerBillingAccountId: string ,
providerAccountId: string ,
externalBillingAccountId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_Get (removed)
Description Get an ExternalSubscription definition
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}
{
api-version: string ,
externalSubscriptionName: string ,
$expand: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
managementGroupId: string ,
providerBillingAccountId: string ,
providerAccountId: string ,
externalBillingAccountId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_ListByManagementGroup (removed)
Description List all ExternalSubscription definitions for Management Group
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/externalSubscriptions
{
api-version: string ,
managementGroupId: string ,
$recurse: boolean ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
kind: string ,
properties:
{
displayName: string ,
managementGroupId: string ,
providerBillingAccountId: string ,
providerAccountId: string ,
externalBillingAccountId: string ,
collectionInfo:
{
lastChecked: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorInnerMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ExternalSubscription_UpdateManagementGroup (removed)
Description Updates the management group of an ExternalSubscription
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}
{
api-version: string ,
managementGroupId: string ,
externalSubscriptionName: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ShowbackRules_List (removed)
Description Get list all Showback Rules.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/showbackRules
{
api-version: string ,
billingAccountId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
status: enum ,
version: integer ,
scopes:
[
{
id: string ,
name: string ,
type: string ,
childScope: string ,
}
,
]
,
creationTime: string ,
deprecationTime: string ,
modificationTime: string ,
ruleType: enum ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ShowbackRule_GetBillingAccountId (removed)
Description Gets the showback rule by rule name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/showbackRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
status: enum ,
version: integer ,
scopes:
[
{
id: string ,
name: string ,
type: string ,
childScope: string ,
}
,
]
,
creationTime: string ,
deprecationTime: string ,
modificationTime: string ,
ruleType: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ShowbackRule_CreateUpdateRule (removed)
Description Create/Update showback rule for billing account.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/showbackRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
showbackRule:
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
status: enum ,
version: integer ,
scopes:
[
{
id: string ,
name: string ,
type: string ,
childScope: string ,
}
,
]
,
creationTime: string ,
deprecationTime: string ,
modificationTime: string ,
ruleType: enum ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
status: enum ,
version: integer ,
scopes:
[
{
id: string ,
name: string ,
type: string ,
childScope: string ,
}
,
]
,
creationTime: string ,
deprecationTime: string ,
modificationTime: string ,
ruleType: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Operations_List (removed)
Description Lists all of the available consumption REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}