01-17-2024 10:10 AM
I'm working on setting up flexible authentication on an ICX 7150 switch and need some help configuring the fail-action using the RESTCONF API. Typically, in CLI, I would use this command:
authentication fail-action restricted-vlan 2
I've gone through the RESTCONF API guide but it seems like this specific configuration might not be possible in the same way. I'm reaching out to see if anyone else has encountered this issue or if I'm missing something in the documentation.
Thanks in advance!
01-19-2024 09:05 AM
Hi KlondikeU
Thank you for reaching us
Thanks
01-19-2024 09:42 AM - edited 01-19-2024 01:09 PM
Hi Chandini,
Thanks for the reply. The version on the switch is 09.0.10eT211
01-23-2024 03:38 AM
Hi KlondikeU
Thank you for reverting back to us
I'll need some time to check with regard to the query you have. Let me check and get back to you.
Thanks
02-08-2024 04:22 AM
Hi KlondikeU
Sorry for the delay. It took me sometime to look for details about the command you were looking for. After checking internally I could find the below option which matched the command you mentioned.
curl -X PATCH -H "Content-Type: application/json" -d @fail_action.json https://<host>/restconf/data/authentication/config -u test:test1234 --insecure
fail_action.json { "config": { "fail-action": { "fail-action": "restricted-vlan" } } }
Link which I referred is below:
I hope this helps
Thanks