Use the commvault_google_storage
resource type to create or delete a Google Cloud Storage in the CommCell environment.
Syntax
resource "commvault_google_storage" "<local_name>"{
storage_name = "<Googlestorage name>"
mediaagent = "<MediaAgent name>"
service_host = "<Google service host>"
secret_access_key = "<Google access key>"
access_key_id = "<Google access key ID>"
credentials_name = "<Azure credential>"
container= "<Google container name>"
ddb_location = "<DDB location>"
company_id = <company ID>
}
Where local name is the name that is used by the Commvault Terraform module to refer the resource and has no significance in the target platform.
Arguments
Name | Description | Required | More Information |
---|---|---|---|
storage_name | The name of the Google Cloud Storage. | Yes | |
mediaagent | The MediaAgent that is used for the Google Cloud Storage. | Yes | |
service_host | The service host name for the Google Cloud Storage. | Yes | |
secret_access_key | The account name of the Google Cloud Storage. | No | If you include the |
access_key_id | The access key ID of the Google Cloud Storage account. | No | |
credentials_name | The name of the credential that you want to use for the Google Cloud Storage account. | No | |
container | The name of the container used for the Google Storage Cloud. | Yes | |
ddb_location | The deduplication path for the Google Cloud Storage. | No | |
company_id | The ID of the company that you want to associate the Google Cloud Storage with. | No |
Example
The following resource block manages the google_cvlt_us Google Storage:
resource "commvault_google_storage" "CAWS"{
storage_name = "google_cvlt_us"
mediaagent = "MediaAgent"
service_host = "us-east-1.googlestorage.com"
secret_access_key = "Google access key"
access_key_id = "AccessKey_ID"
credentials_name = "googlecredential"
container = "Googlecontainer"
ddb_location = "c:\\DemoDiskStorage-Dedup-DDB"
company_id = 22
}