You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
st2 webook get -h says I should provide the ref-or-id:
extreme@EWC:~$ st2 webhook get -h
usage: st2 webhook get [-h] [-t TOKEN] [--api-key API_KEY] [-j] [-y]
[-a ATTR [ATTR ...]]
ref-or-id
Get individual webhook.
positional arguments:
ref-or-id Reference or ID of the webhook.
optional arguments:
-h, --help show this help message and exit-t TOKEN, --token TOKEN
Access token for user authentication. Get
ST2_AUTH_TOKEN from the environment variables by
default.
--api-key API_KEY Api Key for user authentication. Get ST2_API_KEY from
the environment variables by default.
-j, --json Print output in JSON format.
-y, --yaml Print output in YAML format.
-a ATTR [ATTR ...], --attr ATTR [ATTR ...]
List of attributes to include in the output. "all" or
unspecified will return all attributes.
OK, let's try retrieving a webhook details via id or ref:
extreme@EWC:~$ st2 webhook get 59a4f729c3540c5ef8574ba8
Webhook "59a4f729c3540c5ef8574ba8" is not found.
extreme@EWC:~$ st2 webhook get core.d954edc5-29a1-4889-8521-c7524db4e41a
Webhook "core.d954edc5-29a1-4889-8521-c7524db4e41a" is not found.
extreme@EWC:~$
Nope. Neither of those work.
Let's try something else - try using the url: param as the ref-or-id:
Good issue. The original intent was to do st2 webhook get on the URL. So while things work per design, the UX is horrendous as you've pointed out. I'll pick this up and see where I go with it.
st2 webook get -h
says I should provide theref-or-id
:OK, so let's try to find some refs or IDs:
OK, try something else:
OK, let's try retrieving a webhook details via id or ref:
Nope. Neither of those work.
Let's try something else - try using the
url:
param as the ref-or-id:Ah. Success at last. But not very intuitive, no?
The text was updated successfully, but these errors were encountered: