Budgets interface
表示预算的接口。
方法
| create |
用于创建或更新预算的作。 如果需要,可以选择提供 eTag 作为并发控制的形式。 若要获取给定预算的最新 eTag,请在放置作之前执行 get作。 |
| delete(string, string, Budgets |
用于删除预算的作。 |
| get(string, string, Budgets |
按预算名称获取范围的预算。 |
| list(string, Budgets |
列出定义范围的所有预算。 |
方法详细信息
createOrUpdate(string, string, Budget, BudgetsCreateOrUpdateOptionalParams)
用于创建或更新预算的作。 如果需要,可以选择提供 eTag 作为并发控制的形式。 若要获取给定预算的最新 eTag,请在放置作之前执行 get作。
function createOrUpdate(scope: string, budgetName: string, parameters: Budget, options?: BudgetsCreateOrUpdateOptionalParams): Promise<Budget>
参数
- scope
-
string
与预算作关联的范围。 这包括订阅范围的“/subscriptions/{subscriptionId}/”、resourceGroup 范围的“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 计费帐户范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}','/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 作用域的 enrollmentAccountId},“/providers/Microsoft.Management/managementGroups/{managementGroupId}”,用于管理组范围, billingProfile 范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}','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}/”、resourceGroup 范围的“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 计费帐户范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}','/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 作用域的 enrollmentAccountId},“/providers/Microsoft.Management/managementGroups/{managementGroupId}”,用于管理组范围, billingProfile 范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}','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}/”、resourceGroup 范围的“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 计费帐户范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}','/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 作用域的 enrollmentAccountId},“/providers/Microsoft.Management/managementGroups/{managementGroupId}”,用于管理组范围, billingProfile 范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}','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}/”、resourceGroup 范围的“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 计费帐户范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}','/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 作用域的 enrollmentAccountId},“/providers/Microsoft.Management/managementGroups/{managementGroupId}”,用于管理组范围, billingProfile 范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}','providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- options
- BudgetsListOptionalParams
选项参数。