Use the commvault_company
resource type to create and delete a company in the CommCell environment.
Syntax
resource "commvault_company" "<local_name>" {
company_name = "<user_name>"
email = "<email_address>"
contact_name= "<contact_name>"
company_alias= "<company_alias>"
plans = ["<plan_name1>, "<plan_name2>"]
associated_smtp="<SMTP_server>"
send_email=<boolean_values: true or false>
}
Where local name is the name that is used by the Commvault Terraform module to refer to the resource and has no significance in the target platform.
Arguments
Name | Description | Required |
---|---|---|
company_name | The name of the company. | Yes |
The email address of the tenant administrator. | Yes | |
contact_name | The contact person for the company. | Yes |
company_alias | The alias name of the company. | Yes |
plans | A list of the data protection plans that you want to associate with the company. The tenant administrator can choose from the plans that you specify. | No |
associated_smtp | The SMTP server name that is associated with the email address. | No |
send_email | An indication of whether email notifications will be sent for the company. | No |
company_id | The ID of the company that you want to associate a child company with. | No |
Example
The following resource block manages the worldone company:
resource "commvault_company" "Company1"{
company_name = "worldone"
email = "DemoCompany@company.com"
contact_name = "ContactName"
company_alias = "CompanyAlias"
plans = [“Plan1”,”Plan2”]
associated_smtp = “SMTP_Server”
send_email = false
}