On Wed, Apr 22, 2015, at 12:29 PM, Markus Mehlan wrote:
Hi,
how can I use the RPC-Method DeleteObject? Can it be done in the presets
view?
I've tried with "Remove object", but with no success.
Hi Markus,
You need to first define the object template (in objects tab). The
delete object preset configuration will delete all instances that has
parameters matching the "key" parameters in your object definition. Hope
that makes sense.
Zaid
Thank you for your reply,
I've tried following:
Object Argus_Line_2
{
"Enabled" : "true",
"_id" : "Argus_Line_2"
}
Object Argus_SIPLine_2
{
"AuthUserName" : "User2",
"AuthPassword" : "Password2",
"URI" : "[email protected]",
"_id" : "Argus_SIPLine_2"
}
Preset Argus155_3
{
"weight" : 0,
"precondition" : "{\"summary.productClass\":\"Argus155\"}",
"configurations" : [
{
"type" : "value",
"name" : "Device.DeviceInfo.ProvisioningCode",
"value" : "000.004.000.000"
},
{
"type" : "add_object",
"name" : "Device.Services.VoiceService.1.NetworkProfile.1.SIPLine",
"object" : "Argus_SIPLine_2"
},
{
"type" : "add_object",
"name" : "Device.Services.VoiceService.1.NetworkProfile.1.Line",
"object" : "Argus_Line_2"
}
],
"_id" : "Argus155_3"
}
Works as expected.
Now I did a factory reset and tried to remove a different Object ...
Preset Argus155_3
{
"weight" : 0,
"precondition" : "{\"summary.productClass\":\"Argus155\"}",
"configurations" : [
{
"type" : "delete_object",
"name" :
"Device.Services.VoiceService.1.NetworkProfile.1.SIPLine.1",
"object" : "Argus_SIPLine_2"
}
],
"_id" : "Argus155_1"
}
No action!
Best greetings,
Markus
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users