IT and Development
Google Cloud Storage
14min
with google cloud storage modules in make, you can manage the buckets and objects in your google cloud storage account to use the google cloud storage modules, you must have a google account, and a google cloud storage project created in your google cloud platform https //console cloud google com/welcome?pli=1\&project=storied scarab 310722 you can create an account at accounts google com https //accounts google com/signup/v2/createaccount?hl=en\&flowname=glifwebsignin\&flowentry=signup\&theme=glif you need to add make as an authorized data source in google cloud storage refer to the google cloud storage api documentation https //cloud google com/storage/docs/apis for a list of available endpoints make's use and transfer of information received from google apis to any other app will adhere to google api services user data policy https //developers google com/terms/api services user data policy connect google cloud storage to make to establish the connection, you must google cloud storage docid\ nbw04jkdpah1trndsjygh google cloud storage docid\ nbw04jkdpah1trndsjygh create and configure a google cloud platform project for google cloud storage before you establish the connection in make, you must create and configure a project in the google cloud platform to obtain your client credentials create a google cloud platform project for google cloud storage to create a google cloud platform project log in to the google cloud platform https //console cloud google com/ using your google credentials on the welcome page, click create or select a project > new project enter a project name and select the location for your project click create in the top menu, check if your new project is selected in the select a project dropdown if not, select the project you just created to create a new project or work in the existing one, you need to have the serviceusage services enable permission if you don’t have this permission, ask the google cloud platform project owner or project iam admin to grant it to you enable apis for google cloud platform to enable the required apis open the left navigation menu and go to apis & services > library search for the following apis cloud resource manager api , cloud pub/sub api (only for the watch objects module) click the relevant api, then click enable configure your oauth consent screen for google cloud platform to configure your oauth consent screen in the left sidebar, click google auth platform click get started in the overview section, under app information , enter make as the app name and provide your gmail address click next under audience , select external for more information regarding user types, refer to google's exceptions to verification requirements documentation https //support google com/cloud/answer/9110914#exceptions ver reqts under contact information , enter your gmail address under finish , agree to the google user data policy click continue > create click create oauth client in the branding section, under authorized domains , add make com and integromat com click save optional in the audience section, add your gmail address on the test users page, then click save and continue if you want the project to remain in the testing publishing status in the data access section, click add or remove scopes , add the following scopes, and click update > save https //www googleapis com/auth/devstorage read write https //www googleapis com/auth/devstorage full control https //www googleapis com/auth/devstorage read only https //www googleapis com/auth/cloud platform read only https //www googleapis com/auth/cloud platform you can add scopes using a table with filters a window to manually enter scopes publishing status testing if you keep your project in the testing status, you will be required to reauthorize your connection in make every week to avoid weekly reauthorization, update the project status to in production in production if you update your project to the in production status, you will not be required to reauthorize the connection weekly to update your project's status, go to the google auth platform , the audience section, and click publish app if you see the notice needs verification , you can choose whether to go through the google verification process https //support google com/cloud/answer/13463073?authuser=1\&visit id=638718595933013017 1855034908\&rd=1 for the app or to connect to your unverified app currently connecting to unverified apps works in make, but we cannot guarantee the google will allow connections to unverified apps for an indefinite period for more information regarding the publishing status, refer to the publishing status section of google's setting up your oauth consent screen help https //support google com/cloud/answer/10311615#zippy= create your google cloud storage client credentials to create your client credentials in google auth platform, click clients click + create client in the application type dropdown, select web application update the name of your oauth client this will help you identify it in the platform in the authorized redirect uris section, click + add uri and enter the following redirect uri https //www integromat com/oauth/cb/google custom click create click the oauth 2 0 client you created, copy your client id and client secret values, and store them in a safe place you will use these values in the client id and client secret fields in make establish the connection with google cloud storage in make to establish the connection in make log in to your make account, add a google cloud storage module to your make, and click create a connection note if you add a module with an instant tag, click create a webhook , then create a connection optional in the connection name field, enter a name for the connection in the client id and client secret fields, enter the values you copied in the google cloud storage docid\ nbw04jkdpah1trndsjygh above optional switch on the show advanced settings toggle and add the needed scopes click sign in with google if prompted, authenticate your account and confirm access you have successfully established the connection you can now edit your make and add more google cloud storage modules if your connection requires reauthorization at any point, follow the connection renewal steps here docid\ so88fm6pkt0g adkddfzz build google cloud storage make after connecting the app, you can perform the following actions buckets create a bucket note refer to google documentation https //cloud google com/storage/docs/buckets#naming to learn more about buckets name in the labels field, specify key value metadata pairs that allow you to group your buckets along with other google cloud resources such as virtual machine instances https //cloud google com/compute/docs/instances and persistent disks https //cloud google com/compute/docs/disks#pdspecs for example, you can use labels to create a team key that has values alpha , beta , and delta , and apply the team\ alpha , team\ beta , and team\ delta labels to different buckets in order to indicate which team is associated with those buckets you can create a maximum of 64 labels in the predefined acl field, select a predefined set of access controls for this bucket in the predefined default object acl field, select a predefined set of default object access controls for this bucket get a bucket list buckets update a bucket delete an empty bucket objects watch objects upload an object note the maximum size is 5 tb merge objects get an object search objects clone an object update an object delete an object bucket acls create a bucket acl get a bucket acl list bucket acls update a bucket acl delete a bucket acl bucket default object acls create a bucket's default object acl get a bucket's default object acls update a bucket's default object acl delete a bucket's default object acl object acls create an object acl get an object acl list object acls update an object acl delete an object acl other make an api call