Use the method DeleteObject
Markus Mehlan
markus.mehlan at argus.info
Fri Apr 24 05:11:55 EDT 2015
>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" : "sip+49102 at t-online.de",
"_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
More information about the Users
mailing list