terraform-provider-site24x7 icon indicating copy to clipboard operation
terraform-provider-site24x7 copied to clipboard

REST API Transaction - Enhancement Request

Open bmcgrath-pr opened this issue 1 year ago • 0 comments

Hey,

I've received communication that the desired action for creating multiple steps for a REST API Transaction Monitor is to duplicate the 'Steps{}' Section of the module resource. In an effort to provide a single module for REST API Transaction Monitors to be called via a TF using any number of steps, is it possible to update your code to:

  • Require only one steps{} resource within the module

  • Add Steps via an array for each variable, and dynamically assign the number of steps based on the number of entries in said array/list? e.g. ################################## steps {

    // (Required) Display name for the step display_name = var.step_display_name

    step_details {

    // (Required) Domain address for the step.
    step_url = var.step_url
    

    } ################################## Where display_name and step_url accept 'list of string' as variable type (as well as all other variables) and allow a creation of a step using entries from all list of strings first entry, and second steps for all list second entry, etc etc

Or if there is a better way to allow this. With the current approach, we would have to code a module for a 1 Step Rest API Transaction Monitor, another for a 2 step, etc etc

Thanks

bmcgrath-pr avatar Jan 22 '24 11:01 bmcgrath-pr