WatchlistItem

class WatchlistItem : KotlinCustomResource

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",
});
});
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());
}
}

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

Properties

Link copied to clipboard
val created: Output<String>?

The time the watchlist item was created

Link copied to clipboard

Describes a user that created the watchlist item

Link copied to clipboard
val entityMapping: Output<Any>?

key-value pairs for a watchlist item entity mapping

Link copied to clipboard
val etag: Output<String>?

Etag of the azure resource

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isDeleted: Output<Boolean>?

A flag that indicates if the watchlist item is deleted or not

Link copied to clipboard
val itemsKeyValue: Output<Any>

key-value pairs for a watchlist item

Link copied to clipboard
val name: Output<String>

Azure resource name

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
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
val tenantId: Output<String>?

The tenantId to which the watchlist item belongs to

Link copied to clipboard
val type: Output<String>

Azure resource type

Link copied to clipboard
val updated: Output<String>?

The last time the watchlist item was updated

Link copied to clipboard

Describes a user that updated the watchlist item

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val watchlistItemId: Output<String>?

The id (a Guid) of the watchlist item

Link copied to clipboard

The type of the watchlist item