Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

rest

Syntax

Hierarchy Level

Description

CAUTION:

Enabling tracing can adversely impact scale and performance and may increase security risk. We strongly recommend using the trace, tracing, or traceoptions commands only under the guidance of a JTAC support engineer. After collecting the debug information, immediately disable tracing to minimize risk and restore normal system performance.

Execute Junos OS commands over HTTP or HTTPS using REST. Optionally, specify JSON output for operational and configuration commands.

Options

routing-instance routing-instance

Specify the routing instance through which the remote server is reachable. This can be the non-default management instance mgmt_junos or a user-defined non-default routing instance. If you do not specify a routing instance, REST API requests are sent over the default routing instance.

Note:

If you want to use the non-default management instance mgmt_junos, you must also define the mgmt_junos routing instance under the [edit routing-instances] hierarchy level and configure the management-instance statement.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 14.2.

routing-instance option introduced in Junos OS Release 20.3R1.