For the specific case of GCP, there is something a little bit nicer.
If you do a get endpoint call (in the CLI, `globus endpoint show --format json`), you get back an endpoint document:
Specifically, there are two fields in there:
gcp_connected
If is_globus_connect is "true", this indicates if the Globus Connect Personal (GCP) software is running and connected to Globus. "null" for other endpoint types.
gcp_paused
If is_globus_connect is "true", this indicates if the Globus Connect Personal (GCP) has been paused. "null" for other endpoint types.
If you are using the CLI, you can use the `--jq/--jmespath` option to parse out this value. e.g.
$ globus endpoint show "$(globus endpoint local-id)" --jq "gcp_connected"
I hope all of that helps. If you have questions, please let us know!
Best,
-Stephen
Thanks,
-Bill