Skip to main content
All CollectionsAdministrators
Enabling API Output to Google Cloud Platform
Enabling API Output to Google Cloud Platform
C
Written by Corbin McNutt
Updated over a year ago

These instructions assume that you are using "Uniform Access Control." If using "Fine-Grained" you may have to be more specific in granting permissions to specific keys.

Within the section "Cloud Storage" in Google Cloud Platform, select the bucket that you would like to write files to, for this example: "onspot-bucket". Once selected, go to the "Permissions" tab and Add a new member, the name of this member should be: "onspot-api@onspot-api-307821.iam.gserviceaccount.com" and grant at a minimum the following roles: "Storage Legacy Bucket Reader" and "Storage Legacy Bucket Writer".

Interacting with the OnSpot API:

You can now provide an outputLocation to an API request with the bucket with correct permissions (ex. with "onspot-bucket"):

"outputLocation": "gs://onspot-bucket/testaudience"

Did this answer your question?