1. Packages
  2. Azure Native
  3. API Docs
  4. securityinsights
  5. WatchlistItem
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.securityinsights.WatchlistItem

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

    Represents a Watchlist Item in Azure Security Insights. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2021-03-01-preview.

    Other available API versions: 2021-04-01, 2023-06-01-preview, 2023-07-01-preview, 2023-08-01-preview, 2023-09-01-preview, 2023-10-01-preview, 2023-11-01, 2023-12-01-preview, 2024-01-01-preview, 2024-03-01.

    Example Usage

    Create or update 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 = new Dictionary<string, object?>
            {
                ["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",
            },
            ResourceGroupName = "myRg",
            WatchlistAlias = "highValueAsset",
            WatchlistItemId = "82ba292c-dc97-4dfc-969d-d4dd9e666842",
            WorkspaceName = "myWorkspace",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securityinsights.NewWatchlistItem(ctx, "watchlistItem", &securityinsights.WatchlistItemArgs{
    			ItemsKeyValue: pulumi.Any(map[string]interface{}{
    				"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",
    			}),
    			ResourceGroupName: pulumi.String("myRg"),
    			WatchlistAlias:    pulumi.String("highValueAsset"),
    			WatchlistItemId:   pulumi.String("82ba292c-dc97-4dfc-969d-d4dd9e666842"),
    			WorkspaceName:     pulumi.String("myWorkspace"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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")
                ))
                .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",
        },
        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",
        },
        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
          resourceGroupName: myRg
          watchlistAlias: highValueAsset
          watchlistItemId: 82ba292c-dc97-4dfc-969d-d4dd9e666842
          workspaceName: myWorkspace
    

    Create WatchlistItem Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WatchlistItem(name: string, args: WatchlistItemArgs, opts?: CustomResourceOptions);
    @overload
    def WatchlistItem(resource_name: str,
                      args: WatchlistItemArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def WatchlistItem(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      items_key_value: Optional[Any] = None,
                      workspace_name: Optional[str] = None,
                      watchlist_alias: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      is_deleted: Optional[bool] = None,
                      created: Optional[str] = None,
                      tenant_id: Optional[str] = None,
                      updated: Optional[str] = None,
                      updated_by: Optional[WatchlistUserInfoArgs] = None,
                      entity_mapping: Optional[Any] = None,
                      watchlist_item_id: Optional[str] = None,
                      watchlist_item_type: Optional[str] = None,
                      created_by: Optional[WatchlistUserInfoArgs] = 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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var watchlistItemResource = new AzureNative.SecurityInsights.WatchlistItem("watchlistItemResource", new()
    {
        ItemsKeyValue = "any",
        WorkspaceName = "string",
        WatchlistAlias = "string",
        ResourceGroupName = "string",
        IsDeleted = false,
        Created = "string",
        TenantId = "string",
        Updated = "string",
        UpdatedBy = new AzureNative.SecurityInsights.Inputs.WatchlistUserInfoArgs
        {
            ObjectId = "string",
        },
        EntityMapping = "any",
        WatchlistItemId = "string",
        WatchlistItemType = "string",
        CreatedBy = new AzureNative.SecurityInsights.Inputs.WatchlistUserInfoArgs
        {
            ObjectId = "string",
        },
    });
    
    example, err := securityinsights.NewWatchlistItem(ctx, "watchlistItemResource", &securityinsights.WatchlistItemArgs{
    ItemsKeyValue: pulumi.Any("any"),
    WorkspaceName: pulumi.String("string"),
    WatchlistAlias: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    IsDeleted: pulumi.Bool(false),
    Created: pulumi.String("string"),
    TenantId: pulumi.String("string"),
    Updated: pulumi.String("string"),
    UpdatedBy: &securityinsights.WatchlistUserInfoArgs{
    ObjectId: pulumi.String("string"),
    },
    EntityMapping: pulumi.Any("any"),
    WatchlistItemId: pulumi.String("string"),
    WatchlistItemType: pulumi.String("string"),
    CreatedBy: &securityinsights.WatchlistUserInfoArgs{
    ObjectId: pulumi.String("string"),
    },
    })
    
    var watchlistItemResource = new WatchlistItem("watchlistItemResource", WatchlistItemArgs.builder()        
        .itemsKeyValue("any")
        .workspaceName("string")
        .watchlistAlias("string")
        .resourceGroupName("string")
        .isDeleted(false)
        .created("string")
        .tenantId("string")
        .updated("string")
        .updatedBy(WatchlistUserInfoArgs.builder()
            .objectId("string")
            .build())
        .entityMapping("any")
        .watchlistItemId("string")
        .watchlistItemType("string")
        .createdBy(WatchlistUserInfoArgs.builder()
            .objectId("string")
            .build())
        .build());
    
    watchlist_item_resource = azure_native.securityinsights.WatchlistItem("watchlistItemResource",
        items_key_value="any",
        workspace_name="string",
        watchlist_alias="string",
        resource_group_name="string",
        is_deleted=False,
        created="string",
        tenant_id="string",
        updated="string",
        updated_by=azure_native.securityinsights.WatchlistUserInfoArgs(
            object_id="string",
        ),
        entity_mapping="any",
        watchlist_item_id="string",
        watchlist_item_type="string",
        created_by=azure_native.securityinsights.WatchlistUserInfoArgs(
            object_id="string",
        ))
    
    const watchlistItemResource = new azure_native.securityinsights.WatchlistItem("watchlistItemResource", {
        itemsKeyValue: "any",
        workspaceName: "string",
        watchlistAlias: "string",
        resourceGroupName: "string",
        isDeleted: false,
        created: "string",
        tenantId: "string",
        updated: "string",
        updatedBy: {
            objectId: "string",
        },
        entityMapping: "any",
        watchlistItemId: "string",
        watchlistItemType: "string",
        createdBy: {
            objectId: "string",
        },
    });
    
    type: azure-native:securityinsights:WatchlistItem
    properties:
        created: string
        createdBy:
            objectId: string
        entityMapping: any
        isDeleted: false
        itemsKeyValue: any
        resourceGroupName: string
        tenantId: string
        updated: string
        updatedBy:
            objectId: string
        watchlistAlias: string
        watchlistItemId: string
        watchlistItemType: string
        workspaceName: string
    

    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
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    WatchlistAlias string
    The watchlist alias
    WorkspaceName string
    The name of the workspace.
    Created string
    The time the watchlist item was created
    CreatedBy Pulumi.AzureNative.SecurityInsights.Inputs.WatchlistUserInfo
    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.WatchlistUserInfo
    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
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    WatchlistAlias string
    The 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
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    watchlistAlias String
    The watchlist alias
    workspaceName String
    The name of the workspace.
    created String
    The time the watchlist item was created
    createdBy WatchlistUserInfo
    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 WatchlistUserInfo
    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
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    watchlistAlias string
    The watchlist alias
    workspaceName string
    The name of the workspace.
    created string
    The time the watchlist item was created
    createdBy WatchlistUserInfo
    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 WatchlistUserInfo
    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
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    watchlist_alias str
    The 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
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    watchlistAlias String
    The 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
    The name of the resource
    SystemData Pulumi.AzureNative.SecurityInsights.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Etag string
    Etag of the azure resource
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Etag string
    Etag of the azure resource
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    etag String
    Etag of the azure resource
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    etag string
    Etag of the azure resource
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    etag str
    Etag of the azure resource
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    etag String
    Etag of the azure resource

    Supporting Types

    SystemDataResponse, SystemDataResponseArgs

    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, WatchlistUserInfoArgs

    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, WatchlistUserInfoResponseArgs

    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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}/watchlistItems/{watchlistItemId} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi