1. Home
  2. Training Library
  3. Cloud Computing Fundamentals
  4. Courses
  5. Setting up a Google Cloud Platform Environment

Enabling APIs

Start course
Overview
Difficulty
Beginner
Duration
34m
Students
2288
Ratings
4.9/5
starstarstarstarstar-half
Description

Google Cloud Platform provides a suite of resources and services that run on the same infrastructure that Google uses to run its own products, such as Google Search and YouTube. The services offered to access GCP resources include compute, storage, networking, big data, and machine learning.

In this course, you will learn how to create and set up new GCP projects and how to give users permission to access project resources by assigning them to roles such as owner and editor. You will also learn how to enable APIs, set up budgets, and monitor spending.

Learning Objectives

  • Create and manage cloud projects
  • Create and add users to projects
  • Assign permissions to users
  • Enable APIs for a project
  • Set up budgets and monitor spending

Intended Audience

  • Google Cloud Platform Administrators
  • People who want to get GCP certified (eg: Associate Cloud Engineer)

Prerequisites

  • Admin access to a GCP account is highly recommended
Transcript

In order to access certain Google Cloud resources, you may need to enable the corresponding API.  Google Cloud APIs are application programming interfaces that give you access to certain Google Cloud services.  APIs for common tasks are enabled by default.  But many APIs are disabled and need to be explicitly enabled for your project before you can start using them.

Suppose you are writing an application that interacts with a user's Google Calendar.  In order to add or modify events, you would need to enable the Google Calendar API.  You can find a complete list of all APIs at https://cloud.google.com/apis. When you enable an API, the corresponding monitoring pages and billing properties are also added to your project.

Let me demonstrate how to enable an API for a project.  First, verify that you have the correct project selected in the drop down.  Then go to the navigation menu and select “APIs & Services” and “Dashboard”.  This will show you all your currently enabled APIs.  If you want to add a new one, click the “Enable APIs and Services” button at the top of the page.  You can browse the list or search for the name.  I’ll just pick the “Google Calendar API”.  And then click the enable button. 

Now some APIs require more than just enabling them.  You might need to do some extra steps.  For example, some will ask you to accept their terms of service.  Others may require additional signup.  Like here, I need to create some credentials to get it fully working.  But we can verify that the API was enabled by going back to the Dashboard.  And here we can see that the Google Calendar API has been enabled. 

When you no longer have use for an API, you can disable it as well. To disable an API for your project, select the API.  Then click the “Disable API” link at the top of the page.  We can confirm it was disabled by double checking the dashboard.  And there you go.  The Google Calendar API is no longer listed.

Remember that you only want to enable the APIs you actually need in the projects that will use them.  When an API is disabled, you can’t accidentally use it and avoid wasting money.

About the Author
Students
13452
Courses
22
Learning Paths
10

Daniel began his career as a Software Engineer, focusing mostly on web and mobile development. After twenty years of dealing with insufficient training and fragmented documentation, he decided to use his extensive experience to help the next generation of engineers.

Daniel has spent his most recent years designing and running technical classes for both Amazon and Microsoft. Today at Cloud Academy, he is working on building out an extensive Google Cloud training library.

When he isn’t working or tinkering in his home lab, Daniel enjoys BBQing, target shooting, and watching classic movies.

Covered Topics