1. Packages
  2. Sysdig Provider
  3. API Docs
  4. SecureRuleProcess
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

sysdig.SecureRuleProcess

Explore with Pulumi AI

sysdig logo
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const sample = new sysdig.SecureRuleProcess("sample", {
        description: "Detect network tools launched inside container",
        matching: true,
        processes: [
            "nc",
            "ncat",
            "nmap",
            "dig",
            "tcpdump",
            "tshark",
            "ngrep",
        ],
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    sample = sysdig.SecureRuleProcess("sample",
        description="Detect network tools launched inside container",
        matching=True,
        processes=[
            "nc",
            "ncat",
            "nmap",
            "dig",
            "tcpdump",
            "tshark",
            "ngrep",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sysdig.NewSecureRuleProcess(ctx, "sample", &sysdig.SecureRuleProcessArgs{
    			Description: pulumi.String("Detect network tools launched inside container"),
    			Matching:    pulumi.Bool(true),
    			Processes: pulumi.StringArray{
    				pulumi.String("nc"),
    				pulumi.String("ncat"),
    				pulumi.String("nmap"),
    				pulumi.String("dig"),
    				pulumi.String("tcpdump"),
    				pulumi.String("tshark"),
    				pulumi.String("ngrep"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sysdig = Pulumi.Sysdig;
    
    return await Deployment.RunAsync(() => 
    {
        var sample = new Sysdig.SecureRuleProcess("sample", new()
        {
            Description = "Detect network tools launched inside container",
            Matching = true,
            Processes = new[]
            {
                "nc",
                "ncat",
                "nmap",
                "dig",
                "tcpdump",
                "tshark",
                "ngrep",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SecureRuleProcess;
    import com.pulumi.sysdig.SecureRuleProcessArgs;
    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 sample = new SecureRuleProcess("sample", SecureRuleProcessArgs.builder()
                .description("Detect network tools launched inside container")
                .matching(true)
                .processes(            
                    "nc",
                    "ncat",
                    "nmap",
                    "dig",
                    "tcpdump",
                    "tshark",
                    "ngrep")
                .build());
    
        }
    }
    
    resources:
      sample:
        type: sysdig:SecureRuleProcess
        properties:
          description: Detect network tools launched inside container
          matching: true
          # ID
          processes:
            - nc
            - ncat
            - nmap
            - dig
            - tcpdump
            - tshark
            - ngrep
    

    Create SecureRuleProcess Resource

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

    Constructor syntax

    new SecureRuleProcess(name: string, args?: SecureRuleProcessArgs, opts?: CustomResourceOptions);
    @overload
    def SecureRuleProcess(resource_name: str,
                          args: Optional[SecureRuleProcessArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecureRuleProcess(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          description: Optional[str] = None,
                          matching: Optional[bool] = None,
                          name: Optional[str] = None,
                          processes: Optional[Sequence[str]] = None,
                          secure_rule_process_id: Optional[str] = None,
                          tags: Optional[Sequence[str]] = None,
                          timeouts: Optional[SecureRuleProcessTimeoutsArgs] = None)
    func NewSecureRuleProcess(ctx *Context, name string, args *SecureRuleProcessArgs, opts ...ResourceOption) (*SecureRuleProcess, error)
    public SecureRuleProcess(string name, SecureRuleProcessArgs? args = null, CustomResourceOptions? opts = null)
    public SecureRuleProcess(String name, SecureRuleProcessArgs args)
    public SecureRuleProcess(String name, SecureRuleProcessArgs args, CustomResourceOptions options)
    
    type: sysdig:SecureRuleProcess
    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 SecureRuleProcessArgs
    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 SecureRuleProcessArgs
    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 SecureRuleProcessArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecureRuleProcessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecureRuleProcessArgs
    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 secureRuleProcessResource = new Sysdig.SecureRuleProcess("secureRuleProcessResource", new()
    {
        Description = "string",
        Matching = false,
        Name = "string",
        Processes = new[]
        {
            "string",
        },
        SecureRuleProcessId = "string",
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Sysdig.Inputs.SecureRuleProcessTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := sysdig.NewSecureRuleProcess(ctx, "secureRuleProcessResource", &sysdig.SecureRuleProcessArgs{
    	Description: pulumi.String("string"),
    	Matching:    pulumi.Bool(false),
    	Name:        pulumi.String("string"),
    	Processes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecureRuleProcessId: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &sysdig.SecureRuleProcessTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var secureRuleProcessResource = new SecureRuleProcess("secureRuleProcessResource", SecureRuleProcessArgs.builder()
        .description("string")
        .matching(false)
        .name("string")
        .processes("string")
        .secureRuleProcessId("string")
        .tags("string")
        .timeouts(SecureRuleProcessTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    secure_rule_process_resource = sysdig.SecureRuleProcess("secureRuleProcessResource",
        description="string",
        matching=False,
        name="string",
        processes=["string"],
        secure_rule_process_id="string",
        tags=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const secureRuleProcessResource = new sysdig.SecureRuleProcess("secureRuleProcessResource", {
        description: "string",
        matching: false,
        name: "string",
        processes: ["string"],
        secureRuleProcessId: "string",
        tags: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: sysdig:SecureRuleProcess
    properties:
        description: string
        matching: false
        name: string
        processes:
            - string
        secureRuleProcessId: string
        tags:
            - string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

    SecureRuleProcess Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecureRuleProcess resource accepts the following input properties:

    Description string
    The description of Secure rule. By default is empty.
    Matching bool
    Name string
    The name of the Secure rule. It must be unique.
    Processes List<string>
    SecureRuleProcessId string
    Tags List<string>
    A list of tags for this rule.
    Timeouts SecureRuleProcessTimeouts
    Description string
    The description of Secure rule. By default is empty.
    Matching bool
    Name string
    The name of the Secure rule. It must be unique.
    Processes []string
    SecureRuleProcessId string
    Tags []string
    A list of tags for this rule.
    Timeouts SecureRuleProcessTimeoutsArgs
    description String
    The description of Secure rule. By default is empty.
    matching Boolean
    name String
    The name of the Secure rule. It must be unique.
    processes List<String>
    secureRuleProcessId String
    tags List<String>
    A list of tags for this rule.
    timeouts SecureRuleProcessTimeouts
    description string
    The description of Secure rule. By default is empty.
    matching boolean
    name string
    The name of the Secure rule. It must be unique.
    processes string[]
    secureRuleProcessId string
    tags string[]
    A list of tags for this rule.
    timeouts SecureRuleProcessTimeouts
    description str
    The description of Secure rule. By default is empty.
    matching bool
    name str
    The name of the Secure rule. It must be unique.
    processes Sequence[str]
    secure_rule_process_id str
    tags Sequence[str]
    A list of tags for this rule.
    timeouts SecureRuleProcessTimeoutsArgs
    description String
    The description of Secure rule. By default is empty.
    matching Boolean
    name String
    The name of the Secure rule. It must be unique.
    processes List<String>
    secureRuleProcessId String
    tags List<String>
    A list of tags for this rule.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Version double
    Current version of the resource in Sysdig Secure.
    Id string
    The provider-assigned unique ID for this managed resource.
    Version float64
    Current version of the resource in Sysdig Secure.
    id String
    The provider-assigned unique ID for this managed resource.
    version Double
    Current version of the resource in Sysdig Secure.
    id string
    The provider-assigned unique ID for this managed resource.
    version number
    Current version of the resource in Sysdig Secure.
    id str
    The provider-assigned unique ID for this managed resource.
    version float
    Current version of the resource in Sysdig Secure.
    id String
    The provider-assigned unique ID for this managed resource.
    version Number
    Current version of the resource in Sysdig Secure.

    Look up Existing SecureRuleProcess Resource

    Get an existing SecureRuleProcess resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecureRuleProcessState, opts?: CustomResourceOptions): SecureRuleProcess
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            matching: Optional[bool] = None,
            name: Optional[str] = None,
            processes: Optional[Sequence[str]] = None,
            secure_rule_process_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[SecureRuleProcessTimeoutsArgs] = None,
            version: Optional[float] = None) -> SecureRuleProcess
    func GetSecureRuleProcess(ctx *Context, name string, id IDInput, state *SecureRuleProcessState, opts ...ResourceOption) (*SecureRuleProcess, error)
    public static SecureRuleProcess Get(string name, Input<string> id, SecureRuleProcessState? state, CustomResourceOptions? opts = null)
    public static SecureRuleProcess get(String name, Output<String> id, SecureRuleProcessState state, CustomResourceOptions options)
    resources:  _:    type: sysdig:SecureRuleProcess    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    The description of Secure rule. By default is empty.
    Matching bool
    Name string
    The name of the Secure rule. It must be unique.
    Processes List<string>
    SecureRuleProcessId string
    Tags List<string>
    A list of tags for this rule.
    Timeouts SecureRuleProcessTimeouts
    Version double
    Current version of the resource in Sysdig Secure.
    Description string
    The description of Secure rule. By default is empty.
    Matching bool
    Name string
    The name of the Secure rule. It must be unique.
    Processes []string
    SecureRuleProcessId string
    Tags []string
    A list of tags for this rule.
    Timeouts SecureRuleProcessTimeoutsArgs
    Version float64
    Current version of the resource in Sysdig Secure.
    description String
    The description of Secure rule. By default is empty.
    matching Boolean
    name String
    The name of the Secure rule. It must be unique.
    processes List<String>
    secureRuleProcessId String
    tags List<String>
    A list of tags for this rule.
    timeouts SecureRuleProcessTimeouts
    version Double
    Current version of the resource in Sysdig Secure.
    description string
    The description of Secure rule. By default is empty.
    matching boolean
    name string
    The name of the Secure rule. It must be unique.
    processes string[]
    secureRuleProcessId string
    tags string[]
    A list of tags for this rule.
    timeouts SecureRuleProcessTimeouts
    version number
    Current version of the resource in Sysdig Secure.
    description str
    The description of Secure rule. By default is empty.
    matching bool
    name str
    The name of the Secure rule. It must be unique.
    processes Sequence[str]
    secure_rule_process_id str
    tags Sequence[str]
    A list of tags for this rule.
    timeouts SecureRuleProcessTimeoutsArgs
    version float
    Current version of the resource in Sysdig Secure.
    description String
    The description of Secure rule. By default is empty.
    matching Boolean
    name String
    The name of the Secure rule. It must be unique.
    processes List<String>
    secureRuleProcessId String
    tags List<String>
    A list of tags for this rule.
    timeouts Property Map
    version Number
    Current version of the resource in Sysdig Secure.

    Supporting Types

    SecureRuleProcessTimeouts, SecureRuleProcessTimeoutsArgs

    Create string
    Delete string
    Read string
    Update string
    Create string
    Delete string
    Read string
    Update string
    create String
    delete String
    read String
    update String
    create string
    delete string
    read string
    update string
    create str
    delete str
    read str
    update str
    create String
    delete String
    read String
    update String

    Import

    Secure process runtime rules can be imported using the ID, e.g.

    $ pulumi import sysdig:index/secureRuleProcess:SecureRuleProcess example 12345
    

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

    Package Details

    Repository
    sysdig sysdiglabs/terraform-provider-sysdig
    License
    Notes
    This Pulumi package is based on the sysdig Terraform Provider.
    sysdig logo
    sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs