Set up Google Cloud
BlueXP needs access to the Cloud Volumes Service API and the right permissions through a Google Cloud service account.
Step 1: Enable the Cloud Volumes Service API
Enable the Cloud Volumes Service API so that BlueXP can manage the subscription and cloud volumes.
-
From Google Cloud, launch a Cloud Shell session.
-
Run the following command to enable the Cloud Volumes Service API:
gcloud --project=<my-cvs-project> services enable cloudvolumesgcp-api.netapp.com
Step 2: Set up a service account
Complete the following tasks so that BlueXP can access your Google Cloud project:
-
Create a new service account
-
Add the new service account member to your project and assign it specific roles (permissions)
-
Create and download a key pair for the service account that is used to authenticate to Google
-
In the Google Cloud console, go to the Service accounts page.
-
Click Select a project, choose your project, and click Open.
-
Click Create service account.
-
Enter the service account name (friendly display name) and description.
The Cloud Console generates a service account ID based on this name. Edit the ID if necessary - you cannot change the ID later.
-
To set access controls now, click Create and then DONE from the bottom of the page, and continue to the next step.
-
From the IAM page click Add and fill out the fields in the Add Members page:
-
In the New Members field, enter the full service account ID.
For example: user1-service-account-cvs@project1.iam.gserviceaccount.com
-
Add these roles:
-
NetApp Cloud Volumes Admin
-
Compute Network Viewer
-
-
Click Save.
-
-
Click the Service Account name, and then from the Service account details page, click Add key > Create new key.
-
Select JSON as the key type and click Create.
By clicking Create your new public/private key pair is generated and downloaded to your system. It serves as the only copy of the private key. Store this file securely because it can be used to authenticate as your service account.
For detailed steps, refer to Google Cloud documentation: