The commvault_plan Terraform Resource

Updated

On this page

Use the commvault_plan resource type to create and delete a server plan in the CommCell environment.

Syntax

resource "commvault_plan" "<local name>"{ 

plan_name = "<Name of the plan>"

retention_period_days = <Number of days for retention period>

backup_destination_name = "<Backup destination name>"

backup_destination_storage = "<Backup destination storage>"

}

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

plan_name

The name of the plan.

Yes

retention_period_days

The number of days for the retention period.

Yes

backup_destination_name

The name of the backup destination for the plan.

Yes

backup_destination_storage

The name of the storage for the backup destination.

Yes

company_id

The ID of the company that you want the plan to associate with.

No

Example

This resource block manages prodserv plan.

resource "commvault_plan" "Plan1"{

plan_name = "prodserv"

retention_period_days= 15

backup_destination_name = "TestDest"

backup_destinaion_storage = "TestStoragePool"

}