SetResourceUsage_API

Description

Parameters

Passed

Returned

The method sets a specified usage for resources in a subscription.

Note: Before using this method, make sure that the option Allow Manual Resource Usage Update is enabled in the Service Gate Settings of the Dummy Gate.

3 or more

1

Syntax

Copy
ErrorMessage DUMMYGATE::SetResourceUsage_API(

  Int SubscriptionID;

  Int ResourceID_1;

  Double FullAmount_1;

  ...

  Int ResourceID_N;

  Double FullAmount_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 FullAmount – new value for resource usage amount.

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