IncrementResourceUsage_API

Description

Parameters

Passed

Returned

This method increments a resources usage of a specified subscription by a specified amount. The resource usage is increased or decreased depending on whether the delta amount is positive or negative.

3 or more

1

Syntax

Copy
ErrorMessage DUMMYGATE::IncrementResourceUsage_API(

  Int SubscriptionID;

  Int ResourceID_1;

  Double DeltaAmount_1;

  ...

  Int ResourceID_N;

  Double DeltaAmount_N.

)

returns

Copy
Str ErrorMessage – message after resource usage has been updated: "Resources on subscription # have been updated.".

Special Notes

  • Int SubscriptionID – subscription ID;
  • Int ResourceID – resource ID;
  • Double DeltaAmount – amount resource usage is incremented by.

Note: The method is also available in BM container (for backwards compatibility) but starting from Billing 5.2 will be only available on DUMMYGATE.