Note: This is work in progress.
Usage:
- Update hq/scripts/setenv.sh with your ACCOUNT_ID and API_KEY.
- Update HQ_HOME to the location where hq is cloned
- source setenv.sh
How to Test
$ hq
Usage: hq <module/query.hql> VAR1 VAR2 VAR3...
$ hq id/App.hql MyApp
WHlkfu9VS1uXDj-kyucJuQ
$ hq list/Apps.hql 2 | jq .
{
"data": {
"applications": {
"nodes": [
{
"id": "4KFbkqNyQcmAvQASSjqIkw",
"name": "123Test"
},
{
"id": "iLmllOuFQo6Feyhw9jT-9g",
"name": "Demo Sample App"
}
]
}
}
}
$ hq/scripts/getCP.sh | jq .
{
"data": {
"cloudProviders": {
"nodes": [
{
"name": "Harness Sample K8s Cloud Provider",
"id": "Z_2b4geyRReu6VUqZmIv3Q"
},
{
"name": "k3s-cluster-venkat",
"id": "mMurjz-dRLCz-9wlRU4NQg"
}
]
}
}
}