This document describes how to authenticate to Cloud SWG programmatically.
For more information about Google Cloud authentication, see the
Cloud SWG supports programmatic access. How you authenticate to
Cloud SWG depends on how you access the API. You can access the API in the
You can authenticate to Cloud SWG
from the command line by using
Application Default Credentials.
For more information, see Authenticate using REST.
If you want to use the API without using a client library, you can use
Google's authentication library
for your programming language. Alternatively, you can
implement authentication in your code.
Access control with IAM
When you grant roles to a principal, always grant
roles with only the required permissions; granting broader roles, such as basic roles, violates
the principle of least privilege.
For more information about the roles for Cloud SWG, see
Access control with IAM.
For more information about Identity and Access Management (IAM) and authorization, see