Skip to main content

Google Cloud Storage

Note: The information on this page applies to orders placed through the Ordering API only. It does not apply to orders placed via the MGP Pro User interface.

Grant permissions to your Google Cloud Storage bucket

The files from an order can be delivered to a Google Cloud Storage (GCS) location. The Ordering API must have permission to write to your GCS delivery location.

To grant permission to write to your GCS bucket, follow the steps below:

  1. Set up your GCS service account with the following permissions:

    storage.buckets.get
    storage.objects.create
    storage.objects.delete
    storage.objects.get
    storage.objects.list
    storage.objects.update
  2. Generate a service key for your account with "JSON" as the key type.

  3. Convert the JSON key to a Base64-encoded string.

Include the Base64-encoded string in the order request.

When ordering, you must send the Base64-encoded string in the order request.

note: For one-time use credentials, set an expiration date that allows 3-5 days to give plenty of time for order processing and delivery to your cloud storage location.

Example:

{
"type": "google_cloud_storage",
"service_credentials": "... base64-encoded credentials string ...",
"bucket": "my-bucket",
"prefix": "prefix-1"
}