AccountCostControlsOperations interface

Interface representing a AccountCostControls operations.

Properties

checkExistence

Checks whether an account-owned cost control exists without returning its body.

createOrUpdate

Creates or replaces an account-owned cost control. The definition may contain at most one notification, including disabled notifications, and one Block action. Exceeding either limit returns HTTP 400 without persisting the request.

delete

Deletes an account-owned cost control.

get

Gets an account-owned cost control and its representation entity tag.

list

Lists account-owned cost controls.

update

Updates an account-owned cost control. Omitting properties preserves all existing cost control properties; setting properties to null or an empty object ({}) clears them all. A non-empty properties object updates selected fields, preserving omitted fields; a successful update that leaves the cost control unchanged retains its entity tag. The complete merged result may contain at most one notification, including disabled notifications, and one Block action. Exceeding either limit returns HTTP 400 without changing the stored definition.

Property Details

checkExistence

Checks whether an account-owned cost control exists without returning its body.

checkExistence: (resourceGroupName: string, accountName: string, costControlName: string, options?: AccountCostControlsCheckExistenceOptionalParams) => Promise<void>

Property Value

(resourceGroupName: string, accountName: string, costControlName: string, options?: AccountCostControlsCheckExistenceOptionalParams) => Promise<void>

createOrUpdate

Creates or replaces an account-owned cost control. The definition may contain at most one notification, including disabled notifications, and one Block action. Exceeding either limit returns HTTP 400 without persisting the request.

createOrUpdate: (resourceGroupName: string, accountName: string, costControlName: string, resource: AccountCostControl, options?: AccountCostControlsCreateOrUpdateOptionalParams) => Promise<AccountCostControl>

Property Value

(resourceGroupName: string, accountName: string, costControlName: string, resource: AccountCostControl, options?: AccountCostControlsCreateOrUpdateOptionalParams) => Promise<AccountCostControl>

delete

Deletes an account-owned cost control.

delete: (resourceGroupName: string, accountName: string, costControlName: string, options?: AccountCostControlsDeleteOptionalParams) => Promise<void>

Property Value

(resourceGroupName: string, accountName: string, costControlName: string, options?: AccountCostControlsDeleteOptionalParams) => Promise<void>

get

Gets an account-owned cost control and its representation entity tag.

get: (resourceGroupName: string, accountName: string, costControlName: string, options?: AccountCostControlsGetOptionalParams) => Promise<AccountCostControl>

Property Value

(resourceGroupName: string, accountName: string, costControlName: string, options?: AccountCostControlsGetOptionalParams) => Promise<AccountCostControl>

list

Lists account-owned cost controls.

list: (resourceGroupName: string, accountName: string, options?: AccountCostControlsListOptionalParams) => PagedAsyncIterableIterator<AccountCostControl, AccountCostControl[], PageSettings>

Property Value

(resourceGroupName: string, accountName: string, options?: AccountCostControlsListOptionalParams) => PagedAsyncIterableIterator<AccountCostControl, AccountCostControl[], PageSettings>

update

Updates an account-owned cost control. Omitting properties preserves all existing cost control properties; setting properties to null or an empty object ({}) clears them all. A non-empty properties object updates selected fields, preserving omitted fields; a successful update that leaves the cost control unchanged retains its entity tag. The complete merged result may contain at most one notification, including disabled notifications, and one Block action. Exceeding either limit returns HTTP 400 without changing the stored definition.

update: (resourceGroupName: string, accountName: string, costControlName: string, properties: CostControlPatch, options?: AccountCostControlsUpdateOptionalParams) => Promise<AccountCostControl>

Property Value

(resourceGroupName: string, accountName: string, costControlName: string, properties: CostControlPatch, options?: AccountCostControlsUpdateOptionalParams) => Promise<AccountCostControl>