Budgets interface
代表預算的介面。
方法
create |
建立或更新預算的作業。 視需要做為並行控制形式,您可以選擇提供 eTag。 若要取得指定預算的最新 eTag,請在放置作業之前執行取得作業。 |
delete(string, string, Budgets |
要刪除預算的作業。 |
get(string, string, Budgets |
依預算名稱取得範圍的預算。 |
list(string, Budgets |
列出定義範圍的所有預算。 |
方法詳細資料
createOrUpdate(string, string, Budget, BudgetsCreateOrUpdateOptionalParams)
建立或更新預算的作業。 視需要做為並行控制形式,您可以選擇提供 eTag。 若要取得指定預算的最新 eTag,請在放置作業之前執行取得作業。
function createOrUpdate(scope: string, budgetName: string, parameters: Budget, options?: BudgetsCreateOrUpdateOptionalParams): Promise<Budget>
參數
- scope
-
string
與預算作業相關聯的範圍。 這包括訂用帳戶範圍的 '/subscriptions/{subscriptionId}/' 、'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' 資源群組範圍、 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 範圍的 enrollmentAccount 範圍、管理群組範圍的 '/providers/Microsoft.Management/managementGroups/{managementGroupId}' '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- budgetName
-
string
預算名稱。
- parameters
- Budget
提供給建立預算作業的參數。
選項參數。
傳回
Promise<Budget>
delete(string, string, BudgetsDeleteOptionalParams)
要刪除預算的作業。
function delete(scope: string, budgetName: string, options?: BudgetsDeleteOptionalParams): Promise<void>
參數
- scope
-
string
與預算作業相關聯的範圍。 這包括訂用帳戶範圍的 '/subscriptions/{subscriptionId}/' 、'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' 資源群組範圍、 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 範圍的 enrollmentAccount 範圍、管理群組範圍的 '/providers/Microsoft.Management/managementGroups/{managementGroupId}' '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- budgetName
-
string
預算名稱。
- options
- BudgetsDeleteOptionalParams
選項參數。
傳回
Promise<void>
get(string, string, BudgetsGetOptionalParams)
依預算名稱取得範圍的預算。
function get(scope: string, budgetName: string, options?: BudgetsGetOptionalParams): Promise<Budget>
參數
- scope
-
string
與預算作業相關聯的範圍。 這包括訂用帳戶範圍的 '/subscriptions/{subscriptionId}/' 、'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' 資源群組範圍、 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 範圍的 enrollmentAccount 範圍、管理群組範圍的 '/providers/Microsoft.Management/managementGroups/{managementGroupId}' '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- budgetName
-
string
預算名稱。
- options
- BudgetsGetOptionalParams
選項參數。
傳回
Promise<Budget>
list(string, BudgetsListOptionalParams)
列出定義範圍的所有預算。
function list(scope: string, options?: BudgetsListOptionalParams): PagedAsyncIterableIterator<Budget, Budget[], PageSettings>
參數
- scope
-
string
與預算作業相關聯的範圍。 這包括訂用帳戶範圍的 '/subscriptions/{subscriptionId}/' 、'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' 資源群組範圍、 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 範圍的 enrollmentAccount 範圍、管理群組範圍的 '/providers/Microsoft.Management/managementGroups/{managementGroupId}' '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- options
- BudgetsListOptionalParams
選項參數。