Correct way to configure API client to manage resources on GCP account

0 votes
I want to configure API client to manage resources on my GCP account. These steps that I did. Are there any missing steps?

1- Install the Google API client -->; (Done)

Win 10: pip install virtualenv

virtualenv my_env

my_env\Scripts\activate my-env\Scripts\pip.exe install google-api-python-client

2- Set up GCP credentials --> I am not sure which option to choose but I choose API keys, Dashboard -> Credentials -> there are 3 options: API keys, OAuth 2.0 Client IDs, Service Accounts

3- Create a new GCP project. (done)

4- Set up google cloud SDK --> (done)
Jul 22 in GCP by Angelus
• 170 points

edited Jul 22 by Angelus 97 views
What is the requirement ? Are you trying to manage the python application using this?

1 answer to this question.

0 votes

Here's how you could do the installation:

On Windows:

pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-api-python-client

On MAC/Linux:

pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-api-python-client

This should do!

answered Jul 27 by Sirajul
• 58,020 points

Related Questions In GCP

0 votes
1 answer

How to authenticate with the correct account in GCP from Command Line?

Hi@akhtar, You can check your accounts from the ...READ MORE

answered Sep 24 in GCP by MD
• 57,800 points
11 views
0 votes
1 answer
+2 votes
1 answer

GCP Error: "Unable to connect on port 22"

You may see this error under the ...READ MORE

answered Sep 24, 2019 in GCP by Sirajul
• 58,020 points
2,915 views
0 votes
1 answer
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Changing Machine Instance on GCP

There is no direct method to change ...READ MORE

answered Aug 1, 2018 in GCP by kurt_cobain
• 9,320 points
83 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Is it possible to require labels on creation of any of the GCP resources?

The labels are a simple way to group resources that are connected or related to others. For example you'll ...READ MORE

answered Nov 5, 2019 in GCP by anonymous
• 58,020 points
410 views