jfrog / terraform-provider-xray

Terraform provider to manage JFrog Xray
https://jfrog.com/xray/
Apache License 2.0
151 stars 12 forks source link

Support for Xray Mime Type and Property filters for Watch #107

Closed alexhung closed 1 year ago

alexhung commented 1 year ago

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