cli_prompt
Configuration for CLI Prompt string resource.
Read/write properties
promptString<String>
The prompt string. The following special values are allowed: %! - will be replaced by the history event number %u - will be replaced by the NetScaler SVM user name %h - will be replaced by the NetScaler SVM hostname %t - will be replaced by the current time (12 hr) %T - will be replaced by the current time (24 hr) %d - will be replaced by the current date (yy/mm/dd) This is a mandatory argument..
Operations
NOTE: In request payload, Mandatory parameters are marked red and bold.
The following parameters can be used in the nitro request :
onerror <String_value>
Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE
URL:https://<MGMT-IP>/nitro/v2/config/cli_prompt/
HTTPS Method:PUT
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"cli_prompt":{
"promptString":<String_value>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "cli_prompt":[{
"promptString":<String_value>}]}