共用方式為


GenerateCostDetailsReportRequestDefinition interface

成本詳細報表的定義。

屬性

billingPeriod

此參數只能供 Enterprise 合約客戶使用。 使用 YearMonth(例如202008) 格式。 此參數不能與 invoiceId 或 timePeriod 參數搭配使用。 如果在要求本文中未提供 timePeriod、invoiceId 或 billingPeriod 參數,API 會傳回當月的成本。

invoiceId

此參數只能由Microsoft客戶合約客戶使用。 此外,它只能用於帳單配置檔或客戶範圍。 此參數不能與 billingPeriod 或 timePeriod 參數搭配使用。 如果在要求本文中未提供 timePeriod、invoiceId 或 billingPeriod 參數,API 會傳回當月的成本。

metric

詳細報表的類型。 預設會提供 ActualCost

timePeriod

要求報表之成本詳細數據的特定日期範圍。 此參數不能與 invoiceId 或 billingPeriod 參數搭配使用。 如果在要求本文中未提供 timePeriod、invoiceId 或 billingPeriod 參數,API 會傳回當月的成本。 API 只允許提取 1 個月或更少的數據,且不超過 13 個月。 如果未提供 timePeriod 或 billingPeriod 或 invoiceId,則 API 預設為開啟的月份時間週期

屬性詳細資料

billingPeriod

此參數只能供 Enterprise 合約客戶使用。 使用 YearMonth(例如202008) 格式。 此參數不能與 invoiceId 或 timePeriod 參數搭配使用。 如果在要求本文中未提供 timePeriod、invoiceId 或 billingPeriod 參數,API 會傳回當月的成本。

billingPeriod?: string

屬性值

string

invoiceId

此參數只能由Microsoft客戶合約客戶使用。 此外,它只能用於帳單配置檔或客戶範圍。 此參數不能與 billingPeriod 或 timePeriod 參數搭配使用。 如果在要求本文中未提供 timePeriod、invoiceId 或 billingPeriod 參數,API 會傳回當月的成本。

invoiceId?: string

屬性值

string

metric

詳細報表的類型。 預設會提供 ActualCost

metric?: string

屬性值

string

timePeriod

要求報表之成本詳細數據的特定日期範圍。 此參數不能與 invoiceId 或 billingPeriod 參數搭配使用。 如果在要求本文中未提供 timePeriod、invoiceId 或 billingPeriod 參數,API 會傳回當月的成本。 API 只允許提取 1 個月或更少的數據,且不超過 13 個月。 如果未提供 timePeriod 或 billingPeriod 或 invoiceId,則 API 預設為開啟的月份時間週期

timePeriod?: CostDetailsTimePeriod

屬性值