JSON Responses - GetConfig
The following is an example of an Encrypt IP address command, which returns an encrypted IP address for direct access to the subscriber portal. By default the encryption is enabled. To disable the encryption, use the CLI command:
ruckus(config)# [no] encrypt-mac-ip
{
“Vendor”: “ruckus”,
“RequestUserName”: "myUserName"
“RequestPassword”: “myPassword”,
“APIVersion”: “1.0”,
“RequestCategory”: “GetConfig”,
“RequestType”: “Encrypt”,
“Data”: “172.21.134.87”
}The following is an example of the success response:
{
“Vendor": “ruckus”,
“ReplyMessage":”OK",
“ResponseCode":200,
“APIVersion":”1.0”
“Data": “ENC1234bfdbe5y5hbfdgh45y54ryt5y5th5”
}Another example is the decrypt command, which returns a decrypted value of IP address.
{
“Vendor": "ruckus",
“RequestUserName": "myUserName"
“RequestPassword": "myPassword",
“APIVersion: "1.0",
“RequestCategory": "GetConfig",
“RequestType": "Decrypt",
“Data": "ENC1234bfdbe5y5hbfdgh45y54ryt5y5th5"
}The success response:
{
“Vendor":"ruckus",
“ReplyMessage":"OK",
“ResponseCode":200,
“APIVersion":"1.0"
“Data": "172.21.134.87"
}The following are examples of using the CLI command for enabling and disabling the IP address and MAC address encryptions.
Enabling the IP address and MAC address encryption:
# show running-config encrypt-mac-ip
Disabling the IP address and MAC address encryption:
# config (config)# no encrypt-mac-ip Do you want to continue to disable (or input 'no' to cancel)? [yes/no] yes Successful operation
Confirming that the IP address and MAC address encryption is disabled:
(config)# do show running-config encrypt-mac-ip Encryption MAC and IP: Disabled