{"id":33176,"date":"2021-01-19T11:52:42","date_gmt":"2021-01-19T11:52:42","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=33176"},"modified":"2021-01-19T11:52:42","modified_gmt":"2021-01-19T11:52:42","slug":"enabling-apis-within-projects","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/","title":{"rendered":"Enabling APIs within projects"},"content":{"rendered":"\n<p><strong><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/google-associate-cloud-engineer-exam\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to GCP Tutorials<\/a><\/strong><\/p>\n\n\n\n<p>In this we will learn about Enabling APIs within projects.<\/p>\n\n\n\n<p>However, when an API requires an API key and the API is associated with a Google Cloud project that you don&#8217;t have access to, you have the following options to obtain an API key:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, Ask a member of the Google Cloud project to create an API key for you.<\/li><li>Secondly, Ask a member of the Google Cloud project to grant you access to the project so that you can create an API key in the same project that the API is associated with.<\/li><li>Lastly, Ask a member of the Google Cloud project to grant you access to enable the API in your own Google Cloud project so that you can create an API key.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Enabling an API<\/strong><\/h4>\n\n\n\n<p>If you used option 3 and asked someone to grant you access to enable the API. Then, follow the steps below to enable the API in your own Google Cloud project.<\/p>\n\n\n\n<p><strong>To enable an API:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, in the Cloud Console, go to APIs &amp; services for your project.<\/li><li>Secondly, on the Library page, click Private APIs. If you don&#8217;t see the API listed, that means you haven&#8217;t been granted access to enable the API.<\/li><li>Then, click the API you want to enable. If you need help finding the API, use the search field.<\/li><li>Lastly, on the page that displays information about the API, click Enable.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Granting and revoking access to the API<\/strong><\/h4>\n\n\n\n<p><strong>Granting access<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, in the Cloud Console, go to the Endpoints > Services page for your project.<\/li><li>Secondly, if you have more than one API, click the name of the API.<\/li><li>Thirdly, if the Permissions side panel isn&#8217;t open, click +Permissions.<\/li><li>Fourthly, in the Add members box, enter the email address of a user, service account, or Google Group.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.testpreptraining.ai\/google-cloud-certified-associate-cloud-engineer-free-practice-test\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"117\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Google-Associate-Cloud-Engineer-Exam-free-practice-tests-750x117.png\" alt=\"Google Associate Cloud Engineer free practice tests\" class=\"wp-image-33170\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Google-Associate-Cloud-Engineer-Exam-free-practice-tests-750x117.png 750w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Google-Associate-Cloud-Engineer-Exam-free-practice-tests.png 961w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Then, in the Select a role drop-down, click Service Management, and select one of the following roles:<ul><li><em>Service Consumer:<\/em> This role contains the permissions for a non-project member to view and enable the API in their own project. <\/li><\/ul><ul><li><em>Service Controller:<\/em> This role contains the permissions to make calls to the check and report methods in the Service Infrastructure API during runtime.<\/li><\/ul><ul><li>Next, <em>Service Config Editor:<\/em> This role contains the minimum permissions that Service Management requires to deploy an Endpoints configuration to an existing service.<\/li><\/ul><ul><li><em>Service Management Administrator:<\/em> This role contains the permissions in the Service Config Editor, Service Consumer, and Service Controller roles, plus the permissions required to grant access to this API.<\/li><\/ul><\/li><li>After that, to add the member to the specified IAM role, click Add.<\/li><li>Now, repeat adding members and selecting the role, as needed.<\/li><li>Lastly, The Service Management roles don&#8217;t allow users to access the Endpoints > Services page in the Cloud Console. However, if you want users to be able to access the Endpoints > Services page. Then, you must grant them the Project Viewer role or a higher role on the project. <\/li><\/ul>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>Revoking access<\/strong><\/h6>\n\n\n\n<p>To revoke access to your API, remove the IAM role from the member who previously had the role.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, in the Cloud Console, go to the Endpoints > Services page for your project.<\/li><li>Secondly, if you have more than one API, click the name of the API.<\/li><li>Thirdly, if the Permissions side panel isn&#8217;t open, click +Permissions.<\/li><li>Next, locate the member for whom you want to revoke access. You can either click the applicable Role card to see a list of members, or you can enter a name or role in the Search members box.<\/li><li>After that, click Delete delete.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.testpreptraining.ai\/google-cloud-certified-associate-cloud-engineer-practice-exam\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"117\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Google-Associate-Cloud-Engineer-Exam-online-course-750x117.png\" alt=\"Enabling APIs within projects Google Associate Cloud Engineer Online course\" class=\"wp-image-33167\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Google-Associate-Cloud-Engineer-Exam-online-course-750x117.png 750w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Google-Associate-Cloud-Engineer-Exam-online-course.png 961w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><strong>Reference:<\/strong> <a href=\"https:\/\/cloud.google.com\/endpoints\/docs\/openapi\/control-api-access\" target=\"_blank\" rel=\"noreferrer noopener\">Google Documentation<\/a><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/google-associate-cloud-engineer-exam\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to GCP Tutorials<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go back to GCP Tutorials In this we will learn about Enabling APIs within projects. However, when an API requires an API key and the API is associated with a Google Cloud project that you don&#8217;t have access to, you have the following options to obtain an API key: Firstly, Ask a member of the&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-33176","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Enabling APIs within projects - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Enhance your knowledge and skills about Enabling APIs within projects using the Google Associate Cloud Engineer Course Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enabling APIs within projects - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Enhance your knowledge and skills about Enabling APIs within projects using the Google Associate Cloud Engineer Course Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Google-Associate-Cloud-Engineer-Exam-free-practice-tests-750x117.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/\",\"name\":\"Enabling APIs within projects - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2021-01-19T11:52:42+00:00\",\"dateModified\":\"2021-01-19T11:52:42+00:00\",\"description\":\"Enhance your knowledge and skills about Enabling APIs within projects using the Google Associate Cloud Engineer Course Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enabling APIs within projects\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Enabling APIs within projects - Testprep Training Tutorials","description":"Enhance your knowledge and skills about Enabling APIs within projects using the Google Associate Cloud Engineer Course Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/","og_locale":"en_US","og_type":"article","og_title":"Enabling APIs within projects - Testprep Training Tutorials","og_description":"Enhance your knowledge and skills about Enabling APIs within projects using the Google Associate Cloud Engineer Course Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/","og_site_name":"Testprep Training Tutorials","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2021\/01\/Google-Associate-Cloud-Engineer-Exam-free-practice-tests-750x117.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/","name":"Enabling APIs within projects - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2021-01-19T11:52:42+00:00","dateModified":"2021-01-19T11:52:42+00:00","description":"Enhance your knowledge and skills about Enabling APIs within projects using the Google Associate Cloud Engineer Course Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/enabling-apis-within-projects\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Enabling APIs within projects"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/33176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=33176"}],"version-history":[{"count":7,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/33176\/revisions"}],"predecessor-version":[{"id":33234,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/33176\/revisions\/33234"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=33176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=33176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=33176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}