NBI add object

Bodlaj Gasper bodlaj at iskratel.si
Tue May 15 01:00:59 EDT 2018


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:users-bounces at lists.genieacs.com] 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 <bodlaj at iskratel.si<mailto: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<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/20180515/e157a9ca/attachment.html>


More information about the Users mailing list