Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please implement OCI Search service as data resource #2076

Open
jeliker opened this issue Mar 27, 2024 · 0 comments
Open

Please implement OCI Search service as data resource #2076

jeliker opened this issue Mar 27, 2024 · 0 comments

Comments

@jeliker
Copy link

jeliker commented Mar 27, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

New or Affected Resource(s)

OCI Search Service

Potential Terraform Configuration

data "oci_query_resource_search" "the_search" {
  #Required
  search_details {

    #Optional
    text  = var.search_details_text
    query = var.search_details_query
  }

  #Optional
  matching_context_type = var.matching_context_type
}

locals {
  search_results = data.oci_query_resource_search.the_search.resource_summary_items

  a_result = {
    "compartment_id" = local.search_results[0].compartment_id
    "display_name"   = local.search_results[0].display_name
    "identifier"     = local.search_results[0].identifier
  }
}

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant