rest
Syntax
rest {
control {
allowed-sources [ value-list ];
connection-limit limit;
}
enable-explorer;
http {
addresses [ address-list ];
port port-number;
}
https {
addresses [ address-list ];
cipher-list [cipher-1 cipher-2 cipher-3 ... ];
mutual-authentication {
certificate-authority certificate-authority-profile-name;
}
port port-number;
server-certificate local-certificate-identifier;
}
routing-instance routing-instance;
traceoptions {
flag flag;
}
}
Hierarchy Level
[edit system services]
Description
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 |
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.