QuestionQ15

VerifiedREST API

Which curl command successfully retrieves interface information from a Juniper device?

Explanation

Junos REST API RPCs use the /rpc/<method> endpoint, and get-interface-information is a valid RPC method. An HTTP GET request to the REST service on port 3000, authenticated with the device credentials, retrieves that operational data. Juniper documents curl --netrc http://172.16.2.1:3000/rpc/get-interface-information as an example of this request form.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!