morse
1
The documentation tells to use the state
parameter to wait for a state, but the example does not use this parameter
Should state
be a query string? Or a json object in the body with POST?
It would be also better to add the possible machine states near this section instead of the bottom of the page
leslie
2
The doc could definitely be more explicit about usage! To clarify, it’s a GET
request and you’d pass state
as a query parameter like:
curl -i -X GET \
-H "Authorization: Bearer ${FLY_API_TOKEN}" -H "Content-Type: application/json" \
"http://${FLY_API_HOSTNAME}/v1/apps/user-functions/machines/73d8d46dbee589/wait?state=started"
(Note that this post has been edited after catching my own error!)
2 Likes
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.