Users Guide

Table Of Contents
Example
OS10# show cli mode
Current CLI session mode : rest-translate
Translated requests are available as supportbundle://
restconf_requests_1132.txt
OS10#
Supported
Releases
10.5.1.0 or later
rest authentication token validity
Configures the validity duration for the tokens.
Syntax
rest authentication token validity minutes
Parameters minutes Enter the validity duration (0 to 1200 minutes) for the REST Access Token. 0 indicates that
the token has no expiry.
Default 120 minutes
Command Mode CONFIGURATION
Usage
Information
This command updates the validity duration for the REST Access Tokens. The no version of the
command resets the validity duration to the default value.
Example
OS10(config)# rest authentication token validity 10
OS10(config)# rest authentication token validity 0
Supported
Releases
10.4.1.0 or later
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
RESTCONF API 1517