Overview¶
CloudLabs utilizes the GCP Java Client Library to interface with GCP's API and execute operations.
To get started with development using the GCP's API, visit the official GCP guide.
Authentication¶
Authentication for development purposes is fairly straightforward, as one only needs to setup the Application Default Credentials (ADC) locally through
the execution of a few simply commands using the gcloud
command line utility.
- Install and initialize the gcloud CLI
gcloud init
- Create your credential file
gcloud auth application-default login
Revoke authentication when not needed:
gcloud auth application-default revoke
After which, the CloudLabs server will be able to authenticate and communicate with GCP's API, if the client library is used. However, a Bearer authentication token will be required for manual requests, including the use of the curl
utility.