azure-native.securityinsights.WatchlistItem

Explore with Pulumi AI

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

});

Coming soon!

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 pulumi
import pulumi_azure_native as azure_native

watchlist_item = azure_native.securityinsights.WatchlistItem("watchlistItem",
    items_key_value={
        "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",
    },
    operational_insights_resource_provider="Microsoft.OperationalInsights",
    resource_group_name="myRg",
    watchlist_alias="highValueAsset",
    watchlist_item_id="82ba292c-dc97-4dfc-969d-d4dd9e666842",
    workspace_name="myWorkspace")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const watchlistItem = new azure_native.securityinsights.WatchlistItem("watchlistItem", {
    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",
});
resources:
  watchlistItem:
    type: azure-native:securityinsights:WatchlistItem
    properties:
      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

Create WatchlistItem Resource

new WatchlistItem(name: string, args: WatchlistItemArgs, opts?: CustomResourceOptions);
@overload
def WatchlistItem(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  created: Optional[str] = None,
                  created_by: Optional[WatchlistUserInfoArgs] = None,
                  entity_mapping: Optional[Any] = None,
                  is_deleted: Optional[bool] = None,
                  items_key_value: Optional[Any] = None,
                  operational_insights_resource_provider: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  tenant_id: Optional[str] = None,
                  updated: Optional[str] = None,
                  updated_by: Optional[WatchlistUserInfoArgs] = None,
                  watchlist_alias: Optional[str] = None,
                  watchlist_item_id: Optional[str] = None,
                  watchlist_item_type: Optional[str] = None,
                  workspace_name: Optional[str] = None)
@overload
def WatchlistItem(resource_name: str,
                  args: WatchlistItemArgs,
                  opts: Optional[ResourceOptions] = None)
func NewWatchlistItem(ctx *Context, name string, args WatchlistItemArgs, opts ...ResourceOption) (*WatchlistItem, error)
public WatchlistItem(string name, WatchlistItemArgs args, CustomResourceOptions? opts = null)
public WatchlistItem(String name, WatchlistItemArgs args)
public WatchlistItem(String name, WatchlistItemArgs args, CustomResourceOptions options)
type: azure-native:securityinsights:WatchlistItem
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args WatchlistItemArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args WatchlistItemArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args WatchlistItemArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args WatchlistItemArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args WatchlistItemArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

WatchlistItem Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The WatchlistItem resource accepts the following input properties:

ItemsKeyValue object

key-value pairs for a watchlist item

OperationalInsightsResourceProvider string

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

WatchlistAlias string

Watchlist Alias

WorkspaceName string

The name of the workspace.

Created string

The time the watchlist item was created

CreatedBy Pulumi.AzureNative.SecurityInsights.Inputs.WatchlistUserInfoArgs

Describes a user that created the watchlist item

EntityMapping object

key-value pairs for a watchlist item entity mapping

IsDeleted bool

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

TenantId string

The tenantId to which the watchlist item belongs to

Updated string

The last time the watchlist item was updated

UpdatedBy Pulumi.AzureNative.SecurityInsights.Inputs.WatchlistUserInfoArgs

Describes a user that updated the watchlist item

WatchlistItemId string

The id (a Guid) of the watchlist item

WatchlistItemType string

The type of the watchlist item

ItemsKeyValue interface{}

key-value pairs for a watchlist item

OperationalInsightsResourceProvider string

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

WatchlistAlias string

Watchlist Alias

WorkspaceName string

The name of the workspace.

Created string

The time the watchlist item was created

CreatedBy WatchlistUserInfoArgs

Describes a user that created the watchlist item

EntityMapping interface{}

key-value pairs for a watchlist item entity mapping

IsDeleted bool

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

TenantId string

The tenantId to which the watchlist item belongs to

Updated string

The last time the watchlist item was updated

UpdatedBy WatchlistUserInfoArgs

Describes a user that updated the watchlist item

WatchlistItemId string

The id (a Guid) of the watchlist item

WatchlistItemType string

The type of the watchlist item

itemsKeyValue Object

key-value pairs for a watchlist item

operationalInsightsResourceProvider String

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

resourceGroupName String

The name of the resource group. The name is case insensitive.

watchlistAlias String

Watchlist Alias

workspaceName String

The name of the workspace.

created String

The time the watchlist item was created

createdBy WatchlistUserInfoArgs

Describes a user that created the watchlist item

entityMapping Object

key-value pairs for a watchlist item entity mapping

isDeleted Boolean

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

tenantId String

The tenantId to which the watchlist item belongs to

updated String

The last time the watchlist item was updated

updatedBy WatchlistUserInfoArgs

Describes a user that updated the watchlist item

watchlistItemId String

The id (a Guid) of the watchlist item

watchlistItemType String

The type of the watchlist item

itemsKeyValue any

key-value pairs for a watchlist item

operationalInsightsResourceProvider string

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

resourceGroupName string

The name of the resource group. The name is case insensitive.

watchlistAlias string

Watchlist Alias

workspaceName string

The name of the workspace.

created string

The time the watchlist item was created

createdBy WatchlistUserInfoArgs

Describes a user that created the watchlist item

entityMapping any

key-value pairs for a watchlist item entity mapping

isDeleted boolean

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

tenantId string

The tenantId to which the watchlist item belongs to

updated string

The last time the watchlist item was updated

updatedBy WatchlistUserInfoArgs

Describes a user that updated the watchlist item

watchlistItemId string

The id (a Guid) of the watchlist item

watchlistItemType string

The type of the watchlist item

items_key_value Any

key-value pairs for a watchlist item

operational_insights_resource_provider str

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

resource_group_name str

The name of the resource group. The name is case insensitive.

watchlist_alias str

Watchlist Alias

workspace_name str

The name of the workspace.

created str

The time the watchlist item was created

created_by WatchlistUserInfoArgs

Describes a user that created the watchlist item

entity_mapping Any

key-value pairs for a watchlist item entity mapping

is_deleted bool

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

tenant_id str

The tenantId to which the watchlist item belongs to

updated str

The last time the watchlist item was updated

updated_by WatchlistUserInfoArgs

Describes a user that updated the watchlist item

watchlist_item_id str

The id (a Guid) of the watchlist item

watchlist_item_type str

The type of the watchlist item

itemsKeyValue Any

key-value pairs for a watchlist item

operationalInsightsResourceProvider String

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

resourceGroupName String

The name of the resource group. The name is case insensitive.

watchlistAlias String

Watchlist Alias

workspaceName String

The name of the workspace.

created String

The time the watchlist item was created

createdBy Property Map

Describes a user that created the watchlist item

entityMapping Any

key-value pairs for a watchlist item entity mapping

isDeleted Boolean

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

tenantId String

The tenantId to which the watchlist item belongs to

updated String

The last time the watchlist item was updated

updatedBy Property Map

Describes a user that updated the watchlist item

watchlistItemId String

The id (a Guid) of the watchlist item

watchlistItemType String

The type of the watchlist item

Outputs

All input properties are implicitly available as output properties. Additionally, the WatchlistItem resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Azure resource name

SystemData Pulumi.AzureNative.SecurityInsights.Outputs.SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

Azure resource type

Etag string

Etag of the azure resource

Id string

The provider-assigned unique ID for this managed resource.

Name string

Azure resource name

SystemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

Azure resource type

Etag string

Etag of the azure resource

id String

The provider-assigned unique ID for this managed resource.

name String

Azure resource name

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

Azure resource type

etag String

Etag of the azure resource

id string

The provider-assigned unique ID for this managed resource.

name string

Azure resource name

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type string

Azure resource type

etag string

Etag of the azure resource

id str

The provider-assigned unique ID for this managed resource.

name str

Azure resource name

system_data SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type str

Azure resource type

etag str

Etag of the azure resource

id String

The provider-assigned unique ID for this managed resource.

name String

Azure resource name

systemData Property Map

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

Azure resource type

etag String

Etag of the azure resource

Supporting Types

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

WatchlistUserInfo

ObjectId string

The object id of the user.

ObjectId string

The object id of the user.

objectId String

The object id of the user.

objectId string

The object id of the user.

object_id str

The object id of the user.

objectId String

The object id of the user.

WatchlistUserInfoResponse

Email string

The email of the user.

Name string

The name of the user.

ObjectId string

The object id of the user.

Email string

The email of the user.

Name string

The name of the user.

ObjectId string

The object id of the user.

email String

The email of the user.

name String

The name of the user.

objectId String

The object id of the user.

email string

The email of the user.

name string

The name of the user.

objectId string

The object id of the user.

email str

The email of the user.

name str

The name of the user.

object_id str

The object id of the user.

email String

The email of the user.

name String

The name of the user.

objectId String

The object id of the user.

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 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0