Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

Getting value: Boolean Value missing error when sending API command

 

Information

 

Summary:

Getting an error related to missing a boolean value when using curl to enable the api interface.

Environment:

Product: Loadmaster

Version: N/A

Platform: N/A

Application: N/A

Question/Problem Description:

When using the API curl command to enable the API, value: Boolean Value missing is encountered.

Steps to Reproduce:
curl --get --insecure --user bal:Kemp1fourall https://10.0.0.36:443/access/set?param=enableapi&value=yes
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   138    0   138    0     0  11411      0 --:--:-- --:--:-- --:--:-- 11500

<?xml version="1.0" encoding="ISO-8859-1"?>
<Response stat="422" code="fail">
<Error>value: Boolean Value missing</Error>
</Response>
Error Message:
Log file shows:
2023-10-10T01:42:16+00:00 lb100 access: API FAILED bal (10.0.0.222) set 'param=enableapi' 'value=(null)'
Defect Number: LM-5210
Enhancement Number:  
Cause:  
Resolution:

Command needs to be enclosed in quotes like this

 

curl --get --insecure --user bal:Kemp1fourall "https://10.0.0.36:443/access/set?param=enableapi&value=yes"

 

kemp@hostname:~$ curl --get --insecure --user bal:Kemp1fourall "https://10.0.0.36:443/access/set?param=enableapi&value=yes"
<?xml version="1.0" encoding="ISO-8859-1"?>
<Response stat="200" code="ok">
<Success>Command completed ok</Success>
</Response>
Workaround:  
Notes:  

Was this article helpful?
0 out of 0 found this helpful

Comments