Add a preset tag via API
Manel Mendoza ( Delinternet )
manel at delinternet.com
Wed Dec 7 17:58:00 EST 2016
Hi Dan,
Yes I looked but I couldn’t found how to add a tag inside a preset. I use the command add_tag but the value inside the tag is not saved on the preset.
curl -i 'http://localhost:7557/presets/dades-Gloria2' \
-X PUT \
--data '{ "weight": 1, "precondition": "{\"_tags\":\"inicial\",\"summary.serialNumber\":\"485754438F5D4068\"}", "configurations": [{ "type": "value", "name": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Username", "value": "DeltBlocia-Gla" },{ "type": "value", "name": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Password", "value": "glori" },
{ "type": "add_tag", "value":"dadesusuari" }]}'
King regards,
De: Users [mailto:users-bounces at lists.genieacs.com] En nombre de Dan Morphis
Enviado el: miércoles, 7 de diciembre de 2016 18:33
Para: Community support for GenieACS users
Asunto: Re: Add a preset tag via API
Have you looked at the API on the wiki? The answers you seek are there
On Wed, Dec 7, 2016 at 7:37 AM, Manel Mendoza ( Delinternet ) <manel at delinternet.com <mailto:manel at delinternet.com> > wrote:
Hi,
Has anyone an example to add a tag via API to the genieACS using curl …
Tnk
_______________________________________________
Users mailing list
Users at lists.genieacs.com <mailto:Users at lists.genieacs.com>
http://lists.genieacs.com/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20161207/0523adf2/attachment.html>
More information about the Users
mailing list