When trying to create an Access Rule in a spesific category we get the following error:
Server returned an error trying to execute createMultipleAccessRule operation. Status code: 400. Server response: Invalid query parameter for the GETALL operation.
But a more permanent fix would be to check the API spesification and filter out only the allowed query params since the GET and POST could have different options.
When trying to create an Access Rule in a spesific
category
we get the following error:Server returned an error trying to execute createMultipleAccessRule operation. Status code: 400. Server response: Invalid query parameter for the GETALL operation.
Code to reproduce:
The problem seems to be that the
getAll
check does not support thecategory
parameter.A workaround is to add
bulk: true
which makes the logic skip the equality check here: https://github.com/CiscoDevNet/FMCAnsible/blob/940a47531ff9b668d72fa36440a7b7d36c8b4225/plugins/module_utils/configuration.py#L389-L396I have made the following temp fix in this function:
https://github.com/CiscoDevNet/FMCAnsible/blob/940a47531ff9b668d72fa36440a7b7d36c8b4225/plugins/module_utils/configuration.py#L323-L333
But a more permanent fix would be to check the API spesification and filter out only the allowed query params since the GET and POST could have different options.