Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Comments
Bookmark
Share
Add to Playlist
Report
004 [Hands-on] Enabling APIs within projects
Abdullah Manzoor
Follow
8/5/2024
Category
😹
Fun
Transcript
Display full video transcript
00:00
Hello everyone and welcome back.
00:04
So, in this video we will see how you can enable a different APIs within a projects.
00:10
So, what does here the enabling API mean?
00:13
So, let's say Google Cloud has a number of different products and a number of different
00:19
services.
00:20
Now, either you interact your Google Cloud from your Google console through your Python
00:26
code or maybe Java code or there are other ways to interact later on, we'll see like
00:32
a Google Cloud SDK or Google Cloud Shell.
00:36
So when you interact with those resources, you're going to interact with some kind of
00:42
application programming interface.
00:44
So let's say on the left hand side, we have things like, let me just.
00:56
So here we have, let's say, SDK or we have, let's say, Python code or we have, let's say,
01:06
Java code.
01:08
So those things want to interact with, let's say, compute engine or some kind of database.
01:16
So this is like a compute engine, some kind of database it wants to interact like a Cloud
01:21
SQL or a Cloud Spanner.
01:24
So they are interacting with some kind of API.
01:27
Now this API is not necessary that always enable.
01:31
But when you create a project, there are some default APIs already being enabled, but not
01:37
necessary every one of them.
01:39
So how we can enable them?
01:40
Because after you enable those API, then only you can interact with those resources through
01:46
different kinds of client.
01:48
So let me go to Google Cloud Console and let me go to IAM, above IAM we have APIs and services.
01:59
So let's just go to the dashboard of APIs and services.
02:02
Now when you want to go to dashboard or a very first link appear on individual menu,
02:08
you do not need to worry about, I mean, going and put it your cursor here.
02:13
You can just directly click on here and by default it will redirect to the very first
02:19
link.
02:20
Alright.
02:21
So you can see we have a dashboard of APIs and services.
02:24
So currently there is no traffic for individual APIs, there is no error and we don't have
02:31
any median latency.
02:33
But on a down, on a bottom of this particular dashboard, you can see we earlier created
02:39
this compute engine.
02:41
So obviously, compute engine APIs got enabled and there are some 1600 JO4 requests got hit
02:50
out of them.
02:51
There is a zero percentage error, this latency, median latency and is 95% latency.
02:57
Alright.
02:58
So these two API must be enabled.
03:01
That's why we are able to hit those resources from our Google Cloud Console.
03:06
Now let's say if you want to enable some API, you can just click on Enable APIs and
03:12
services or you can just simply go to libraries.
03:15
Let me click on Enable APIs and let's say we have lots of lots of services and products
03:22
are available.
03:23
Let's just search for some, let's say BigQuery, yeah, we have a BigQuery API.
03:29
So let me just select on it and let's see whether this particular API is unable or not.
03:37
It's still loading.
03:38
Yeah, so it is already enabled.
03:41
But if you want to, let's say, just manage it, you can just simply go to manage and from
03:48
here you can always create a credential because without credential, how you're going to interact
03:54
with this BigQuery API, you can always disable it from here.
03:58
But we have already this is enabled.
04:01
So what we'll do, let's just go back to our APIs and services, go to libraries.
04:09
Let me search for some other API, let's say PubSub.
04:12
So PubSub is something like a Apache Kafka inside the Google Cloud and you can see this
04:18
PubSub API is still not enabled.
04:21
So we can just make it enabled by click on Enable.
04:25
So this will enable Cloud PubSub API inside our project.
04:29
Now corresponding to every single project, this API enabling is different because project
04:35
is something like a segregating your work under one single umbrella.
04:40
Whatever you are doing under this particular project, that doesn't mean that this got reflected
04:45
into another project.
04:47
Because if you just go to, let's say, our my first project and let me just open it into
04:53
another tab, that will be better.
04:55
Let's just keep this screen as it is.
04:58
And you can see now Cloud PubSub API got enabled.
05:05
You can always find some details about your API that what is the traffic for this particular
05:11
API, what are some of the details, like a service name pubsub.googleapis.com.
05:18
And if you want to find, let's say, credential, why we require credential?
05:23
Because when you hit to this particular services, like this particular API, how you are going
05:29
to authenticate?
05:30
So there are a number of methods through which we can authenticate ourselves while calling
05:36
this Cloud PubSub API.
05:38
So you can always use service account or client ID.
05:42
And depending on different APIs, this authentication mechanism also varies a little bit.
05:47
We have a matrix.
05:49
So corresponding to this API, Cloud PubSub, what are the reports it will generate?
05:57
You can see the traffic error by API code.
05:59
So which particular some API got failed?
06:02
We don't have any data that are available as of now.
06:05
So there is nothing to show here.
06:07
Quotas.
06:08
So obviously, there are some limits.
06:10
So daily quota resets at midnight, what it says that midnight pacific time.
06:16
That's perfectly OK.
06:18
If you just open administrator operation, yeah, so on the bottom of this quotas, you
06:27
can see administrator operation per minute.
06:30
So there is a limit of 6000 and this limit may not be added.
06:35
So this is like 6000 is the maximum might be API call, you can always do it.
06:42
Now if you want to request more quota and limit, you can always go to this quota page.
06:47
Maybe later on, we'll see about that.
06:49
But this is how you can enable the API.
06:51
You can disable the API.
06:53
If you want to disable, you can go to overview and you can disable it.
06:56
Now let me go to another project.
06:58
Currently, I am inside my Learn GCP AC23.
07:05
Now what we'll do, we'll go to another project still.
07:10
The project is not visible here.
07:13
Yeah, I don't know how to navigate to the project.
07:18
So what we'll do, we'll just change the project from here.
07:22
Just remember that this Cloud PubShop API is enabled inside this particular project.
07:27
Now when I go to my first project, let's just enable PubShop.
07:36
And you will be able to see this also enabled here.
07:40
Might be I have enabled for some other reason.
07:43
Otherwise, this is not enabled.
07:45
Let me just disable inside this my first project.
07:48
And let's just go back to our Learn GCP AC projects.
07:54
So any resources you have created by this may be deleted after this API got disabled.
08:01
Now let me just go back to my original projects like a Learn GCP.
08:06
And let me just manage it.
08:08
Yeah.
08:09
So that is for some different purpose.
08:11
We have disabled APIs inside my first project, but inside this particular project, it is
08:17
still not disabled.
08:18
So APIs varies from project to project.
08:22
Inside each project, those APIs, APIs calling, API disabling, enabling is a completely different
08:29
story.
08:30
Alright, so that is all about how one can enable the APIs and disable the API.
Recommended
9:19
|
Up next
009 GCloud command for Module - 1
Abdullah Manzoor
8/9/2024
6:04
007 [Hands-on] Cloud SDK Part - III
Abdullah Manzoor
8/9/2024
9:23
006 [Hands-on] Cloud SDK Part - II
Abdullah Manzoor
8/9/2024
6:43
005 [Hands-on] Cloud SDK Part - I
Abdullah Manzoor
8/9/2024
10:05
004 [Hands-on] Cloud Shell - 3
Abdullah Manzoor
8/9/2024
11:30
001 [Hands-on] Creating projects
Abdullah Manzoor
8/5/2024
23:44
002 [Hands-on] Assigning users to predefined IAM roles within a project
Abdullah Manzoor
8/5/2024
17:35
003 [Hands-on] Managing users in Cloud Identity (manually and automated)
Abdullah Manzoor
8/5/2024
5:22
002 [Hands-on] Establishing billing budgets and alerts
Abdullah Manzoor
8/5/2024
6:26
003 [Hands-on] Setting up billing exports to estimate dailymonthly charges
Abdullah Manzoor
8/5/2024
9:13
001 [Hands-on] Creating one or more billing accounts & Link projects
Abdullah Manzoor
8/5/2024
11:23
003 [Hands-on] Cloud Shell - 2
Abdullah Manzoor
8/5/2024
16:11
002 [Hands-on] Cloud Shell - 1
Abdullah Manzoor
8/5/2024
3:24
001 Section Introduction
Abdullah Manzoor
8/5/2024
5:01
004 Services & Availability Zones
Abdullah Manzoor
7/24/2024
6:12
003 Different GCP Services
Abdullah Manzoor
7/24/2024
8:39
002 [NEW] GCP Region & Zones
Abdullah Manzoor
7/24/2024
5:05
001 [NEW] What is GCP - Google Cloud Computing Platform & Why
Abdullah Manzoor
7/24/2024
1:35
funny video
Abdullah Manzoor
7/23/2024
0:57
tiktok 1
Abdullah Manzoor
7/23/2024
4:02
001 Course Introduction
Abdullah Manzoor
7/10/2024
2:29
005 Create GCP Free Tier Account
Abdullah Manzoor
7/10/2024
13:45
Quran:020 - سورة طه - القارئ: رعد الكردي - Surat Ta-Ha - recitation by: Raad A
Abdullah Manzoor
7/29/2024
39:30
Quran:017 - سورة الإسراء - القارئ: رعد الكردي - Surat Al-Isra - recitatio
Abdullah Manzoor
7/29/2024
0:14
quran-verses-beautiful-quran-recitation-quranrecitation-quranicvers-islam-quran-shorts
Abdullah Manzoor
7/29/2024