Enable the Workload Manager API to use its rule-based validation,
guided deployment automation, and observability services for your workloads
running on Google Cloud. Workload Manager lets you automate workload deployment,
detect deviations from best practices, and monitor system health to help you
improve system quality, reliability, and performance.

This document describes how to enable the Workload Manager API.

For information about Workload Manager and its features, see
[About Workload Manager](https://docs.cloud.google.com/workload-manager/docs/overview).

## Before you begin

Before you enable the Workload Manager API, do the
following:

- Ensure that you have the `serviceusage.services.enable` IAM permission. If you don't have this permission, ask your administrator to grant you the Service Usage Admin (`roles/serviceusage.serviceUsageAdmin`) role on your project. For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access).
- Ensure that billing is enabled for your Google Cloud project. [Verify billing is enabled](https://docs.cloud.google.com/billing/docs/how-to/verify-billing-enabled).

## Enable the API

You can enable the Workload Manager API by using the Google Cloud console
or the gcloud CLI.

### Console

1. In the Google Cloud console, on the project selector page, select the project
   in which you want to enable Workload Manager.

2. Enable the Workload Manager API.

   [Enable the API](https://console.cloud.google.com/apis/enableflow?apiid=workloadmanager)

### gcloud

To enable the API, use the [`gcloud services enable` command](https://docs.cloud.google.com/sdk/gcloud/reference/services/enable):

```
  gcloud services enable workloadmanager.googleapis.com \
  --project=PROJECT_ID
```

Replace `PROJECT_ID` with the project ID of
the *consumer* project in which you create and run Workload Manager
evaluations or the project in which you deploy workloads by using Workload Manager.

## What's next

- Learn about [Workload Manager evaluations](https://docs.cloud.google.com/workload-manager/docs/about-evaluations).
- Learn about [Guided Deployment Automation](https://docs.cloud.google.com/workload-manager/docs/deploy/about-wlm-deployment).
- Learn about [Workload Manager's observability service for SAP](https://docs.cloud.google.com/workload-manager/docs/observe/sap/overview).