highbond_robot_task (Resource)

Example Usage

resource "highbond_robot_task" "main" {
  robot_id                    = highbond_robot.main.id
  app_version                 = highbond_robot_app.main.version
  email_notifications_enabled = false
  environment                 = highbond_robot_activation.main.environment
  log_enabled                 = false
  name                        = "Feb 25 Terraform Task"
  publish_to_results          = false
  public_key_name             = "Sample encryption key"
  share_encrypted             = true
  analytic_names              = ["Testing Cloud Uni"]
  force_updates               = true

  schedule {
    frequency          = "weekly"
    interval           = 1
    starts_at          = "2029-05-04T10:00:00.000Z"
    starts_at_timezone = "Etc/UTC"
    settings {
      days = [2]
    }
  }

  values {
    analytic_name = "Testing Cloud Uni"
    parameter_id  = "v_character"
    encrypted     = false
    data {
      type  = "character"
      value = "A New Value" // Use this field for setting single value.
    }
  }

  values {
    analytic_name = "Testing Cloud Uni"
    parameter_id  = "v_character"
    encrypted     = false
    data {
      type        = "character"
      value_array = ["value 1", "value2"] // Use this field for setting multiple values.
    }
  }

  values {
    analytic_name = "Test_task"
    parameter_id  = "var3"
    encrypted     = false
    data {
      type       = "logical"
      value_bool = true // Use this field for setting boolean values
    }
  }
}

Schema

Required

  • name (String) The name of the task
  • robot_id (String) The ID of the robot

Optional

  • analytic_names (List of String) A list of the names of scripts to run
  • app_version (Number) The version of the script
  • email_notifications_enabled (Boolean) If true, an email notification is sent to one or more specific users if the task fails
  • environment (String) The environment of the script
  • force_updates (Boolean) Allows overriding top-level 'create_only' option.
  • log_enabled (Boolean) If true, a log is available every time the analytic is run
  • public_key_name (String) The public RSA key for encrypting password values
  • publish_to_results (Boolean) This is not currently supported
  • schedule (Block List, Max: 1) (see below for nested schema)
  • share_encrypted (Boolean) If true, any user with access to the robot can run, disable, or enable the task. If false, only the user who entered the password can run, disable, or enable the task
  • values (Block Set) (see below for nested schema)

Read-Only

  • conflicts (Map of String) Specifies the conflicts related to a script activation.
  • created_at (String) The date when the task was created
  • enabled (Boolean) Specifies whether the task is enabled. You cannot run a disabled task
  • id (String) The ID of this resource.
  • next_runs (String) Specifies when the task will next run
  • task_count (Number)
  • updated_at (String) The date when the task was updated

Nested Schema for schedule

Required:

  • frequency (String) The interval at which the task is repeatedly run
  • interval (Number) The interval in minutes between runs. To safeguard the HighBond API against bursts of usage, there is a minimum interval of 10 minutes between runs
  • starts_at (String) The time of day to start running the task
  • starts_at_timezone (String) The timezone used to start running the task

Optional:

Read-Only:

  • last_run_at (String) The time when robot task was last run at
  • next_run_at (String) The time when robot task will next run at

Nested Schema for schedule.settings

Optional:

  • days (List of Number) The days that the task is scheduled to run. If the task is scheduled to run on a weekly frequency, days are represented from 0 to 6, where 0 represents Sunday and 6 represents Saturday. If the task is scheduled to run on a monthly frequency, days is represented as a number between 1 and 28 or specified as last_day. days does not return anything for once, hourly, and daily frequencies

Nested Schema for values

Required:

  • analytic_name (String) The name of the script, which is used as a parameter value
  • data (Block List, Min: 1, Max: 1) (see below for nested schema)
  • parameter_id (String) The identifier of the parameter

Optional:

  • encrypted (Boolean) If true, the script contains a PASSWORD analytic tag, which prompts the user for a password before running the analytic, and encrypts the entered value. The PASSWORD parameter is required in any command that imports from or exports to HighBond

Nested Schema for values.data

Optional:

  • type (String) The data type of the value czn have possible values: character, date, datetime, file, logical, number,table, time
  • value (String) A user-facing input parameter of type string, which lets a user specify script input values in advance. This allows an analytic script to run unattended, either immediately, or at a scheduled time
  • value_array (List of String) A user-facing input parameter of type array, which lets a user specify script input values in advance. This allows an analytic script to run unattended, either immediately, or at a scheduled time
  • value_bool (Boolean) A user-facing input parameter of type bool, which lets a user specify script input values in advance. This allows an analytic script to run unattended, either immediately, or at a scheduled time