API Presets: URL for a preset with complex preconditions

Nicolas Grondin grondin.nicolas at gmail.com
Thu Dec 24 05:28:30 EST 2015


Hi,
I'm trying to create a preset inspired on data store in MongoDB.

For example :
{ "_id" : "BOX_ADSL", "weight" : 0, "precondition" :
"{\"summary.serialNumber\":\"C2T7Sxxxxxxxx\",\"$and\":[{\"_tags\":{\"$ne\":\"Adding
Line\"}},{\"_tags\":\"Provisioning\"}],\"summary.lineEnable\":\"Enabled\"}",
"configurations" : [ { "type" : "value", "name" :
"InternetGatewayDevice.ManagementServer.PeriodicInformInterval", "value" :
"600" }, { "type" : "value", "name" :
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Username",
"value" : "login at radius" }, { "type" : "value", "name" :
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Password",
"value" : "password at radius" }, { "type" : "value", "name" :
"InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.DirectoryNumber",
"value" : "Phone Number" }, { "type" : "value", "name" :
"InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthUserName",
"value" : "SIP_Id" }, { "type" : "value", "name" :
"InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthPassword",
"value" : "SIPPassword" }, { "type" : "value", "name" :
"InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.URI",
"value" : "SIP:SIP_Id at RegistrarServerIP" }, { "type" : "value", "name" :
"InternetGatewayDevice.ManagementServer.URL", "value" : "http://acs.url" },
{ "type" : "delete_tag", "tag" : "Provisioning" } ] }

What looks like the API's URL ?

Thanks for helping.

Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20151224/d9c2e772/attachment.html>


More information about the Users mailing list