diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index c65afd6ef790..56bd888508c3 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -394,7 +394,7 @@ com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;1.2.0;1.3.
com.azure.resourcemanager:azure-resourcemanager-loadtesting;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-automanage;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-edgeorder;1.0.0;1.1.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.5;1.0.0-beta.6
+com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.5;1.0.0
com.azure.resourcemanager:azure-resourcemanager-oep;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-dnsresolver;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-mobilenetwork;1.3.0;1.4.0-beta.1
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md b/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md
index 7b0cb3325e15..afd1ec888e30 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md
@@ -1,15 +1,13 @@
# Release History
-## 1.0.0-beta.6 (Unreleased)
+## 1.0.0 (2025-01-03)
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
+- Azure Resource Manager SecurityInsights client library for Java. This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Other Changes
+- Release for Azure Resource Manager SecurityInsights client library for Java.
+
## 1.0.0-beta.5 (2024-10-14)
- Azure Resource Manager SecurityInsights client library for Java. This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/README.md b/sdk/securityinsights/azure-resourcemanager-securityinsights/README.md
index c1095797e2ca..a3020281b594 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/README.md
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager SecurityInsights client library for Java.
-This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-securityinsights
- 1.0.0-beta.5
+ 1.0.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md b/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
index ad13c7758d98..bae8fc2da53d 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
@@ -27,17 +27,6 @@
- [Get](#automationrules_get)
- [List](#automationrules_list)
-## BookmarkOperation
-
-- [Expand](#bookmarkoperation_expand)
-
-## BookmarkRelations
-
-- [CreateOrUpdate](#bookmarkrelations_createorupdate)
-- [Delete](#bookmarkrelations_delete)
-- [Get](#bookmarkrelations_get)
-- [List](#bookmarkrelations_list)
-
## Bookmarks
- [CreateOrUpdate](#bookmarks_createorupdate)
@@ -47,60 +36,11 @@
## DataConnectors
-- [Connect](#dataconnectors_connect)
- [CreateOrUpdate](#dataconnectors_createorupdate)
- [Delete](#dataconnectors_delete)
-- [Disconnect](#dataconnectors_disconnect)
- [Get](#dataconnectors_get)
- [List](#dataconnectors_list)
-## DataConnectorsCheckRequirementsOperation
-
-- [Post](#dataconnectorscheckrequirementsoperation_post)
-
-## DomainWhois
-
-- [Get](#domainwhois_get)
-
-## Entities
-
-- [Expand](#entities_expand)
-- [Get](#entities_get)
-- [GetInsights](#entities_getinsights)
-- [List](#entities_list)
-- [Queries](#entities_queries)
-
-## EntitiesGetTimeline
-
-- [List](#entitiesgettimeline_list)
-
-## EntitiesRelations
-
-- [List](#entitiesrelations_list)
-
-## EntityQueries
-
-- [CreateOrUpdate](#entityqueries_createorupdate)
-- [Delete](#entityqueries_delete)
-- [Get](#entityqueries_get)
-- [List](#entityqueries_list)
-
-## EntityQueryTemplates
-
-- [Get](#entityquerytemplates_get)
-- [List](#entityquerytemplates_list)
-
-## EntityRelations
-
-- [GetRelation](#entityrelations_getrelation)
-
-## FileImports
-
-- [Create](#fileimports_create)
-- [Delete](#fileimports_delete)
-- [Get](#fileimports_get)
-- [List](#fileimports_list)
-
## IncidentComments
- [CreateOrUpdate](#incidentcomments_createorupdate)
@@ -118,44 +58,17 @@
## Incidents
- [CreateOrUpdate](#incidents_createorupdate)
-- [CreateTeam](#incidents_createteam)
- [Delete](#incidents_delete)
- [Get](#incidents_get)
- [List](#incidents_list)
- [ListAlerts](#incidents_listalerts)
- [ListBookmarks](#incidents_listbookmarks)
- [ListEntities](#incidents_listentities)
-- [RunPlaybook](#incidents_runplaybook)
-
-## IpGeodata
-
-- [Get](#ipgeodata_get)
-
-## Metadata
-
-- [Create](#metadata_create)
-- [Delete](#metadata_delete)
-- [Get](#metadata_get)
-- [List](#metadata_list)
-- [Update](#metadata_update)
-
-## OfficeConsents
-
-- [Delete](#officeconsents_delete)
-- [Get](#officeconsents_get)
-- [List](#officeconsents_list)
## Operations
- [List](#operations_list)
-## ProductSettings
-
-- [Delete](#productsettings_delete)
-- [Get](#productsettings_get)
-- [List](#productsettings_list)
-- [Update](#productsettings_update)
-
## SecurityMLAnalyticsSettings
- [CreateOrUpdate](#securitymlanalyticssettings_createorupdate)
@@ -170,17 +83,6 @@
- [Get](#sentinelonboardingstates_get)
- [List](#sentinelonboardingstates_list)
-## SourceControl
-
-- [ListRepositories](#sourcecontrol_listrepositories)
-
-## SourceControlsOperation
-
-- [Create](#sourcecontrolsoperation_create)
-- [Delete](#sourcecontrolsoperation_delete)
-- [Get](#sourcecontrolsoperation_get)
-- [List](#sourcecontrolsoperation_list)
-
## ThreatIntelligenceIndicator
- [AppendTags](#threatintelligenceindicator_appendtags)
@@ -221,8 +123,8 @@
public final class ActionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * actions/CreateActionOfAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/actions/
+ * CreateActionOfAlertRule.json
*/
/**
* Sample code: Creates or updates an action of alert rule.
@@ -253,8 +155,8 @@ public final class ActionsCreateOrUpdateSamples {
public final class ActionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * actions/DeleteActionOfAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/actions/
+ * DeleteActionOfAlertRule.json
*/
/**
* Sample code: Delete an action of alert rule.
@@ -279,8 +181,8 @@ public final class ActionsDeleteSamples {
public final class ActionsGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * actions/GetActionOfAlertRuleById.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/actions/
+ * GetActionOfAlertRuleById.json
*/
/**
* Sample code: Get an action of alert rule.
@@ -305,8 +207,8 @@ public final class ActionsGetSamples {
public final class ActionsListByAlertRuleSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * actions/GetAllActionsByAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/actions/
+ * GetAllActionsByAlertRule.json
*/
/**
* Sample code: Get all actions of alert rule.
@@ -331,7 +233,7 @@ public final class ActionsListByAlertRuleSamples {
public final class AlertRuleTemplatesGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* alertRuleTemplates/GetAlertRuleTemplateById.json
*/
/**
@@ -357,7 +259,7 @@ public final class AlertRuleTemplatesGetSamples {
public final class AlertRuleTemplatesListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* alertRuleTemplates/GetAlertRuleTemplates.json
*/
/**
@@ -385,16 +287,11 @@ import com.azure.resourcemanager.securityinsights.models.EventGroupingAggregatio
import com.azure.resourcemanager.securityinsights.models.EventGroupingSettings;
import com.azure.resourcemanager.securityinsights.models.FieldMapping;
import com.azure.resourcemanager.securityinsights.models.FusionAlertRule;
-import com.azure.resourcemanager.securityinsights.models.FusionSourceSettings;
-import com.azure.resourcemanager.securityinsights.models.FusionSourceSubTypeSetting;
-import com.azure.resourcemanager.securityinsights.models.FusionSubTypeSeverityFilter;
-import com.azure.resourcemanager.securityinsights.models.FusionSubTypeSeverityFiltersItem;
import com.azure.resourcemanager.securityinsights.models.GroupingConfiguration;
import com.azure.resourcemanager.securityinsights.models.IncidentConfiguration;
import com.azure.resourcemanager.securityinsights.models.MatchingMethod;
import com.azure.resourcemanager.securityinsights.models.MicrosoftSecurityIncidentCreationAlertRule;
import com.azure.resourcemanager.securityinsights.models.MicrosoftSecurityProductName;
-import com.azure.resourcemanager.securityinsights.models.NrtAlertRule;
import com.azure.resourcemanager.securityinsights.models.ScheduledAlertRule;
import com.azure.resourcemanager.securityinsights.models.TriggerOperator;
import java.time.Duration;
@@ -408,8 +305,8 @@ import java.util.Map;
public final class AlertRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/CreateFusionAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/alertRules/
+ * CreateFusionAlertRule.json
*/
/**
* Sample code: Creates or updates a Fusion alert rule.
@@ -422,123 +319,14 @@ public final class AlertRulesCreateOrUpdateSamples {
.createOrUpdateWithResponse("myRg", "myWorkspace", "myFirstFusionRule",
new FusionAlertRule().withEtag("3d00c3ca-0000-0100-0000-5d42d5010000")
.withAlertRuleTemplateName("f71aba3d-28fb-450b-b192-4e76a83015c8")
- .withEnabled(true)
- .withSourceSettings(Arrays.asList(
- new FusionSourceSettings().withEnabled(true).withSourceName("Anomalies"),
- new FusionSourceSettings().withEnabled(true)
- .withSourceName("Alert providers")
- .withSourceSubTypes(Arrays.asList(
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Azure Active Directory Identity Protection")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Azure Defender")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Azure Defender for IoT")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft 365 Defender")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft Cloud App Security")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft Defender for Endpoint")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft Defender for Identity")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft Defender for Office 365")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Azure Sentinel scheduled analytics rules")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))))),
- new FusionSourceSettings().withEnabled(true)
- .withSourceName("Raw logs from other sources")
- .withSourceSubTypes(Arrays.asList(new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Palo Alto Networks")
- .withSeverityFilters(new FusionSubTypeSeverityFilter()))))),
+ .withEnabled(true),
com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/CreateMicrosoftSecurityIncidentCreationAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/alertRules/
+ * CreateMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Creates or updates a MicrosoftSecurityIncidentCreation rule.
@@ -558,8 +346,8 @@ public final class AlertRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/CreateScheduledAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/alertRules/
+ * CreateScheduledAlertRule.json
*/
/**
* Sample code: Creates or updates a Scheduled alert rule.
@@ -577,7 +365,6 @@ public final class AlertRulesCreateOrUpdateSamples {
.withSuppressionDuration(Duration.parse("PT1H"))
.withSuppressionEnabled(false)
.withTactics(Arrays.asList(AttackTactic.PERSISTENCE, AttackTactic.LATERAL_MOVEMENT))
- .withTechniques(Arrays.asList("T1037", "T1021"))
.withIncidentConfiguration(new IncidentConfiguration().withCreateIncident(true)
.withGroupingConfiguration(new GroupingConfiguration().withEnabled(true)
.withReopenClosedIncident(false)
@@ -608,171 +395,6 @@ public final class AlertRulesCreateOrUpdateSamples {
com.azure.core.util.Context.NONE);
}
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/CreateFusionAlertRuleWithFusionScenarioExclusion.json
- */
- /**
- * Sample code: Creates or updates a Fusion alert rule with scenario exclusion pattern.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void createsOrUpdatesAFusionAlertRuleWithScenarioExclusionPattern(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.alertRules()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "myFirstFusionRule",
- new FusionAlertRule().withEtag("3d00c3ca-0000-0100-0000-5d42d5010000")
- .withAlertRuleTemplateName("f71aba3d-28fb-450b-b192-4e76a83015c8")
- .withEnabled(true)
- .withSourceSettings(Arrays.asList(
- new FusionSourceSettings().withEnabled(true).withSourceName("Anomalies"),
- new FusionSourceSettings().withEnabled(true)
- .withSourceName("Alert providers")
- .withSourceSubTypes(Arrays.asList(
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Azure Active Directory Identity Protection")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Azure Defender")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Azure Defender for IoT")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft 365 Defender")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft Cloud App Security")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft Defender for Endpoint")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft Defender for Identity")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Microsoft Defender for Office 365")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))),
- new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Azure Sentinel scheduled analytics rules")
- .withSeverityFilters(new FusionSubTypeSeverityFilter().withFilters(Arrays.asList(
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.HIGH)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.MEDIUM)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.LOW)
- .withEnabled(true),
- new FusionSubTypeSeverityFiltersItem().withSeverity(AlertSeverity.INFORMATIONAL)
- .withEnabled(true)))))),
- new FusionSourceSettings().withEnabled(true)
- .withSourceName("Raw logs from other sources")
- .withSourceSubTypes(Arrays.asList(new FusionSourceSubTypeSetting().withEnabled(true)
- .withSourceSubTypeName("Palo Alto Networks")
- .withSeverityFilters(new FusionSubTypeSeverityFilter()))))),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/CreateNrtAlertRule.json
- */
- /**
- * Sample code: Creates or updates a Nrt alert rule.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- createsOrUpdatesANrtAlertRule(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.alertRules()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- new NrtAlertRule().withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withDescription("")
- .withQuery(
- "ProtectionStatus | extend HostCustomEntity = Computer | extend IPCustomEntity = ComputerIP_Hidden")
- .withTactics(Arrays.asList(AttackTactic.PERSISTENCE, AttackTactic.LATERAL_MOVEMENT))
- .withTechniques(Arrays.asList("T1037", "T1021"))
- .withDisplayName("Rule2")
- .withEnabled(true)
- .withSuppressionDuration(Duration.parse("PT1H"))
- .withSuppressionEnabled(false)
- .withSeverity(AlertSeverity.HIGH)
- .withIncidentConfiguration(new IncidentConfiguration().withCreateIncident(true)
- .withGroupingConfiguration(new GroupingConfiguration().withEnabled(true)
- .withReopenClosedIncident(false)
- .withLookbackDuration(Duration.parse("PT5H"))
- .withMatchingMethod(MatchingMethod.SELECTED)
- .withGroupByEntities(Arrays.asList(EntityMappingType.HOST, EntityMappingType.ACCOUNT))))
- .withEventGroupingSettings(
- new EventGroupingSettings().withAggregationKind(EventGroupingAggregationKind.ALERT_PER_RESULT)),
- com.azure.core.util.Context.NONE);
- }
-
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
@@ -796,8 +418,8 @@ public final class AlertRulesCreateOrUpdateSamples {
public final class AlertRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/DeleteAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/alertRules/
+ * DeleteAlertRule.json
*/
/**
* Sample code: Delete an alert rule.
@@ -821,8 +443,8 @@ public final class AlertRulesDeleteSamples {
public final class AlertRulesGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/GetScheduledAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/alertRules/
+ * GetScheduledAlertRule.json
*/
/**
* Sample code: Get a Scheduled alert rule.
@@ -838,24 +460,8 @@ public final class AlertRulesGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/GetNrtAlertRule.json
- */
- /**
- * Sample code: Get an Nrt alert rule.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAnNrtAlertRule(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.alertRules()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/GetFusionAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/alertRules/
+ * GetFusionAlertRule.json
*/
/**
* Sample code: Get a Fusion alert rule.
@@ -869,8 +475,8 @@ public final class AlertRulesGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/GetMicrosoftSecurityIncidentCreationAlertRule.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/alertRules/
+ * GetMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Get a MicrosoftSecurityIncidentCreation rule.
@@ -895,8 +501,8 @@ public final class AlertRulesGetSamples {
public final class AlertRulesListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * alertRules/GetAllAlertRules.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/alertRules/
+ * GetAllAlertRules.json
*/
/**
* Sample code: Get all alert rules.
@@ -922,7 +528,7 @@ import java.util.List;
public final class AutomationRulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* automationRules/AutomationRules_CreateOrUpdate.json
*/
/**
@@ -953,7 +559,7 @@ public final class AutomationRulesCreateOrUpdateSamples {
public final class AutomationRulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* automationRules/AutomationRules_Delete.json
*/
/**
@@ -979,7 +585,7 @@ public final class AutomationRulesDeleteSamples {
public final class AutomationRulesGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* automationRules/AutomationRules_Get.json
*/
/**
@@ -1004,7 +610,7 @@ public final class AutomationRulesGetSamples {
public final class AutomationRulesListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* automationRules/AutomationRules_List.json
*/
/**
@@ -1018,151 +624,9 @@ public final class AutomationRulesListSamples {
}
```
-### BookmarkOperation_Expand
-
-```java
-import com.azure.resourcemanager.securityinsights.models.BookmarkExpandParameters;
-import java.time.OffsetDateTime;
-import java.util.UUID;
-
-/**
- * Samples for BookmarkOperation Expand.
- */
-public final class BookmarkOperationExpandSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * bookmarks/expand/PostExpandBookmark.json
- */
- /**
- * Sample code: Expand an bookmark.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void expandAnBookmark(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.bookmarkOperations()
- .expandWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- new BookmarkExpandParameters().withEndTime(OffsetDateTime.parse("2020-01-24T17:21:00.000Z"))
- .withExpansionId(UUID.fromString("27f76e63-c41b-480f-bb18-12ad2e011d49"))
- .withStartTime(OffsetDateTime.parse("2019-12-25T17:21:00.000Z")),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BookmarkRelations_CreateOrUpdate
-
-```java
-/**
- * Samples for BookmarkRelations CreateOrUpdate.
- */
-public final class BookmarkRelationsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * bookmarks/relations/CreateBookmarkRelation.json
- */
- /**
- * Sample code: Creates or updates a bookmark relation.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- createsOrUpdatesABookmarkRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.bookmarkRelations()
- .define("4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014")
- .withExistingBookmark("myRg", "myWorkspace", "2216d0e1-91e3-4902-89fd-d2df8c535096")
- .withRelatedResourceId(
- "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812")
- .create();
- }
-}
-```
-
-### BookmarkRelations_Delete
-
-```java
-/**
- * Samples for BookmarkRelations Delete.
- */
-public final class BookmarkRelationsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * bookmarks/relations/DeleteBookmarkRelation.json
- */
- /**
- * Sample code: Delete the bookmark relation.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- deleteTheBookmarkRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.bookmarkRelations()
- .deleteWithResponse("myRg", "myWorkspace", "2216d0e1-91e3-4902-89fd-d2df8c535096",
- "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BookmarkRelations_Get
-
-```java
-/**
- * Samples for BookmarkRelations Get.
- */
-public final class BookmarkRelationsGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * bookmarks/relations/GetBookmarkRelationByName.json
- */
- /**
- * Sample code: Get a bookmark relation.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getABookmarkRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.bookmarkRelations()
- .getWithResponse("myRg", "myWorkspace", "2216d0e1-91e3-4902-89fd-d2df8c535096",
- "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### BookmarkRelations_List
-
-```java
-/**
- * Samples for BookmarkRelations List.
- */
-public final class BookmarkRelationsListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * bookmarks/relations/GetAllBookmarkRelations.json
- */
- /**
- * Sample code: Get all bookmark relations.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAllBookmarkRelations(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.bookmarkRelations()
- .list("myRg", "myWorkspace", "2216d0e1-91e3-4902-89fd-d2df8c535096", null, null, null, null,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Bookmarks_CreateOrUpdate
```java
-import com.azure.resourcemanager.securityinsights.models.AttackTactic;
-import com.azure.resourcemanager.securityinsights.models.BookmarkEntityMappings;
-import com.azure.resourcemanager.securityinsights.models.EntityFieldMapping;
import com.azure.resourcemanager.securityinsights.models.UserInfo;
import java.time.OffsetDateTime;
import java.util.Arrays;
@@ -1174,8 +638,8 @@ import java.util.UUID;
public final class BookmarksCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * bookmarks/CreateBookmark.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/bookmarks/
+ * CreateBookmark.json
*/
/**
* Sample code: Creates or updates a bookmark.
@@ -1188,20 +652,15 @@ public final class BookmarksCreateOrUpdateSamples {
.define("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
.withExistingWorkspace("myRg", "myWorkspace")
.withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withCreated(OffsetDateTime.parse("2021-09-01T13:15:30Z"))
+ .withCreated(OffsetDateTime.parse("2019-01-01T13:15:30Z"))
.withCreatedBy(new UserInfo().withObjectId(UUID.fromString("2046feea-040d-4a46-9e2b-91c2941bfa70")))
.withDisplayName("My bookmark")
.withLabels(Arrays.asList("Tag1", "Tag2"))
.withNotes("Found a suspicious activity")
.withQuery("SecurityEvent | where TimeGenerated > ago(1d) and TimeGenerated < ago(2d)")
.withQueryResult("Security Event query result")
- .withUpdated(OffsetDateTime.parse("2021-09-01T13:15:30Z"))
+ .withUpdated(OffsetDateTime.parse("2019-01-01T13:15:30Z"))
.withUpdatedBy(new UserInfo().withObjectId(UUID.fromString("2046feea-040d-4a46-9e2b-91c2941bfa70")))
- .withEntityMappings(Arrays.asList(new BookmarkEntityMappings().withEntityType("Account")
- .withFieldMappings(Arrays
- .asList(new EntityFieldMapping().withIdentifier("Fullname").withValue("johndoe@microsoft.com")))))
- .withTactics(Arrays.asList(AttackTactic.EXECUTION))
- .withTechniques(Arrays.asList("T1609"))
.create();
}
}
@@ -1216,8 +675,8 @@ public final class BookmarksCreateOrUpdateSamples {
public final class BookmarksDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * bookmarks/DeleteBookmark.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/bookmarks/
+ * DeleteBookmark.json
*/
/**
* Sample code: Delete a bookmark.
@@ -1241,8 +700,8 @@ public final class BookmarksDeleteSamples {
public final class BookmarksGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * bookmarks/GetBookmarkById.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/bookmarks/
+ * GetBookmarkById.json
*/
/**
* Sample code: Get a bookmark.
@@ -1266,8 +725,8 @@ public final class BookmarksGetSamples {
public final class BookmarksListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * bookmarks/GetBookmarks.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/bookmarks/
+ * GetBookmarks.json
*/
/**
* Sample code: Get all bookmarks.
@@ -1280,127 +739,19 @@ public final class BookmarksListSamples {
}
```
-### DataConnectors_Connect
-
-```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.securityinsights.models.ConnectAuthKind;
-import com.azure.resourcemanager.securityinsights.models.DataConnectorConnectBody;
-import java.io.IOException;
-import java.util.Arrays;
-
-/**
- * Samples for DataConnectors Connect.
- */
-public final class DataConnectorsConnectSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/ConnectAPIPollingV2Logs.json
- */
- /**
- * Sample code: Connect an APIPolling V2 logs data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void connectAnAPIPollingV2LogsDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) throws IOException {
- manager.dataConnectors()
- .connectWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8",
- new DataConnectorConnectBody().withKind(ConnectAuthKind.APIKEY)
- .withApiKey("fakeTokenPlaceholder")
- .withDataCollectionEndpoint("https://test.eastus.ingest.monitor.azure.com")
- .withDataCollectionRuleImmutableId("dcr-34adsj9o7d6f9de204478b9cgb43b631")
- .withOutputStream("Custom-MyTableRawData")
- .withRequestConfigUserInputValues(Arrays.asList(SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"displayText\":\"Organization Name\",\"placeHolderName\":\"{{placeHolder1}}\",\"placeHolderValue\":\"somePlaceHolderValue\",\"requestObjectKey\":\"apiEndpoint\"}",
- Object.class, SerializerEncoding.JSON))),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/ConnectAPIPolling.json
- */
- /**
- * Sample code: Connect an APIPolling data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void connectAnAPIPollingDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) throws IOException {
- manager.dataConnectors()
- .connectWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8",
- new DataConnectorConnectBody().withKind(ConnectAuthKind.APIKEY)
- .withApiKey("fakeTokenPlaceholder")
- .withRequestConfigUserInputValues(Arrays.asList(SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"displayText\":\"Organization Name\",\"placeHolderName\":\"{{placeHolder1}}\",\"placeHolderValue\":\"somePlaceHolderValue\",\"requestObjectKey\":\"apiEndpoint\"}",
- Object.class, SerializerEncoding.JSON))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
### DataConnectors_CreateOrUpdate
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.securityinsights.models.Availability;
-import com.azure.resourcemanager.securityinsights.models.AvailabilityStatus;
-import com.azure.resourcemanager.securityinsights.models.CodelessApiPollingDataConnector;
-import com.azure.resourcemanager.securityinsights.models.CodelessConnectorPollingAuthProperties;
-import com.azure.resourcemanager.securityinsights.models.CodelessConnectorPollingConfigProperties;
-import com.azure.resourcemanager.securityinsights.models.CodelessConnectorPollingPagingProperties;
-import com.azure.resourcemanager.securityinsights.models.CodelessConnectorPollingRequestProperties;
-import com.azure.resourcemanager.securityinsights.models.CodelessConnectorPollingResponseProperties;
-import com.azure.resourcemanager.securityinsights.models.CodelessUiConnectorConfigProperties;
-import com.azure.resourcemanager.securityinsights.models.CodelessUiConnectorConfigPropertiesConnectivityCriteriaItem;
-import com.azure.resourcemanager.securityinsights.models.CodelessUiConnectorConfigPropertiesDataTypesItem;
-import com.azure.resourcemanager.securityinsights.models.CodelessUiConnectorConfigPropertiesGraphQueriesItem;
-import com.azure.resourcemanager.securityinsights.models.CodelessUiConnectorConfigPropertiesInstructionStepsItem;
-import com.azure.resourcemanager.securityinsights.models.CodelessUiConnectorConfigPropertiesSampleQueriesItem;
-import com.azure.resourcemanager.securityinsights.models.CodelessUiDataConnector;
-import com.azure.resourcemanager.securityinsights.models.ConnectivityType;
import com.azure.resourcemanager.securityinsights.models.DataTypeState;
-import com.azure.resourcemanager.securityinsights.models.Dynamics365DataConnector;
-import com.azure.resourcemanager.securityinsights.models.Dynamics365DataConnectorDataTypes;
-import com.azure.resourcemanager.securityinsights.models.Dynamics365DataConnectorDataTypesDynamics365CdsActivities;
-import com.azure.resourcemanager.securityinsights.models.InstructionStepsInstructionsItem;
-import com.azure.resourcemanager.securityinsights.models.Office365ProjectConnectorDataTypes;
-import com.azure.resourcemanager.securityinsights.models.Office365ProjectConnectorDataTypesLogs;
-import com.azure.resourcemanager.securityinsights.models.Office365ProjectDataConnector;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnector;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnectorDataTypes;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnectorDataTypesExchange;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnectorDataTypesSharePoint;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnectorDataTypesTeams;
-import com.azure.resourcemanager.securityinsights.models.OfficePowerBIConnectorDataTypes;
-import com.azure.resourcemanager.securityinsights.models.OfficePowerBIConnectorDataTypesLogs;
-import com.azure.resourcemanager.securityinsights.models.OfficePowerBIDataConnector;
-import com.azure.resourcemanager.securityinsights.models.PermissionProviderScope;
-import com.azure.resourcemanager.securityinsights.models.Permissions;
-import com.azure.resourcemanager.securityinsights.models.PermissionsCustomsItem;
-import com.azure.resourcemanager.securityinsights.models.PermissionsResourceProviderItem;
-import com.azure.resourcemanager.securityinsights.models.PollingFrequency;
-import com.azure.resourcemanager.securityinsights.models.ProviderName;
-import com.azure.resourcemanager.securityinsights.models.RequiredPermissions;
-import com.azure.resourcemanager.securityinsights.models.SettingType;
import com.azure.resourcemanager.securityinsights.models.TIDataConnector;
import com.azure.resourcemanager.securityinsights.models.TIDataConnectorDataTypes;
import com.azure.resourcemanager.securityinsights.models.TIDataConnectorDataTypesIndicators;
-import com.azure.resourcemanager.securityinsights.models.TiTaxiiDataConnector;
-import com.azure.resourcemanager.securityinsights.models.TiTaxiiDataConnectorDataTypes;
-import com.azure.resourcemanager.securityinsights.models.TiTaxiiDataConnectorDataTypesTaxiiClient;
-import java.io.IOException;
import java.time.OffsetDateTime;
-import java.util.Arrays;
/**
* Samples for DataConnectors CreateOrUpdate.
@@ -1408,7 +759,7 @@ import java.util.Arrays;
public final class DataConnectorsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* dataConnectors/CreateOfficeDataConnetor.json
*/
/**
@@ -1421,2909 +772,662 @@ public final class DataConnectorsCreateOrUpdateSamples {
manager.dataConnectors()
.createOrUpdateWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
new OfficeDataConnector().withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
+ .withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8")
.withDataTypes(new OfficeDataConnectorDataTypes()
.withExchange(new OfficeDataConnectorDataTypesExchange().withState(DataTypeState.ENABLED))
.withSharePoint(new OfficeDataConnectorDataTypesSharePoint().withState(DataTypeState.ENABLED))
- .withTeams(new OfficeDataConnectorDataTypesTeams().withState(DataTypeState.ENABLED)))
- .withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ .withTeams(new OfficeDataConnectorDataTypesTeams().withState(DataTypeState.ENABLED))),
com.azure.core.util.Context.NONE);
}
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CreateOfficePowerBIDataConnector.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/CreateThreatIntelligenceDataConnector.json
*/
/**
- * Sample code: Creates or updates an Office PowerBI data connector.
+ * Sample code: Creates or updates an Threat Intelligence Platform data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void createsOrUpdatesAnOfficePowerBIDataConnector(
+ public static void createsOrUpdatesAnThreatIntelligencePlatformDataConnector(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager.dataConnectors()
.createOrUpdateWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- new OfficePowerBIDataConnector().withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withDataTypes(new OfficePowerBIConnectorDataTypes()
- .withLogs(new OfficePowerBIConnectorDataTypesLogs().withState(DataTypeState.ENABLED)))
- .withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ new TIDataConnector().withTenantId("06b3ccb8-1384-4bcc-aec7-852f6d57161b")
+ .withTipLookbackPeriod(OffsetDateTime.parse("2020-01-01T13:00:30.123Z"))
+ .withDataTypes(new TIDataConnectorDataTypes()
+ .withIndicators(new TIDataConnectorDataTypesIndicators().withState(DataTypeState.ENABLED))),
com.azure.core.util.Context.NONE);
}
+}
+```
+
+### DataConnectors_Delete
+```java
+/**
+ * Samples for DataConnectors Delete.
+ */
+public final class DataConnectorsDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CreateThreatIntelligenceTaxiiDataConnector.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/DeleteOfficeDataConnetor.json
*/
/**
- * Sample code: Creates or updates a Threat Intelligence Taxii data connector.
+ * Sample code: Delete an Office365 data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void createsOrUpdatesAThreatIntelligenceTaxiiDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void
+ deleteAnOffice365DataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager.dataConnectors()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- new TiTaxiiDataConnector().withEtag("d12423f6-a60b-4ca5-88c0-feb1a182d0f0")
- .withWorkspaceId("dd124572-4962-4495-9bd2-9dade12314b4")
- .withFriendlyName("testTaxii")
- .withTaxiiServer("https://limo.anomali.com/api/v1/taxii2/feeds")
- .withCollectionId("135")
- .withUsername("--")
- .withPassword("fakeTokenPlaceholder")
- .withTaxiiLookbackPeriod(OffsetDateTime.parse("2020-01-01T13:00:30.123Z"))
- .withPollingFrequency(PollingFrequency.ONCE_ADAY)
- .withDataTypes(new TiTaxiiDataConnectorDataTypes().withTaxiiClient(
- new TiTaxiiDataConnectorDataTypesTaxiiClient().withState(DataTypeState.ENABLED)))
- .withTenantId("06b3ccb8-1384-4bcc-aec7-852f6d57161b"),
+ .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
com.azure.core.util.Context.NONE);
}
+}
+```
+
+### DataConnectors_Get
+```java
+/**
+ * Samples for DataConnectors Get.
+ */
+public final class DataConnectorsGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CreateThreatIntelligenceDataConnector.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/GetAzureSecurityCenterById.json
*/
/**
- * Sample code: Creates or updates an Threat Intelligence Platform data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void createsOrUpdatesAnThreatIntelligencePlatformDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- new TIDataConnector().withTipLookbackPeriod(OffsetDateTime.parse("2020-01-01T13:00:30.123Z"))
- .withDataTypes(new TIDataConnectorDataTypes()
- .withIndicators(new TIDataConnectorDataTypesIndicators().withState(DataTypeState.ENABLED)))
- .withTenantId("06b3ccb8-1384-4bcc-aec7-852f6d57161b"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CreateDynamics365DataConnetor.json
- */
- /**
- * Sample code: Creates or updates a Dynamics365 data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void createsOrUpdatesADynamics365DataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "c2541efb-c9a6-47fe-9501-87d1017d1512",
- new Dynamics365DataConnector().withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withDataTypes(new Dynamics365DataConnectorDataTypes()
- .withDynamics365CdsActivities(new Dynamics365DataConnectorDataTypesDynamics365CdsActivities()
- .withState(DataTypeState.ENABLED)))
- .withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CreateGenericUI.json
- */
- /**
- * Sample code: Creates or updates a GenericUI data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void createsOrUpdatesAGenericUIDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) throws IOException {
- manager.dataConnectors()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8",
- new CodelessUiDataConnector().withConnectorUiConfig(new CodelessUiConnectorConfigProperties()
- .withTitle("Qualys Vulnerability Management (CCP DEMO)")
- .withPublisher("Qualys")
- .withDescriptionMarkdown(
- "The [Qualys Vulnerability Management (VM)](https://www.qualys.com/apps/vulnerability-management/) data connector provides the capability to ingest vulnerability host detection data into Azure Sentinel through the Qualys API. The connector provides visibility into host detection data from vulerability scans. This connector provides Azure Sentinel the capability to view dashboards, create custom alerts, and improve investigation ")
- .withGraphQueriesTableName("QualysHostDetection_CL")
- .withGraphQueries(Arrays.asList(
- new CodelessUiConnectorConfigPropertiesGraphQueriesItem().withMetricName("Total data received")
- .withLegend("{{graphQueriesTableName}}")
- .withBaseQuery("{{graphQueriesTableName}}")))
- .withSampleQueries(Arrays.asList(new CodelessUiConnectorConfigPropertiesSampleQueriesItem()
- .withDescription("Top 10 Vulerabilities detected")
- .withQuery(
- "{{graphQueriesTableName}}\n | mv-expand todynamic(Detections_s)\n | extend Vulnerability = tostring(Detections_s.Results)\n | summarize count() by Vulnerability\n | top 10 by count_")))
- .withDataTypes(Arrays.asList(new CodelessUiConnectorConfigPropertiesDataTypesItem()
- .withName("{{graphQueriesTableName}}")
- .withLastDataReceivedQuery(
- "{{graphQueriesTableName}}\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)")))
- .withConnectivityCriteria(
- Arrays.asList(new CodelessUiConnectorConfigPropertiesConnectivityCriteriaItem()
- .withType(ConnectivityType.IS_CONNECTED_QUERY)
- .withValue(Arrays.asList(
- "{{graphQueriesTableName}}\n | summarize LastLogReceived = max(TimeGenerated)\n | project IsConnected = LastLogReceived > ago(30d)"))))
- .withAvailability(new Availability().withStatus(AvailabilityStatus.ONE).withIsPreview(true))
- .withPermissions(new Permissions()
- .withResourceProvider(Arrays.asList(new PermissionsResourceProviderItem()
- .withProvider(ProviderName.MICROSOFT_OPERATIONAL_INSIGHTS_WORKSPACES)
- .withPermissionsDisplayText("read and write permissions on the workspace are required.")
- .withProviderDisplayName("Workspace")
- .withScope(PermissionProviderScope.WORKSPACE)
- .withRequiredPermissions(new RequiredPermissions()
- .withWrite(true)
- .withRead(true)
- .withDelete(true)),
- new PermissionsResourceProviderItem()
- .withProvider(ProviderName.MICROSOFT_OPERATIONAL_INSIGHTS_WORKSPACES_SHARED_KEYS)
- .withPermissionsDisplayText(
- "read permissions to shared keys for the workspace are required. [See the documentation to learn more about workspace keys](https://docs.microsoft.com/azure/azure-monitor/platform/agent-windows#obtain-workspace-id-and-key).")
- .withProviderDisplayName("Keys")
- .withScope(PermissionProviderScope.WORKSPACE)
- .withRequiredPermissions(new RequiredPermissions().withAction(true))))
- .withCustoms(Arrays.asList(new PermissionsCustomsItem()
- .withName("Microsoft.Web/sites permissions")
- .withDescription(
- "Read and write permissions to Azure Functions to create a Function App is required. [See the documentation to learn more about Azure Functions](https://docs.microsoft.com/azure/azure-functions/)."),
- new PermissionsCustomsItem().withName("Qualys API Key")
- .withDescription(
- "A Qualys VM API username and password is required. [See the documentation to learn more about Qualys VM API](https://www.qualys.com/docs/qualys-api-vmpc-user-guide.pdf)."))))
- .withInstructionSteps(Arrays.asList(new CodelessUiConnectorConfigPropertiesInstructionStepsItem()
- .withTitle("")
- .withDescription(
- ">**NOTE:** This connector uses Azure Functions to connect to Qualys VM to pull its logs into Azure Sentinel. This might result in additional data ingestion costs. Check the [Azure Functions pricing page](https://azure.microsoft.com/pricing/details/functions/) for details."),
- new CodelessUiConnectorConfigPropertiesInstructionStepsItem().withTitle("")
- .withDescription(
- ">**(Optional Step)** Securely store workspace and API authorization key(s) or token(s) in Azure Key Vault. Azure Key Vault provides a secure mechanism to store and retrieve key values. [Follow these instructions](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references) to use Azure Key Vault with an Azure Function App."),
- new CodelessUiConnectorConfigPropertiesInstructionStepsItem().withTitle("")
- .withDescription(
- "**STEP 1 - Configuration steps for the Qualys VM API**\n\n1. Log into the Qualys Vulnerability Management console with an administrator account, select the **Users** tab and the **Users** subtab. \n2. Click on the **New** drop-down menu and select **Users..**\n3. Create a username and password for the API account. \n4. In the **User Roles** tab, ensure the account role is set to **Manager** and access is allowed to **GUI** and **API**\n4. Log out of the administrator account and log into the console with the new API credentials for validation, then log out of the API account. \n5. Log back into the console using an administrator account and modify the API accounts User Roles, removing access to **GUI**. \n6. Save all changes."),
- new CodelessUiConnectorConfigPropertiesInstructionStepsItem().withTitle("")
- .withDescription(
- "**STEP 2 - Choose ONE from the following two deployment options to deploy the connector and the associated Azure Function**\n\n>**IMPORTANT:** Before deploying the Qualys VM connector, have the Workspace ID and Workspace Primary Key (can be copied from the following), as well as the Qualys VM API Authorization Key(s), readily available.")
- .withInstructions(Arrays.asList(
- new InstructionStepsInstructionsItem()
- .withParameters(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"fillWith\":[\"WorkspaceId\"],\"label\":\"Workspace ID\"}",
- Object.class, SerializerEncoding.JSON))
- .withType(SettingType.COPYABLE_LABEL),
- new InstructionStepsInstructionsItem()
- .withParameters(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"fillWith\":[\"PrimaryKey\"],\"label\":\"Primary Key\"}",
- Object.class, SerializerEncoding.JSON))
- .withType(SettingType.COPYABLE_LABEL))),
- new CodelessUiConnectorConfigPropertiesInstructionStepsItem()
- .withTitle("Option 1 - Azure Resource Manager (ARM) Template")
- .withDescription(
- "Use this method for automated deployment of the Qualys VM connector using an ARM Tempate.\n\n1. Click the **Deploy to Azure** button below. \n\n\t[](https://aka.ms/sentinelqualysvmazuredeploy)\n2. Select the preferred **Subscription**, **Resource Group** and **Location**. \n3. Enter the **Workspace ID**, **Workspace Key**, **API Username**, **API Password** , update the **URI**, and any additional URI **Filter Parameters** (each filter should be separated by an \"&\" symbol, no spaces.) \n> - Enter the URI that corresponds to your region. The complete list of API Server URLs can be [found here](https://www.qualys.com/docs/qualys-api-vmpc-user-guide.pdf#G4.735348) -- There is no need to add a time suffix to the URI, the Function App will dynamically append the Time Value to the URI in the proper format. \n - The default **Time Interval** is set to pull the last five (5) minutes of data. If the time interval needs to be modified, it is recommended to change the Function App Timer Trigger accordingly (in the function.json file, post deployment) to prevent overlapping data ingestion. \n> - Note: If using Azure Key Vault secrets for any of the values above, use the`@Microsoft.KeyVault(SecretUri={Security Identifier})`schema in place of the string values. Refer to [Key Vault references documentation](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references) for further details. \n4. Mark the checkbox labeled **I agree to the terms and conditions stated above**. \n5. Click **Purchase** to deploy."),
- new CodelessUiConnectorConfigPropertiesInstructionStepsItem()
- .withTitle("Option 2 - Manual Deployment of Azure Functions")
- .withDescription(
- "Use the following step-by-step instructions to deploy the Quayls VM connector manually with Azure Functions."),
- new CodelessUiConnectorConfigPropertiesInstructionStepsItem().withTitle("")
- .withDescription(
- "**1. Create a Function App**\n\n1. From the Azure Portal, navigate to [Function App](https://portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/Microsoft.Web%2Fsites/kind/functionapp), and select **+ Add**.\n2. In the **Basics** tab, ensure Runtime stack is set to **Powershell Core**. \n3. In the **Hosting** tab, ensure the **Consumption (Serverless)** plan type is selected.\n4. Make other preferrable configuration changes, if needed, then click **Create**."),
- new CodelessUiConnectorConfigPropertiesInstructionStepsItem().withTitle("")
- .withDescription(
- "**2. Import Function App Code**\n\n1. In the newly created Function App, select **Functions** on the left pane and click **+ New Function**.\n2. Select **Timer Trigger**.\n3. Enter a unique Function **Name** and leave the default cron schedule of every 5 minutes, then click **Create**.\n5. Click on **Code + Test** on the left pane. \n6. Copy the [Function App Code](https://aka.ms/sentinelqualysvmazurefunctioncode) and paste into the Function App `run.ps1` editor.\n7. Click **Save**."),
- new CodelessUiConnectorConfigPropertiesInstructionStepsItem().withTitle("")
- .withDescription(
- "**3. Configure the Function App**\n\n1. In the Function App, select the Function App Name and select **Configuration**.\n2. In the **Application settings** tab, select **+ New application setting**.\n3. Add each of the following seven (7) application settings individually, with their respective string values (case-sensitive): \n\t\tapiUsername\n\t\tapiPassword\n\t\tworkspaceID\n\t\tworkspaceKey\n\t\turi\n\t\tfilterParameters\n\t\ttimeInterval\n> - Enter the URI that corresponds to your region. The complete list of API Server URLs can be [found here](https://www.qualys.com/docs/qualys-api-vmpc-user-guide.pdf#G4.735348). The `uri` value must follow the following schema: `https:///api/2.0/fo/asset/host/vm/detection/?action=list&vm_processed_after=` -- There is no need to add a time suffix to the URI, the Function App will dynamically append the Time Value to the URI in the proper format.\n> - Add any additional filter parameters, for the `filterParameters` variable, that need to be appended to the URI. Each parameter should be seperated by an \"&\" symbol and should not include any spaces.\n> - Set the `timeInterval` (in minutes) to the value of `5` to correspond to the Timer Trigger of every `5` minutes. If the time interval needs to be modified, it is recommended to change the Function App Timer Trigger accordingly to prevent overlapping data ingestion.\n> - Note: If using Azure Key Vault, use the`@Microsoft.KeyVault(SecretUri={Security Identifier})`schema in place of the string values. Refer to [Key Vault references documentation](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references) for further details.\n4. Once all application settings have been entered, click **Save**."),
- new CodelessUiConnectorConfigPropertiesInstructionStepsItem().withTitle("")
- .withDescription(
- "**4. Configure the host.json**.\n\nDue to the potentially large amount of Qualys host detection data being ingested, it can cause the execution time to surpass the default Function App timeout of five (5) minutes. Increase the default timeout duration to the maximum of ten (10) minutes, under the Consumption Plan, to allow more time for the Function App to execute.\n\n1. In the Function App, select the Function App Name and select the **App Service Editor** blade.\n2. Click **Go** to open the editor, then select the **host.json** file under the **wwwroot** directory.\n3. Add the line `\"functionTimeout\": \"00:10:00\",` above the `managedDependancy` line \n4. Ensure **SAVED** appears on the top right corner of the editor, then exit the editor.\n\n> NOTE: If a longer timeout duration is required, consider upgrading to an [App Service Plan](https://docs.microsoft.com/azure/azure-functions/functions-scale#timeout)")))),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CreateOffice365ProjectDataConnetor.json
- */
- /**
- * Sample code: Creates or updates an Office365 Project data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void createsOrUpdatesAnOffice365ProjectDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- new Office365ProjectDataConnector().withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withDataTypes(new Office365ProjectConnectorDataTypes()
- .withLogs(new Office365ProjectConnectorDataTypesLogs().withState(DataTypeState.ENABLED)))
- .withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CreateAPIPolling.json
- */
- /**
- * Sample code: Creates or updates a APIPolling data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void createsOrUpdatesAAPIPollingDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) throws IOException {
- manager.dataConnectors()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8",
- new CodelessApiPollingDataConnector().withConnectorUiConfig(new CodelessUiConnectorConfigProperties()
- .withTitle("GitHub Enterprise Audit Log")
- .withPublisher("GitHub")
- .withDescriptionMarkdown(
- "The GitHub audit log connector provides the capability to ingest GitHub logs into Azure Sentinel. By connecting GitHub audit logs into Azure Sentinel, you can view this data in workbooks, use it to create custom alerts, and improve your investigation process.")
- .withGraphQueriesTableName("GitHubAuditLogPolling_CL")
- .withGraphQueries(Arrays.asList(new CodelessUiConnectorConfigPropertiesGraphQueriesItem()
- .withMetricName("Total events received")
- .withLegend("GitHub audit log events")
- .withBaseQuery("{{graphQueriesTableName}}")))
- .withSampleQueries(Arrays
- .asList(new CodelessUiConnectorConfigPropertiesSampleQueriesItem().withDescription("All logs")
- .withQuery("{{graphQueriesTableName}}\n | take 10 ")))
- .withDataTypes(Arrays.asList(new CodelessUiConnectorConfigPropertiesDataTypesItem()
- .withName("{{graphQueriesTableName}}")
- .withLastDataReceivedQuery(
- "{{graphQueriesTableName}}\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)")))
- .withConnectivityCriteria(
- Arrays.asList(new CodelessUiConnectorConfigPropertiesConnectivityCriteriaItem()
- .withType(ConnectivityType.fromString("SentinelKindsV2"))
- .withValue(Arrays.asList())))
- .withAvailability(new Availability().withStatus(AvailabilityStatus.ONE).withIsPreview(true))
- .withPermissions(
- new Permissions()
- .withResourceProvider(Arrays.asList(new PermissionsResourceProviderItem()
- .withProvider(ProviderName.MICROSOFT_OPERATIONAL_INSIGHTS_WORKSPACES)
- .withPermissionsDisplayText("read and write permissions are required.")
- .withProviderDisplayName("Workspace")
- .withScope(PermissionProviderScope.WORKSPACE)
- .withRequiredPermissions(new RequiredPermissions()
- .withWrite(true)
- .withRead(true)
- .withDelete(true))))
- .withCustoms(Arrays.asList(new PermissionsCustomsItem()
- .withName("GitHub API personal token Key")
- .withDescription(
- "You need access to GitHub personal token, the key should have 'admin:org' scope"))))
- .withInstructionSteps(Arrays.asList(new CodelessUiConnectorConfigPropertiesInstructionStepsItem()
- .withTitle("Connect GitHub Enterprise Audit Log to Azure Sentinel")
- .withDescription(
- "Enable GitHub audit Logs. \n Follow [this](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token) to create or find your personal key")
- .withInstructions(Arrays.asList(new InstructionStepsInstructionsItem()
- .withParameters(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"enable\":\"true\",\"userRequestPlaceHoldersInput\":[{\"displayText\":\"Organization Name\",\"placeHolderName\":\"{{placeHolder1}}\",\"placeHolderValue\":\"\",\"requestObjectKey\":\"apiEndpoint\"}]}",
- Object.class, SerializerEncoding.JSON))
- .withType(SettingType.fromString("APIKey")))))))
- .withPollingConfig(new CodelessConnectorPollingConfigProperties()
- .withAuth(new CodelessConnectorPollingAuthProperties().withAuthType("APIKey")
- .withApiKeyName("fakeTokenPlaceholder")
- .withApiKeyIdentifier("fakeTokenPlaceholder"))
- .withRequest(new CodelessConnectorPollingRequestProperties()
- .withApiEndpoint("https://api.github.com/organizations/{{placeHolder1}}/audit-log")
- .withRateLimitQps(50)
- .withQueryWindowInMin(15)
- .withHttpMethod("Get")
- .withQueryTimeFormat("yyyy-MM-ddTHH:mm:ssZ")
- .withRetryCount(2)
- .withTimeoutInSeconds(60)
- .withHeaders(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"Accept\":\"application/json\",\"User-Agent\":\"Scuba\"}", Object.class,
- SerializerEncoding.JSON))
- .withQueryParameters(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"phrase\":\"created:{_QueryWindowStartTime}..{_QueryWindowEndTime}\"}",
- Object.class, SerializerEncoding.JSON)))
- .withPaging(new CodelessConnectorPollingPagingProperties().withPagingType("LinkHeader")
- .withPageSizeParaName("per_page"))
- .withResponse(
- new CodelessConnectorPollingResponseProperties().withEventsJsonPaths(Arrays.asList("$")))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DataConnectors_Delete
-
-```java
-/**
- * Samples for DataConnectors Delete.
- */
-public final class DataConnectorsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/DeleteOffice365ProjectDataConnetor.json
- */
- /**
- * Sample code: Delete an Office365 Project data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void deleteAnOffice365ProjectDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/DeleteGenericUI.json
- */
- /**
- * Sample code: Delete a GenericUI data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- deleteAGenericUIDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/DeleteOfficeDataConnetor.json
- */
- /**
- * Sample code: Delete an Office365 data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- deleteAnOffice365DataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/DeleteOfficePowerBIDataConnetor.json
- */
- /**
- * Sample code: Delete an Office PowerBI data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- deleteAnOfficePowerBIDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/DeleteAPIPolling.json
- */
- /**
- * Sample code: Delete a APIPolling data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- deleteAAPIPollingDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DataConnectors_Disconnect
-
-```java
-/**
- * Samples for DataConnectors Disconnect.
- */
-public final class DataConnectorsDisconnectSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/DisconnectAPIPolling.json
- */
- /**
- * Sample code: Disconnect an APIPolling data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void disconnectAnAPIPollingDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .disconnectWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DataConnectors_Get
-
-```java
-/**
- * Samples for DataConnectors Get.
- */
-public final class DataConnectorsGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetOffice365ProjectDataConnetorById.json
- */
- /**
- * Sample code: Get an Office365 Project data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnOffice365ProjectDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetGenericUI.json
- */
- /**
- * Sample code: Get a GenericUI data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAGenericUIDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetOffice365AdvancedThreatProtectionById.json
- */
- /**
- * Sample code: Get an Office ATP data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnOfficeATPDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "3d3e955e-33eb-401d-89a7-251c81ddd660",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetIoTById.json
- */
- /**
- * Sample code: Get a IoT data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAIoTDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "d2e5dc7a-f3a2-429d-954b-939fa8c2932e",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetMicrosoftCloudAppSecurityById.json
- */
- /**
- * Sample code: Get a MCAS data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAMCASDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "b96d014d-b5c2-4a01-9aba-a8058f629d42",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetThreatIntelligenceTaxiiById.json
- */
- /**
- * Sample code: Get a TI Taxii data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getATITaxiiDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c39bb458-02a7-4b3f-b0c8-71a1d2692652",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetMicrosoftThreatIntelligenceById.json
- */
- /**
- * Sample code: Get a MicrosoftThreatIntelligence data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAMicrosoftThreatIntelligenceDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetAzureSecurityCenterById.json
- */
- /**
- * Sample code: Get a ASC data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAASCDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "763f9fa1-c2d3-4fa2-93e9-bccd4899aa12",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetThreatIntelligenceById.json
- */
- /**
- * Sample code: Get a TI data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getATIDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetAmazonWebServicesCloudTrailById.json
- */
- /**
- * Sample code: Get an AwsCloudTrail data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnAwsCloudTrailDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json
- */
- /**
- * Sample code: Get a MDATP data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAMDATPDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "06b3ccb8-1384-4bcc-aec7-852f6d57161b",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetMicrosoftThreatProtectionById.json
- */
- /**
- * Sample code: Get a MicrosoftThreatProtection data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAMicrosoftThreatProtectionDataConnector(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetAzureActiveDirectoryById.json
- */
- /**
- * Sample code: Get an AAD data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnAADDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "f0cd27d2-5f03-4c06-ba31-d2dc82dcb51d",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetAzureAdvancedThreatProtectionById.json
- */
- /**
- * Sample code: Get an AATP data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnAATPDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "07e42cb3-e658-4e90-801c-efa0f29d3d44",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetAPIPolling.json
- */
- /**
- * Sample code: Get a APIPolling data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAAPIPollingDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetMicrosoftInsiderRiskManagementById.json
- */
- /**
- * Sample code: Get an Office IRM data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnOfficeIRMDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "3d3e955e-33eb-401d-89a7-251c81ddd660",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetDynamics365DataConnectorById.json
- */
- /**
- * Sample code: Get a Dynamics365 data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getADynamics365DataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c2541efb-c9a6-47fe-9501-87d1017d1512",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetOfficeDataConnetorById.json
- */
- /**
- * Sample code: Get an Office365 data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnOffice365DataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetAmazonWebServicesS3ById.json
- */
- /**
- * Sample code: Get an Aws S3 data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnAwsS3DataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "afef3743-0c88-469c-84ff-ca2e87dc1e48",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetOfficePowerBIDataConnetorById.json
- */
- /**
- * Sample code: Get an Office365 PowerBI data connector.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnOffice365PowerBIDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DataConnectors_List
-
-```java
-/**
- * Samples for DataConnectors List.
- */
-public final class DataConnectorsListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/GetDataConnectors.json
- */
- /**
- * Sample code: Get all data connectors.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAllDataConnectors(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DataConnectorsCheckRequirementsOperation_Post
-
-```java
-import com.azure.resourcemanager.securityinsights.models.AadCheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.AscCheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.Dynamics365CheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.IoTCheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.McasCheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.MstiCheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.MtpCheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.Office365ProjectCheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.OfficeAtpCheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.OfficeIrmCheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.OfficePowerBICheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.TICheckRequirements;
-import com.azure.resourcemanager.securityinsights.models.TiTaxiiCheckRequirements;
-
-/**
- * Samples for DataConnectorsCheckRequirementsOperation Post.
- */
-public final class DataConnectorsCheckRequirementsOperationPostSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsOfficeATP.json
- */
- /**
- * Sample code: Check requirements for OfficeATP.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForOfficeATP(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new OfficeAtpCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsOffice365Project.json
- */
- /**
- * Sample code: Check requirements for Office365Project.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void checkRequirementsForOffice365Project(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new Office365ProjectCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsAzureActiveDirectory.json
- */
- /**
- * Sample code: Check requirements for AAD.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForAAD(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new AadCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsMicrosoftCloudAppSecurity.json
- */
- /**
- * Sample code: Check requirements for Mcas.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForMcas(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new McasCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsIoT.json
- */
- /**
- * Sample code: Check requirements for IoT.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForIoT(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new IoTCheckRequirements().withSubscriptionId("c0688291-89d7-4bed-87a2-a7b1bff43f4c"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsMdatp.json
- */
- /**
- * Sample code: Check requirements for Mdatp.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForMdatp(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new McasCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsAzureActiveDirectoryNoAuthorization.json
- */
- /**
- * Sample code: Check requirements for AAD - no authorization.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void checkRequirementsForAADNoAuthorization(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new AadCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsAzureSecurityCenter.json
- */
- /**
- * Sample code: Check requirements for ASC.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForASC(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new AscCheckRequirements().withSubscriptionId("c0688291-89d7-4bed-87a2-a7b1bff43f4c"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsMicrosoftThreatProtection.json
- */
- /**
- * Sample code: Check requirements for MicrosoftThreatProtection.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void checkRequirementsForMicrosoftThreatProtection(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new MtpCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsThreatIntelligenceTaxii.json
- */
- /**
- * Sample code: Check requirements for TI Taxii.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForTITaxii(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new TiTaxiiCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsOfficeIRM.json
- */
- /**
- * Sample code: Check requirements for OfficeIRM.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForOfficeIRM(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new OfficeIrmCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsMicrosoftThreatIntelligence.json
- */
- /**
- * Sample code: Check requirements for MicrosoftThreatIntelligence.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void checkRequirementsForMicrosoftThreatIntelligence(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new MstiCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsOfficePowerBI.json
- */
- /**
- * Sample code: Check requirements for OfficePowerBI.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForOfficePowerBI(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new OfficePowerBICheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsDynamics365.json
- */
- /**
- * Sample code: Check requirements for Dynamics365.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForDynamics365(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new Dynamics365CheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsAzureActiveDirectoryNoLicense.json
- */
- /**
- * Sample code: Check requirements for AAD - no license.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForAADNoLicense(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new AadCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * dataConnectors/CheckRequirementsThreatIntelligence.json
- */
- /**
- * Sample code: Check requirements for TI.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- checkRequirementsForTI(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace",
- new TICheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### DomainWhois_Get
-
-```java
-/**
- * Samples for DomainWhois Get.
- */
-public final class DomainWhoisGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * enrichment/GetWhoisByDomainName.json
- */
- /**
- * Sample code: Get whois information for a single domain name.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getWhoisInformationForASingleDomainName(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.domainWhois().getWithResponse("myRg", "microsoft.com", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Entities_Expand
-
-```java
-import com.azure.resourcemanager.securityinsights.models.EntityExpandParameters;
-import java.time.OffsetDateTime;
-import java.util.UUID;
-
-/**
- * Samples for Entities Expand.
- */
-public final class EntitiesExpandSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/expand/PostExpandEntity.json
- */
- /**
- * Sample code: Expand an entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void expandAnEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .expandWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- new EntityExpandParameters().withEndTime(OffsetDateTime.parse("2019-05-26T00:00:00.000Z"))
- .withExpansionId(UUID.fromString("a77992f3-25e9-4d01-99a4-5ff606cc410a"))
- .withStartTime(OffsetDateTime.parse("2019-04-25T00:00:00.000Z")),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Entities_Get
-
-```java
-/**
- * Samples for Entities Get.
- */
-public final class EntitiesGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetSubmissionMailEntityById.json
- */
- /**
- * Sample code: Get a submissionMail entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getASubmissionMailEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetDnsEntityById.json
- */
- /**
- * Sample code: Get a dns entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getADnsEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "f4e74920-f2c0-4412-a45f-66d94fdf01f8",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetFileHashEntityById.json
- */
- /**
- * Sample code: Get a file hash entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAFileHashEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "ea359fa6-c1e5-f878-e105-6344f3e399a1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetIoTDeviceEntityById.json
- */
- /**
- * Sample code: Get an IoT device entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnIoTDeviceEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetRegistryKeyEntityById.json
- */
- /**
- * Sample code: Get a registry key entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getARegistryKeyEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetMailboxEntityById.json
- */
- /**
- * Sample code: Get a mailbox entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAMailboxEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetMalwareEntityById.json
- */
- /**
- * Sample code: Get a malware entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAMalwareEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "af378b21-b4aa-4fe7-bc70-13f8621a322f",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetSecurityAlertEntityById.json
- */
- /**
- * Sample code: Get a security alert entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getASecurityAlertEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "4aa486e0-6f85-41af-99ea-7acdce7be6c8",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetIpEntityById.json
- */
- /**
- * Sample code: Get an ip entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAnIpEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetAccountEntityById.json
- */
- /**
- * Sample code: Get an account entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAnAccountEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetCloudApplicationEntityById.json
- */
- /**
- * Sample code: Get a cloud application entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getACloudApplicationEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetFileEntityById.json
- */
- /**
- * Sample code: Get a file entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAFileEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "af378b21-b4aa-4fe7-bc70-13f8621a322f",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetRegistryValueEntityById.json
- */
- /**
- * Sample code: Get a registry value entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getARegistryValueEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "dc44bd11-b348-4d76-ad29-37bf7aa41356",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetUrlEntityById.json
- */
- /**
- * Sample code: Get a url entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAUrlEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetMailClusterEntityById.json
- */
- /**
- * Sample code: Get a mailCluster entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAMailClusterEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetSecurityGroupEntityById.json
- */
- /**
- * Sample code: Get a security group entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getASecurityGroupEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetMailMessageEntityById.json
- */
- /**
- * Sample code: Get a mailMessage entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAMailMessageEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetAzureResourceEntityById.json
- */
- /**
- * Sample code: Get an azure resource entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnAzureResourceEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetHostEntityById.json
- */
- /**
- * Sample code: Get a host entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAHostEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetProcessEntityById.json
- */
- /**
- * Sample code: Get a process entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAProcessEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getWithResponse("myRg", "myWorkspace", "7264685c-038c-42c6-948c-38e14ef1fb98",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Entities_GetInsights
-
-```java
-import com.azure.resourcemanager.securityinsights.models.EntityGetInsightsParameters;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import java.util.UUID;
-
-/**
- * Samples for Entities GetInsights.
- */
-public final class EntitiesGetInsightsSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/insights/PostGetInsights.json
- */
- /**
- * Sample code: Entity Insight.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void entityInsight(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .getInsightsWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- new EntityGetInsightsParameters().withStartTime(OffsetDateTime.parse("2021-09-01T00:00:00.000Z"))
- .withEndTime(OffsetDateTime.parse("2021-10-01T00:00:00.000Z"))
- .withAddDefaultExtendedTimeRange(false)
- .withInsightQueryIds(Arrays.asList(UUID.fromString("cae8d0aa-aa45-4d53-8d88-17dd64ffd4e4"))),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Entities_List
-
-```java
-/**
- * Samples for Entities List.
- */
-public final class EntitiesListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetEntities.json
- */
- /**
- * Sample code: Get all entities.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAllEntities(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Entities_Queries
-
-```java
-import com.azure.resourcemanager.securityinsights.models.EntityItemQueryKind;
-
-/**
- * Samples for Entities Queries.
- */
-public final class EntitiesQueriesSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/GetQueries.json
- */
- /**
- * Sample code: Get Entity Query.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getEntityQuery(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities()
- .queriesWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- EntityItemQueryKind.INSIGHT, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### EntitiesGetTimeline_List
-
-```java
-import com.azure.resourcemanager.securityinsights.models.EntityTimelineParameters;
-import java.time.OffsetDateTime;
-
-/**
- * Samples for EntitiesGetTimeline List.
- */
-public final class EntitiesGetTimelineListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/timeline/PostTimelineEntity.json
- */
- /**
- * Sample code: Entity timeline.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void entityTimeline(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entitiesGetTimelines()
- .listWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1",
- new EntityTimelineParameters().withStartTime(OffsetDateTime.parse("2021-09-01T00:00:00.000Z"))
- .withEndTime(OffsetDateTime.parse("2021-10-01T00:00:00.000Z"))
- .withNumberOfBucket(4),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### EntitiesRelations_List
-
-```java
-/**
- * Samples for EntitiesRelations List.
- */
-public final class EntitiesRelationsListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/relations/GetAllEntityRelations.json
- */
- /**
- * Sample code: Get all relations of an entity.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAllRelationsOfAnEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entitiesRelations()
- .list("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", null, null, null, null,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### EntityQueries_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.securityinsights.models.ActivityCustomEntityQuery;
-import com.azure.resourcemanager.securityinsights.models.ActivityEntityQueriesPropertiesQueryDefinitions;
-import com.azure.resourcemanager.securityinsights.models.EntityType;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for EntityQueries CreateOrUpdate.
- */
-public final class EntityQueriesCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entityQueries/CreateEntityQueryActivity.json
- */
- /**
- * Sample code: Creates or updates an Activity entity query.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void createsOrUpdatesAnActivityEntityQuery(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueries()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b",
- new ActivityCustomEntityQuery().withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withTitle("An account was deleted on this host")
- .withContent("On '{{Computer}}' the account '{{TargetAccount}}' was deleted by '{{AddedBy}}'")
- .withDescription("Account deleted on host")
- .withQueryDefinitions(new ActivityEntityQueriesPropertiesQueryDefinitions().withQuery(
- "let GetAccountActions = (v_Host_Name:string, v_Host_NTDomain:string, v_Host_DnsDomain:string, v_Host_AzureID:string, v_Host_OMSAgentID:string){\nSecurityEvent\n| where EventID in (4725, 4726, 4767, 4720, 4722, 4723, 4724)\n// parsing for Host to handle variety of conventions coming from data\n| extend Host_HostName = case(\nComputer has '@', tostring(split(Computer, '@')[0]),\nComputer has '\\\\', tostring(split(Computer, '\\\\')[1]),\nComputer has '.', tostring(split(Computer, '.')[0]),\nComputer\n)\n| extend Host_NTDomain = case(\nComputer has '\\\\', tostring(split(Computer, '\\\\')[0]), \nComputer has '.', tostring(split(Computer, '.')[-2]), \nComputer\n)\n| extend Host_DnsDomain = case(\nComputer has '\\\\', tostring(split(Computer, '\\\\')[0]), \nComputer has '.', strcat_array(array_slice(split(Computer,'.'),-2,-1),'.'), \nComputer\n)\n| where (Host_HostName =~ v_Host_Name and Host_NTDomain =~ v_Host_NTDomain) \nor (Host_HostName =~ v_Host_Name and Host_DnsDomain =~ v_Host_DnsDomain) \nor v_Host_AzureID =~ _ResourceId \nor v_Host_OMSAgentID == SourceComputerId\n| project TimeGenerated, EventID, Activity, Computer, TargetAccount, TargetUserName, TargetDomainName, TargetSid, SubjectUserName, SubjectUserSid, _ResourceId, SourceComputerId\n| extend AddedBy = SubjectUserName\n// Future support for Activities\n| extend timestamp = TimeGenerated, HostCustomEntity = Computer, AccountCustomEntity = TargetAccount\n};\nGetAccountActions('{{Host_HostName}}', '{{Host_NTDomain}}', '{{Host_DnsDomain}}', '{{Host_AzureID}}', '{{Host_OMSAgentID}}')\n \n| where EventID == 4726 "))
- .withInputEntityType(EntityType.HOST)
- .withRequiredInputFieldsSets(Arrays.asList(Arrays.asList("Host_HostName", "Host_NTDomain"),
- Arrays.asList("Host_HostName", "Host_DnsDomain"), Arrays.asList("Host_AzureID"),
- Arrays.asList("Host_OMSAgentID")))
- .withEntitiesFilter(mapOf("Host_OsFamily", Arrays.asList("Windows")))
- .withEnabled(true),
- com.azure.core.util.Context.NONE);
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
-### EntityQueries_Delete
-
-```java
-/**
- * Samples for EntityQueries Delete.
- */
-public final class EntityQueriesDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entityQueries/DeleteEntityQuery.json
- */
- /**
- * Sample code: Delete an entity query.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void deleteAnEntityQuery(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueries()
- .deleteWithResponse("myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### EntityQueries_Get
-
-```java
-/**
- * Samples for EntityQueries Get.
- */
-public final class EntityQueriesGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entityQueries/GetActivityEntityQueryById.json
- */
- /**
- * Sample code: Get an Activity entity query.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnActivityEntityQuery(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueries()
- .getWithResponse("myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entityQueries/GetExpansionEntityQueryById.json
- */
- /**
- * Sample code: Get an Expansion entity query.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnExpansionEntityQuery(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueries()
- .getWithResponse("myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### EntityQueries_List
-
-```java
-import com.azure.resourcemanager.securityinsights.models.EntityQueriesKind;
-
-/**
- * Samples for EntityQueries List.
- */
-public final class EntityQueriesListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entityQueries/GetEntityQueries.json
- */
- /**
- * Sample code: Get all entity queries.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAllEntityQueries(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueries()
- .list("myRg", "myWorkspace", EntityQueriesKind.EXPANSION, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### EntityQueryTemplates_Get
-
-```java
-/**
- * Samples for EntityQueryTemplates Get.
- */
-public final class EntityQueryTemplatesGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entityQueryTemplates/GetActivityEntityQueryTemplateById.json
- */
- /**
- * Sample code: Get an Activity entity query template.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnActivityEntityQueryTemplate(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueryTemplates()
- .getWithResponse("myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### EntityQueryTemplates_List
-
-```java
-import com.azure.resourcemanager.securityinsights.models.Constant88;
-
-/**
- * Samples for EntityQueryTemplates List.
- */
-public final class EntityQueryTemplatesListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entityQueryTemplates/GetEntityQueryTemplates.json
- */
- /**
- * Sample code: Get all entity query templates.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAllEntityQueryTemplates(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueryTemplates()
- .list("myRg", "myWorkspace", Constant88.ACTIVITY, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### EntityRelations_GetRelation
-
-```java
-/**
- * Samples for EntityRelations GetRelation.
- */
-public final class EntityRelationsGetRelationSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * entities/relations/GetEntityRelationByName.json
- */
- /**
- * Sample code: Get an entity relation.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAnEntityRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityRelations()
- .getRelationWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### FileImports_Create
-
-```java
-import com.azure.resourcemanager.securityinsights.models.FileFormat;
-import com.azure.resourcemanager.securityinsights.models.FileImportContentType;
-import com.azure.resourcemanager.securityinsights.models.FileMetadata;
-import com.azure.resourcemanager.securityinsights.models.IngestionMode;
-
-/**
- * Samples for FileImports Create.
- */
-public final class FileImportsCreateSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * fileImports/CreateFileImport.json
- */
- /**
- * Sample code: Create a file import.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void createAFileImport(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.fileImports()
- .define("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
- .withExistingWorkspace("myRg", "myWorkspace")
- .withIngestionMode(IngestionMode.INGEST_ANY_VALID_RECORDS)
- .withContentType(FileImportContentType.STIX_INDICATOR)
- .withImportFile(
- new FileMetadata().withFileFormat(FileFormat.JSON).withFileName("myFile.json").withFileSize(4653))
- .withSource("mySource")
- .create();
- }
-}
-```
-
-### FileImports_Delete
-
-```java
-/**
- * Samples for FileImports Delete.
- */
-public final class FileImportsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * fileImports/DeleteFileImport.json
- */
- /**
- * Sample code: Delete a file import.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void deleteAFileImport(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.fileImports()
- .delete("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### FileImports_Get
-
-```java
-/**
- * Samples for FileImports Get.
- */
-public final class FileImportsGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * fileImports/GetFileImportById.json
- */
- /**
- * Sample code: Get a file import.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAFileImport(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.fileImports()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### FileImports_List
-
-```java
-/**
- * Samples for FileImports List.
- */
-public final class FileImportsListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * fileImports/GetFileImports.json
- */
- /**
- * Sample code: Get all file imports.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAllFileImports(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.fileImports()
- .list("myRg", "myWorkspace", null, "properties/createdTimeUtc desc", 1, null,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IncidentComments_CreateOrUpdate
-
-```java
-/**
- * Samples for IncidentComments CreateOrUpdate.
- */
-public final class IncidentCommentsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/comments/CreateIncidentComment.json
- */
- /**
- * Sample code: Creates or updates an incident comment.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- createsOrUpdatesAnIncidentComment(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidentComments()
- .define("4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014")
- .withExistingIncident("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5")
- .withMessage("Some message")
- .create();
- }
-}
-```
-
-### IncidentComments_Delete
-
-```java
-/**
- * Samples for IncidentComments Delete.
- */
-public final class IncidentCommentsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/comments/DeleteIncidentComment.json
- */
- /**
- * Sample code: Delete the incident comment.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- deleteTheIncidentComment(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidentComments()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IncidentComments_Get
-
-```java
-/**
- * Samples for IncidentComments Get.
- */
-public final class IncidentCommentsGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/comments/GetIncidentCommentById.json
- */
- /**
- * Sample code: Get an incident comment.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAnIncidentComment(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidentComments()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IncidentComments_List
-
-```java
-/**
- * Samples for IncidentComments List.
- */
-public final class IncidentCommentsListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/comments/GetAllIncidentComments.json
- */
- /**
- * Sample code: Get all incident comments.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAllIncidentComments(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidentComments()
- .list("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", null, null, null, null,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IncidentRelations_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.securityinsights.fluent.models.RelationInner;
-
-/**
- * Samples for IncidentRelations CreateOrUpdate.
- */
-public final class IncidentRelationsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/relations/CreateIncidentRelation.json
- */
- /**
- * Sample code: Creates or updates an incident relation.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- createsOrUpdatesAnIncidentRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidentRelations()
- .createOrUpdateWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- new RelationInner().withRelatedResourceId(
- "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IncidentRelations_Delete
-
-```java
-/**
- * Samples for IncidentRelations Delete.
- */
-public final class IncidentRelationsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/relations/DeleteIncidentRelation.json
- */
- /**
- * Sample code: Delete the incident relation.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- deleteTheIncidentRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidentRelations()
- .deleteWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### IncidentRelations_Get
-
-```java
-/**
- * Samples for IncidentRelations Get.
- */
-public final class IncidentRelationsGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/relations/GetIncidentRelationByName.json
- */
- /**
- * Sample code: Get an incident relation.
+ * Sample code: Get a ASC data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- getAnIncidentRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidentRelations()
- .getWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
- "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
+ getAASCDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "763f9fa1-c2d3-4fa2-93e9-bccd4899aa12",
+ com.azure.core.util.Context.NONE);
}
-}
-```
-
-### IncidentRelations_List
-```java
-/**
- * Samples for IncidentRelations List.
- */
-public final class IncidentRelationsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/relations/GetAllIncidentRelations.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/GetOfficeDataConnetorById.json
*/
/**
- * Sample code: Get all incident relations.
+ * Sample code: Get an Office365 data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- getAllIncidentRelations(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidentRelations()
- .list("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", null, null, null, null,
+ getAnOffice365DataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
com.azure.core.util.Context.NONE);
}
-}
-```
-
-### Incidents_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.securityinsights.models.IncidentClassification;
-import com.azure.resourcemanager.securityinsights.models.IncidentClassificationReason;
-import com.azure.resourcemanager.securityinsights.models.IncidentOwnerInfo;
-import com.azure.resourcemanager.securityinsights.models.IncidentSeverity;
-import com.azure.resourcemanager.securityinsights.models.IncidentStatus;
-import java.time.OffsetDateTime;
-import java.util.UUID;
-/**
- * Samples for Incidents CreateOrUpdate.
- */
-public final class IncidentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/CreateIncident.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/GetMicrosoftCloudAppSecurityById.json
*/
/**
- * Sample code: Creates or updates an incident.
+ * Sample code: Get a MCAS data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- createsOrUpdatesAnIncident(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents()
- .define("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
- .withExistingWorkspace("myRg", "myWorkspace")
- .withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withClassification(IncidentClassification.FALSE_POSITIVE)
- .withClassificationComment("Not a malicious activity")
- .withClassificationReason(IncidentClassificationReason.INCORRECT_ALERT_LOGIC)
- .withDescription("This is a demo incident")
- .withFirstActivityTimeUtc(OffsetDateTime.parse("2019-01-01T13:00:30Z"))
- .withLastActivityTimeUtc(OffsetDateTime.parse("2019-01-01T13:05:30Z"))
- .withOwner(new IncidentOwnerInfo().withObjectId(UUID.fromString("2046feea-040d-4a46-9e2b-91c2941bfa70")))
- .withSeverity(IncidentSeverity.HIGH)
- .withStatus(IncidentStatus.CLOSED)
- .withTitle("My incident")
- .create();
+ getAMCASDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "b96d014d-b5c2-4a01-9aba-a8058f629d42",
+ com.azure.core.util.Context.NONE);
}
-}
-```
-
-### Incidents_CreateTeam
-```java
-import com.azure.resourcemanager.securityinsights.models.TeamProperties;
-
-/**
- * Samples for Incidents CreateTeam.
- */
-public final class IncidentsCreateTeamSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/CreateTeam.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/GetAmazonWebServicesCloudTrailById.json
*/
/**
- * Sample code: Creates incident teams group.
+ * Sample code: Get an AwsCloudTrail data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- createsIncidentTeamsGroup(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents()
- .createTeamWithResponse("ambawolvese5resourcegroup", "AmbaE5WestCentralUS",
- "69a30280-6a4c-4aa7-9af0-5d63f335d600",
- new TeamProperties().withTeamName("Team name").withTeamDescription("Team description"),
+ getAnAwsCloudTrailDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04",
com.azure.core.util.Context.NONE);
}
-}
-```
-### Incidents_Delete
-
-```java
-/**
- * Samples for Incidents Delete.
- */
-public final class IncidentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/DeleteIncident.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/GetAzureAdvancedThreatProtectionById.json
*/
/**
- * Sample code: Delete an incident.
+ * Sample code: Get an AATP data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void deleteAnIncident(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ public static void
+ getAnAATPDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "07e42cb3-e658-4e90-801c-efa0f29d3d44",
com.azure.core.util.Context.NONE);
}
-}
-```
-
-### Incidents_Get
-```java
-/**
- * Samples for Incidents Get.
- */
-public final class IncidentsGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/GetIncidentById.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json
*/
/**
- * Sample code: Get an incident.
+ * Sample code: Get a MDATP data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAnIncident(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ public static void
+ getAMDATPDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "06b3ccb8-1384-4bcc-aec7-852f6d57161b",
com.azure.core.util.Context.NONE);
}
-}
-```
-
-### Incidents_List
-```java
-/**
- * Samples for Incidents List.
- */
-public final class IncidentsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/GetIncidents.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/GetThreatIntelligenceById.json
*/
/**
- * Sample code: Get all incidents.
+ * Sample code: Get a TI data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAllIncidents(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents()
- .list("myRg", "myWorkspace", null, "properties/createdTimeUtc desc", 1, null,
+ public static void getATIDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04",
com.azure.core.util.Context.NONE);
}
-}
-```
-### Incidents_ListAlerts
-
-```java
-/**
- * Samples for Incidents ListAlerts.
- */
-public final class IncidentsListAlertsSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/GetAllIncidentAlerts.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/GetAzureActiveDirectoryById.json
*/
/**
- * Sample code: Get all incident alerts.
+ * Sample code: Get an AAD data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- getAllIncidentAlerts(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents()
- .listAlertsWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ getAnAADDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "f0cd27d2-5f03-4c06-ba31-d2dc82dcb51d",
com.azure.core.util.Context.NONE);
}
}
```
-### Incidents_ListBookmarks
+### DataConnectors_List
```java
/**
- * Samples for Incidents ListBookmarks.
+ * Samples for DataConnectors List.
*/
-public final class IncidentsListBookmarksSamples {
+public final class DataConnectorsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/GetAllIncidentBookmarks.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
+ * dataConnectors/GetDataConnectors.json
*/
/**
- * Sample code: Get all incident bookmarks.
+ * Sample code: Get all data connectors.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- getAllIncidentBookmarks(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents()
- .listBookmarksWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
- com.azure.core.util.Context.NONE);
+ getAllDataConnectors(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.dataConnectors().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
-### Incidents_ListEntities
+### IncidentComments_CreateOrUpdate
```java
/**
- * Samples for Incidents ListEntities.
+ * Samples for IncidentComments CreateOrUpdate.
*/
-public final class IncidentsListEntitiesSamples {
+public final class IncidentCommentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * incidents/entities/GetAllIncidentEntities.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * comments/CreateIncidentComment.json
*/
/**
- * Sample code: Gets all incident related entities.
+ * Sample code: Creates or updates an incident comment.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- getsAllIncidentRelatedEntities(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents()
- .listEntitiesWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
- com.azure.core.util.Context.NONE);
+ createsOrUpdatesAnIncidentComment(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidentComments()
+ .define("4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014")
+ .withExistingIncident("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5")
+ .withMessage("Some message")
+ .create();
}
}
```
-### Incidents_RunPlaybook
+### IncidentComments_Delete
```java
-
/**
- * Samples for Incidents RunPlaybook.
+ * Samples for IncidentComments Delete.
*/
-public final class IncidentsRunPlaybookSamples {
+public final class IncidentCommentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * manualTrigger/Incidents_RunPlaybook.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * comments/DeleteIncidentComment.json
*/
/**
- * Sample code: Incidents_RunPlaybook.
+ * Sample code: Delete the incident comment.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- incidentsRunPlaybook(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents()
- .runPlaybookWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ar4", null,
- com.azure.core.util.Context.NONE);
+ deleteTheIncidentComment(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidentComments()
+ .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
}
}
```
-### IpGeodata_Get
+### IncidentComments_Get
```java
/**
- * Samples for IpGeodata Get.
+ * Samples for IncidentComments Get.
*/
-public final class IpGeodataGetSamples {
+public final class IncidentCommentsGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * enrichment/GetGeodataByIp.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * comments/GetIncidentCommentById.json
*/
/**
- * Sample code: Get geodata for a single IP address.
+ * Sample code: Get an incident comment.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- getGeodataForASingleIPAddress(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.ipGeodatas().getWithResponse("myRg", "1.2.3.4", com.azure.core.util.Context.NONE);
+ getAnIncidentComment(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidentComments()
+ .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
}
}
```
-### Metadata_Create
+### IncidentComments_List
```java
-import com.azure.resourcemanager.securityinsights.models.Kind;
-import com.azure.resourcemanager.securityinsights.models.MetadataAuthor;
-import com.azure.resourcemanager.securityinsights.models.MetadataCategories;
-import com.azure.resourcemanager.securityinsights.models.MetadataDependencies;
-import com.azure.resourcemanager.securityinsights.models.MetadataSource;
-import com.azure.resourcemanager.securityinsights.models.MetadataSupport;
-import com.azure.resourcemanager.securityinsights.models.Operator;
-import com.azure.resourcemanager.securityinsights.models.SourceKind;
-import com.azure.resourcemanager.securityinsights.models.SupportTier;
-import java.time.LocalDate;
-import java.util.Arrays;
-
/**
- * Samples for Metadata Create.
+ * Samples for IncidentComments List.
*/
-public final class MetadataCreateSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * metadata/PutMetadata.json
- */
- /**
- * Sample code: Create/update full metadata.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- createUpdateFullMetadata(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas()
- .define("metadataName")
- .withExistingWorkspace("myRg", "myWorkspace")
- .withContentId("c00ee137-7475-47c8-9cce-ec6f0f1bedd0")
- .withParentId(
- "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName")
- .withVersion("1.0.0.0")
- .withKind(Kind.ANALYTICS_RULE)
- .withSource(new MetadataSource().withKind(SourceKind.SOLUTION)
- .withName("Contoso Solution 1.0")
- .withSourceId("b688a130-76f4-4a07-bf57-762222a3cadf"))
- .withAuthor(new MetadataAuthor().withName("User Name").withEmail("email@microsoft.com"))
- .withSupport(new MetadataSupport().withTier(SupportTier.PARTNER)
- .withName("Microsoft")
- .withEmail("support@microsoft.com")
- .withLink("https://support.microsoft.com/"))
- .withDependencies(new MetadataDependencies().withOperator(Operator.AND)
- .withCriteria(Arrays.asList(
- new MetadataDependencies().withOperator(Operator.OR)
- .withCriteria(Arrays.asList(
- new MetadataDependencies().withContentId("045d06d0-ee72-4794-aba4-cf5646e4c756")
- .withKind(Kind.DATA_CONNECTOR)
- .withName("Microsoft Defender for Endpoint"),
- new MetadataDependencies().withContentId("dbfcb2cc-d782-40ef-8d94-fe7af58a6f2d")
- .withKind(Kind.DATA_CONNECTOR),
- new MetadataDependencies().withContentId("de4dca9b-eb37-47d6-a56f-b8b06b261593")
- .withKind(Kind.DATA_CONNECTOR)
- .withVersion("2.0"))),
- new MetadataDependencies().withContentId("31ee11cc-9989-4de8-b176-5e0ef5c4dbab")
- .withKind(Kind.PLAYBOOK)
- .withVersion("1.0"),
- new MetadataDependencies().withContentId("21ba424a-9438-4444-953a-7059539a7a1b")
- .withKind(Kind.PARSER))))
- .withCategories(
- new MetadataCategories().withDomains(Arrays.asList("Application", "Security – Insider Threat"))
- .withVerticals(Arrays.asList("Healthcare")))
- .withProviders(Arrays.asList("Amazon", "Microsoft"))
- .withFirstPublishDate(LocalDate.parse("2021-05-18"))
- .withLastPublishDate(LocalDate.parse("2021-05-18"))
- .withCustomVersion("1.0")
- .withContentSchemaVersion("2.0")
- .withThreatAnalysisTactics(Arrays.asList("reconnaissance", "commandandcontrol"))
- .withThreatAnalysisTechniques(Arrays.asList("T1548", "T1548.001"))
- .withPreviewImages(Arrays.asList("firstImage.png", "secondImage.jpeg"))
- .withPreviewImagesDark(Arrays.asList("firstImageDark.png", "secondImageDark.jpeg"))
- .create();
- }
-
+public final class IncidentCommentsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * metadata/PutMetadataMinimal.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * comments/GetAllIncidentComments.json
*/
/**
- * Sample code: Create/update minimal metadata.
+ * Sample code: Get all incident comments.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- createUpdateMinimalMetadata(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas()
- .define("metadataName")
- .withExistingWorkspace("myRg", "myWorkspace")
- .withContentId("c00ee137-7475-47c8-9cce-ec6f0f1bedd0")
- .withParentId(
- "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName")
- .withKind(Kind.ANALYTICS_RULE)
- .create();
+ getAllIncidentComments(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidentComments()
+ .list("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", null, null, null, null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### Metadata_Delete
+### IncidentRelations_CreateOrUpdate
```java
/**
- * Samples for Metadata Delete.
+ * Samples for IncidentRelations CreateOrUpdate.
*/
-public final class MetadataDeleteSamples {
+public final class IncidentRelationsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * metadata/DeleteMetadata.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * relations/CreateIncidentRelation.json
*/
/**
- * Sample code: Delete metadata.
+ * Sample code: Creates or updates an incident relation.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void deleteMetadata(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas().deleteWithResponse("myRg", "myWorkspace", "metadataName", com.azure.core.util.Context.NONE);
+ public static void
+ createsOrUpdatesAnIncidentRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidentRelations()
+ .define("4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014")
+ .withExistingIncident("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812")
+ .withRelatedResourceId(
+ "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096")
+ .create();
}
}
```
-### Metadata_Get
+### IncidentRelations_Delete
```java
/**
- * Samples for Metadata Get.
+ * Samples for IncidentRelations Delete.
*/
-public final class MetadataGetSamples {
+public final class IncidentRelationsDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * metadata/GetMetadata.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * relations/DeleteIncidentRelation.json
*/
/**
- * Sample code: Get single metadata by name.
+ * Sample code: Delete the incident relation.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- getSingleMetadataByName(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas().getWithResponse("myRg", "myWorkspace", "metadataName", com.azure.core.util.Context.NONE);
+ deleteTheIncidentRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidentRelations()
+ .deleteWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
}
}
```
-### Metadata_List
+### IncidentRelations_Get
```java
/**
- * Samples for Metadata List.
+ * Samples for IncidentRelations Get.
*/
-public final class MetadataListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * metadata/GetAllMetadata.json
- */
- /**
- * Sample code: Get all metadata.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getAllMetadata(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas().list("myRg", "myWorkspace", null, null, null, null, com.azure.core.util.Context.NONE);
- }
-
+public final class IncidentRelationsGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * metadata/GetAllMetadataOData.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * relations/GetIncidentRelationByName.json
*/
/**
- * Sample code: Get all metadata with OData filter/orderby/skip/top.
+ * Sample code: Get an incident relation.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAllMetadataWithODataFilterOrderbySkipTop(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas().list("myRg", "myWorkspace", null, null, null, null, com.azure.core.util.Context.NONE);
+ public static void
+ getAnIncidentRelation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidentRelations()
+ .getWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014", com.azure.core.util.Context.NONE);
}
}
```
-### Metadata_Update
+### IncidentRelations_List
```java
-import com.azure.resourcemanager.securityinsights.models.MetadataAuthor;
-import com.azure.resourcemanager.securityinsights.models.MetadataModel;
-
/**
- * Samples for Metadata Update.
+ * Samples for IncidentRelations List.
*/
-public final class MetadataUpdateSamples {
+public final class IncidentRelationsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * metadata/PatchMetadata.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * relations/GetAllIncidentRelations.json
*/
/**
- * Sample code: Update metadata.
+ * Sample code: Get all incident relations.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void updateMetadata(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- MetadataModel resource = manager.metadatas()
- .getWithResponse("myRg", "myWorkspace", "metadataName", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withAuthor(new MetadataAuthor().withName("User Name").withEmail("email@microsoft.com"))
- .apply();
+ public static void
+ getAllIncidentRelations(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidentRelations()
+ .list("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", null, null, null, null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### OfficeConsents_Delete
+### Incidents_CreateOrUpdate
```java
+import com.azure.resourcemanager.securityinsights.models.IncidentClassification;
+import com.azure.resourcemanager.securityinsights.models.IncidentClassificationReason;
+import com.azure.resourcemanager.securityinsights.models.IncidentOwnerInfo;
+import com.azure.resourcemanager.securityinsights.models.IncidentSeverity;
+import com.azure.resourcemanager.securityinsights.models.IncidentStatus;
+import java.time.OffsetDateTime;
+import java.util.UUID;
+
/**
- * Samples for OfficeConsents Delete.
+ * Samples for Incidents CreateOrUpdate.
*/
-public final class OfficeConsentsDeleteSamples {
+public final class IncidentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * officeConsents/DeleteOfficeConsents.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * CreateIncident.json
*/
/**
- * Sample code: Delete an office consent.
+ * Sample code: Creates or updates an incident.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- deleteAnOfficeConsent(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.officeConsents()
- .deleteWithResponse("myRg", "myWorkspace", "04e5fd05-ff86-4b97-b8d2-1c20933cb46c",
- com.azure.core.util.Context.NONE);
+ createsOrUpdatesAnIncident(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidents()
+ .define("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
+ .withExistingWorkspace("myRg", "myWorkspace")
+ .withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
+ .withClassification(IncidentClassification.FALSE_POSITIVE)
+ .withClassificationComment("Not a malicious activity")
+ .withClassificationReason(IncidentClassificationReason.INCORRECT_ALERT_LOGIC)
+ .withDescription("This is a demo incident")
+ .withFirstActivityTimeUtc(OffsetDateTime.parse("2019-01-01T13:00:30Z"))
+ .withLastActivityTimeUtc(OffsetDateTime.parse("2019-01-01T13:05:30Z"))
+ .withOwner(new IncidentOwnerInfo().withObjectId(UUID.fromString("2046feea-040d-4a46-9e2b-91c2941bfa70")))
+ .withSeverity(IncidentSeverity.HIGH)
+ .withStatus(IncidentStatus.CLOSED)
+ .withTitle("My incident")
+ .create();
}
}
```
-### OfficeConsents_Get
+### Incidents_Delete
```java
/**
- * Samples for OfficeConsents Get.
+ * Samples for Incidents Delete.
*/
-public final class OfficeConsentsGetSamples {
+public final class IncidentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * officeConsents/GetOfficeConsentsById.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * DeleteIncident.json
*/
/**
- * Sample code: Get an office consent.
+ * Sample code: Delete an incident.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAnOfficeConsent(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.officeConsents()
- .getWithResponse("myRg", "myWorkspace", "04e5fd05-ff86-4b97-b8d2-1c20933cb46c",
+ public static void deleteAnIncident(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidents()
+ .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
com.azure.core.util.Context.NONE);
}
}
```
-### OfficeConsents_List
+### Incidents_Get
```java
/**
- * Samples for OfficeConsents List.
+ * Samples for Incidents Get.
*/
-public final class OfficeConsentsListSamples {
+public final class IncidentsGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * officeConsents/GetOfficeConsents.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * GetIncidentById.json
*/
/**
- * Sample code: Get all office consents.
+ * Sample code: Get an incident.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void
- getAllOfficeConsents(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.officeConsents().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
+ public static void getAnIncident(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidents()
+ .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Operations_List
+### Incidents_List
```java
/**
- * Samples for Operations List.
+ * Samples for Incidents List.
*/
-public final class OperationsListSamples {
+public final class IncidentsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * operations/ListOperations.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * GetIncidents.json
*/
/**
- * Sample code: Get all operations.
+ * Sample code: Get all incidents.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAllOperations(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ public static void getAllIncidents(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidents()
+ .list("myRg", "myWorkspace", null, "properties/createdTimeUtc desc", 1, null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### ProductSettings_Delete
+### Incidents_ListAlerts
```java
/**
- * Samples for ProductSettings Delete.
+ * Samples for Incidents ListAlerts.
*/
-public final class ProductSettingsDeleteSamples {
+public final class IncidentsListAlertsSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * settings/DeleteEyesOnSetting.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * GetAllIncidentAlerts.json
*/
/**
- * Sample code: Delete EyesOn settings.
+ * Sample code: Get all incident alerts.
*
* @param manager Entry point to SecurityInsightsManager.
*/
public static void
- deleteEyesOnSettings(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.productSettings().deleteWithResponse("myRg", "myWorkspace", "EyesOn", com.azure.core.util.Context.NONE);
+ getAllIncidentAlerts(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidents()
+ .listAlertsWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ProductSettings_Get
+### Incidents_ListBookmarks
```java
/**
- * Samples for ProductSettings Get.
+ * Samples for Incidents ListBookmarks.
*/
-public final class ProductSettingsGetSamples {
+public final class IncidentsListBookmarksSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * settings/GetEyesOnSetting.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * GetAllIncidentBookmarks.json
*/
/**
- * Sample code: Get EyesOn settings.
+ * Sample code: Get all incident bookmarks.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getEyesOnSettings(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.productSettings().getWithResponse("myRg", "myWorkspace", "EyesOn", com.azure.core.util.Context.NONE);
+ public static void
+ getAllIncidentBookmarks(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidents()
+ .listBookmarksWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ProductSettings_List
+### Incidents_ListEntities
```java
/**
- * Samples for ProductSettings List.
+ * Samples for Incidents ListEntities.
*/
-public final class ProductSettingsListSamples {
+public final class IncidentsListEntitiesSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * settings/GetAllSettings.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/incidents/
+ * GetAllIncidentEntities.json
*/
/**
- * Sample code: Get all settings.
+ * Sample code: Gets all incident related entities.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAllSettings(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.productSettings().listWithResponse("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
+ public static void
+ getsAllIncidentRelatedEntities(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.incidents()
+ .listEntitiesWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ProductSettings_Update
+### Operations_List
```java
-import com.azure.resourcemanager.securityinsights.models.EyesOn;
-
/**
- * Samples for ProductSettings Update.
+ * Samples for Operations List.
*/
-public final class ProductSettingsUpdateSamples {
+public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * settings/UpdateEyesOnSetting.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/operations/
+ * ListOperations.json
*/
/**
- * Sample code: Update EyesOn settings.
+ * Sample code: Get all operations.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void
- updateEyesOnSettings(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.productSettings()
- .updateWithResponse("myRg", "myWorkspace", "EyesOn",
- new EyesOn().withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\""), com.azure.core.util.Context.NONE);
+ public static void getAllOperations(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -4348,7 +1452,7 @@ import java.util.UUID;
public final class SecurityMLAnalyticsSettingsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* securityMLAnalyticsSettings/CreateAnomalySecurityMLAnalyticsSetting.json
*/
/**
@@ -4394,7 +1498,7 @@ public final class SecurityMLAnalyticsSettingsCreateOrUpdateSamples {
public final class SecurityMLAnalyticsSettingsDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* securityMLAnalyticsSettings/DeleteSecurityMLAnalyticsSetting.json
*/
/**
@@ -4420,7 +1524,7 @@ public final class SecurityMLAnalyticsSettingsDeleteSamples {
public final class SecurityMLAnalyticsSettingsGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* securityMLAnalyticsSettings/GetAnomalySecurityMLAnalyticsSetting.json
*/
/**
@@ -4445,7 +1549,7 @@ public final class SecurityMLAnalyticsSettingsGetSamples {
public final class SecurityMLAnalyticsSettingsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* securityMLAnalyticsSettings/GetAllSecurityMLAnalyticsSettings.json
*/
/**
@@ -4469,7 +1573,7 @@ public final class SecurityMLAnalyticsSettingsListSamples {
public final class SentinelOnboardingStatesCreateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* onboardingStates/CreateSentinelOnboardingState.json
*/
/**
@@ -4497,7 +1601,7 @@ public final class SentinelOnboardingStatesCreateSamples {
public final class SentinelOnboardingStatesDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* onboardingStates/DeleteSentinelOnboardingState.json
*/
/**
@@ -4522,7 +1626,7 @@ public final class SentinelOnboardingStatesDeleteSamples {
public final class SentinelOnboardingStatesGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* onboardingStates/GetSentinelOnboardingState.json
*/
/**
@@ -4547,7 +1651,7 @@ public final class SentinelOnboardingStatesGetSamples {
public final class SentinelOnboardingStatesListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* onboardingStates/GetAllSentinelOnboardingStates.json
*/
/**
@@ -4562,152 +1666,6 @@ public final class SentinelOnboardingStatesListSamples {
}
```
-### SourceControl_ListRepositories
-
-```java
-import com.azure.resourcemanager.securityinsights.models.RepoType;
-
-/**
- * Samples for SourceControl ListRepositories.
- */
-public final class SourceControlListRepositoriesSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * repositories/GetRepositories.json
- */
- /**
- * Sample code: Get repository list.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getRepositoryList(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sourceControls()
- .listRepositories("myRg", "myWorkspace", RepoType.GITHUB, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SourceControlsOperation_Create
-
-```java
-import com.azure.resourcemanager.securityinsights.models.ContentPathMap;
-import com.azure.resourcemanager.securityinsights.models.ContentType;
-import com.azure.resourcemanager.securityinsights.models.RepoType;
-import com.azure.resourcemanager.securityinsights.models.Repository;
-import java.util.Arrays;
-
-/**
- * Samples for SourceControlsOperation Create.
- */
-public final class SourceControlsOperationCreateSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * sourcecontrols/CreateSourceControl.json
- */
- /**
- * Sample code: Creates a source control.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- createsASourceControl(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sourceControlsOperations()
- .define("789e0c1f-4a3d-43ad-809c-e713b677b04a")
- .withExistingWorkspace("myRg", "myWorkspace")
- .withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withDisplayName("My Source Control")
- .withDescription("This is a source control")
- .withRepoType(RepoType.GITHUB)
- .withContentTypes(Arrays.asList(ContentType.fromString("AnalyticRules"), ContentType.WORKBOOK))
- .withRepository(new Repository().withUrl("https://github.com/user/repo")
- .withBranch("master")
- .withDisplayUrl("https://github.com/user/repo")
- .withPathMapping(Arrays.asList(
- new ContentPathMap().withContentType(ContentType.fromString("AnalyticRules"))
- .withPath("path/to/rules"),
- new ContentPathMap().withContentType(ContentType.WORKBOOK).withPath("path/to/workbooks"))))
- .create();
- }
-}
-```
-
-### SourceControlsOperation_Delete
-
-```java
-/**
- * Samples for SourceControlsOperation Delete.
- */
-public final class SourceControlsOperationDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * sourcecontrols/DeleteSourceControl.json
- */
- /**
- * Sample code: Delete a source control.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- deleteASourceControl(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sourceControlsOperations()
- .deleteWithResponse("myRg", "myWorkspace", "789e0c1f-4a3d-43ad-809c-e713b677b04a",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SourceControlsOperation_Get
-
-```java
-/**
- * Samples for SourceControlsOperation Get.
- */
-public final class SourceControlsOperationGetSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * sourcecontrols/GetSourceControlById.json
- */
- /**
- * Sample code: Get a source control.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void getASourceControl(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sourceControlsOperations()
- .getWithResponse("myRg", "myWorkspace", "789e0c1f-4a3d-43ad-809c-e713b677b04a",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### SourceControlsOperation_List
-
-```java
-/**
- * Samples for SourceControlsOperation List.
- */
-public final class SourceControlsOperationListSamples {
- /*
- * x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * sourcecontrols/GetSourceControls.json
- */
- /**
- * Sample code: Get all source controls.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void
- getAllSourceControls(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sourceControlsOperations().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
- }
-}
-```
-
### ThreatIntelligenceIndicator_AppendTags
```java
@@ -4720,7 +1678,7 @@ import java.util.Arrays;
public final class ThreatIntelligenceIndicatorAppendTagsSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* threatintelligence/AppendTagsThreatIntelligence.json
*/
/**
@@ -4750,7 +1708,7 @@ import java.util.Arrays;
public final class ThreatIntelligenceIndicatorCreateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* threatintelligence/UpdateThreatIntelligence.json
*/
/**
@@ -4796,7 +1754,7 @@ import java.util.Arrays;
public final class ThreatIntelligenceIndicatorCreateIndicatorSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* threatintelligence/CreateThreatIntelligence.json
*/
/**
@@ -4822,7 +1780,7 @@ public final class ThreatIntelligenceIndicatorCreateIndicatorSamples {
.withRevoked(false)
.withConfidence(78)
.withThreatTypes(Arrays.asList("compromised"))
- .withValidFrom("2021-09-15T17:44:00.114052Z")
+ .withValidFrom("2020-04-15T17:44:00.114052Z")
.withValidUntil("")
.withModified(""),
com.azure.core.util.Context.NONE);
@@ -4839,7 +1797,7 @@ public final class ThreatIntelligenceIndicatorCreateIndicatorSamples {
public final class ThreatIntelligenceIndicatorDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* threatintelligence/DeleteThreatIntelligence.json
*/
/**
@@ -4865,7 +1823,7 @@ public final class ThreatIntelligenceIndicatorDeleteSamples {
public final class ThreatIntelligenceIndicatorGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* threatintelligence/GetThreatIntelligenceById.json
*/
/**
@@ -4887,7 +1845,7 @@ public final class ThreatIntelligenceIndicatorGetSamples {
```java
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceFilteringCriteria;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceSortingCriteria;
-import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceSortingCriteriaEnum;
+import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceSortingOrder;
import java.util.Arrays;
/**
@@ -4896,7 +1854,7 @@ import java.util.Arrays;
public final class ThreatIntelligenceIndicatorQueryIndicatorsSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* threatintelligence/QueryThreatIntelligence.json
*/
/**
@@ -4910,10 +1868,10 @@ public final class ThreatIntelligenceIndicatorQueryIndicatorsSamples {
.queryIndicators("myRg", "myWorkspace", new ThreatIntelligenceFilteringCriteria().withPageSize(100)
.withMinConfidence(25)
.withMaxConfidence(80)
- .withMinValidUntil("2021-04-05T17:44:00.114052Z")
- .withMaxValidUntil("2021-04-25T17:44:00.114052Z")
+ .withMinValidUntil("2020-04-05T17:44:00.114052Z")
+ .withMaxValidUntil("2020-04-25T17:44:00.114052Z")
.withSortBy(Arrays.asList(new ThreatIntelligenceSortingCriteria().withItemKey("fakeTokenPlaceholder")
- .withSortOrder(ThreatIntelligenceSortingCriteriaEnum.DESCENDING)))
+ .withSortOrder(ThreatIntelligenceSortingOrder.DESCENDING)))
.withSources(Arrays.asList("Azure Sentinel")), com.azure.core.util.Context.NONE);
}
}
@@ -4931,7 +1889,7 @@ import java.util.Arrays;
public final class ThreatIntelligenceIndicatorReplaceTagsSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* threatintelligence/ReplaceTagsThreatIntelligence.json
*/
/**
@@ -4959,7 +1917,7 @@ public final class ThreatIntelligenceIndicatorReplaceTagsSamples {
public final class ThreatIntelligenceIndicatorMetricsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* threatintelligence/CollectThreatIntelligenceMetrics.json
*/
/**
@@ -4984,7 +1942,7 @@ public final class ThreatIntelligenceIndicatorMetricsListSamples {
public final class ThreatIntelligenceIndicatorsOperationListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/
* threatintelligence/GetThreatIntelligence.json
*/
/**
@@ -5003,8 +1961,9 @@ public final class ThreatIntelligenceIndicatorsOperationListSamples {
### WatchlistItems_CreateOrUpdate
```java
-import java.util.HashMap;
-import java.util.Map;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import java.io.IOException;
/**
* Samples for WatchlistItems CreateOrUpdate.
@@ -5012,37 +1971,26 @@ import java.util.Map;
public final class WatchlistItemsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * watchlists/CreateWatchlistItem.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/watchlists/
+ * CreateWatchlistItem.json
*/
/**
- * Sample code: Creates or updates a watchlist item.
+ * Sample code: Create or update a watchlist item.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void
- createsOrUpdatesAWatchlistItem(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void createOrUpdateAWatchlistItem(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) throws IOException {
manager.watchlistItems()
.define("82ba292c-dc97-4dfc-969d-d4dd9e666842")
.withExistingWatchlist("myRg", "myWorkspace", "highValueAsset")
.withEtag("0300bf09-0000-0000-0000-5c37296e0000")
- .withItemsKeyValue(
- mapOf("Business tier", "10.0.2.0/24", "Data tier", "10.0.2.0/24", "Gateway subnet", "10.0.255.224/27",
- "Private DMZ in", "10.0.0.0/27", "Public DMZ out", "10.0.0.96/27", "Web Tier", "10.0.1.0/24"))
+ .withItemsKeyValue(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"Business tier\":\"10.0.2.0/24\",\"Data tier\":\"10.0.2.0/24\",\"Gateway subnet\":\"10.0.255.224/27\",\"Private DMZ in\":\"10.0.0.0/27\",\"Public DMZ out\":\"10.0.0.96/27\",\"Web Tier\":\"10.0.1.0/24\"}",
+ Object.class, SerializerEncoding.JSON))
.create();
}
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
}
```
@@ -5055,11 +2003,11 @@ public final class WatchlistItemsCreateOrUpdateSamples {
public final class WatchlistItemsDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * watchlists/DeleteWatchlistItem.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/watchlists/
+ * DeleteWatchlistItem.json
*/
/**
- * Sample code: Delete a watchlist Item.
+ * Sample code: Delete a watchlist item.
*
* @param manager Entry point to SecurityInsightsManager.
*/
@@ -5081,8 +2029,8 @@ public final class WatchlistItemsDeleteSamples {
public final class WatchlistItemsGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * watchlists/GetWatchlistItemById.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/watchlists/
+ * GetWatchlistItemById.json
*/
/**
* Sample code: Get a watchlist item.
@@ -5106,8 +2054,8 @@ public final class WatchlistItemsGetSamples {
public final class WatchlistItemsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * watchlists/GetWatchlistItems.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/watchlists/
+ * GetWatchlistItems.json
*/
/**
* Sample code: Get all watchlist Items.
@@ -5124,7 +2072,7 @@ public final class WatchlistItemsListSamples {
### Watchlists_CreateOrUpdate
```java
-import com.azure.resourcemanager.securityinsights.models.SourceType;
+import com.azure.resourcemanager.securityinsights.models.Source;
/**
* Samples for Watchlists CreateOrUpdate.
@@ -5132,54 +2080,52 @@ import com.azure.resourcemanager.securityinsights.models.SourceType;
public final class WatchlistsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * watchlists/CreateWatchlistAndWatchlistItems.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/watchlists/
+ * CreateWatchlist.json
*/
/**
- * Sample code: Creates or updates a watchlist and bulk creates watchlist items.
+ * Sample code: Create or update a watchlist.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void createsOrUpdatesAWatchlistAndBulkCreatesWatchlistItems(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void
+ createOrUpdateAWatchlist(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager.watchlists()
.define("highValueAsset")
.withExistingWorkspace("myRg", "myWorkspace")
.withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
.withDisplayName("High Value Assets Watchlist")
.withProvider("Microsoft")
- .withSource("watchlist.csv")
- .withSourceType(SourceType.LOCAL_FILE)
+ .withSource(Source.LOCAL_FILE)
.withDescription("Watchlist from CSV content")
- .withNumberOfLinesToSkip(1)
- .withRawContent("This line will be skipped\nheader1,header2\nvalue1,value2")
.withItemsSearchKey("header1")
- .withContentType("text/csv")
.create();
}
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * watchlists/CreateWatchlist.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/watchlists/
+ * CreateWatchlistAndWatchlistItems.json
*/
/**
- * Sample code: Creates or updates a watchlist.
+ * Sample code: Create or update a watchlist and bulk creates watchlist items.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void
- createsOrUpdatesAWatchlist(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void createOrUpdateAWatchlistAndBulkCreatesWatchlistItems(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager.watchlists()
.define("highValueAsset")
.withExistingWorkspace("myRg", "myWorkspace")
.withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
.withDisplayName("High Value Assets Watchlist")
.withProvider("Microsoft")
- .withSource("watchlist.csv")
- .withSourceType(SourceType.LOCAL_FILE)
+ .withSource(Source.LOCAL_FILE)
.withDescription("Watchlist from CSV content")
+ .withNumberOfLinesToSkip(1)
+ .withRawContent("This line will be skipped\nheader1,header2\nvalue1,value2")
.withItemsSearchKey("header1")
+ .withContentType("text/csv")
.create();
}
}
@@ -5194,8 +2140,8 @@ public final class WatchlistsCreateOrUpdateSamples {
public final class WatchlistsDeleteSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * watchlists/DeleteWatchlist.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/watchlists/
+ * DeleteWatchlist.json
*/
/**
* Sample code: Delete a watchlist.
@@ -5218,8 +2164,8 @@ public final class WatchlistsDeleteSamples {
public final class WatchlistsGetSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * watchlists/GetWatchlistByAlias.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/watchlists/
+ * GetWatchlistByAlias.json
*/
/**
* Sample code: Get a watchlist.
@@ -5241,8 +2187,8 @@ public final class WatchlistsGetSamples {
public final class WatchlistsListSamples {
/*
* x-ms-original-file:
- * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/
- * watchlists/GetWatchlists.json
+ * specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2022-11-01/examples/watchlists/
+ * GetWatchlists.json
*/
/**
* Sample code: Get all watchlists.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml b/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml
index 3e104bf36c27..793067cc85fd 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-securityinsights
- 1.0.0-beta.6
+ 1.0.0
jar
Microsoft Azure SDK for SecurityInsights Management
- This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-09.
+ This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-2022-11.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@
UTF-8
0
0
- true
+ false
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java
index a21575940613..de2bd8903d4c 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java
@@ -11,6 +11,7 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -19,7 +20,6 @@
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -28,32 +28,15 @@
import com.azure.resourcemanager.securityinsights.implementation.AlertRuleTemplatesImpl;
import com.azure.resourcemanager.securityinsights.implementation.AlertRulesImpl;
import com.azure.resourcemanager.securityinsights.implementation.AutomationRulesImpl;
-import com.azure.resourcemanager.securityinsights.implementation.BookmarkOperationsImpl;
-import com.azure.resourcemanager.securityinsights.implementation.BookmarkRelationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.BookmarksImpl;
-import com.azure.resourcemanager.securityinsights.implementation.DataConnectorsCheckRequirementsOperationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.DataConnectorsImpl;
-import com.azure.resourcemanager.securityinsights.implementation.DomainWhoisImpl;
-import com.azure.resourcemanager.securityinsights.implementation.EntitiesGetTimelinesImpl;
-import com.azure.resourcemanager.securityinsights.implementation.EntitiesImpl;
-import com.azure.resourcemanager.securityinsights.implementation.EntitiesRelationsImpl;
-import com.azure.resourcemanager.securityinsights.implementation.EntityQueriesImpl;
-import com.azure.resourcemanager.securityinsights.implementation.EntityQueryTemplatesImpl;
-import com.azure.resourcemanager.securityinsights.implementation.EntityRelationsImpl;
-import com.azure.resourcemanager.securityinsights.implementation.FileImportsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentCommentsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentRelationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentsImpl;
-import com.azure.resourcemanager.securityinsights.implementation.IpGeodatasImpl;
-import com.azure.resourcemanager.securityinsights.implementation.MetadatasImpl;
-import com.azure.resourcemanager.securityinsights.implementation.OfficeConsentsImpl;
import com.azure.resourcemanager.securityinsights.implementation.OperationsImpl;
-import com.azure.resourcemanager.securityinsights.implementation.ProductSettingsImpl;
import com.azure.resourcemanager.securityinsights.implementation.SecurityInsightsBuilder;
import com.azure.resourcemanager.securityinsights.implementation.SecurityMLAnalyticsSettingsImpl;
import com.azure.resourcemanager.securityinsights.implementation.SentinelOnboardingStatesImpl;
-import com.azure.resourcemanager.securityinsights.implementation.SourceControlsImpl;
-import com.azure.resourcemanager.securityinsights.implementation.SourceControlsOperationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorMetricsImpl;
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorsImpl;
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorsOperationsImpl;
@@ -63,31 +46,14 @@
import com.azure.resourcemanager.securityinsights.models.AlertRuleTemplates;
import com.azure.resourcemanager.securityinsights.models.AlertRules;
import com.azure.resourcemanager.securityinsights.models.AutomationRules;
-import com.azure.resourcemanager.securityinsights.models.BookmarkOperations;
-import com.azure.resourcemanager.securityinsights.models.BookmarkRelations;
import com.azure.resourcemanager.securityinsights.models.Bookmarks;
import com.azure.resourcemanager.securityinsights.models.DataConnectors;
-import com.azure.resourcemanager.securityinsights.models.DataConnectorsCheckRequirementsOperations;
-import com.azure.resourcemanager.securityinsights.models.DomainWhois;
-import com.azure.resourcemanager.securityinsights.models.Entities;
-import com.azure.resourcemanager.securityinsights.models.EntitiesGetTimelines;
-import com.azure.resourcemanager.securityinsights.models.EntitiesRelations;
-import com.azure.resourcemanager.securityinsights.models.EntityQueries;
-import com.azure.resourcemanager.securityinsights.models.EntityQueryTemplates;
-import com.azure.resourcemanager.securityinsights.models.EntityRelations;
-import com.azure.resourcemanager.securityinsights.models.FileImports;
import com.azure.resourcemanager.securityinsights.models.IncidentComments;
import com.azure.resourcemanager.securityinsights.models.IncidentRelations;
import com.azure.resourcemanager.securityinsights.models.Incidents;
-import com.azure.resourcemanager.securityinsights.models.IpGeodatas;
-import com.azure.resourcemanager.securityinsights.models.Metadatas;
-import com.azure.resourcemanager.securityinsights.models.OfficeConsents;
import com.azure.resourcemanager.securityinsights.models.Operations;
-import com.azure.resourcemanager.securityinsights.models.ProductSettings;
import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSettings;
import com.azure.resourcemanager.securityinsights.models.SentinelOnboardingStates;
-import com.azure.resourcemanager.securityinsights.models.SourceControls;
-import com.azure.resourcemanager.securityinsights.models.SourceControlsOperations;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorMetrics;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicators;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorsOperations;
@@ -113,50 +79,20 @@ public final class SecurityInsightsManager {
private AutomationRules automationRules;
- private Incidents incidents;
-
private Bookmarks bookmarks;
- private BookmarkRelations bookmarkRelations;
-
- private BookmarkOperations bookmarkOperations;
-
- private IpGeodatas ipGeodatas;
-
- private DomainWhois domainWhois;
-
- private Entities entities;
-
- private EntitiesGetTimelines entitiesGetTimelines;
-
- private EntitiesRelations entitiesRelations;
-
- private EntityRelations entityRelations;
-
- private EntityQueries entityQueries;
-
- private EntityQueryTemplates entityQueryTemplates;
+ private DataConnectors dataConnectors;
- private FileImports fileImports;
+ private Incidents incidents;
private IncidentComments incidentComments;
private IncidentRelations incidentRelations;
- private Metadatas metadatas;
-
- private OfficeConsents officeConsents;
-
private SentinelOnboardingStates sentinelOnboardingStates;
private SecurityMLAnalyticsSettings securityMLAnalyticsSettings;
- private ProductSettings productSettings;
-
- private SourceControls sourceControls;
-
- private SourceControlsOperations sourceControlsOperations;
-
private ThreatIntelligenceIndicators threatIntelligenceIndicators;
private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;
@@ -167,10 +103,6 @@ public final class SecurityInsightsManager {
private WatchlistItems watchlistItems;
- private DataConnectors dataConnectors;
-
- private DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirementsOperations;
-
private Operations operations;
private final SecurityInsights clientObject;
@@ -337,7 +269,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.securityinsights")
.append("/")
- .append("1.0.0-beta.5");
+ .append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -370,7 +302,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -431,18 +363,6 @@ public AutomationRules automationRules() {
return automationRules;
}
- /**
- * Gets the resource collection API of Incidents. It manages Incident.
- *
- * @return Resource collection API of Incidents.
- */
- public Incidents incidents() {
- if (this.incidents == null) {
- this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
- }
- return incidents;
- }
-
/**
* Gets the resource collection API of Bookmarks. It manages Bookmark.
*
@@ -456,135 +376,27 @@ public Bookmarks bookmarks() {
}
/**
- * Gets the resource collection API of BookmarkRelations. It manages Relation.
- *
- * @return Resource collection API of BookmarkRelations.
- */
- public BookmarkRelations bookmarkRelations() {
- if (this.bookmarkRelations == null) {
- this.bookmarkRelations = new BookmarkRelationsImpl(clientObject.getBookmarkRelations(), this);
- }
- return bookmarkRelations;
- }
-
- /**
- * Gets the resource collection API of BookmarkOperations.
- *
- * @return Resource collection API of BookmarkOperations.
- */
- public BookmarkOperations bookmarkOperations() {
- if (this.bookmarkOperations == null) {
- this.bookmarkOperations = new BookmarkOperationsImpl(clientObject.getBookmarkOperations(), this);
- }
- return bookmarkOperations;
- }
-
- /**
- * Gets the resource collection API of IpGeodatas.
- *
- * @return Resource collection API of IpGeodatas.
- */
- public IpGeodatas ipGeodatas() {
- if (this.ipGeodatas == null) {
- this.ipGeodatas = new IpGeodatasImpl(clientObject.getIpGeodatas(), this);
- }
- return ipGeodatas;
- }
-
- /**
- * Gets the resource collection API of DomainWhois.
- *
- * @return Resource collection API of DomainWhois.
- */
- public DomainWhois domainWhois() {
- if (this.domainWhois == null) {
- this.domainWhois = new DomainWhoisImpl(clientObject.getDomainWhois(), this);
- }
- return domainWhois;
- }
-
- /**
- * Gets the resource collection API of Entities.
- *
- * @return Resource collection API of Entities.
- */
- public Entities entities() {
- if (this.entities == null) {
- this.entities = new EntitiesImpl(clientObject.getEntities(), this);
- }
- return entities;
- }
-
- /**
- * Gets the resource collection API of EntitiesGetTimelines.
- *
- * @return Resource collection API of EntitiesGetTimelines.
- */
- public EntitiesGetTimelines entitiesGetTimelines() {
- if (this.entitiesGetTimelines == null) {
- this.entitiesGetTimelines = new EntitiesGetTimelinesImpl(clientObject.getEntitiesGetTimelines(), this);
- }
- return entitiesGetTimelines;
- }
-
- /**
- * Gets the resource collection API of EntitiesRelations.
- *
- * @return Resource collection API of EntitiesRelations.
- */
- public EntitiesRelations entitiesRelations() {
- if (this.entitiesRelations == null) {
- this.entitiesRelations = new EntitiesRelationsImpl(clientObject.getEntitiesRelations(), this);
- }
- return entitiesRelations;
- }
-
- /**
- * Gets the resource collection API of EntityRelations.
- *
- * @return Resource collection API of EntityRelations.
- */
- public EntityRelations entityRelations() {
- if (this.entityRelations == null) {
- this.entityRelations = new EntityRelationsImpl(clientObject.getEntityRelations(), this);
- }
- return entityRelations;
- }
-
- /**
- * Gets the resource collection API of EntityQueries.
- *
- * @return Resource collection API of EntityQueries.
- */
- public EntityQueries entityQueries() {
- if (this.entityQueries == null) {
- this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
- }
- return entityQueries;
- }
-
- /**
- * Gets the resource collection API of EntityQueryTemplates.
+ * Gets the resource collection API of DataConnectors.
*
- * @return Resource collection API of EntityQueryTemplates.
+ * @return Resource collection API of DataConnectors.
*/
- public EntityQueryTemplates entityQueryTemplates() {
- if (this.entityQueryTemplates == null) {
- this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
+ public DataConnectors dataConnectors() {
+ if (this.dataConnectors == null) {
+ this.dataConnectors = new DataConnectorsImpl(clientObject.getDataConnectors(), this);
}
- return entityQueryTemplates;
+ return dataConnectors;
}
/**
- * Gets the resource collection API of FileImports. It manages FileImport.
+ * Gets the resource collection API of Incidents. It manages Incident.
*
- * @return Resource collection API of FileImports.
+ * @return Resource collection API of Incidents.
*/
- public FileImports fileImports() {
- if (this.fileImports == null) {
- this.fileImports = new FileImportsImpl(clientObject.getFileImports(), this);
+ public Incidents incidents() {
+ if (this.incidents == null) {
+ this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
}
- return fileImports;
+ return incidents;
}
/**
@@ -600,7 +412,7 @@ public IncidentComments incidentComments() {
}
/**
- * Gets the resource collection API of IncidentRelations.
+ * Gets the resource collection API of IncidentRelations. It manages Relation.
*
* @return Resource collection API of IncidentRelations.
*/
@@ -611,30 +423,6 @@ public IncidentRelations incidentRelations() {
return incidentRelations;
}
- /**
- * Gets the resource collection API of Metadatas. It manages MetadataModel.
- *
- * @return Resource collection API of Metadatas.
- */
- public Metadatas metadatas() {
- if (this.metadatas == null) {
- this.metadatas = new MetadatasImpl(clientObject.getMetadatas(), this);
- }
- return metadatas;
- }
-
- /**
- * Gets the resource collection API of OfficeConsents.
- *
- * @return Resource collection API of OfficeConsents.
- */
- public OfficeConsents officeConsents() {
- if (this.officeConsents == null) {
- this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
- }
- return officeConsents;
- }
-
/**
* Gets the resource collection API of SentinelOnboardingStates. It manages SentinelOnboardingState.
*
@@ -661,43 +449,6 @@ public SecurityMLAnalyticsSettings securityMLAnalyticsSettings() {
return securityMLAnalyticsSettings;
}
- /**
- * Gets the resource collection API of ProductSettings.
- *
- * @return Resource collection API of ProductSettings.
- */
- public ProductSettings productSettings() {
- if (this.productSettings == null) {
- this.productSettings = new ProductSettingsImpl(clientObject.getProductSettings(), this);
- }
- return productSettings;
- }
-
- /**
- * Gets the resource collection API of SourceControls.
- *
- * @return Resource collection API of SourceControls.
- */
- public SourceControls sourceControls() {
- if (this.sourceControls == null) {
- this.sourceControls = new SourceControlsImpl(clientObject.getSourceControls(), this);
- }
- return sourceControls;
- }
-
- /**
- * Gets the resource collection API of SourceControlsOperations. It manages SourceControl.
- *
- * @return Resource collection API of SourceControlsOperations.
- */
- public SourceControlsOperations sourceControlsOperations() {
- if (this.sourceControlsOperations == null) {
- this.sourceControlsOperations
- = new SourceControlsOperationsImpl(clientObject.getSourceControlsOperations(), this);
- }
- return sourceControlsOperations;
- }
-
/**
* Gets the resource collection API of ThreatIntelligenceIndicators.
*
@@ -761,31 +512,6 @@ public WatchlistItems watchlistItems() {
return watchlistItems;
}
- /**
- * Gets the resource collection API of DataConnectors.
- *
- * @return Resource collection API of DataConnectors.
- */
- public DataConnectors dataConnectors() {
- if (this.dataConnectors == null) {
- this.dataConnectors = new DataConnectorsImpl(clientObject.getDataConnectors(), this);
- }
- return dataConnectors;
- }
-
- /**
- * Gets the resource collection API of DataConnectorsCheckRequirementsOperations.
- *
- * @return Resource collection API of DataConnectorsCheckRequirementsOperations.
- */
- public DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirementsOperations() {
- if (this.dataConnectorsCheckRequirementsOperations == null) {
- this.dataConnectorsCheckRequirementsOperations = new DataConnectorsCheckRequirementsOperationsImpl(
- clientObject.getDataConnectorsCheckRequirementsOperations(), this);
- }
- return dataConnectorsCheckRequirementsOperations;
- }
-
/**
* Gets the resource collection API of Operations.
*
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/BookmarkOperationsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/BookmarkOperationsClient.java
deleted file mode 100644
index 8b2d374f6bb2..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/BookmarkOperationsClient.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.BookmarkExpandResponseInner;
-import com.azure.resourcemanager.securityinsights.models.BookmarkExpandParameters;
-
-/**
- * An instance of this class provides access to all the operations defined in BookmarkOperationsClient.
- */
-public interface BookmarkOperationsClient {
- /**
- * Expand an bookmark.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @param parameters The parameters required to execute an expand operation on the given bookmark.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the entity expansion result operation response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response expandWithResponse(String resourceGroupName, String workspaceName,
- String bookmarkId, BookmarkExpandParameters parameters, Context context);
-
- /**
- * Expand an bookmark.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @param parameters The parameters required to execute an expand operation on the given bookmark.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the entity expansion result operation response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BookmarkExpandResponseInner expand(String resourceGroupName, String workspaceName, String bookmarkId,
- BookmarkExpandParameters parameters);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/BookmarkRelationsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/BookmarkRelationsClient.java
deleted file mode 100644
index 4557bde35a70..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/BookmarkRelationsClient.java
+++ /dev/null
@@ -1,151 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.RelationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in BookmarkRelationsClient.
- */
-public interface BookmarkRelationsClient {
- /**
- * Gets all bookmark relations.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all bookmark relations as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String bookmarkId);
-
- /**
- * Gets all bookmark relations.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @param filter Filters the results, based on a Boolean condition. Optional.
- * @param orderby Sorts the results. Optional.
- * @param top Returns only the first n results. Optional.
- * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
- * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies
- * a starting point to use for subsequent calls. Optional.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all bookmark relations as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String bookmarkId, String filter,
- String orderby, Integer top, String skipToken, Context context);
-
- /**
- * Gets a bookmark relation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @param relationName Relation Name.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a bookmark relation along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName, String bookmarkId,
- String relationName, Context context);
-
- /**
- * Gets a bookmark relation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @param relationName Relation Name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a bookmark relation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RelationInner get(String resourceGroupName, String workspaceName, String bookmarkId, String relationName);
-
- /**
- * Creates the bookmark relation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @param relationName Relation Name.
- * @param relation The relation model.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a relation between two resources along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
- String bookmarkId, String relationName, RelationInner relation, Context context);
-
- /**
- * Creates the bookmark relation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @param relationName Relation Name.
- * @param relation The relation model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a relation between two resources.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RelationInner createOrUpdate(String resourceGroupName, String workspaceName, String bookmarkId, String relationName,
- RelationInner relation);
-
- /**
- * Delete the bookmark relation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @param relationName Relation Name.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String workspaceName, String bookmarkId,
- String relationName, Context context);
-
- /**
- * Delete the bookmark relation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param bookmarkId Bookmark ID.
- * @param relationName Relation Name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String bookmarkId, String relationName);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DataConnectorsCheckRequirementsOperationsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DataConnectorsCheckRequirementsOperationsClient.java
deleted file mode 100644
index 14968c0845e2..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DataConnectorsCheckRequirementsOperationsClient.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.DataConnectorRequirementsStateInner;
-import com.azure.resourcemanager.securityinsights.models.DataConnectorsCheckRequirements;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * DataConnectorsCheckRequirementsOperationsClient.
- */
-public interface DataConnectorsCheckRequirementsOperationsClient {
- /**
- * Get requirements state for a data connector type.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataConnectorsCheckRequirements The parameters for requirements check message.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return requirements state for a data connector type along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response postWithResponse(String resourceGroupName, String workspaceName,
- DataConnectorsCheckRequirements dataConnectorsCheckRequirements, Context context);
-
- /**
- * Get requirements state for a data connector type.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataConnectorsCheckRequirements The parameters for requirements check message.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return requirements state for a data connector type.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DataConnectorRequirementsStateInner post(String resourceGroupName, String workspaceName,
- DataConnectorsCheckRequirements dataConnectorsCheckRequirements);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DataConnectorsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DataConnectorsClient.java
index 2f2bf170bc80..241dad74d594 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DataConnectorsClient.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DataConnectorsClient.java
@@ -10,7 +10,6 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.fluent.models.DataConnectorInner;
-import com.azure.resourcemanager.securityinsights.models.DataConnectorConnectBody;
/**
* An instance of this class provides access to all the operations defined in DataConnectorsClient.
@@ -134,65 +133,4 @@ Response deleteWithResponse(String resourceGroupName, String workspaceName
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String workspaceName, String dataConnectorId);
-
- /**
- * Connects a data connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataConnectorId Connector ID.
- * @param connectBody The data connector.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response connectWithResponse(String resourceGroupName, String workspaceName, String dataConnectorId,
- DataConnectorConnectBody connectBody, Context context);
-
- /**
- * Connects a data connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataConnectorId Connector ID.
- * @param connectBody The data connector.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void connect(String resourceGroupName, String workspaceName, String dataConnectorId,
- DataConnectorConnectBody connectBody);
-
- /**
- * Disconnect a data connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataConnectorId Connector ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response disconnectWithResponse(String resourceGroupName, String workspaceName, String dataConnectorId,
- Context context);
-
- /**
- * Disconnect a data connector.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataConnectorId Connector ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void disconnect(String resourceGroupName, String workspaceName, String dataConnectorId);
}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DomainWhoisClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DomainWhoisClient.java
deleted file mode 100644
index 6a0cc8de1b54..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/DomainWhoisClient.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.EnrichmentDomainWhoisInner;
-
-/**
- * An instance of this class provides access to all the operations defined in DomainWhoisClient.
- */
-public interface DomainWhoisClient {
- /**
- * Get whois information for a single domain name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param domain Domain name to be enriched.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return whois information for a single domain name along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String domain, Context context);
-
- /**
- * Get whois information for a single domain name.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param domain Domain name to be enriched.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return whois information for a single domain name.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnrichmentDomainWhoisInner get(String resourceGroupName, String domain);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntitiesClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntitiesClient.java
deleted file mode 100644
index 020f5ab8ef72..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntitiesClient.java
+++ /dev/null
@@ -1,179 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.EntityExpandResponseInner;
-import com.azure.resourcemanager.securityinsights.fluent.models.EntityGetInsightsResponseInner;
-import com.azure.resourcemanager.securityinsights.fluent.models.EntityInner;
-import com.azure.resourcemanager.securityinsights.fluent.models.GetQueriesResponseInner;
-import com.azure.resourcemanager.securityinsights.models.EntityExpandParameters;
-import com.azure.resourcemanager.securityinsights.models.EntityGetInsightsParameters;
-import com.azure.resourcemanager.securityinsights.models.EntityItemQueryKind;
-
-/**
- * An instance of this class provides access to all the operations defined in EntitiesClient.
- */
-public interface EntitiesClient {
- /**
- * Gets all entities.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all entities as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
-
- /**
- * Gets all entities.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all entities as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, Context context);
-
- /**
- * Gets an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an entity along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName, String entityId,
- Context context);
-
- /**
- * Gets an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an entity.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EntityInner get(String resourceGroupName, String workspaceName, String entityId);
-
- /**
- * Expands an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param parameters The parameters required to execute an expand operation on the given entity.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the entity expansion result operation response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response expandWithResponse(String resourceGroupName, String workspaceName,
- String entityId, EntityExpandParameters parameters, Context context);
-
- /**
- * Expands an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param parameters The parameters required to execute an expand operation on the given entity.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the entity expansion result operation response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EntityExpandResponseInner expand(String resourceGroupName, String workspaceName, String entityId,
- EntityExpandParameters parameters);
-
- /**
- * Get Insights and Activities for an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param kind The Kind parameter for queries.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return insights and Activities for an entity along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response queriesWithResponse(String resourceGroupName, String workspaceName,
- String entityId, EntityItemQueryKind kind, Context context);
-
- /**
- * Get Insights and Activities for an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param kind The Kind parameter for queries.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return insights and Activities for an entity.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GetQueriesResponseInner queries(String resourceGroupName, String workspaceName, String entityId,
- EntityItemQueryKind kind);
-
- /**
- * Execute Insights for an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param parameters The parameters required to execute insights on the given entity.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Get Insights result operation response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getInsightsWithResponse(String resourceGroupName, String workspaceName,
- String entityId, EntityGetInsightsParameters parameters, Context context);
-
- /**
- * Execute Insights for an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param parameters The parameters required to execute insights on the given entity.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Get Insights result operation response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EntityGetInsightsResponseInner getInsights(String resourceGroupName, String workspaceName, String entityId,
- EntityGetInsightsParameters parameters);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntitiesGetTimelinesClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntitiesGetTimelinesClient.java
deleted file mode 100644
index 3eca25a3f85e..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntitiesGetTimelinesClient.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.EntityTimelineResponseInner;
-import com.azure.resourcemanager.securityinsights.models.EntityTimelineParameters;
-
-/**
- * An instance of this class provides access to all the operations defined in EntitiesGetTimelinesClient.
- */
-public interface EntitiesGetTimelinesClient {
- /**
- * Timeline for an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param parameters The parameters required to execute an timeline operation on the given entity.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the entity timeline result operation response along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String resourceGroupName, String workspaceName,
- String entityId, EntityTimelineParameters parameters, Context context);
-
- /**
- * Timeline for an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param parameters The parameters required to execute an timeline operation on the given entity.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the entity timeline result operation response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EntityTimelineResponseInner list(String resourceGroupName, String workspaceName, String entityId,
- EntityTimelineParameters parameters);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntitiesRelationsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntitiesRelationsClient.java
deleted file mode 100644
index ae701c02c33a..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntitiesRelationsClient.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.RelationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in EntitiesRelationsClient.
- */
-public interface EntitiesRelationsClient {
- /**
- * Gets all relations of an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all relations of an entity as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String entityId);
-
- /**
- * Gets all relations of an entity.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param filter Filters the results, based on a Boolean condition. Optional.
- * @param orderby Sorts the results. Optional.
- * @param top Returns only the first n results. Optional.
- * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
- * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies
- * a starting point to use for subsequent calls. Optional.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all relations of an entity as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String entityId, String filter,
- String orderby, Integer top, String skipToken, Context context);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueriesClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueriesClient.java
deleted file mode 100644
index 094a4e7e75e1..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueriesClient.java
+++ /dev/null
@@ -1,140 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.EntityQueryInner;
-import com.azure.resourcemanager.securityinsights.models.CustomEntityQuery;
-import com.azure.resourcemanager.securityinsights.models.EntityQueriesKind;
-
-/**
- * An instance of this class provides access to all the operations defined in EntityQueriesClient.
- */
-public interface EntityQueriesClient {
- /**
- * Gets all entity queries.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all entity queries as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
-
- /**
- * Gets all entity queries.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param kind The entity query kind we want to fetch.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all entity queries as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, EntityQueriesKind kind,
- Context context);
-
- /**
- * Gets an entity query.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityQueryId entity query ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an entity query along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName, String entityQueryId,
- Context context);
-
- /**
- * Gets an entity query.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityQueryId entity query ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an entity query.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EntityQueryInner get(String resourceGroupName, String workspaceName, String entityQueryId);
-
- /**
- * Creates or updates the entity query.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityQueryId entity query ID.
- * @param entityQuery The entity query we want to create or update.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return specific entity query along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
- String entityQueryId, CustomEntityQuery entityQuery, Context context);
-
- /**
- * Creates or updates the entity query.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityQueryId entity query ID.
- * @param entityQuery The entity query we want to create or update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return specific entity query.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EntityQueryInner createOrUpdate(String resourceGroupName, String workspaceName, String entityQueryId,
- CustomEntityQuery entityQuery);
-
- /**
- * Delete the entity query.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityQueryId entity query ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String workspaceName, String entityQueryId,
- Context context);
-
- /**
- * Delete the entity query.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityQueryId entity query ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String entityQueryId);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueryTemplatesClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueryTemplatesClient.java
deleted file mode 100644
index 9ac5e8af31a8..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueryTemplatesClient.java
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.EntityQueryTemplateInner;
-import com.azure.resourcemanager.securityinsights.models.Constant88;
-
-/**
- * An instance of this class provides access to all the operations defined in EntityQueryTemplatesClient.
- */
-public interface EntityQueryTemplatesClient {
- /**
- * Gets all entity query templates.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all entity query templates as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
-
- /**
- * Gets all entity query templates.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param kind The entity template query kind we want to fetch.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all entity query templates as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, Constant88 kind,
- Context context);
-
- /**
- * Gets an entity query.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityQueryTemplateId entity query template ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an entity query along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName,
- String entityQueryTemplateId, Context context);
-
- /**
- * Gets an entity query.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityQueryTemplateId entity query template ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an entity query.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EntityQueryTemplateInner get(String resourceGroupName, String workspaceName, String entityQueryTemplateId);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityRelationsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityRelationsClient.java
deleted file mode 100644
index 146a29937afc..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityRelationsClient.java
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.fluent.models.RelationInner;
-
-/**
- * An instance of this class provides access to all the operations defined in EntityRelationsClient.
- */
-public interface EntityRelationsClient {
- /**
- * Gets an entity relation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param relationName Relation Name.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an entity relation along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getRelationWithResponse(String resourceGroupName, String workspaceName, String entityId,
- String relationName, Context context);
-
- /**
- * Gets an entity relation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param entityId entity ID.
- * @param relationName Relation Name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an entity relation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RelationInner getRelation(String resourceGroupName, String workspaceName, String entityId, String relationName);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/FileImportsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/FileImportsClient.java
deleted file mode 100644
index 37a2e8384545..000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/FileImportsClient.java
+++ /dev/null
@@ -1,176 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.securityinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner;
-
-/**
- * An instance of this class provides access to all the operations defined in FileImportsClient.
- */
-public interface FileImportsClient {
- /**
- * Gets all file imports.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all file imports as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
-
- /**
- * Gets all file imports.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param filter Filters the results, based on a Boolean condition. Optional.
- * @param orderby Sorts the results. Optional.
- * @param top Returns only the first n results. Optional.
- * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
- * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies
- * a starting point to use for subsequent calls. Optional.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all file imports as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, String filter, String orderby,
- Integer top, String skipToken, Context context);
-
- /**
- * Gets a file import.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param fileImportId File import ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a file import along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName, String fileImportId,
- Context context);
-
- /**
- * Gets a file import.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param fileImportId File import ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a file import.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- FileImportInner get(String resourceGroupName, String workspaceName, String fileImportId);
-
- /**
- * Creates the file import.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param fileImportId File import ID.
- * @param fileImport The file import.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a file import in Azure Security Insights along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceGroupName, String workspaceName, String fileImportId,
- FileImportInner fileImport, Context context);
-
- /**
- * Creates the file import.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param fileImportId File import ID.
- * @param fileImport The file import.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a file import in Azure Security Insights.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- FileImportInner create(String resourceGroupName, String workspaceName, String fileImportId,
- FileImportInner fileImport);
-
- /**
- * Delete the file import.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param fileImportId File import ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of represents a file import in Azure Security Insights.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FileImportInner> beginDelete(String resourceGroupName, String workspaceName,
- String fileImportId);
-
- /**
- * Delete the file import.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param fileImportId File import ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of represents a file import in Azure Security Insights.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FileImportInner> beginDelete(String resourceGroupName, String workspaceName,
- String fileImportId, Context context);
-
- /**
- * Delete the file import.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param fileImportId File import ID.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a file import in Azure Security Insights.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId);
-
- /**
- * Delete the file import.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param fileImportId File import ID.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a file import in Azure Security Insights.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId, Context context);
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentCommentsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentCommentsClient.java
index b007f5c6df9b..107b4c042966 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentCommentsClient.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentCommentsClient.java
@@ -16,7 +16,7 @@
*/
public interface IncidentCommentsClient {
/**
- * Gets all incident comments.
+ * Gets all comments for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -24,13 +24,13 @@ public interface IncidentCommentsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all incident comments as paginated response with {@link PagedIterable}.
+ * @return all comments for a given incident as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName, String incidentId);
/**
- * Gets all incident comments.
+ * Gets all comments for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -45,14 +45,14 @@ public interface IncidentCommentsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all incident comments as paginated response with {@link PagedIterable}.
+ * @return all comments for a given incident as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName, String incidentId,
String filter, String orderby, Integer top, String skipToken, Context context);
/**
- * Gets an incident comment.
+ * Gets a comment for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -62,14 +62,14 @@ PagedIterable list(String resourceGroupName, String worksp
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an incident comment along with {@link Response}.
+ * @return a comment for a given incident along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String workspaceName, String incidentId,
String incidentCommentId, Context context);
/**
- * Gets an incident comment.
+ * Gets a comment for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -78,14 +78,14 @@ Response getWithResponse(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an incident comment.
+ * @return a comment for a given incident.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
IncidentCommentInner get(String resourceGroupName, String workspaceName, String incidentId,
String incidentCommentId);
/**
- * Creates or updates the incident comment.
+ * Creates or updates a comment for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -103,7 +103,7 @@ Response createOrUpdateWithResponse(String resourceGroupNa
String incidentId, String incidentCommentId, IncidentCommentInner incidentComment, Context context);
/**
- * Creates or updates the incident comment.
+ * Creates or updates a comment for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -120,7 +120,7 @@ IncidentCommentInner createOrUpdate(String resourceGroupName, String workspaceNa
String incidentCommentId, IncidentCommentInner incidentComment);
/**
- * Delete the incident comment.
+ * Deletes a comment for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -137,7 +137,7 @@ Response deleteWithResponse(String resourceGroupName, String workspaceName
String incidentCommentId, Context context);
/**
- * Delete the incident comment.
+ * Deletes a comment for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentRelationsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentRelationsClient.java
index 261d6a8f0bad..a739b64b2d6e 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentRelationsClient.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentRelationsClient.java
@@ -16,7 +16,7 @@
*/
public interface IncidentRelationsClient {
/**
- * Gets all incident relations.
+ * Gets all relations for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -24,13 +24,13 @@ public interface IncidentRelationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all incident relations as paginated response with {@link PagedIterable}.
+ * @return all relations for a given incident as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName, String incidentId);
/**
- * Gets all incident relations.
+ * Gets all relations for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -45,14 +45,14 @@ public interface IncidentRelationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all incident relations as paginated response with {@link PagedIterable}.
+ * @return all relations for a given incident as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName, String incidentId, String filter,
String orderby, Integer top, String skipToken, Context context);
/**
- * Gets an incident relation.
+ * Gets a relation for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -62,14 +62,14 @@ PagedIterable list(String resourceGroupName, String workspaceName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an incident relation along with {@link Response}.
+ * @return a relation for a given incident along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String workspaceName, String incidentId,
String relationName, Context context);
/**
- * Gets an incident relation.
+ * Gets a relation for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -78,13 +78,13 @@ Response getWithResponse(String resourceGroupName, String workspa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an incident relation.
+ * @return a relation for a given incident.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RelationInner get(String resourceGroupName, String workspaceName, String incidentId, String relationName);
/**
- * Creates or updates the incident relation.
+ * Creates or updates a relation for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -102,7 +102,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
String incidentId, String relationName, RelationInner relation, Context context);
/**
- * Creates or updates the incident relation.
+ * Creates or updates a relation for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -119,7 +119,7 @@ RelationInner createOrUpdate(String resourceGroupName, String workspaceName, Str
RelationInner relation);
/**
- * Delete the incident relation.
+ * Deletes a relation for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -136,7 +136,7 @@ Response deleteWithResponse(String resourceGroupName, String workspaceName
String relationName, Context context);
/**
- * Delete the incident relation.
+ * Deletes a relation for a given incident.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentsClient.java
index a002261f89ed..169fe6e21f31 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentsClient.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/IncidentsClient.java
@@ -13,45 +13,11 @@
import com.azure.resourcemanager.securityinsights.fluent.models.IncidentBookmarkListInner;
import com.azure.resourcemanager.securityinsights.fluent.models.IncidentEntitiesResponseInner;
import com.azure.resourcemanager.securityinsights.fluent.models.IncidentInner;
-import com.azure.resourcemanager.securityinsights.fluent.models.TeamInformationInner;
-import com.azure.resourcemanager.securityinsights.models.ManualTriggerRequestBody;
-import com.azure.resourcemanager.securityinsights.models.TeamProperties;
/**
* An instance of this class provides access to all the operations defined in IncidentsClient.
*/
public interface IncidentsClient {
- /**
- * Triggers playbook on a specific incident.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param incidentIdentifier The incidentIdentifier parameter.
- * @param requestBody The requestBody parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return any object along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response