You can just mimic UI behaviour and use /state endpoint and filter it with jq.
wt., 1 paź 2019 o 13:56 Marc Roos <[email protected]> napisał(a): > > > Hmmm, if do something like this[0] I get only 3 tasks, and the mesos gui > on 5050 is showing all (I guess, at least more than three) Also if I > grep the unfiltered json output for a task string, it does not find it. > > [0] > curl -s --user test:xxx --cacert /etc/pki/ca-trust/source/ca-test.crt -X > GET https://m01.local:5050/tasks | jq '.tasks[] | > select(.state=="TASK_RUNNING")' > > curl -s --user test:xxx --cacert /etc/pki/ca-trust/source/ca-test.crt -X > GET https://m01.local:5050/master/tasks | jq '.tasks[] | > select(.state=="TASK_RUNNING") | del(.statuses, .discovery, > .health_check, .container) | "\(.name) \(.state) \(.slave_id)" ' > > > -----Original Message----- > To: user > Subject: Re: Task list node > > You can list them with agent containers endpoint > http://mesos.apache.org/documentation/latest/endpoints/slave/containers/ > Or with master tasks endpoint and filter them localy with jq > http://mesos.apache.org/documentation/latest/endpoints/master/tasks/ > > czw., 26 wrz 2019 o 22:09 Marc Roos <[email protected]> > napisał(a): > > > > What would be the easiest way to list running tasks on a > node/agent/slave? > > > > > > > > > > >

