Watchlist Item
Represents a Watchlist item in Azure Security Insights. API Version: 2021-03-01-preview.
Example Usage
Creates or updates a watchlist item.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var watchlistItem = new AzureNative.SecurityInsights.WatchlistItem("watchlistItem", new()
{
ItemsKeyValue =
{
{ "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" },
},
OperationalInsightsResourceProvider = "Microsoft.OperationalInsights",
ResourceGroupName = "myRg",
WatchlistAlias = "highValueAsset",
WatchlistItemId = "82ba292c-dc97-4dfc-969d-d4dd9e666842",
WorkspaceName = "myWorkspace",
});
});
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.securityinsights.WatchlistItem;
import com.pulumi.azurenative.securityinsights.WatchlistItemArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var watchlistItem = new WatchlistItem("watchlistItem", WatchlistItemArgs.builder()
.itemsKeyValue(Map.ofEntries(
Map.entry("Business tier", "10.0.2.0/24"),
Map.entry("Data tier", "10.0.2.0/24"),
Map.entry("Gateway subnet", "10.0.255.224/27"),
Map.entry("Private DMZ in", "10.0.0.0/27"),
Map.entry("Public DMZ out", "10.0.0.96/27"),
Map.entry("Web Tier", "10.0.1.0/24")
))
.operationalInsightsResourceProvider("Microsoft.OperationalInsights")
.resourceGroupName("myRg")
.watchlistAlias("highValueAsset")
.watchlistItemId("82ba292c-dc97-4dfc-969d-d4dd9e666842")
.workspaceName("myWorkspace")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:securityinsights:WatchlistItem myresource1 /subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/Watchlists/highValueAsset/WatchlistItems/82ba292c-dc97-4dfc-969d-d4dd9e666842
Content copied to clipboard
Properties
Link copied to clipboard
Describes a user that created the watchlist item
Link copied to clipboard
key-value pairs for a watchlist item entity mapping
Link copied to clipboard
key-value pairs for a watchlist item
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Link copied to clipboard
Describes a user that updated the watchlist item
Link copied to clipboard
The id (a Guid) of the watchlist item
Link copied to clipboard
The type of the watchlist item