GenerateCostDetailsReportRequestDefinition interface
成本詳細報表的定義。
屬性
billing |
此參數只能由 Enterprise 合約客戶使用。 使用 YearMonth (,例如202008) 格式。 此參數不能與 invoiceId 或 timePeriod 參數一起使用。 如果在要求本文中未提供 timePeriod、invoiceId 或 billingPeriod 參數,API 將會傳回目前月份的成本。 |
invoice |
此參數只能由 Microsoft 客戶合約客戶使用。 此外,其只能用於帳單設定檔或客戶範圍。 此參數不能與 billingPeriod 或 timePeriod 參數一起使用。 如果在要求本文中未提供 timePeriod、invoiceId 或 billingPeriod 參數,API 將會傳回目前月份的成本。 |
metric | 詳細報表的類型。 預設會提供 ActualCost |
time |
針對報表要求之成本詳細資料的特定日期範圍。 此參數不能與 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