Watchlist Item Args
data class WatchlistItemArgs(val created: Output<String>? = null, val createdBy: Output<WatchlistUserInfoArgs>? = null, val entityMapping: Output<Any>? = null, val isDeleted: Output<Boolean>? = null, val itemsKeyValue: Output<Any>? = null, val operationalInsightsResourceProvider: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tenantId: Output<String>? = null, val updated: Output<String>? = null, val updatedBy: Output<WatchlistUserInfoArgs>? = null, val watchlistAlias: Output<String>? = null, val watchlistItemId: Output<String>? = null, val watchlistItemType: Output<String>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<WatchlistItemArgs>
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
Constructors
Link copied to clipboard
constructor(created: Output<String>? = null, createdBy: Output<WatchlistUserInfoArgs>? = null, entityMapping: Output<Any>? = null, isDeleted: Output<Boolean>? = null, itemsKeyValue: Output<Any>? = null, operationalInsightsResourceProvider: Output<String>? = null, resourceGroupName: Output<String>? = null, tenantId: Output<String>? = null, updated: Output<String>? = null, updatedBy: Output<WatchlistUserInfoArgs>? = null, watchlistAlias: Output<String>? = null, watchlistItemId: Output<String>? = null, watchlistItemType: Output<String>? = null, workspaceName: Output<String>? = null)
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
The namespace of workspaces resource provider- Microsoft.OperationalInsights.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Describes a user that updated the watchlist item
Link copied to clipboard
Watchlist Alias
Link copied to clipboard
The id (a Guid) of the watchlist item
Link copied to clipboard
The type of the watchlist item
Link copied to clipboard
The name of the workspace.