Skip to main content


Command Description

Get the remaining quota of Laiye IDP capabilities to estimate the usage in advance

Command Prototype

iRet = Mage.QuerySurplusQuota(config,time)

Parameter Description

configTrueexpression{}Call configuration of Laiye IDP
timeTruenumber30000Specify the waiting time in milliseconds. If exceeded, an exception will be thrown. Default: 30,000 milliseconds (30 seconds)


iRet,The variable used to save the output of the command.


Dim config={"Pubkey":"","Secret":"","Url":""}  // Get from mage 

TracePrint "--------------------Get remaining quota--------------------"
// --------------------------------------------------------
// [Remarks] Get the remaining quota
// Input parameter 1:
// config--mage configuration, need to configure Pubkey and Secret.Type:Dict
// Input parameter 2:
// time--timeout time. Default unit: milliseconds. Type: Int

// Output parameters:
// iRet--The variable to which the output of the function call is saved

// Command prototype: iRet = Mage.QuerySurplusQuota(config,time)
// --------------------------------------------------------

iRet Mage.QuerySurplusQuota(config,30000)