1. Packages
  2. Azure Native v1
  3. API Docs
  4. securityinsights
  5. Action
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.securityinsights.Action

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Action for alert rule. API Version: 2020-01-01.

    Example Usage

    Creates or updates an action of alert rule.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var action = new AzureNative.SecurityInsights.Action("action", new()
        {
            ActionId = "912bec42-cb66-4c03-ac63-1761b6898c3e",
            LogicAppResourceId = "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/MyAlerts",
            ResourceGroupName = "myRg",
            RuleId = "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
            TriggerUri = "https://prod-31.northcentralus.logic.azure.com:443/workflows/cd3765391efd48549fd7681ded1d48d7/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=signature",
            WorkspaceName = "myWorkspace",
        });
    
    });
    
    package main
    
    import (
    	securityinsights "github.com/pulumi/pulumi-azure-native-sdk/securityinsights"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securityinsights.NewAction(ctx, "action", &securityinsights.ActionArgs{
    			ActionId:           pulumi.String("912bec42-cb66-4c03-ac63-1761b6898c3e"),
    			LogicAppResourceId: pulumi.String("/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/MyAlerts"),
    			ResourceGroupName:  pulumi.String("myRg"),
    			RuleId:             pulumi.String("73e01a99-5cd7-4139-a149-9f2736ff2ab5"),
    			TriggerUri:         pulumi.String("https://prod-31.northcentralus.logic.azure.com:443/workflows/cd3765391efd48549fd7681ded1d48d7/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=signature"),
    			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.Action;
    import com.pulumi.azurenative.securityinsights.ActionArgs;
    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 action = new Action("action", ActionArgs.builder()        
                .actionId("912bec42-cb66-4c03-ac63-1761b6898c3e")
                .logicAppResourceId("/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/MyAlerts")
                .resourceGroupName("myRg")
                .ruleId("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
                .triggerUri("https://prod-31.northcentralus.logic.azure.com:443/workflows/cd3765391efd48549fd7681ded1d48d7/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=signature")
                .workspaceName("myWorkspace")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    action = azure_native.securityinsights.Action("action",
        action_id="912bec42-cb66-4c03-ac63-1761b6898c3e",
        logic_app_resource_id="/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/MyAlerts",
        resource_group_name="myRg",
        rule_id="73e01a99-5cd7-4139-a149-9f2736ff2ab5",
        trigger_uri="https://prod-31.northcentralus.logic.azure.com:443/workflows/cd3765391efd48549fd7681ded1d48d7/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=signature",
        workspace_name="myWorkspace")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const action = new azure_native.securityinsights.Action("action", {
        actionId: "912bec42-cb66-4c03-ac63-1761b6898c3e",
        logicAppResourceId: "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/MyAlerts",
        resourceGroupName: "myRg",
        ruleId: "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
        triggerUri: "https://prod-31.northcentralus.logic.azure.com:443/workflows/cd3765391efd48549fd7681ded1d48d7/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=signature",
        workspaceName: "myWorkspace",
    });
    
    resources:
      action:
        type: azure-native:securityinsights:Action
        properties:
          actionId: 912bec42-cb66-4c03-ac63-1761b6898c3e
          logicAppResourceId: /subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/MyAlerts
          resourceGroupName: myRg
          ruleId: 73e01a99-5cd7-4139-a149-9f2736ff2ab5
          triggerUri: https://prod-31.northcentralus.logic.azure.com:443/workflows/cd3765391efd48549fd7681ded1d48d7/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=signature
          workspaceName: myWorkspace
    

    Create Action Resource

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

    Constructor syntax

    new Action(name: string, args: ActionArgs, opts?: CustomResourceOptions);
    @overload
    def Action(resource_name: str,
               args: ActionArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Action(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               logic_app_resource_id: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               rule_id: Optional[str] = None,
               trigger_uri: Optional[str] = None,
               workspace_name: Optional[str] = None,
               action_id: Optional[str] = None)
    func NewAction(ctx *Context, name string, args ActionArgs, opts ...ResourceOption) (*Action, error)
    public Action(string name, ActionArgs args, CustomResourceOptions? opts = null)
    public Action(String name, ActionArgs args)
    public Action(String name, ActionArgs args, CustomResourceOptions options)
    
    type: azure-native:securityinsights:Action
    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 ActionArgs
    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 ActionArgs
    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 ActionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ActionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ActionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var actionResource = new AzureNative.Securityinsights.Action("actionResource", new()
    {
        LogicAppResourceId = "string",
        ResourceGroupName = "string",
        RuleId = "string",
        TriggerUri = "string",
        WorkspaceName = "string",
        ActionId = "string",
    });
    
    example, err := securityinsights.NewAction(ctx, "actionResource", &securityinsights.ActionArgs{
    	LogicAppResourceId: "string",
    	ResourceGroupName:  "string",
    	RuleId:             "string",
    	TriggerUri:         "string",
    	WorkspaceName:      "string",
    	ActionId:           "string",
    })
    
    var actionResource = new Action("actionResource", ActionArgs.builder()
        .logicAppResourceId("string")
        .resourceGroupName("string")
        .ruleId("string")
        .triggerUri("string")
        .workspaceName("string")
        .actionId("string")
        .build());
    
    action_resource = azure_native.securityinsights.Action("actionResource",
        logic_app_resource_id=string,
        resource_group_name=string,
        rule_id=string,
        trigger_uri=string,
        workspace_name=string,
        action_id=string)
    
    const actionResource = new azure_native.securityinsights.Action("actionResource", {
        logicAppResourceId: "string",
        resourceGroupName: "string",
        ruleId: "string",
        triggerUri: "string",
        workspaceName: "string",
        actionId: "string",
    });
    
    type: azure-native:securityinsights:Action
    properties:
        actionId: string
        logicAppResourceId: string
        resourceGroupName: string
        ruleId: string
        triggerUri: string
        workspaceName: string
    

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

    LogicAppResourceId string
    Logic App Resource Id, /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}.
    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    RuleId string
    Alert rule ID
    TriggerUri string
    Logic App Callback URL for this specific workflow.
    WorkspaceName string
    The name of the workspace.
    ActionId string
    Action ID
    LogicAppResourceId string
    Logic App Resource Id, /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}.
    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    RuleId string
    Alert rule ID
    TriggerUri string
    Logic App Callback URL for this specific workflow.
    WorkspaceName string
    The name of the workspace.
    ActionId string
    Action ID
    logicAppResourceId String
    Logic App Resource Id, /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}.
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    ruleId String
    Alert rule ID
    triggerUri String
    Logic App Callback URL for this specific workflow.
    workspaceName String
    The name of the workspace.
    actionId String
    Action ID
    logicAppResourceId string
    Logic App Resource Id, /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}.
    resourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    ruleId string
    Alert rule ID
    triggerUri string
    Logic App Callback URL for this specific workflow.
    workspaceName string
    The name of the workspace.
    actionId string
    Action ID
    logic_app_resource_id str
    Logic App Resource Id, /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}.
    resource_group_name str
    The name of the resource group within the user's subscription. The name is case insensitive.
    rule_id str
    Alert rule ID
    trigger_uri str
    Logic App Callback URL for this specific workflow.
    workspace_name str
    The name of the workspace.
    action_id str
    Action ID
    logicAppResourceId String
    Logic App Resource Id, /subscriptions/{my-subscription}/resourceGroups/{my-resource-group}/providers/Microsoft.Logic/workflows/{my-workflow-id}.
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    ruleId String
    Alert rule ID
    triggerUri String
    Logic App Callback URL for this specific workflow.
    workspaceName String
    The name of the workspace.
    actionId String
    Action ID

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Azure resource name
    Type string
    Azure resource type
    Etag string
    Etag of the action.
    WorkflowId string
    The name of the logic app's workflow.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Azure resource name
    Type string
    Azure resource type
    Etag string
    Etag of the action.
    WorkflowId string
    The name of the logic app's workflow.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Azure resource name
    type String
    Azure resource type
    etag String
    Etag of the action.
    workflowId String
    The name of the logic app's workflow.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Azure resource name
    type string
    Azure resource type
    etag string
    Etag of the action.
    workflowId string
    The name of the logic app's workflow.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Azure resource name
    type str
    Azure resource type
    etag str
    Etag of the action.
    workflow_id str
    The name of the logic app's workflow.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Azure resource name
    type String
    Azure resource type
    etag String
    Etag of the action.
    workflowId String
    The name of the logic app's workflow.

    Import

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

    $ pulumi import azure-native:securityinsights:Action 912bec42-cb66-4c03-ac63-1761b6898c3e /subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/73e01a99-5cd7-4139-a149-9f2736ff2ab5/actions/912bec42-cb66-4c03-ac63-1761b6898c3e 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi