Outils pour utilisateurs

Outils du site


tech:notes_json

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_json [2025/11/11 16:48] Jean-Baptistetech:notes_json [2025/12/04 11:52] (Version actuelle) Jean-Baptiste
Ligne 9: Ligne 9:
 | **JMESPath**  | JMESPath is a query language for JSON (utilisé par ''json_query'' d'Ansible    | | **JMESPath**  | JMESPath is a query language for JSON (utilisé par ''json_query'' d'Ansible    |
 | **jp**        | The ''jp'' command is a command line interface to JMESPath                     | | **jp**        | The ''jp'' command is a command line interface to JMESPath                     |
 +
  
 Voir : Voir :
 * JSONPath et go_template * JSONPath et go_template
 +* JSON RFC 6902 patch
 +
  
 Voir Ansible : Voir Ansible :
Ligne 184: Ligne 187:
  
 Voir : Voir :
 +* https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.colons
 * https://stackoverflow.com/questions/3790454/how-do-i-break-a-string-in-yaml-over-multiple-lines/21699210#21699210 * https://stackoverflow.com/questions/3790454/how-do-i-break-a-string-in-yaml-over-multiple-lines/21699210#21699210
  
Ligne 203: Ligne 207:
 <code bash> <code bash>
 openstack image show IMAGE1 -c properties -f yaml |yq '.properties.direct_url' openstack image show IMAGE1 -c properties -f yaml |yq '.properties.direct_url'
 +</code>
 +
 +Filtrer sur les clefs (keys)
 +<code bash>
 +cat meta/runtime.yml | yq '.action_groups | keys'
 +# Ou
 +cat meta/runtime.yml | yq -r '.action_groups | keys[]'
 </code> </code>
  
tech/notes_json.1762876085.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki