6. Command Reference of RPCM CLI
[Output 4]: ON <admin: ON> 0mA 0W
[Output 5]: ON <admin: ON> 0mA 0W
[Output 6]: ON <admin: ON> 0mA 0W
[Output 7]: ON <admin: ON> 0mA 0W
[Output 8]: ON <admin: ON> 0mA 0W
[Output 9]: ON <admin: ON> 0mA 0W
Type 'help' to get suggestions
6.8.4. Command
set
api
Command set api is used to set the conditions for accessing the API.
Available options:
generate-new-key
- is used to generate access keys;
key key-body
- allows or prohibits the use of this key —
enable | disable
parameters, respec-
tively;
authentication
- enables or disables key authentication service using
enable | disable
pa-
rameters.
Help call:
set api ?
The return is:
RPCM Commands help:
set api generate-new-key - generate new access key for API
set api key enable | disable - enable or disable access key for API
set api authentication enable | disable - toggle API service authentication
Type 'help' to get suggestions
Example 1.
Key generation:
Call command:
set api generate-new-key
The return is:
New key: 659d8a7a78f701c7ae139a14fa5cfc48
Key successful saved
Type 'help' to get suggestions
Example 2.
Prohibit the use of this key with the command:
set api key 659d8a7a78f701c7ae139a14fa5cfc48 disable
The return is:
Key: 659d8a7a78f701c7ae139a14fa5cfc48 successful disabled
Type 'help' to get suggestions
286