Community discussions

MikroTik App
 
pdeline
just joined
Topic Author
Posts: 11
Joined: Thu Sep 09, 2010 5:14 am

Trouble setting static-key value to empty using the API

Sun Sep 26, 2010 11:56 pm

When I ssh to my device, I can set one of the static-key values to empty (which is the default) using the following command:
/interface wireless security-profiles set <name> static-key-0=""
However, I am unable to do the same using the API. I have tried this:
/interface/wireless/security-profiles/set
=name=<name>
=static-key-3=""
The API acts as if it accepted the values but when I query them again, they have not changed.

Any suggestions on how to make this work would be appreciated.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Trouble setting static-key value to empty using the API

Sat Oct 02, 2010 12:58 pm

Don't know if you found the answer, but just in case you didn't...
/interface/wireless/security-profiles/set
=.id=<name>
=static-key-3=""
 
pdeline
just joined
Topic Author
Posts: 11
Joined: Thu Sep 09, 2010 5:14 am

Re: Trouble setting static-key value to empty using the API

Mon Oct 25, 2010 4:14 am

Thanks for the help.

That did the trick.