page_title | subcategory | description |
---|---|---|
morpheus_cypher_access_policy Resource - terraform-provider-morpheus |
Provides a Morpheus cypher access policy resource |
Provides a Morpheus cypher access policy resource
Creating the policy with a global scope:
resource "morpheus_cypher_access_policy" "tf_example_cypher_access_policy_global" {
name = "tf_example_cypher_access_policy_global"
description = "terraform example global cypher access policy"
enabled = true
key_path = ".*"
read_access = true
write_access = true
update_access = true
list_access = true
delete_access = true
scope = "global"
}
Creating the policy with a role scope:
resource "morpheus_cypher_access_policy" "tf_example_cypher_access_policy_role" {
name = "tf_example_cypher_access_policy_role"
description = "terraform example role cypher access policy"
enabled = true
key_path = ".*"
read_access = true
write_access = true
update_access = true
list_access = true
delete_access = true
scope = "role"
role_id = 1
apply_to_each_user = true
}
Creating the policy with a user scope:
resource "morpheus_cypher_access_policy" "tf_example_cypher_access_policy_user" {
name = "tf_example_cypher_access_policy_user"
description = "terraform example user cypher access policy"
enabled = true
key_path = ".*"
read_access = true
write_access = true
update_access = true
list_access = true
delete_access = true
scope = "user"
user_id = 1
}
key_path
(String) The key path associated with the cypher access policyname
(String) The name of the cypher access policyscope
(String) The filter or scope that the policy is applied to (global, user, role)
apply_to_each_user
(Boolean) Whether to assign the policy at the individual user level to all users assigned the associated roledelete_access
(Boolean) Whether the policy grants delete accessdescription
(String) The description of the cypher access policyenabled
(Boolean) Whether the policy is enabledlist_access
(Boolean) Whether the policy grants list accessread_access
(Boolean) Whether the policy grants read accessrole_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 toupdate_access
(Boolean) Whether the policy grants update accessuser_id
(Number) The id of the user associated with the user scoped filterwrite_access
(Boolean) Whether the policy grants write access
id
(String) The ID of the cypher access policy
Import is supported using the following syntax:
terraform import morpheus_cypher_access_policy.tf_example_cypher_access_policy 1