Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.63 KB

max_vms_policy.md

File metadata and controls

54 lines (40 loc) · 1.63 KB
page_title subcategory description
morpheus_max_vms_policy Resource - terraform-provider-morpheus
Provides a Morpheus max vms policy resource

morpheus_max_vms_policy

Provides a Morpheus max vms policy resource

Example Usage

resource "morpheus_max_vms_policy" "tf_example_max_vms_policy_global" {
  name        = "tf_example_max_vms_policy_global"
  description = "Terraform example Morpheus max vms policy"
  enabled     = true
  max_vms     = 35
  scope       = "global"
}

Schema

Required

  • max_vms (Number) The maximum vms defined by the policy
  • name (String) The name of the max vms policy
  • scope (String) The filter or scope that the policy is applied to (global, group, cloud, user, role)

Optional

  • apply_to_each_user (Boolean) Whether to assign the policy at the individual user level to all users assigned the associated role
  • cloud_id (Number) The id of the cloud associated with the cloud scoped filter
  • description (String) The description of the max vms policy
  • enabled (Boolean) Whether the policy is enabled
  • group_id (Number) The id of the group associated with the group scoped filter
  • role_id (Number) The id of the role associated with the role scoped filter
  • tenant_ids (List of Number) A list of tenant IDs to assign the policy to
  • user_id (Number) The id of the user associated with the user scoped filter

Read-Only

  • id (String) The ID of the max vms policy

Import

Import is supported using the following syntax:

terraform import morpheus_max_vms_policy.tf_example_max_vms_policy 1