How to add_Object with a preset
miguelet tortosa
miguelettortosa at gmail.com
Tue Jul 21 13:01:16 EDT 2015
- Hi!
I'm quite newbie in GenieACS and I'm trying to add an object through a
preset.
-
- I've successfully created an object via API, but I'm not able to
create it with a Preset via API.
-
- This is my parameter structure:
-
- InternetGatewayDevice.WANDevice
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
- InternetGatewayDevice.WANDevice.1
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
- InternetGatewayDevice.WANDevice.1.WANConnectionDevice
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
- InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
- InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
-
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
-
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress
172.16.179.253
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
-
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.Enable
true
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
-
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ConnectionStatus
Connected
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
-
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ConnectionType
IP_Routed
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
- .....................................
- <http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
-
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
- InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
- InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANIPConnection
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
<http://192.168.88.158:3000/devices/00259E-HG8245A-44534E574AD5E196#>
-
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANIPConnection.1
....................................
I want to create a 3rd WANConnectionDevice.
With the API I've created it with this commands:
- curl -i '
http://localhost:7557/devices/00259E-HG8245A-44534E574AD5E196/tasks?timeout=3000&connection_request'
-X POST --data
'{"name":"addObject","objectName":"InternetGatewayDevice.WANDevice.1.WANConnectionDevice"}'
-
- curl -i '
http://localhost:7557/devices/00259E-HG8245A-44534E574AD5E196/tasks?timeout=3000&connection_request'
-X POST --data
'{"name":"addObject","objectName":"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANPPPConnection"}'
Is it possible to create an object inside a Preset via API?
How could it be?
Thanks a lot in advance.
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150721/da462000/attachment-0001.html>
More information about the Users
mailing list