Added notes about JMESPath to the KB

This commit is contained in:
Michele Cereda
2022-08-03 13:57:06 +02:00
parent 04e4e9713d
commit a296b4f7b4

View File

@@ -0,0 +1,21 @@
# JMESPath
## TL;DR
```sh
# Filter elements in a list.
az devops user list \
--org https://dv.azure.com/organizationName \
--query "\
items[? \
startsWith(user.principalName, 'yourNameHere') && \
\! contains(accessLevel.licenseDisplayName, 'Test plans') \
].user.displayName"
```
## Further readings
- [Website]
[specifications]: https://jmespath.org/specification.html
[website]: https://jmespath.org/