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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to handle add on actions for saved searches #131

Open
Tr1gs opened this issue Jul 5, 2022 · 1 comment
Open

Is it possible to handle add on actions for saved searches #131

Tr1gs opened this issue Jul 5, 2022 · 1 comment

Comments

@Tr1gs
Copy link

Tr1gs commented Jul 5, 2022

This seems related to #88

I'm attempting to use the provider to create alerts that use the http alert action https://splunkbase.splunk.com/app/5022/

but if I attempt to configure it I get errors like

An argument named "action_httpalert_param_endpoint" is not expected here

Looking at the code https://github.com/splunk/terraform-provider-splunk/blob/master/client/models/saved_searches.go#L14:L153 it seems these labels are hardcoded rather than allowing for something like action_<action_name>_<parameter>.

@dpavlov-smartling
Copy link

I have similar case with Opsgenie actions. If I try to use the following code

    action_opsgenie = 1
    action_opsgenie_param_api_url = XXXXXXXXXXXXX

Terraform shows:

Error: Unsupported argument

  on alert.tf line 40, in resource "splunk_saved_searches" "saved_search_opsgenie":
  40:     action_opsgenie = 1

An argument named "action_opsgenie" is not expected here.


Error: Unsupported argument

  on alert.tf line 41, in resource "splunk_saved_searches" "saved_search_opsgenie":
  41:     action_opsgenie_param_api_url = "XXXXXXXXXXXXX"

An argument named "action_opsgenie_param_api_url" is not expected here.

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

No branches or pull requests

2 participants