Skip to main content
Select Actions to adjust the guide
Some actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.
Action
Scope(s)
Loading actions…
Dynamic Guide URL
Scopes Selected
Separator
Owner or Compute Admin role on the target GCP project is required to complete this setup.

Create a Google Cloud project

To use Google Cloud Compute APIs with OAuth 2.0, you need a Google Cloud project with the required APIs enabled.

1

Sign in to Google Cloud

Sign in to your Google Cloud Console.

2

Create or select a project

Create a new project or select an existing one from the project dropdown at the top of the page.

3

Enable the required APIs

Enable the Compute Engine API, Cloud Run Admin API, Cloud Functions API, and Artifact Registry API for your project.

  • Navigate to APIs & Services > Library.
  • Search for and enable Compute Engine API.
  • Search for and enable Cloud Run Admin API.
  • Search for and enable Cloud Functions API.
  • Search for and enable Artifact Registry API.

Configure Google Auth Platform

Before creating OAuth credentials, you must configure Google Auth Platform.

1

Navigate to Google Auth Platform

In the Google Cloud Console, go to APIs & Services > OAuth consent screen. This will open the Google Auth Platform dashboard.

2

Start configuration

If this is your first time configuring OAuth, you’ll see an OAuth Overview page. Click Get started to begin the configuration process.

3

Enter app information

Fill in the required fields for your application.

  • App name: Enter a name for your application (e.g., StackOne GCP Compute Integration).
  • User support email: Select an email for user inquiries.
  • Click Next to continue.
4

Select audience

Choose the appropriate user type for your application.

  • Internal: Only users within your Google Workspace organization can authorize (no app verification required).
  • External: Any Google account can authorize (requires app verification for production use).
  • Click Next to continue.
5

Enter contact information

Provide email addresses for Google to notify you about any changes to your project. Click Next to continue.

6

Finish configuration

Review your settings, agree to the Google API Services User Data Policy, and click Create to complete the setup.

Configure scopes

In Google Auth Platform, go to Data Access and click Add or Remove Scopes to configure the OAuth scopes your application needs.

1

Add scopes

Enables actions: Create Disk Snapshot, Delete Cloud Function, Delete Cloud Run Service, Delete Instance, Get Artifact Docker Image, Get Artifact Package, Get Artifact Repository, Get Cloud Function, Get Cloud Run Revision, Get Cloud Run Service, Get Compute Region, Get Compute Zone, Get Disk, Get Image, Get Instance, Get Instance Group, Get Managed Instance Group, List Artifact Docker Images, List Artifact Packages, List Artifact Repositories, List Artifact Versions, List Cloud Functions, List Cloud Run Revisions, List Cloud Run Services, List Compute Regions, List Compute Zones, List Disks, List Images, List Instance Group Instances, List Instance Groups, List Instances, List Instances (Aggregated), List Managed Instance Groups, Reset Instance, Resize Managed Instance Group, Resume Instance, Start Instance, Stop Instance, Suspend Instance, Test Auth

Add the required Google Cloud Platform scopes for your integration.

Create OAuth 2.0 client credentials

Create OAuth client credentials to authenticate with Google Cloud APIs.

1

Navigate to Credentials

In the Google Cloud Console, go to APIs & Services > Credentials.

2

Create OAuth client ID

Click + Create Credentials and select OAuth client ID from the dropdown.

3

Select application type

Select Web application as the application type.

4

Configure client details

Enter the required information for your OAuth client.

  • Name: Enter a name for your OAuth client (e.g., StackOne GCP Compute Integration).
  • Under Authorized redirect URIs, click Add URI.
  • Redirect URI: https://api.stackone.com/connect/oauth2/googlecloudcompute/callback
  • Click Create.
5

Copy client credentials

After clicking Create, a dialog will display your OAuth client credentials. Copy the Client ID and Client Secret and store them securely for use later.

Creating the StackOne Connector Profile

To create the Connector Profile in StackOne for Google Cloud Compute:
1

Navigate to Connector Profiles

Login to StackOne and navigate to Connector Profiles
2

Create New Connector Profile

  • Click + Connector Profile
  • Search for and select Google Cloud Compute
  • Select Type as OAuth 2.0
  • Fill out the fields using details retrieved from your provider:
    • Client ID
    • Client Secret
    • Scopes (Optional)
  • (Optional) Select Actions to be enabled for this Connector Profile
  • Click Create profile
Congratulations! The new Connector Profile will now show up in your project ready to be used. You can now continue to Link Accounts for Google Cloud Compute.