sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs
sysdig.getSecureRuleNetwork
Explore with Pulumi AI
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
Get
Secure Rule Network Timeouts - Udps
List<Get
Secure Rule Network Udp> - A block with the properties
matching
andports
for UDP connections.
- Name string
- The name of the Secure rule to retrieve.
- Timeouts
Get
Secure Rule Network Timeouts - Udps
[]Get
Secure Rule Network Udp - A block with the properties
matching
andports
for UDP connections.
- name String
- The name of the Secure rule to retrieve.
- timeouts
Get
Secure Rule Network Timeouts - udps
List<Get
Secure Rule Network Udp> - A block with the properties
matching
andports
for UDP connections.
- name string
- The name of the Secure rule to retrieve.
- timeouts
Get
Secure Rule Network Timeouts - udps
Get
Secure Rule Network Udp[] - A block with the properties
matching
andports
for UDP connections.
- name str
- The name of the Secure rule to retrieve.
- timeouts
Get
Secure Rule Network Timeouts - udps
Sequence[Get
Secure Rule Network Udp] - A block with the properties
matching
andports
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
andports
for UDP connections.
getSecureRuleNetwork Result
The following output properties are available:
- Block
Inbound bool - Detect if there is an inbound connection.
- Block
Outbound bool - Detect if there is an outbound connection.
- Description string
- The description of Secure rule.
- Id double
- Name string
- List<string>
- A list of tags for this rule.
- Tcps
List<Get
Secure Rule Network Tcp> - A block with the properties
matching
andports
for TCP connections. - Version double
- Current version of the resource in Sysdig Secure.
- Timeouts
Get
Secure Rule Network Timeouts - Udps
List<Get
Secure Rule Network Udp> - A block with the properties
matching
andports
for UDP connections.
- Block
Inbound bool - Detect if there is an inbound connection.
- Block
Outbound bool - Detect if there is an outbound connection.
- Description string
- The description of Secure rule.
- Id float64
- Name string
- []string
- A list of tags for this rule.
- Tcps
[]Get
Secure Rule Network Tcp - A block with the properties
matching
andports
for TCP connections. - Version float64
- Current version of the resource in Sysdig Secure.
- Timeouts
Get
Secure Rule Network Timeouts - Udps
[]Get
Secure Rule Network Udp - A block with the properties
matching
andports
for UDP connections.
- block
Inbound Boolean - Detect if there is an inbound connection.
- block
Outbound Boolean - Detect if there is an outbound connection.
- description String
- The description of Secure rule.
- id Double
- name String
- List<String>
- A list of tags for this rule.
- tcps
List<Get
Secure Rule Network Tcp> - A block with the properties
matching
andports
for TCP connections. - version Double
- Current version of the resource in Sysdig Secure.
- timeouts
Get
Secure Rule Network Timeouts - udps
List<Get
Secure Rule Network Udp> - A block with the properties
matching
andports
for UDP connections.
- block
Inbound boolean - Detect if there is an inbound connection.
- block
Outbound boolean - Detect if there is an outbound connection.
- description string
- The description of Secure rule.
- id number
- name string
- string[]
- A list of tags for this rule.
- tcps
Get
Secure Rule Network Tcp[] - A block with the properties
matching
andports
for TCP connections. - version number
- Current version of the resource in Sysdig Secure.
- timeouts
Get
Secure Rule Network Timeouts - udps
Get
Secure Rule Network Udp[] - A block with the properties
matching
andports
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
- Sequence[str]
- A list of tags for this rule.
- tcps
Sequence[Get
Secure Rule Network Tcp] - A block with the properties
matching
andports
for TCP connections. - version float
- Current version of the resource in Sysdig Secure.
- timeouts
Get
Secure Rule Network Timeouts - udps
Sequence[Get
Secure Rule Network Udp] - A block with the properties
matching
andports
for UDP connections.
- block
Inbound Boolean - Detect if there is an inbound connection.
- block
Outbound Boolean - Detect if there is an outbound connection.
- description String
- The description of Secure rule.
- id Number
- name String
- List<String>
- A list of tags for this rule.
- tcps List<Property Map>
- A block with the properties
matching
andports
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
andports
for UDP connections.
Supporting Types
GetSecureRuleNetworkTcp
GetSecureRuleNetworkTimeouts
- Read string
- Read string
- read String
- read string
- read str
- read String
GetSecureRuleNetworkUdp
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdig
Terraform Provider.
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs