@@ -695,6 +695,56 @@ func savedSearches() *schema.Resource {
695
695
Description : "URL to send the HTTP POST request to. Must be accessible from the Splunk server." ,
696
696
ValidateFunc : validation .StringMatch (regexp .MustCompile (`^https?://[^\s]+$` ), "Webhook URL is invalid" ),
697
697
},
698
+ "action_sendtophantom" : {
699
+ Type : schema .TypeString ,
700
+ Optional : true ,
701
+ Description : "Enable the send to phantom action (https://docs.splunk.com/Documentation/SOARExport/4.3.13/UserGuide/Adaptiveresponseactions#Send_to_SOAR_request)." ,
702
+ },
703
+ "action_sendtophantom_param_phantom_server" : {
704
+ Type : schema .TypeString ,
705
+ Optional : true ,
706
+ Description : "The phantom server." ,
707
+ },
708
+ "action_sendtophantom_param_server_playbook_name" : {
709
+ Type : schema .TypeString ,
710
+ Optional : true ,
711
+ Description : "server_playbook_name" ,
712
+ },
713
+ "action_sendtophantom_param_severity" : {
714
+ Type : schema .TypeString ,
715
+ Optional : true ,
716
+ Description : "Alert severity." ,
717
+ },
718
+ "action_sendtophantom_param_sensitivity" : {
719
+ Type : schema .TypeString ,
720
+ Optional : true ,
721
+ Description : "Alert sensitivity." ,
722
+ },
723
+ "action_sendtophantom_param_label" : {
724
+ Type : schema .TypeString ,
725
+ Optional : true ,
726
+ Description : "Alert label." ,
727
+ },
728
+ "action_sendtophantom_param_grouping" : {
729
+ Type : schema .TypeString ,
730
+ Optional : true ,
731
+ Description : "Alert grouping." ,
732
+ },
733
+ "action_sendtophantom_param_relay_account" : {
734
+ Type : schema .TypeString ,
735
+ Optional : true ,
736
+ Description : "relay_account (the Alert Action Account)." ,
737
+ },
738
+ "action_sendtophantom_param_container_name" : {
739
+ Type : schema .TypeString ,
740
+ Optional : true ,
741
+ Description : "search_name (default) or source." ,
742
+ },
743
+ "action_sendtophantom_param_cam_workers" : {
744
+ Type : schema .TypeString ,
745
+ Optional : true ,
746
+ Description : "Adaptive response relay worker, use [\" local\" ] if running locally." ,
747
+ },
698
748
"alert_digest_mode" : {
699
749
Type : schema .TypeBool ,
700
750
Optional : true ,
@@ -1495,6 +1545,36 @@ func savedSearchesRead(d *schema.ResourceData, meta interface{}) error {
1495
1545
if err = d .Set ("action_jira_service_desk_param_jira_customfields" , entry .Content .ActionJiraServiceDeskParamJiraCustomfields ); err != nil {
1496
1546
return err
1497
1547
}
1548
+ if err = d .Set ("action_sendtophantom" , entry .Content .ActionSendToPhantom ); err != nil {
1549
+ return err
1550
+ }
1551
+ if err = d .Set ("action_sendtophantom_param_phantom_server" , entry .Content .ActionSendToPhantomParamPhantomServer ); err != nil {
1552
+ return err
1553
+ }
1554
+ if err = d .Set ("action_sendtophantom_param_server_playbook_name" , entry .Content .ActionSendToPhantomParamServerPlaybookName ); err != nil {
1555
+ return err
1556
+ }
1557
+ if err = d .Set ("action_sendtophantom_param_severity" , entry .Content .ActionSendToPhantomParamSeverity ); err != nil {
1558
+ return err
1559
+ }
1560
+ if err = d .Set ("action_sendtophantom_param_sensitivity" , entry .Content .ActionSendToPhantomParamSensitivity ); err != nil {
1561
+ return err
1562
+ }
1563
+ if err = d .Set ("action_sendtophantom_param_label" , entry .Content .ActionSendToPhantomParamLabel ); err != nil {
1564
+ return err
1565
+ }
1566
+ if err = d .Set ("action_sendtophantom_param_grouping" , entry .Content .ActionSendToPhantomParamGrouping ); err != nil {
1567
+ return err
1568
+ }
1569
+ if err = d .Set ("action_sendtophantom_param_relay_account" , entry .Content .ActionSendToPhantomParamRelayAccount ); err != nil {
1570
+ return err
1571
+ }
1572
+ if err = d .Set ("action_sendtophantom_param_container_name" , entry .Content .ActionSendToPhantomParamContainerName ); err != nil {
1573
+ return err
1574
+ }
1575
+ if err = d .Set ("action_sendtophantom_param_cam_workers" , entry .Content .ActionSendToPhantomParam_CamWorkers ); err != nil {
1576
+ return err
1577
+ }
1498
1578
if err = d .Set ("action_webhook_param_url" , entry .Content .ActionWebhookParamUrl ); err != nil {
1499
1579
return err
1500
1580
}
@@ -1837,6 +1917,16 @@ func getSavedSearchesConfig(d *schema.ResourceData) (savedSearchesObj *models.Sa
1837
1917
ActionJiraServiceDeskParamJiraPriority : d .Get ("action_jira_service_desk_param_jira_priority" ).(string ),
1838
1918
ActionJiraServiceDeskParamJiraDescription : d .Get ("action_jira_service_desk_param_jira_description" ).(string ),
1839
1919
ActionJiraServiceDeskParamJiraCustomfields : d .Get ("action_jira_service_desk_param_jira_customfields" ).(string ),
1920
+ ActionSendToPhantom : d .Get ("action_sendtophantom" ).(string ),
1921
+ ActionSendToPhantomParamPhantomServer : d .Get ("action_sendtophantom_param_phantom_server" ).(string ),
1922
+ ActionSendToPhantomParamServerPlaybookName : d .Get ("action_sendtophantom_param_server_playbook_name" ).(string ),
1923
+ ActionSendToPhantomParamSeverity : d .Get ("action_sendtophantom_param_severity" ).(string ),
1924
+ ActionSendToPhantomParamSensitivity : d .Get ("action_sendtophantom_param_sensitivity" ).(string ),
1925
+ ActionSendToPhantomParamLabel : d .Get ("action_sendtophantom_param_label" ).(string ),
1926
+ ActionSendToPhantomParamGrouping : d .Get ("action_sendtophantom_param_grouping" ).(string ),
1927
+ ActionSendToPhantomParamRelayAccount : d .Get ("action_sendtophantom_param_relay_account" ).(string ),
1928
+ ActionSendToPhantomParamContainerName : d .Get ("action_sendtophantom_param_container_name" ).(string ),
1929
+ ActionSendToPhantomParam_CamWorkers : d .Get ("action_sendtophantom_param_cam_workers" ).(string ),
1840
1930
ActionWebhookParamUrl : d .Get ("action_webhook_param_url" ).(string ),
1841
1931
AlertComparator : d .Get ("alert_comparator" ).(string ),
1842
1932
AlertCondition : d .Get ("alert_condition" ).(string ),
0 commit comments