diff --git a/README.md b/README.md index 429a30b..d746ce0 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,21 @@ curl -k -v -u admin:pass --raw --data \ '{"credentials": [{"id":"","secret":""}]}' https://localhost:9083/discover?format=json ``` +## Scan and list all GCP assets +```sh +SERVICE_ACCOUNT=$(cat | base64 | tr -d '\n') +curl -k -v -u admin:pass --raw --data '{"credentials": [{"secret":"'${SERVICE_ACCOUNT}'", "provider":"gcp"}]}' https://localhost:9083/discover +``` +Output +```sh +Type Region ID +GKE us-central1-a cluster-1 +GKE us-central1-a cluster-2 +GCR gcr.io registry-1 +GCR gcr.io registry-2 +Functions us-central1 function-1 +``` + ## Scan all GCP assets and show full metadata for each of them ```sh SERVICE_ACCOUNT=$(cat | base64 | tr -d '\n')