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.
Before you begin
Before you enable the Workload Manager API, do the following:
- Ensure that you have the
serviceusage.services.enableIAM 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. - Ensure that billing is enabled for your Google Cloud project. Verify billing is enabled.
Enable the API
You can enable the Workload Manager API by using the Google Cloud console or the gcloud CLI.
Console
In the Google Cloud console, on the project selector page, select the project in which you want to enable Workload Manager.
Enable the Workload Manager API.
gcloud
To enable the API, use the gcloud services enable command:
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.
- Learn about Guided Deployment Automation.
- Learn about Workload Manager's observability service for SAP.