EntityQuery

Deprecated:

Please use one of the variants: ActivityCustomEntityQuery.

Specific entity query. API Version: 2021-03-01-preview.

Example Usage

Creates or updates an Activity entity query.

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var entityQuery = new AzureNative.SecurityInsights.EntityQuery("entityQuery", new()
    {
        EntityQueryId = "07da3cc8-c8ad-4710-a44e-334cdcb7882b",
        Kind = "Activity",
        OperationalInsightsResourceProvider = "Microsoft.OperationalIinsights",
        ResourceGroupName = "myRg",
        WorkspaceName = "myWorkspace",
    });

});
package main

import (
	securityinsights "github.com/pulumi/pulumi-azure-native/sdk/go/azure/securityinsights"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securityinsights.NewEntityQuery(ctx, "entityQuery", &securityinsights.EntityQueryArgs{
			EntityQueryId:                       pulumi.String("07da3cc8-c8ad-4710-a44e-334cdcb7882b"),
			Kind:                                pulumi.String("Activity"),
			OperationalInsightsResourceProvider: pulumi.String("Microsoft.OperationalIinsights"),
			ResourceGroupName:                   pulumi.String("myRg"),
			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.EntityQuery;
import com.pulumi.azurenative.securityinsights.EntityQueryArgs;
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 entityQuery = new EntityQuery("entityQuery", EntityQueryArgs.builder()        
            .entityQueryId("07da3cc8-c8ad-4710-a44e-334cdcb7882b")
            .kind("Activity")
            .operationalInsightsResourceProvider("Microsoft.OperationalIinsights")
            .resourceGroupName("myRg")
            .workspaceName("myWorkspace")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

entity_query = azure_native.securityinsights.EntityQuery("entityQuery",
    entity_query_id="07da3cc8-c8ad-4710-a44e-334cdcb7882b",
    kind="Activity",
    operational_insights_resource_provider="Microsoft.OperationalIinsights",
    resource_group_name="myRg",
    workspace_name="myWorkspace")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const entityQuery = new azure_native.securityinsights.EntityQuery("entityQuery", {
    entityQueryId: "07da3cc8-c8ad-4710-a44e-334cdcb7882b",
    kind: "Activity",
    operationalInsightsResourceProvider: "Microsoft.OperationalIinsights",
    resourceGroupName: "myRg",
    workspaceName: "myWorkspace",
});
resources:
  entityQuery:
    type: azure-native:securityinsights:EntityQuery
    properties:
      entityQueryId: 07da3cc8-c8ad-4710-a44e-334cdcb7882b
      kind: Activity
      operationalInsightsResourceProvider: Microsoft.OperationalIinsights
      resourceGroupName: myRg
      workspaceName: myWorkspace

Create EntityQuery Resource

new EntityQuery(name: string, args: EntityQueryArgs, opts?: CustomResourceOptions);
@overload
def EntityQuery(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                entity_query_id: Optional[str] = None,
                kind: Optional[Union[str, CustomEntityQueryKind]] = None,
                operational_insights_resource_provider: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                workspace_name: Optional[str] = None)
@overload
def EntityQuery(resource_name: str,
                args: EntityQueryArgs,
                opts: Optional[ResourceOptions] = None)
func NewEntityQuery(ctx *Context, name string, args EntityQueryArgs, opts ...ResourceOption) (*EntityQuery, error)
public EntityQuery(string name, EntityQueryArgs args, CustomResourceOptions? opts = null)
public EntityQuery(String name, EntityQueryArgs args)
public EntityQuery(String name, EntityQueryArgs args, CustomResourceOptions options)
type: azure-native:securityinsights:EntityQuery
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EntityQueryArgs
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 EntityQueryArgs
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 EntityQueryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EntityQueryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EntityQueryArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

EntityQuery 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 EntityQuery resource accepts the following input properties:

Kind string | Pulumi.AzureNative.SecurityInsights.CustomEntityQueryKind

the entity query kind

OperationalInsightsResourceProvider string

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

ResourceGroupName string

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

WorkspaceName string

The name of the workspace.

EntityQueryId string

entity query ID

Kind string | CustomEntityQueryKind

the entity query kind

OperationalInsightsResourceProvider string

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

ResourceGroupName string

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

WorkspaceName string

The name of the workspace.

EntityQueryId string

entity query ID

kind String | CustomEntityQueryKind

the entity query kind

operationalInsightsResourceProvider String

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

resourceGroupName String

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

workspaceName String

The name of the workspace.

entityQueryId String

entity query ID

kind string | CustomEntityQueryKind

the entity query kind

operationalInsightsResourceProvider string

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

resourceGroupName string

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

workspaceName string

The name of the workspace.

entityQueryId string

entity query ID

kind str | CustomEntityQueryKind

the entity query kind

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.

workspace_name str

The name of the workspace.

entity_query_id str

entity query ID

kind String | "Activity"

the entity query kind

operationalInsightsResourceProvider String

The namespace of workspaces resource provider- Microsoft.OperationalInsights.

resourceGroupName String

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

workspaceName String

The name of the workspace.

entityQueryId String

entity query ID

Outputs

All input properties are implicitly available as output properties. Additionally, the EntityQuery 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

CustomEntityQueryKind

Activity
Activity
CustomEntityQueryKindActivity
Activity
Activity
Activity
Activity
Activity
ACTIVITY
Activity
"Activity"
Activity

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.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:securityinsights:EntityQuery 07da3cc8-c8ad-4710-a44e-334cdcb7882b /subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entityQueries/07da3cc8-c8ad-4710-a44e-334cdcb7882b 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0