Client want to use that method.
I am just tasked with creating all the scripts.

Only other way would be to GPV the number of instances and then use that in 
task?

From: Users [mailto:[email protected]] On Behalf Of Dan Morphis
Sent: Monday, May 14, 2018 6:52 PM
To: Community support for GenieACS users
Subject: Re: NBI add object

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 
<[email protected]<mailto:[email protected]>> 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
[email protected]<mailto:[email protected]>
http://lists.genieacs.com/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to