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

sysdig.getSecureRuleNetwork

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 example = sysdig.getSecureRuleNetwork({
        name: "Disallowed SSH Connection",
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    example = sysdig.get_secure_rule_network(name="Disallowed SSH Connection")
    
    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.LookupSecureRuleNetwork(ctx, &sysdig.LookupSecureRuleNetworkArgs{
    			Name: "Disallowed SSH Connection",
    		}, nil)
    		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 example = Sysdig.GetSecureRuleNetwork.Invoke(new()
        {
            Name = "Disallowed SSH Connection",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SysdigFunctions;
    import com.pulumi.sysdig.inputs.GetSecureRuleNetworkArgs;
    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) {
            final var example = SysdigFunctions.getSecureRuleNetwork(GetSecureRuleNetworkArgs.builder()
                .name("Disallowed SSH Connection")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: sysdig:getSecureRuleNetwork
          arguments:
            name: Disallowed SSH Connection
    

    Connection Blocks

    The tcp and udp blocks will have the the following attributes:

    • matching - Defines if the port matches or not with the provided list.
    • ports - List of ports to match.

    Using getSecureRuleNetwork

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSecureRuleNetwork(args: GetSecureRuleNetworkArgs, opts?: InvokeOptions): Promise<GetSecureRuleNetworkResult>
    function getSecureRuleNetworkOutput(args: GetSecureRuleNetworkOutputArgs, opts?: InvokeOptions): Output<GetSecureRuleNetworkResult>
    def get_secure_rule_network(name: Optional[str] = None,
                                timeouts: Optional[GetSecureRuleNetworkTimeouts] = None,
                                udps: Optional[Sequence[GetSecureRuleNetworkUdp]] = None,
                                opts: Optional[InvokeOptions] = None) -> GetSecureRuleNetworkResult
    def get_secure_rule_network_output(name: Optional[pulumi.Input[str]] = None,
                                timeouts: Optional[pulumi.Input[GetSecureRuleNetworkTimeoutsArgs]] = None,
                                udps: Optional[pulumi.Input[Sequence[pulumi.Input[GetSecureRuleNetworkUdpArgs]]]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetSecureRuleNetworkResult]
    func LookupSecureRuleNetwork(ctx *Context, args *LookupSecureRuleNetworkArgs, opts ...InvokeOption) (*LookupSecureRuleNetworkResult, error)
    func LookupSecureRuleNetworkOutput(ctx *Context, args *LookupSecureRuleNetworkOutputArgs, opts ...InvokeOption) LookupSecureRuleNetworkResultOutput

    > Note: This function is named LookupSecureRuleNetwork in the Go SDK.

    public static class GetSecureRuleNetwork 
    {
        public static Task<GetSecureRuleNetworkResult> InvokeAsync(GetSecureRuleNetworkArgs args, InvokeOptions? opts = null)
        public static Output<GetSecureRuleNetworkResult> Invoke(GetSecureRuleNetworkInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecureRuleNetworkResult> getSecureRuleNetwork(GetSecureRuleNetworkArgs args, InvokeOptions options)
    public static Output<GetSecureRuleNetworkResult> getSecureRuleNetwork(GetSecureRuleNetworkArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sysdig:index/getSecureRuleNetwork:getSecureRuleNetwork
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Secure rule to retrieve.
    Timeouts GetSecureRuleNetworkTimeouts
    Udps List<GetSecureRuleNetworkUdp>
    A block with the properties matching and ports for UDP connections.
    Name string
    The name of the Secure rule to retrieve.
    Timeouts GetSecureRuleNetworkTimeouts
    Udps []GetSecureRuleNetworkUdp
    A block with the properties matching and ports for UDP connections.
    name String
    The name of the Secure rule to retrieve.
    timeouts GetSecureRuleNetworkTimeouts
    udps List<GetSecureRuleNetworkUdp>
    A block with the properties matching and ports for UDP connections.
    name string
    The name of the Secure rule to retrieve.
    timeouts GetSecureRuleNetworkTimeouts
    udps GetSecureRuleNetworkUdp[]
    A block with the properties matching and ports for UDP connections.
    name str
    The name of the Secure rule to retrieve.
    timeouts GetSecureRuleNetworkTimeouts
    udps Sequence[GetSecureRuleNetworkUdp]
    A block with the properties matching and ports for UDP connections.
    name String
    The name of the Secure rule to retrieve.
    timeouts Property Map
    udps List<Property Map>
    A block with the properties matching and ports for UDP connections.

    getSecureRuleNetwork Result

    The following output properties are available:

    BlockInbound bool
    Detect if there is an inbound connection.
    BlockOutbound bool
    Detect if there is an outbound connection.
    Description string
    The description of Secure rule.
    Id double
    Name string
    Tags List<string>
    A list of tags for this rule.
    Tcps List<GetSecureRuleNetworkTcp>
    A block with the properties matching and ports for TCP connections.
    Version double
    Current version of the resource in Sysdig Secure.
    Timeouts GetSecureRuleNetworkTimeouts
    Udps List<GetSecureRuleNetworkUdp>
    A block with the properties matching and ports for UDP connections.
    BlockInbound bool
    Detect if there is an inbound connection.
    BlockOutbound bool
    Detect if there is an outbound connection.
    Description string
    The description of Secure rule.
    Id float64
    Name string
    Tags []string
    A list of tags for this rule.
    Tcps []GetSecureRuleNetworkTcp
    A block with the properties matching and ports for TCP connections.
    Version float64
    Current version of the resource in Sysdig Secure.
    Timeouts GetSecureRuleNetworkTimeouts
    Udps []GetSecureRuleNetworkUdp
    A block with the properties matching and ports for UDP connections.
    blockInbound Boolean
    Detect if there is an inbound connection.
    blockOutbound Boolean
    Detect if there is an outbound connection.
    description String
    The description of Secure rule.
    id Double
    name String
    tags List<String>
    A list of tags for this rule.
    tcps List<GetSecureRuleNetworkTcp>
    A block with the properties matching and ports for TCP connections.
    version Double
    Current version of the resource in Sysdig Secure.
    timeouts GetSecureRuleNetworkTimeouts
    udps List<GetSecureRuleNetworkUdp>
    A block with the properties matching and ports for UDP connections.
    blockInbound boolean
    Detect if there is an inbound connection.
    blockOutbound boolean
    Detect if there is an outbound connection.
    description string
    The description of Secure rule.
    id number
    name string
    tags string[]
    A list of tags for this rule.
    tcps GetSecureRuleNetworkTcp[]
    A block with the properties matching and ports for TCP connections.
    version number
    Current version of the resource in Sysdig Secure.
    timeouts GetSecureRuleNetworkTimeouts
    udps GetSecureRuleNetworkUdp[]
    A block with the properties matching and ports for UDP connections.
    block_inbound bool
    Detect if there is an inbound connection.
    block_outbound bool
    Detect if there is an outbound connection.
    description str
    The description of Secure rule.
    id float
    name str
    tags Sequence[str]
    A list of tags for this rule.
    tcps Sequence[GetSecureRuleNetworkTcp]
    A block with the properties matching and ports for TCP connections.
    version float
    Current version of the resource in Sysdig Secure.
    timeouts GetSecureRuleNetworkTimeouts
    udps Sequence[GetSecureRuleNetworkUdp]
    A block with the properties matching and ports for UDP connections.
    blockInbound Boolean
    Detect if there is an inbound connection.
    blockOutbound Boolean
    Detect if there is an outbound connection.
    description String
    The description of Secure rule.
    id Number
    name String
    tags List<String>
    A list of tags for this rule.
    tcps List<Property Map>
    A block with the properties matching and ports for TCP connections.
    version Number
    Current version of the resource in Sysdig Secure.
    timeouts Property Map
    udps List<Property Map>
    A block with the properties matching and ports for UDP connections.

    Supporting Types

    GetSecureRuleNetworkTcp

    Matching bool
    Ports List<double>
    Matching bool
    Ports []float64
    matching Boolean
    ports List<Double>
    matching boolean
    ports number[]
    matching bool
    ports Sequence[float]
    matching Boolean
    ports List<Number>

    GetSecureRuleNetworkTimeouts

    Read string
    Read string
    read String
    read string
    read str
    read String

    GetSecureRuleNetworkUdp

    Matching bool
    Ports List<double>
    Matching bool
    Ports []float64
    matching Boolean
    ports List<Double>
    matching boolean
    ports number[]
    matching bool
    ports Sequence[float]
    matching Boolean
    ports List<Number>

    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