mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added notes about JMESPath to the KB
This commit is contained in:
21
knowledge base/jmespath.md
Normal file
21
knowledge base/jmespath.md
Normal 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/
|
||||||
Reference in New Issue
Block a user