Adding filter to docker swarm task REST API


Here we try to pass the correct filter when calling docker's swarm service task REST API. In the docs it says, we should be passing in 'map[string][] string] = i am interpreting it as a map of string to strings array.

Anyways, here is an example of using service name as the filter. Notice  filter and the correc json block shown below :-



mydocker-REST-service/v1.35/tasks?filters={"service":{"lalaland":true}}

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm