共用方式為


GenerateCostDetailsReport interface

代表 GenerateCostDetailsReport 的介面。

方法

beginCreateOperation(string, GenerateCostDetailsReportRequestDefinition, GenerateCostDetailsReportCreateOperationOptionalParams)

此 API 是所有先前版本使用量詳細資料 API 的取代專案。 要求產生所提供日期範圍的成本詳細資料包告、計費期間 (僅限企業客戶) 或特定範圍的發票識別碼。 要求報表的初始呼叫會傳回具有 'Location' 和 'Retry-After' 標頭的 202。 「位置」標頭會提供要輪詢的端點,以取得產生報表的結果。 'Retry-After' 提供在輪詢所產生報表之前要等候的持續時間。 輪詢報表作業的呼叫會在作業仍在進行中時,提供具有 「位置」標頭的 202 回應。 報表產生作業完成後,輪詢端點會提供 200 個回應,以及可供下載之報表 Blob () 的詳細資料。 輪詢回應本文中將會提供可供下載之檔案 () 的詳細資料。 若要瞭解成本詳細資料 (先前稱為使用量詳細資料,) 檔案中找到的欄位,請參閱 https://learn.microsoft.com/azure/cost-management-billing/automate/understand-usage-details-fields

beginCreateOperationAndWait(string, GenerateCostDetailsReportRequestDefinition, GenerateCostDetailsReportCreateOperationOptionalParams)

此 API 是所有先前版本使用量詳細資料 API 的取代專案。 要求產生所提供日期範圍的成本詳細資料包告、計費期間 (僅限企業客戶) 或特定範圍的發票識別碼。 要求報表的初始呼叫會傳回具有 'Location' 和 'Retry-After' 標頭的 202。 「位置」標頭會提供要輪詢的端點,以取得產生報表的結果。 'Retry-After' 提供在輪詢所產生報表之前要等候的持續時間。 輪詢報表作業的呼叫會在作業仍在進行中時,提供具有 「位置」標頭的 202 回應。 報表產生作業完成後,輪詢端點會提供 200 個回應,以及可供下載之報表 Blob () 的詳細資料。 輪詢回應本文中將會提供可供下載之檔案 () 的詳細資料。 若要瞭解成本詳細資料 (先前稱為使用量詳細資料,) 檔案中找到的欄位,請參閱 https://learn.microsoft.com/azure/cost-management-billing/automate/understand-usage-details-fields

beginGetOperationResults(string, string, GenerateCostDetailsReportGetOperationResultsOptionalParams)

取得指定作業的結果。 此連結會在 CostDetails 建立要求回應位置標頭中提供。

beginGetOperationResultsAndWait(string, string, GenerateCostDetailsReportGetOperationResultsOptionalParams)

取得指定作業的結果。 此連結會在 CostDetails 建立要求回應位置標頭中提供。

方法詳細資料

beginCreateOperation(string, GenerateCostDetailsReportRequestDefinition, GenerateCostDetailsReportCreateOperationOptionalParams)

此 API 是所有先前版本使用量詳細資料 API 的取代專案。 要求產生所提供日期範圍的成本詳細資料包告、計費期間 (僅限企業客戶) 或特定範圍的發票識別碼。 要求報表的初始呼叫會傳回具有 'Location' 和 'Retry-After' 標頭的 202。 「位置」標頭會提供要輪詢的端點,以取得產生報表的結果。 'Retry-After' 提供在輪詢所產生報表之前要等候的持續時間。 輪詢報表作業的呼叫會在作業仍在進行中時,提供具有 「位置」標頭的 202 回應。 報表產生作業完成後,輪詢端點會提供 200 個回應,以及可供下載之報表 Blob () 的詳細資料。 輪詢回應本文中將會提供可供下載之檔案 () 的詳細資料。 若要瞭解成本詳細資料 (先前稱為使用量詳細資料,) 檔案中找到的欄位,請參閱 https://learn.microsoft.com/azure/cost-management-billing/automate/understand-usage-details-fields

function beginCreateOperation(scope: string, parameters: GenerateCostDetailsReportRequestDefinition, options?: GenerateCostDetailsReportCreateOperationOptionalParams): Promise<SimplePollerLike<OperationState<CostDetailsOperationResults>, CostDetailsOperationResults>>

參數

scope

string

訂用帳戶、資源群組、計費帳戶或其他計費範圍的 ARM 資源識別碼。 如需詳細資訊,請參閱 https://aka.ms/costmgmt/scopes

parameters
GenerateCostDetailsReportRequestDefinition

提供給建立成本詳細資料作業的參數。

傳回

Promise<@azure/core-lro.SimplePollerLike<OperationState<CostDetailsOperationResults>, CostDetailsOperationResults>>

beginCreateOperationAndWait(string, GenerateCostDetailsReportRequestDefinition, GenerateCostDetailsReportCreateOperationOptionalParams)

此 API 是所有先前版本使用量詳細資料 API 的取代專案。 要求產生所提供日期範圍的成本詳細資料包告、計費期間 (僅限企業客戶) 或特定範圍的發票識別碼。 要求報表的初始呼叫會傳回具有 'Location' 和 'Retry-After' 標頭的 202。 「位置」標頭會提供要輪詢的端點,以取得產生報表的結果。 'Retry-After' 提供在輪詢所產生報表之前要等候的持續時間。 輪詢報表作業的呼叫會在作業仍在進行中時,提供具有 「位置」標頭的 202 回應。 報表產生作業完成後,輪詢端點會提供 200 個回應,以及可供下載之報表 Blob () 的詳細資料。 輪詢回應本文中將會提供可供下載之檔案 () 的詳細資料。 若要瞭解成本詳細資料 (先前稱為使用量詳細資料,) 檔案中找到的欄位,請參閱 https://learn.microsoft.com/azure/cost-management-billing/automate/understand-usage-details-fields

function beginCreateOperationAndWait(scope: string, parameters: GenerateCostDetailsReportRequestDefinition, options?: GenerateCostDetailsReportCreateOperationOptionalParams): Promise<CostDetailsOperationResults>

參數

scope

string

訂用帳戶、資源群組、計費帳戶或其他計費範圍的 ARM 資源識別碼。 如需詳細資訊,請參閱 https://aka.ms/costmgmt/scopes

parameters
GenerateCostDetailsReportRequestDefinition

提供給建立成本詳細資料作業的參數。

傳回

beginGetOperationResults(string, string, GenerateCostDetailsReportGetOperationResultsOptionalParams)

取得指定作業的結果。 此連結會在 CostDetails 建立要求回應位置標頭中提供。

function beginGetOperationResults(scope: string, operationId: string, options?: GenerateCostDetailsReportGetOperationResultsOptionalParams): Promise<SimplePollerLike<OperationState<CostDetailsOperationResults>, CostDetailsOperationResults>>

參數

scope

string

訂用帳戶、資源群組、計費帳戶或其他計費範圍的 ARM 資源識別碼。 如需詳細資訊,請參閱 https://aka.ms/costmgmt/scopes

operationId

string

目標作業識別碼。

傳回

Promise<@azure/core-lro.SimplePollerLike<OperationState<CostDetailsOperationResults>, CostDetailsOperationResults>>

beginGetOperationResultsAndWait(string, string, GenerateCostDetailsReportGetOperationResultsOptionalParams)

取得指定作業的結果。 此連結會在 CostDetails 建立要求回應位置標頭中提供。

function beginGetOperationResultsAndWait(scope: string, operationId: string, options?: GenerateCostDetailsReportGetOperationResultsOptionalParams): Promise<CostDetailsOperationResults>

參數

scope

string

訂用帳戶、資源群組、計費帳戶或其他計費範圍的 ARM 資源識別碼。 如需詳細資訊,請參閱 https://aka.ms/costmgmt/scopes

operationId

string

目標作業識別碼。

傳回