Users Guide

Table Of Contents
rest authentication token max-refresh
Configures the maximum refresh time.
Syntax
rest authentication token max-refresh count
Parameters count Enter the refresh count limit, from 0 to 10. The count indicates the maximum number of times
the tokens refresh. If you do not want to refresh, enter 0.
Default 3
Command Mode CONFIGURATION
Usage
Information
This command updates the maximum number of times the tokens refresh. The no version of the
command resets the count to the default value.
Example
OS10(config)# rest authentication token max-refresh 10
OS10(config)# rest authentication token max-refresh 0
Supported
Releases
10.4.1.0 or later
rest authentication token algorithm
Configures the token signing algorithm.
Syntax
rest authentication token algorithm[HS256 | RS256 | ES256]
Parameters hs256, rs256, es256 Enter the algorithm standard to be used to sign the tokens.
Default RS256
Command Mode CONFIGURATION
Usage
Information
This command updates the token signing algorithm. The no version of the command resets to the default
value.
Example
OS10(config)# rest authentication token algorithm es256
OS10(config)# rest authentication token algorithm rs256
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.
1752
RESTCONF API