The problem is that it seems that the only way to override the DEFAULT_PAGE_SIZE it to set the limit in the query_params, but this is not allowed in a POST operation:
Server returned an error trying to execute createFTDNatPolicy operation. Status code: 400. Server response: Invalid query parameter for the POST operation.
So, adding the limit fixes the first problem but causes another.
We need some way to override the DEFAULT_PAGE_SIZE without breaking the request.
In our FMC, we have 25 NAT Policies.
When trying to create a new policy using the following task:
I get the following error message:
Looking at the following code it seems like the
DEFAULT_PAGE_SIZE
is used to first fetch items to ensure idempotency:https://github.com/CiscoDevNet/FMCAnsible/blob/9645714dea27dbb73c2decadc822a1dc4c0e06ad/plugins/module_utils/configuration.py#L686-L734
The problem is that it seems that the only way to override the
DEFAULT_PAGE_SIZE
it to set thelimit
in thequery_params
, but this is not allowed in aPOST
operation:Results in:
So, adding the
limit
fixes the first problem but causes another.We need some way to override the
DEFAULT_PAGE_SIZE
without breaking the request.