SD-WAN

  • 1.  128T API to query / accept pending asset

    Posted 08-20-2019 10:54
    Dear 128T Experts,

    I am looking for the API calls to
    (1) to query the pending asset on the conductor
    (2) to accept the pending asset

    Thank you very much!!

    Chao-Yu Cheng

    ------------------------------
    Chao-Yu Cheng
    Network Engineer
    Frenchtown NJ
    908 566-3547
    ------------------------------


  • 2.  RE: 128T API to query / accept pending asset

    Posted 08-20-2019 14:59
    Hello @Chao-Yu Cheng,

    There is a 128T API that you can interact with for testing from the Conductor GUI -> Click on your username [upper right] -> Documentation -> REST API

    There is an 'Asset' section which may be of help. I am not more familiar with this area, but it is interesting. I think the Asset API Endpoint, in turn, uses the 128T Salt Stack Orchestration between the conductor and the node.​

    ------------------------------
    --
    Jessie Bryan | jbryan@impulse.net
    VP Engineering |
    ------------------------------



  • 3.  RE: 128T API to query / accept pending asset

    Posted 08-20-2019 15:24
    Hi Jessie,

    Thank you for the info. I have checked the documents.
    The Asset folder contain only the following API. Unfortunately it is not the API to either query or accept the pending asset.

    /asset/{assetId}/control
    Sends a command to a registered Asset.


    Chao-Yu





  • 4.  RE: 128T API to query / accept pending asset

    Posted 08-20-2019 15:32
    Hi Chao, @Dillon may have some more information for you. ​​

    ------------------------------
    Victoria
    ------------------------------



  • 5.  RE: 128T API to query / accept pending asset

    Posted 08-20-2019 16:04
    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 body
    Download
    {
      "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 configuration
    
    POST		/config/commit			Commit the candidate configuration
    
    
    




    ------------------------------
    --
    Jessie Bryan | jbryan@impulse.net
    VP Engineering |
    ------------------------------



  • 6.  RE: 128T API to query / accept pending asset

    Posted 08-20-2019 16:47
    Hi Jessie,

    Thank you very much for the detail. I will give it a try.

    Chao-Yu






  • 7.  RE: 128T API to query / accept pending asset

    Posted 08-22-2019 12:09
    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
    ------------------------------