# Authenticate requests to the VMware Engine API

> [!WARNING]
>
> **Preview**
>
>
> This product or feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section
> of the [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA products and features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

This document describes authentication for Google Cloud VMware Engine.

For more information about Google Cloud authentication, see the
[Google Cloud authentication overview](https://docs.cloud.google.com/docs/authentication.md.txt).

## Authentication to the API

VMware Engine provides an API for programmatic access, and you must
authenticate to the API to use features of VMware Engine
programmatically.

For more information, see
[Set up Application Default Credentials](https://docs.cloud.google.com/docs/authentication/provide-credentials-adc.md.txt).

## Authorization with IAM

When you use a service account for authentication and authorization, you grant
roles to the service account, which enables code using that service account to
access resources. Always grant roles with only the permissions your code
requires; granting broader roles, such as basic roles, violates the principle of
least privilege.

For more information about IAM and authorization, see
[VMware Engine IAM roles and permissions](https://docs.cloud.google.com/vmware-engine/docs/iam.md.txt).