-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EdgeCheckinInterval
seems to be ignored on API POST call (endpoint creation)
#7131
Comments
@The-Judge Also, what is the interval set to in the UI please? |
Hi @samdulam, thanks for your reply! I am facing this behavior for every endpoint I am registering via the API; so, there is no such "one endpoint in question". It affects ALL. Creation:
Getting endpoint details (ID: 57)
UI SettingsI hope this is everything you need. Let me know if additional info is required. |
I wanted to follow up on this request. Does this issue still occur after upgrading? Thanks! |
Hi @tamarahenson - upgrading what to what? |
Upgrading to the latest version of Portainer 2.17.1. This issue was reported in an older version. Thanks! |
Hi @tamarahenson , just had time to check this and yes: This still happens as described with version 2.17.1. This is how I tested:
Note that, just like in my initial report,
I thought that it is quite easy to reproduce with the details I provided ... it is disappointing that not only this seems to not have been touched for nearly 9 months now, but since this has not even changed, it looks like you guys just want me to help in sorting your tasks, because you can't tell if this has been worked on or not. |
Thank you for the additional information provided. I am going to further investigate. I will update you as I learn more. Thanks! |
I wanted to follow up on this request. While I run the following command:
I am seeing the When I run the following to trust but verify, I am seeing
I am going to forward this issue to Product for review. I will update you as I learn more. Thanks! |
Update: I am logging an internal issue to update our API documentation. Upon further investigation, you need to use
Trust but verify:
Thanks! |
Yes, that seems like a bad doc issue, indeed. Also, quite a misleading parameter name difference there, that one needs to use a different parameter to set the whole thing than the actual parameter is. But updating the API docs is sufficient, I guess. Thank you for your efforts! |
|
To wrap this one up, in the current release (2.19.1) both |
Bug description
Portainer API has parameter
EdgeCheckinInterval
when creating a new endpoint via the API. See Swagger.When setting this to an integer value (say: 10), the endpoint is created fine, but with the global default which is 5 per default, effectively ignoring this parameter.
Expected behavior
The created (edge) endpoint should have the
EdgeCheckinInterval
set as requested in the API creation query.Portainer Logs
None
Steps to reproduce the issue:
http --form POST https://your-portainer/api/endpoints 'X-API-Key:YOUR_API_TOKEN' Name=test TLS=true TLSSkipVerify=true TLSSkipClientVerify=true 'URL=https://your-portainer' EndpointCreationType=4 EdgeCheckinInterval=10
Results in being even
0
in the reply of the creation query:Query the Portainer instance with GET then shows
EdgeCheckinInterval
gets set to the default of5
:Technical details:
The text was updated successfully, but these errors were encountered: