Hi Jessie,
Your suggestion works :) Thank you very much!
1) I use PATCH to set the 'asset-id' (which is in the Pending Assets section) for a node
2) Commit
3) The asset disappear from the Pending Assets section.
For query pending assets I found the
graphql which 128T GUI uses (by intercepting the traffic). Please see the attached query and response.
Thank you for your help!!
Chao-Yu
------------------------------
Chao-Yu Cheng
Network Engineer
Frenchtown NJ
908 566-3547
------------------------------
Original Message:
Sent: 08-20-2019 16:46
From: Chao-Yu Cheng
Subject: 128T API to query / accept pending asset
Hi Jessie,
Thank you very much for the detail. I will give it a try.
Chao-Yu
Original Message------
Hey @Chao-Yu Cheng, You might be able to use the "config" area - although I have not done this -
The "GET" version shows my asset-id assigned to the node. Perhaps you can use this API to _set_ the asset-id for the node, then apply the configuration?
Here's my output from GET:
Response bodyDownload { "name": "jbryan-lab-node1", "asset-id": "jbryan-lab.jbryan-lab-node1", "description": "Virtual Machine in Server Rack", "enabled": true, "location": "Jessie's Server Rack", "role": "combo", "asset-validation-enabled": true, "usage-reporter-enabled": false, "forwarding-core-count": null, "clean-before-install": true, "clean-after-failed-install": true, "software-update-bandwidth": "unlimited", "links": { "device-interface": "/api/v1/config/candidate/authority/router/jbryan-lab/node/jbryan-lab-node1/device-interface", "ssh-keepalive": "/api/v1/config/candidate/authority/router/jbryan-lab/node/jbryan-lab-node1/ssh-keepalive", "reachability-detection": "/api/v1/config/candidate/authority/router/jbryan-lab/node/jbryan-lab-node1/reachability-detection", "self": "/api/v1/config/candidate/authority/router/jbryan-lab/node/jbryan-lab-node1" }} |
PATCH
/config/{configStore}/authority/router/{router}/node/{node} Modifies a node in the configuration
You can also run VALIDATE and COMMIT...
POST /config/validate Validates the candidate configurationPOST /config/commit Commit the candidate configuration
------------------------------
--
Jessie Bryan | jbryan@impulse.net
VP Engineering |
------------------------------