Last active
December 13, 2021 09:06
-
-
Save pierrejean-coudert/7a97dc61d69e2d48f8633106579fd94f to your computer and use it in GitHub Desktop.
restish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"root-api": { | |
"base": "https://root-api.internal.exoscale.ch/api", | |
"profiles": { | |
"default": { | |
"auth": { | |
"name": "", | |
"params": null | |
} | |
} | |
}, | |
"tls": { | |
"insecure": false, | |
"cert": "/Users/pierrejean.coudert/.config/exoscale/toolbox/client.cert", | |
"key": "/Users/pierrejean.coudert/.config/exoscale/toolbox/client.key", | |
"ca_cert": "/Users/pierrejean.coudert/.config/exoscale/toolbox/CA-officials+root-G1.pem" | |
} | |
} | |
}% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ restish root-api -v -h | |
DEBUG: Checking API entrypoint https://root-api.internal.exoscale.ch/api/ | |
DEBUG: Adding TLS configuration | |
DEBUG: Checking https://root-api.internal.exoscale.ch/api/openapi.json | |
Warp Command and Control API | |
Usage: | |
restish root-api [flags] | |
restish root-api [command] | |
Available Commands: | |
auth-available | |
auth-create | |
auth-delete | |
auth-list | |
auth-reset | |
bucket-suspend | |
bucket-unsuspend | |
dbaas-activate | |
dbaas-delete | |
dbaas-list | |
dbaas-relay-request | |
dbaas-suspend | |
healthz-get | |
instance-get | |
instance-list | |
jobs-get | |
metastore-query | |
nlb-get | |
nlb-list | |
quota-list | |
quota-update | |
scenario-run | |
scripts-get | |
scripts-list | |
secrets-encrypt | |
secrets-generate | |
smtp-list | |
smtp-update | |
topology-lookup | |
Flags: | |
-h, --help help for root-api | |
Global Flags: | |
--rsh-ca-cert string Path to a PEM encoded CA cert | |
--rsh-client-cert string Path to a PEM encoded client certificate | |
--rsh-client-key string Path to a PEM encoded private key | |
-f, --rsh-filter string Filter / project results using JMESPath Plus | |
-H, --rsh-header strings Add custom header | |
--rsh-insecure Disable SSL verification | |
--rsh-no-cache Disable HTTP cache | |
--rsh-no-paginate Disable auto-pagination | |
-o, --rsh-output-format string Output format [auto, json, yaml] (default "auto") | |
-p, --rsh-profile string API auth profile (default "default") | |
-q, --rsh-query strings Add custom query param | |
-r, --rsh-raw Output result of query as raw rather than an escaped JSON string or list | |
-s, --rsh-server string Override scheme://server:port for an API | |
-t, --rsh-table Enable table formatted output for array of objects | |
-v, --rsh-verbose Enable verbose log output | |
Use "restish root-api [command] --help" for more information about a command. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment