Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.55 KB

File metadata and controls

60 lines (45 loc) · 1.55 KB
page_title subcategory description
morpheus_tenant Resource - terraform-provider-morpheus
Provides a Morpheus tenant resource.

morpheus_tenant

Provides a Morpheus tenant resource.

Example Usage

data "morpheus_tenant_role" "example" {
  name = "Tenant Admin"
}

resource "morpheus_tenant" "tf_example_tenant" {
  name            = "tftenant"
  description     = "Terraform example tenant"
  enabled         = true
  subdomain       = "tfexample"
  base_role_id    = data.morpheus_tenant_role.example.id
  currency        = "USD"
  account_number  = "12345"
  account_name    = "tenant 12345"
  customer_number = "12345"
}

Schema

Required

  • base_role_id (Number) The default base role for the account
  • name (String) The name of the tenant

Optional

  • account_name (String) An optional field that can be used for billing and accounting
  • account_number (String) An optional field that can be used for billing and accounting
  • currency (String) Currency ISO Code to be used for the account
  • customer_number (String) An optional field that can be used for billing and accounting
  • description (String) The description of the tenant
  • enabled (Boolean) Whether the tenant is enabled or not
  • subdomain (String) Sets the custom login url or login prefix for logging into a sub-tenant user

Read-Only

  • id (String) The ID of the tenant

Import

Import is supported using the following syntax:

terraform import morpheus_tenant.tf_example_tenant 1