Freigeben über


Budgets interface

Schnittstelle, die ein Budgets darstellt.

Methoden

createOrUpdate(string, string, Budget, BudgetsCreateOrUpdateOptionalParams)

Der Vorgang zum Erstellen oder Aktualisieren eines Budgets. Sie können optional ein eTag bereitstellen, wenn es sich um eine Form des Parallelitätssteuerelements handelt. Um das neueste eTag für ein bestimmtes Budget zu erhalten, führen Sie einen Get-Vorgang vor dem Put-Vorgang aus.

delete(string, string, BudgetsDeleteOptionalParams)

Der Vorgang zum Löschen eines Budgets.

get(string, string, BudgetsGetOptionalParams)

Ruft das Budget für den Bereich anhand des Budgetnamens ab.

list(string, BudgetsListOptionalParams)

Listet alle Budgets für den definierten Bereich auf.

Details zur Methode

createOrUpdate(string, string, Budget, BudgetsCreateOrUpdateOptionalParams)

Der Vorgang zum Erstellen oder Aktualisieren eines Budgets. Sie können optional ein eTag bereitstellen, wenn es sich um eine Form des Parallelitätssteuerelements handelt. Um das neueste eTag für ein bestimmtes Budget zu erhalten, führen Sie einen Get-Vorgang vor dem Put-Vorgang aus.

function createOrUpdate(scope: string, budgetName: string, parameters: Budget, options?: BudgetsCreateOrUpdateOptionalParams): Promise<Budget>

Parameter

scope

string

Der Bereich, der budgetbezogenen Vorgängen zugeordnet ist. Dies schließt "/subscriptions/{subscriptionId}/" für den Abonnementbereich ein, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' für den Ressourcengruppenbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' für Abrechnungskontobereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' für Abteilungsbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId}' für EnrollmentAccount-Bereich, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' für den Verwaltungsgruppenbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' für billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' für invoiceSection-Bereich.

budgetName

string

Budgetname.

parameters
Budget

Parameter, die für den Vorgang "Budget erstellen" bereitgestellt werden.

options
BudgetsCreateOrUpdateOptionalParams

Die Optionsparameter.

Gibt zurück

Promise<Budget>

delete(string, string, BudgetsDeleteOptionalParams)

Der Vorgang zum Löschen eines Budgets.

function delete(scope: string, budgetName: string, options?: BudgetsDeleteOptionalParams): Promise<void>

Parameter

scope

string

Der Bereich, der budgetbezogenen Vorgängen zugeordnet ist. Dies schließt "/subscriptions/{subscriptionId}/" für den Abonnementbereich ein, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' für den Ressourcengruppenbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' für Abrechnungskontobereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' für Abteilungsbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId}' für EnrollmentAccount-Bereich, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' für den Verwaltungsgruppenbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' für billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' für invoiceSection-Bereich.

budgetName

string

Budgetname.

options
BudgetsDeleteOptionalParams

Die Optionsparameter.

Gibt zurück

Promise<void>

get(string, string, BudgetsGetOptionalParams)

Ruft das Budget für den Bereich anhand des Budgetnamens ab.

function get(scope: string, budgetName: string, options?: BudgetsGetOptionalParams): Promise<Budget>

Parameter

scope

string

Der Bereich, der budgetbezogenen Vorgängen zugeordnet ist. Dies schließt "/subscriptions/{subscriptionId}/" für den Abonnementbereich ein, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' für den Ressourcengruppenbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' für Abrechnungskontobereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' für Abteilungsbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId}' für EnrollmentAccount-Bereich, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' für den Verwaltungsgruppenbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' für billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' für invoiceSection-Bereich.

budgetName

string

Budgetname.

options
BudgetsGetOptionalParams

Die Optionsparameter.

Gibt zurück

Promise<Budget>

list(string, BudgetsListOptionalParams)

Listet alle Budgets für den definierten Bereich auf.

function list(scope: string, options?: BudgetsListOptionalParams): PagedAsyncIterableIterator<Budget, Budget[], PageSettings>

Parameter

scope

string

Der Bereich, der budgetbezogenen Vorgängen zugeordnet ist. Dies schließt "/subscriptions/{subscriptionId}/" für den Abonnementbereich ein, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' für den Ressourcengruppenbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' für Abrechnungskontobereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' für Abteilungsbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{ enrollmentAccountId}' für EnrollmentAccount-Bereich, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' für den Verwaltungsgruppenbereich, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' für billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' für invoiceSection-Bereich.

options
BudgetsListOptionalParams

Die Optionsparameter.

Gibt zurück