Skip to content

Latest commit

 

History

History
243 lines (181 loc) · 5.56 KB

File metadata and controls

243 lines (181 loc) · 5.56 KB
page_title subcategory description
epilot-product_product Resource - terraform-provider-epilot-product
Product Resource

epilot-product_product (Resource)

Product Resource

Example Usage

resource "epilot-product_product" "my_product" {
  active = false
  additional = {
    key = jsonencode("value"),
  }
  availability_files = {
    dollar_relation = [
      {
        entity_id = "123e4567-e89b-12d3-a456-426614174000"
        tags = [
          "..."
        ]
      }
    ]
  }
  code        = "...my_code..."
  description = "...my_description..."
  feature = [
    "{ \"see\": \"documentation\" }"
  ]
  files = {
    dollar_relation = [
      {
        entity_id = "123e4567-e89b-12d3-a456-426614174000"
        tags = [
          "..."
        ]
      }
    ]
  }
  internal_name = "...my_internal_name..."
  manifest = [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
  name = "...my_name..."
  price_options = {
    dollar_relation = [
      {
        entity_id = "123e4567-e89b-12d3-a456-426614174000"
        tags = [
          "..."
        ]
      }
    ]
  }
  product_downloads = {
    dollar_relation = [
      {
        entity_id = "123e4567-e89b-12d3-a456-426614174000"
        tags = [
          "..."
        ]
      }
    ]
  }
  product_images = {
    dollar_relation = [
      {
        entity_id = "123e4567-e89b-12d3-a456-426614174000"
        tags = [
          "..."
        ]
      }
    ]
  }
  purpose = [
    "..."
  ]
  schema = "product"
  tags = [
    "..."
  ]
  type = "service"
}

Schema

Required

  • active (Boolean)
  • name (String) The description for the product

Optional

  • additional (Map of String) Additional fields that are not part of the schema
  • availability_files (Attributes) (see below for nested schema)
  • code (String) The product code
  • description (String) A description of the product. Multi-line supported.
  • feature (List of String)
  • files (Attributes) (see below for nested schema)
  • internal_name (String) Not visible to customers, only in internal tables
  • manifest (List of String) Manifest ID used to create/update the entity
  • price_options (Attributes) (see below for nested schema)
  • product_downloads (Attributes) (see below for nested schema)
  • product_images (Attributes) (see below for nested schema)
  • purpose (List of String)
  • schema (String) must be "product"
  • tags (List of String)
  • type (String) The type of Product:
type description
product Represents a physical good
service Represents a service or virtual product
Default: "product"; must be one of ["product", "service"]

Read-Only

  • acl (Attributes) Access control list (ACL) for an entity. Defines sharing access to external orgs or users. (see below for nested schema)
  • created_at (String)
  • id (String) The ID of this resource.
  • org (String) Organization Id the entity belongs to
  • owners (Attributes List) (see below for nested schema)
  • title (String)
  • updated_at (String)

Nested Schema for availability_files

Optional:

Nested Schema for availability_files.dollar_relation

Optional:

  • entity_id (String)
  • tags (List of String)

Nested Schema for files

Optional:

Nested Schema for files.dollar_relation

Optional:

  • entity_id (String)
  • tags (List of String)

Nested Schema for price_options

Optional:

Nested Schema for price_options.dollar_relation

Optional:

  • entity_id (String)
  • tags (List of String)

Nested Schema for product_downloads

Optional:

Nested Schema for product_downloads.dollar_relation

Optional:

  • entity_id (String)
  • tags (List of String)

Nested Schema for product_images

Optional:

Nested Schema for product_images.dollar_relation

Optional:

  • entity_id (String)
  • tags (List of String)

Nested Schema for acl

Read-Only:

  • delete (List of String)
  • edit (List of String)
  • view (List of String)

Nested Schema for owners

Read-Only:

  • org_id (String)
  • user_id (String)

Import

Import is supported using the following syntax:

terraform import epilot-product_product.my_epilot-product_product "123e4567-e89b-12d3-a456-426614174000"