Skip to content

Latest commit

 

History

History
97 lines (74 loc) · 2.05 KB

checkpoint_management_migrate_export_domain.md

File metadata and controls

97 lines (74 loc) · 2.05 KB

checkpoint_management_migrate_export_domain

back

Index

Terraform

terraform {
  required_providers {
    checkpoint = ">= 1.4.0"
  }
}

top

Example Usage

module "checkpoint_management_migrate_export_domain" {
  source = "./modules/checkpoint/r/checkpoint_management_migrate_export_domain"

  # domain - (required) is a type of string
  domain = null
  # file_path - (optional) is a type of string
  file_path = null
  # include_logs - (optional) is a type of bool
  include_logs = null
}

top

Variables

variable "domain" {
  description = "(required) - Domain can be identified by name or UID.<br><font color=\"red\">Required only for</font> exporting domain from Multi-Domain Server."
  type        = string
}

variable "file_path" {
  description = "(optional) - Path in which the exported domain data will be saved. <br>Should be the directory path or the full file path with \".tgz\" <br>If no path was inserted the default will be: \"/var/log/&lt;domain name&gt;_&lt;date&gt;.tgz\"."
  type        = string
  default     = null
}

variable "include_logs" {
  description = "(optional) - Export logs."
  type        = bool
  default     = null
}

top

Resource

resource "checkpoint_management_migrate_export_domain" "this" {
  # domain - (required) is a type of string
  domain = var.domain
  # file_path - (optional) is a type of string
  file_path = var.file_path
  # include_logs - (optional) is a type of bool
  include_logs = var.include_logs
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = checkpoint_management_migrate_export_domain.this.id
}

output "task_id" {
  description = "returns a string"
  value       = checkpoint_management_migrate_export_domain.this.task_id
}

output "this" {
  value = checkpoint_management_migrate_export_domain.this
}

top