{"id":175974,"date":"2021-04-04T17:07:52","date_gmt":"2021-04-05T00:07:52","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=175974"},"modified":"2021-04-08T23:53:58","modified_gmt":"2021-04-09T06:53:58","slug":"generate-service-account-key-in-google-cloud-platform-gcp","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/generate-service-account-key-in-google-cloud-platform-gcp\/","title":{"rendered":"Generate service account key  in Google Cloud Platform (GCP)"},"content":{"rendered":"<p>Service accounts are used by applications to make authorized APIs calls on the Google Cloud Platform(GCP). In order for the IoT Cloud Tester application to interact with GCP through APIs, the service account for the project is required.<\/p>\n<h1>How to generate service account key in GCP?<\/h1>\n<ul>\n<li>Login to your Google Cloud Platform.<\/li>\n<li>Go to the GCP Console home page &#8211;&nbsp;https:\/\/console.cloud.google.com\/.<\/li>\n<li>Click on &#8216;Go to project settings&#8217;.<\/li>\n<li>Click on the &#8216;Service Accounts&#8217; menu on the left navigation bar.<\/li>\n<li>Click on &#8216;Create Service Account&#8217;.<\/li>\n<li>Enter the service account name and description details, grant the service account access to the project and create the account.<\/li>\n<li>Select the newly created service account and click on the &#8216;KEYS&#8217; tab.<\/li>\n<li>Click the &#8216;ADD KEY&#8217; dropdown, select &#8216;Create New Key&#8217; and select JSON as the key type.<\/li>\n<li>The service account key JSON file is automatically downloaded to your local machine.<\/li>\n<\/ul>\n<h2>Login to GCP Home Page<\/h2>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gcp_project_home.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-175979\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gcp_project_home.png\" alt=\"\" width=\"1332\" height=\"859\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gcp_project_home.png 1332w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gcp_project_home-300x193.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gcp_project_home-768x495.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gcp_project_home-1024x660.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gcp_project_home-600x387.png 600w\" sizes=\"auto, (max-width: 1332px) 100vw, 1332px\" \/><\/a><\/p>\n<h2>Create the service account<\/h2>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-176463\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_1.png\" alt=\"\" width=\"1581\" height=\"936\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_1.png 1581w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_1-300x178.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_1-768x455.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_1-1024x606.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_1-600x355.png 600w\" sizes=\"auto, (max-width: 1581px) 100vw, 1581px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-175980\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create.png\" alt=\"\" width=\"1333\" height=\"858\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create.png 1333w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create-300x193.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create-768x494.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create-1024x659.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create-600x386.png 600w\" sizes=\"auto, (max-width: 1333px) 100vw, 1333px\" \/><\/a><\/p>\n<h2>Grant the service account access to project<\/h2>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-176464\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_15.png\" alt=\"\" width=\"1574\" height=\"923\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_15.png 1574w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_15-300x176.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_15-768x450.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_15-1024x600.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_15-600x352.png 600w\" sizes=\"auto, (max-width: 1574px) 100vw, 1574px\" \/><\/a><\/p>\n<h2>Select the newly created service account<\/h2>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-175981\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_2.png\" alt=\"\" width=\"1344\" height=\"859\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_2.png 1344w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_2-300x192.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_2-768x491.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_2-1024x654.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_2-600x383.png 600w\" sizes=\"auto, (max-width: 1344px) 100vw, 1344px\" \/><\/a><\/p>\n<h2>Create key for the service account<\/h2>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-175982\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_3.png\" alt=\"\" width=\"1379\" height=\"808\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_3.png 1379w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_3-300x176.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_3-768x450.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_3-1024x600.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_3-600x352.png 600w\" sizes=\"auto, (max-width: 1379px) 100vw, 1379px\" \/><\/a><\/p>\n<h2>Generate the service account JSON key and download<\/h2>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-175983\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_4.png\" alt=\"\" width=\"1367\" height=\"805\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_4.png 1367w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_4-300x177.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_4-768x452.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_4-1024x603.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/04\/gscp_service_account_create_4-600x353.png 600w\" sizes=\"auto, (max-width: 1367px) 100vw, 1367px\" \/><\/a><\/p>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/dj9fxiuz4WM\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Service accounts are used by applications to make authorized APIs calls on the Google Cloud Platform(GCP). In order for the IoT Cloud Tester application to interact with GCP through APIs, the service account for the project is required. How to &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/generate-service-account-key-in-google-cloud-platform-gcp\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"iot_tutorial_template.php","meta":{"footnotes":""},"class_list":["post-175974","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/175974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=175974"}],"version-history":[{"count":5,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/175974\/revisions"}],"predecessor-version":[{"id":176466,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/175974\/revisions\/176466"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=175974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}