File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -79838,6 +79838,9 @@ paths:
7983879838 permissions:
7983979839 - security_monitoring_findings_write
7984079840 - appsec_vm_write
79841+ x-unstable: '**Note**: This endpoint is in beta and is subject to change.
79842+
79843+ Please check the documentation regularly for updates.'
7984179844 post:
7984279845 description: Create Jira issues for security findings. This operation creates
7984379846 a case in Datadog and a Jira issue linked to that case for bidirectional sync
@@ -79878,6 +79881,9 @@ paths:
7987879881 permissions:
7987979882 - security_monitoring_findings_write
7988079883 - appsec_vm_write
79884+ x-unstable: '**Note**: This endpoint is in beta and is subject to change.
79885+
79886+ Please check the documentation regularly for updates.'
7988179887 /api/v2/security/sboms:
7988279888 get:
7988379889 description: 'Get a list of assets SBOMs for an organization.
Original file line number Diff line number Diff line change @@ -141,8 +141,10 @@ impl Default for Configuration {
141141 ( "v2.get_open_api" . to_owned ( ) , false ) ,
142142 ( "v2.list_apis" . to_owned ( ) , false ) ,
143143 ( "v2.update_open_api" . to_owned ( ) , false ) ,
144+ ( "v2.attach_jira_issue" . to_owned ( ) , false ) ,
144145 ( "v2.cancel_threat_hunting_job" . to_owned ( ) , false ) ,
145146 ( "v2.convert_job_result_to_signal" . to_owned ( ) , false ) ,
147+ ( "v2.create_jira_issues" . to_owned ( ) , false ) ,
146148 ( "v2.delete_threat_hunting_job" . to_owned ( ) , false ) ,
147149 ( "v2.get_finding" . to_owned ( ) , false ) ,
148150 ( "v2.get_rule_version_history" . to_owned ( ) , false ) ,
Original file line number Diff line number Diff line change @@ -1870,6 +1870,14 @@ impl SecurityMonitoringAPI {
18701870 > {
18711871 let local_configuration = &self.config;
18721872 let operation_id = "v2.attach_jira_issue";
1873+ if local_configuration.is_unstable_operation_enabled(operation_id) {
1874+ warn!("Using unstable operation {operation_id}");
1875+ } else {
1876+ let local_error = datadog::UnstableOperationDisabledError {
1877+ msg: "Operation 'v2.attach_jira_issue' is not enabled".to_string(),
1878+ };
1879+ return Err(datadog::Error::UnstableOperationDisabledError(local_error));
1880+ }
18731881
18741882 let local_client = &self.client;
18751883
@@ -2861,6 +2869,14 @@ impl SecurityMonitoringAPI {
28612869 > {
28622870 let local_configuration = &self.config;
28632871 let operation_id = "v2.create_jira_issues";
2872+ if local_configuration.is_unstable_operation_enabled(operation_id) {
2873+ warn!("Using unstable operation {operation_id}");
2874+ } else {
2875+ let local_error = datadog::UnstableOperationDisabledError {
2876+ msg: "Operation 'v2.create_jira_issues' is not enabled".to_string(),
2877+ };
2878+ return Err(datadog::Error::UnstableOperationDisabledError(local_error));
2879+ }
28642880
28652881 let local_client = &self.client;
28662882
You can’t perform that action at this time.
0 commit comments