Junos OS

 View Only
last person joined: 6 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  REST-API for EX series

    Posted 02-01-2018 05:10

    Hello,

     

    Are there any plans to release rest-api support for the EX series?

    The devices take the configration but doesn't become active and the EX don't appear among the supported platforms..

    Would be really useful for the datacenter management (hardware auditing, vlans assigment...).

     

    Cheers,

     

    Jaime



  • 2.  RE: REST-API for EX series

     
    Posted 02-01-2018 06:45

    Hi,

     

    Yes Rest API is not supported on EX platform but supported in QFX5100.

     

    https://www.juniper.net/documentation/en_US/junos/topics/example/rest-api-configuring-example.html

     

    There is already request raised to include this feature in EX. No ETA available as of now.

     

    Regards,

    Rahul

     



  • 3.  RE: REST-API for EX series

     
    Posted 03-27-2018 20:49

    My 2 cents on this…

     

    As per Feature Explorer, Feature Family: Junos OS XML API and Scripting is supported in,

    EX4300 Junos OS  17.4R1 EX4300-VC Junos OS  17.4R1 EX4600 Junos OS  17.4R1 EX4600-VC Junos OS  17.4R1 EX9200 Junos OS  17.4R1 EX9200-VC Junos OS  17.4R1    

     

    https://apps.juniper.net/feature-explorer/feature-family-info.html?familyName=Junos+OS+XML+API+and+Scrip

     

    I love to automate Lab devices with curl+API …

     

    POSTMAN Client:

    http://lab:password@<ip-address>:8080/rpc/get-system-information

    http://lab:password@<ip-address>:8080/rpc/get-configuration

    http://lab:password@<ip-address>:8080/rpc/get-interface-information

     

    Curl Client: Working

    curl http://lab:password@<ip-address>:8080/rpc -D curl.out --header "Accept: text/plain" -d "<get-interface-information><detail/><interface-name>lo0</interface-name></get-interface-information>"

     

    curl http://lab:password@<ip-address>:8080/rpc -D curl.out --header "Accept: text/plain" -d "<get-interface-information><terse/><interface-name>lo0</interface-name></get-interface-information>"

     

    curl http://lab:password@<ip-address>:8080/rpc -D curl.out --header "Accept: text/plain" -d "<get-configuration><configuration><interfaces><interface><name>lo0</name></interface></interfaces></configuration></get-configuration>"