Get-Remaining-Quota
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
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
config | True | expression | {} | Call configuration of Laiye IDP |
time | True | number | 30000 | Specify the waiting time in milliseconds. If exceeded, an exception will be thrown. Default: 30,000 milliseconds (30 seconds) |
return
iRet,The variable used to save the output of the command.
Demo
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)
Traceprint(iRet)