Reference Guide

Table Of Contents
Example
OS10(config)# rest https cipher-suite dhe-rsa-with-aes-128-gcm-SHA256
dhe-rsa-with-aes-256-gcm-SHA384 ecdhe-rsa-with-aes-256-gcm-SHA384
Supported
Releases
10.4.1.0 or later
rest https server-certificate
Creates the SSL self-signed server certificate used in a RESTCONF HTTPS connection.
Syntax
rest https server-certificate name hostname
Parameters name hostname Enter the IP address or domain name of the OS10 switch.
Default hostname is the domain name of the OS10 switch.
Command Mode CONFIGURATION
Usage
Information
The no version of the command removes the host name from the SSL server certificate.
Example
OS10(config)# rest https server-certificate name 10.10.10.10
Supported
Releases
10.4.1.0 or later
rest https session timeout
Configures the timeout used in a RESTCONF HTTPS connection.
Syntax
rest https session timeout seconds
Parameters seconds Enter the timeout used to wait for an HTTPS request from a RESTCONF client (30 to
65535 seconds).
Default 30 seconds
Command Mode CONFIGURATION
Usage
Information
If no HTTPS request is received within the configured time, the switch closes the RESTCONF HTTPS
session.
The no version of the command removes the configured RESTCONF HTTPS session timeout.
Example
OS10# rest https session timeout 60
Supported
Releases
10.4.1.0 or later
RESTCONF API tasks
Using the RESTCONF API, you can provision OS10 switches using HTTPS requests. The examples in this section show how to
access the OS10 RESTCONF API using curl commands. curl is a Linux shell command that generates HTTPS requests and is
executed on an external server.
curl Commands
curl command options include:
-X specifies the HTTPS request type; for example, POST , PATCH, or GET.
-u specifies the user name and password to use for server authentication.
750
RESTCONF API