NBI add object

Dan Morphis dan at milkcarton.com
Mon May 14 12:52:28 EDT 2018


Why are you using the API to add an object instance? Use provision scripts
and make calls to an external API to get the parameters needed for the
device.
https://github.com/genieacs/genieacs/wiki/Example-of-a-Provisioning-Flow

On Mon, May 14, 2018 at 12:47 AM, Bodlaj Gasper <bodlaj at iskratel.si> wrote:

> Hi
>
>
>
> I started using NBI to add object to device.
>
> I noticed that when I add a new object i do not get any instance id back.
>
> Am I doing anyhing wrong?
>
>
>
> HTTP/1.1 200 OK
>
> GenieACS-Version: 1.1.1
>
> Content-Type: application/json
>
> Date: Sun, 13 May 2018 21:36:44 GMT
>
> Connection: keep-alive
>
> Transfer-Encoding: chunked
>
>
>
> {"name":"addObject","objectName":"InternetGatewayDevice.WANDevice.1.
> WANConnectionDevice.1.WANPPPConnection","device":"
> 1234561234656","timestamp":"2018-05-13T21:36:43.414Z","_
> id":"5af8afebbd1230247b711977"}{
>
>     "name":"addObject",
>
>     "objectName":"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.
> WANPPPConnection"
>
> }
>
> HTTP/1.1 100 Continue
>
>
>
> HTTP/1.1 200 OK
>
> GenieACS-Version: 1.1.1
>
> Content-Type: application/json
>
> Date: Sun, 13 May 2018 21:36:45 GMT
>
> Connection: keep-alive
>
> Transfer-Encoding: chunked
>
> _______________________________________________
> Users mailing list
> 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/20180514/ce78b96c/attachment.html>


More information about the Users mailing list