page_title | subcategory | description |
---|---|---|
morpheus_backup_creation_policy Resource - terraform-provider-morpheus |
Provides a Morpheus backup creation policy resource |
Provides a Morpheus backup creation policy resource
Creating the policy with a global scope:
resource "morpheus_backup_creation_policy" "tf_example_backup_creation_policy_global" {
name = "tf_example_backup_creation_policy_global"
description = "tfvsphere"
enabled = true
enforcement_type = "fixed"
create_backup = true
scope = "global"
}
Creating the policy with a cloud scope:
resource "morpheus_backup_creation_policy" "tf_example_backup_creation_policy_cloud" {
name = "tf_example_backup_creation_policy_cloud"
description = "tfvsphere"
enabled = true
enforcement_type = "fixed"
create_backup = true
scope = "cloud"
cloud_id = 1
}
Creating the policy with a group scope:
resource "morpheus_backup_creation_policy" "tf_example_backup_creation_policy_group" {
name = "tf_example_backup_creation_policy_group"
description = "tfvsphere"
enabled = true
enforcement_type = "fixed"
create_backup = true
scope = "group"
group_id = 1
}
Creating the policy with a role scope:
resource "morpheus_backup_creation_policy" "tf_example_backup_creation_policy_role" {
name = "tf_example_backup_creation_policy_role"
description = "tfvsphere"
enabled = true
enforcement_type = "fixed"
create_backup = true
scope = "role"
role_id = 1
apply_each_user = true
}
Creating the policy with a user scope:
resource "morpheus_backup_creation_policy" "tf_example_backup_creation_policy_user" {
name = "tf_example_backup_creation_policy_user"
description = "tfvsphere"
enabled = true
enforcement_type = "fixed"
create_backup = true
scope = "user"
user_id = 1
}
create_backup
(Boolean) Whether to create a backupenforcement_type
(String) The policy enforcement type (fixed or user)name
(String) The name of the backup creation policyscope
(String) The filter or scope that the policy is applied to (global, group, cloud, user, role)
apply_to_each_user
(Boolean) Whether to assign the policy at the individual user level to all users assigned the associated rolecloud_id
(Number) The id of the cloud associated with the cloud scoped filterdescription
(String) The description of the backup creation policyenabled
(Boolean) Whether the policy is enabledgroup_id
(Number) The id of the group associated with the group scoped filterrole_id
(Number) The id of the role associated with the role scoped filtertenant_ids
(List of Number) A list of tenant IDs to assign the policy touser_id
(Number) The id of the user associated with the user scoped filter
id
(String) The ID of the backup creation policy
Import is supported using the following syntax:
terraform import morpheus_backup_creation_policy.tf_example_backup_creation_policy 1