jfrog/terraform-provider-xray

Support for Xray Mime Type and Property filters for Watch

alexhung opened this issue · 0 comments

Is your feature request related to a problem? Please describe.

Xray Watch is missing the Mime Type and Property filters. https://www.jfrog.com/confluence/display/JFROG/Configuring+Xray+Watches#ConfiguringXrayWatches-Step3SetFiltersonRepositories

Screenshot 2023-02-28 at 8 59 17 AM

Describe the solution you'd like

Add support for both types of filter to watch resource. e.g.

resource "xray_watch" "mime_type_property" {
  name   = "mime-property-example"
  active = true

  watch_resource {
    type = "repository"

    filter {
      type  = "mime-type"
      value = "application/json"
    }

    kv_filter {
      type  = "property"
      value {
        key = "prop-name"
        value = "prop-value"
    }
  }
}

Describe alternatives you've considered

N/A

Additional context

Include support for import