Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
keyboard_arrow_right

rest

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
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

content_copy zoom_out_map
[edit system services]

Description

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.

external-footer-nav