JN0-224 · Question #140
You are asked to use the REST API to retrieve interface configuration information from your Junos device. You decide to use a cURL HTTP GET command to retrieve this information. In this scenario…
The correct answer is C. You can retrieve this data in XML or JSON formats. D. You must Include the authentication Information with each request. When using the REST API to retrieve interface configuration information from a Junos device: Data Formats (C): The information can be retrieved in XML or JSON formats. These are the two standard data formats supported by the Junos REST API for representing configuration and…
Question
You are asked to use the REST API to retrieve interface configuration information from your Junos device. You decide to use a cURL HTTP GET command to retrieve this information. In this scenario, which two statements are correct? (Choose two.)
Options
- AYou can retrieve this data in HTML or JSON formats.
- BYou must have SSH enabled on the Junos device.
- CYou can retrieve this data in XML or JSON formats.
- DYou must Include the authentication Information with each request.
How the community answered
(25 responses)- A16% (4)
- B8% (2)
- C76% (19)
Explanation
When using the REST API to retrieve interface configuration information from a Junos device: Data Formats (C): The information can be retrieved in XML or JSON formats. These are the two standard data formats supported by the Junos REST API for representing configuration and operational data. Authentication (D): For each HTTP request, especially when using tools like cURL, authentication information must be included. This is typically done using basic authentication (username and password) or an authentication token.
Topics
Community Discussion
No community discussion yet for this question.