Configuring Google Cloud Storage for 3CX

Configuring Google Cloud Storage for 3CX

Take advantage of the reliable and cost-efficient online storage on Google Cloud Platform. 3CX enables you to create storage buckets under your Google Cloud account and use these to store backups and/or archive recordings.

Prerequisites

To configure Google storage buckets, go to “IAM & Admin” > “IAM” in your Google Cloud dashboard and verify that your account has at minimum these roles assigned:

Configuring Google Cloud Storage for 3CX  - Permissions

  1. “Service Account Admin”.
  2. “Service Account Key Admin”.
  3. “Project IAM Admin”.
  4. “Storage Admin”.

Creating a Service Account

To create a Google Cloud Platform storage bucket you need to first create a service account under your project:

  1. Go to Google Cloud Console and log in with your credentials to view your dashboard.
  2. Select your project from the top navigation bar, or create a new one and select it.
  3. Go to “IAM & Admin” > Service accounts.

Creating a service account in Google cloud storage

  1. Click on “Create Service Account” and fill in the info for the new service account in your selected project. Click on “Create”.

Grant this service account access to project

  1. On the Grant this service account access to project” page, select the “Storage Admin” role,click on “Continue” and then “Done”.

📄 Note: Refer to the Google Cloud roles documentation for more info on roles and their respective permissions.

  1. Go back to the service account page and "Keys" section and press the "Add Key" > "Create new key". In the “Key type” select “JSON” and click on “Create”.

Creating a Storage Bucket

If you have an active subscription with configured payment options, proceed to create a new storage bucket under your Google cloud project :

  1. From the main navigation menu, select “Storage” > “Browser” and click on “Create Bucket” to create a new storage bucket.

Configuring Google Cloud Storage for 3CX - Create a bucket

  1. On the "Create a bucket" page, configure:
  1. Name - enter a globally unique permanent name.
  2. Where to store data - select storage location type according to your requirements.
  3. Storage class - select the appropriate storage class for your use.
  4. Access control - set how to control access to the objects in the storage bucket.
  5. Advanced settings - optionally set encryption and retention policy preferences for the storage bucket.
  1. Click on “Create” to set up the new storage bucket.
  2. After creating your storage bucket, you can click on “Create folder” to add new folders for keeping backups and archived recordings in, e.g. “3cx_backups”.

Proceed to use your saved JSON key and set the configured Google Cloud storage bucket as a location to store 3CX backups and archive recordings.

⚠ Important:

  • Stored backup files or archived recordings in the “Hold” state or stored/archived due to effective retention policy, cannot be deleted or overwritten by the PBX.