atlassian / terraform-provider-artifactory

Terraform provider to manage Artifactory
Apache License 2.0
89 stars 42 forks source link

Add support for XRay integration #26

Closed Constantin07 closed 5 years ago

Constantin07 commented 5 years ago

Description

This is feature request. Context: We've got JFrog Artifactory integrated with XRay product. Once this integration is enabled - there is a tick box available to enable indexing of repository in XRay.

It would be nice to add an attribute to toggle this switch.

New or Affected Resource(s)

repository resources (local, remote)

References

https://www.jfrog.com/confluence/display/RTF/Xray+Integration

image

Constantin07 commented 5 years ago

Update: after contacting JFrog's support it looks like this can be done by the create or update repository REST API commands by adding the "xrayIndex" : true parameter to the JSON file although it's not yet documented officially.

dillon-giacoppo commented 5 years ago

This will be included in V2

KierranM commented 5 years ago

It's not documented for remote repos either, but it is possible to enable xray through the UI for remotes the same way you can for locals. I'd like to assume there API also supports setting it through the JSON (haven't confirmed if it works), but it'd be great to have remote support as well :)

Constantin07 commented 5 years ago

Thanks @dillon-giacoppo @KierranM I've asked JFrog support to update the official docs. I hope this will be done soon.