sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs
sysdig.getSecureDriftPolicy
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 policy = sysdig.getSecureDriftPolicy({
name: "Drift Policy 1",
});
import pulumi
import pulumi_sysdig as sysdig
policy = sysdig.get_secure_drift_policy(name="Drift Policy 1")
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.LookupSecureDriftPolicy(ctx, &sysdig.LookupSecureDriftPolicyArgs{
Name: "Drift Policy 1",
}, 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 policy = Sysdig.GetSecureDriftPolicy.Invoke(new()
{
Name = "Drift Policy 1",
});
});
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.GetSecureDriftPolicyArgs;
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 policy = SysdigFunctions.getSecureDriftPolicy(GetSecureDriftPolicyArgs.builder()
.name("Drift Policy 1")
.build());
}
}
variables:
policy:
fn::invoke:
function: sysdig:getSecureDriftPolicy
arguments:
name: Drift Policy 1
Using getSecureDriftPolicy
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 getSecureDriftPolicy(args: GetSecureDriftPolicyArgs, opts?: InvokeOptions): Promise<GetSecureDriftPolicyResult>
function getSecureDriftPolicyOutput(args: GetSecureDriftPolicyOutputArgs, opts?: InvokeOptions): Output<GetSecureDriftPolicyResult>
def get_secure_drift_policy(id: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[GetSecureDriftPolicyTimeouts] = None,
opts: Optional[InvokeOptions] = None) -> GetSecureDriftPolicyResult
def get_secure_drift_policy_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
timeouts: Optional[pulumi.Input[GetSecureDriftPolicyTimeoutsArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecureDriftPolicyResult]
func LookupSecureDriftPolicy(ctx *Context, args *LookupSecureDriftPolicyArgs, opts ...InvokeOption) (*LookupSecureDriftPolicyResult, error)
func LookupSecureDriftPolicyOutput(ctx *Context, args *LookupSecureDriftPolicyOutputArgs, opts ...InvokeOption) LookupSecureDriftPolicyResultOutput
> Note: This function is named LookupSecureDriftPolicy
in the Go SDK.
public static class GetSecureDriftPolicy
{
public static Task<GetSecureDriftPolicyResult> InvokeAsync(GetSecureDriftPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetSecureDriftPolicyResult> Invoke(GetSecureDriftPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecureDriftPolicyResult> getSecureDriftPolicy(GetSecureDriftPolicyArgs args, InvokeOptions options)
public static Output<GetSecureDriftPolicyResult> getSecureDriftPolicy(GetSecureDriftPolicyArgs args, InvokeOptions options)
fn::invoke:
function: sysdig:index/getSecureDriftPolicy:getSecureDriftPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the Secure managed policy.
- Id string
- The id for the policy.
- Timeouts
Get
Secure Drift Policy Timeouts
- Name string
- The name of the Secure managed policy.
- Id string
- The id for the policy.
- Timeouts
Get
Secure Drift Policy Timeouts
- name String
- The name of the Secure managed policy.
- id String
- The id for the policy.
- timeouts
Get
Secure Drift Policy Timeouts
- name string
- The name of the Secure managed policy.
- id string
- The id for the policy.
- timeouts
Get
Secure Drift Policy Timeouts
- name str
- The name of the Secure managed policy.
- id str
- The id for the policy.
- timeouts
Get
Secure Drift Policy Timeouts
- name String
- The name of the Secure managed policy.
- id String
- The id for the policy.
- timeouts Property Map
getSecureDriftPolicy Result
The following output properties are available:
- Actions
List<Get
Secure Drift Policy Action> - Description string
- (Required) The description of the drift rule.
- Enabled bool
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- Id string
- The id for the policy.
- Name string
- (Required) The name of the capture file
- Notification
Channels List<double> - IDs of the notification channels to send alerts to when the policy is fired.
- Rules
List<Get
Secure Drift Policy Rule> - Runbook string
- Customer provided url that provides a runbook for a given policy.
- Scope string
- The application scope for the policy.
- Severity double
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- Type string
- Version double
- Timeouts
Get
Secure Drift Policy Timeouts
- Actions
[]Get
Secure Drift Policy Action - Description string
- (Required) The description of the drift rule.
- Enabled bool
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- Id string
- The id for the policy.
- Name string
- (Required) The name of the capture file
- Notification
Channels []float64 - IDs of the notification channels to send alerts to when the policy is fired.
- Rules
[]Get
Secure Drift Policy Rule - Runbook string
- Customer provided url that provides a runbook for a given policy.
- Scope string
- The application scope for the policy.
- Severity float64
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- Type string
- Version float64
- Timeouts
Get
Secure Drift Policy Timeouts
- actions
List<Get
Secure Drift Policy Action> - description String
- (Required) The description of the drift rule.
- enabled Boolean
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- id String
- The id for the policy.
- name String
- (Required) The name of the capture file
- notification
Channels List<Double> - IDs of the notification channels to send alerts to when the policy is fired.
- rules
List<Get
Secure Drift Policy Rule> - runbook String
- Customer provided url that provides a runbook for a given policy.
- scope String
- The application scope for the policy.
- severity Double
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- type String
- version Double
- timeouts
Get
Secure Drift Policy Timeouts
- actions
Get
Secure Drift Policy Action[] - description string
- (Required) The description of the drift rule.
- enabled boolean
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- id string
- The id for the policy.
- name string
- (Required) The name of the capture file
- notification
Channels number[] - IDs of the notification channels to send alerts to when the policy is fired.
- rules
Get
Secure Drift Policy Rule[] - runbook string
- Customer provided url that provides a runbook for a given policy.
- scope string
- The application scope for the policy.
- severity number
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- type string
- version number
- timeouts
Get
Secure Drift Policy Timeouts
- actions
Sequence[Get
Secure Drift Policy Action] - description str
- (Required) The description of the drift rule.
- enabled bool
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- id str
- The id for the policy.
- name str
- (Required) The name of the capture file
- notification_
channels Sequence[float] - IDs of the notification channels to send alerts to when the policy is fired.
- rules
Sequence[Get
Secure Drift Policy Rule] - runbook str
- Customer provided url that provides a runbook for a given policy.
- scope str
- The application scope for the policy.
- severity float
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- type str
- version float
- timeouts
Get
Secure Drift Policy Timeouts
- actions List<Property Map>
- description String
- (Required) The description of the drift rule.
- enabled Boolean
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- id String
- The id for the policy.
- name String
- (Required) The name of the capture file
- notification
Channels List<Number> - IDs of the notification channels to send alerts to when the policy is fired.
- rules List<Property Map>
- runbook String
- Customer provided url that provides a runbook for a given policy.
- scope String
- The application scope for the policy.
- severity Number
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- type String
- version Number
- timeouts Property Map
Supporting Types
GetSecureDriftPolicyAction
- Captures
List<Get
Secure Drift Policy Action Capture> - (Optional) Captures with Sysdig the stream of system calls:
- Container string
- (Optional) The action applied to container when this Policy is triggered. Can be stop, pause or kill. If this is not specified, no action will be applied at the container level.
- Prevent
Drift bool - (Optional) Prevent the execution of drifted binaries and specified prohibited binaries.
- Captures
[]Get
Secure Drift Policy Action Capture - (Optional) Captures with Sysdig the stream of system calls:
- Container string
- (Optional) The action applied to container when this Policy is triggered. Can be stop, pause or kill. If this is not specified, no action will be applied at the container level.
- Prevent
Drift bool - (Optional) Prevent the execution of drifted binaries and specified prohibited binaries.
- captures
List<Get
Secure Drift Policy Action Capture> - (Optional) Captures with Sysdig the stream of system calls:
- container String
- (Optional) The action applied to container when this Policy is triggered. Can be stop, pause or kill. If this is not specified, no action will be applied at the container level.
- prevent
Drift Boolean - (Optional) Prevent the execution of drifted binaries and specified prohibited binaries.
- captures
Get
Secure Drift Policy Action Capture[] - (Optional) Captures with Sysdig the stream of system calls:
- container string
- (Optional) The action applied to container when this Policy is triggered. Can be stop, pause or kill. If this is not specified, no action will be applied at the container level.
- prevent
Drift boolean - (Optional) Prevent the execution of drifted binaries and specified prohibited binaries.
- captures
Sequence[Get
Secure Drift Policy Action Capture] - (Optional) Captures with Sysdig the stream of system calls:
- container str
- (Optional) The action applied to container when this Policy is triggered. Can be stop, pause or kill. If this is not specified, no action will be applied at the container level.
- prevent_
drift bool - (Optional) Prevent the execution of drifted binaries and specified prohibited binaries.
- captures List<Property Map>
- (Optional) Captures with Sysdig the stream of system calls:
- container String
- (Optional) The action applied to container when this Policy is triggered. Can be stop, pause or kill. If this is not specified, no action will be applied at the container level.
- prevent
Drift Boolean - (Optional) Prevent the execution of drifted binaries and specified prohibited binaries.
GetSecureDriftPolicyActionCapture
- Bucket
Name string - (Optional) Custom bucket to store capture in, bucket should be onboarded in Integrations > S3 Capture Storage. Default is to use Sysdig Secure Storage
- Filter string
- (Optional) Additional filter to apply to the capture. For example:
proc.name=cat
- Folder string
- (Optional) Name of folder to store capture inside the bucket. By default we will store the capture file at the root of the bucket
- Name string
- The name of the Secure managed policy.
- Seconds
After doubleEvent - (Required) Captures the system calls for the amount of seconds after the policy was triggered.
- Seconds
Before doubleEvent - (Required) Captures the system calls during the amount of seconds before the policy was triggered.
- Bucket
Name string - (Optional) Custom bucket to store capture in, bucket should be onboarded in Integrations > S3 Capture Storage. Default is to use Sysdig Secure Storage
- Filter string
- (Optional) Additional filter to apply to the capture. For example:
proc.name=cat
- Folder string
- (Optional) Name of folder to store capture inside the bucket. By default we will store the capture file at the root of the bucket
- Name string
- The name of the Secure managed policy.
- Seconds
After float64Event - (Required) Captures the system calls for the amount of seconds after the policy was triggered.
- Seconds
Before float64Event - (Required) Captures the system calls during the amount of seconds before the policy was triggered.
- bucket
Name String - (Optional) Custom bucket to store capture in, bucket should be onboarded in Integrations > S3 Capture Storage. Default is to use Sysdig Secure Storage
- filter String
- (Optional) Additional filter to apply to the capture. For example:
proc.name=cat
- folder String
- (Optional) Name of folder to store capture inside the bucket. By default we will store the capture file at the root of the bucket
- name String
- The name of the Secure managed policy.
- seconds
After DoubleEvent - (Required) Captures the system calls for the amount of seconds after the policy was triggered.
- seconds
Before DoubleEvent - (Required) Captures the system calls during the amount of seconds before the policy was triggered.
- bucket
Name string - (Optional) Custom bucket to store capture in, bucket should be onboarded in Integrations > S3 Capture Storage. Default is to use Sysdig Secure Storage
- filter string
- (Optional) Additional filter to apply to the capture. For example:
proc.name=cat
- folder string
- (Optional) Name of folder to store capture inside the bucket. By default we will store the capture file at the root of the bucket
- name string
- The name of the Secure managed policy.
- seconds
After numberEvent - (Required) Captures the system calls for the amount of seconds after the policy was triggered.
- seconds
Before numberEvent - (Required) Captures the system calls during the amount of seconds before the policy was triggered.
- bucket_
name str - (Optional) Custom bucket to store capture in, bucket should be onboarded in Integrations > S3 Capture Storage. Default is to use Sysdig Secure Storage
- filter str
- (Optional) Additional filter to apply to the capture. For example:
proc.name=cat
- folder str
- (Optional) Name of folder to store capture inside the bucket. By default we will store the capture file at the root of the bucket
- name str
- The name of the Secure managed policy.
- seconds_
after_ floatevent - (Required) Captures the system calls for the amount of seconds after the policy was triggered.
- seconds_
before_ floatevent - (Required) Captures the system calls during the amount of seconds before the policy was triggered.
- bucket
Name String - (Optional) Custom bucket to store capture in, bucket should be onboarded in Integrations > S3 Capture Storage. Default is to use Sysdig Secure Storage
- filter String
- (Optional) Additional filter to apply to the capture. For example:
proc.name=cat
- folder String
- (Optional) Name of folder to store capture inside the bucket. By default we will store the capture file at the root of the bucket
- name String
- The name of the Secure managed policy.
- seconds
After NumberEvent - (Required) Captures the system calls for the amount of seconds after the policy was triggered.
- seconds
Before NumberEvent - (Required) Captures the system calls during the amount of seconds before the policy was triggered.
GetSecureDriftPolicyRule
- Description string
- (Required) The description of the drift rule.
- Enabled bool
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- Exceptions
List<Get
Secure Drift Policy Rule Exception> - (Optional) Specify comma separated list of exceptions.
- Id double
- The id for the policy.
- Mounted
Volume boolDrift Enabled - Name string
- The name of the Secure managed policy.
- Prohibited
Binaries List<GetSecure Drift Policy Rule Prohibited Binary> - (Optional) A prohibited binary can be a known harmful binary or one that facilitates discovery of your environment.
- List<string>
- Version double
- Description string
- (Required) The description of the drift rule.
- Enabled bool
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- Exceptions
[]Get
Secure Drift Policy Rule Exception - (Optional) Specify comma separated list of exceptions.
- Id float64
- The id for the policy.
- Mounted
Volume boolDrift Enabled - Name string
- The name of the Secure managed policy.
- Prohibited
Binaries []GetSecure Drift Policy Rule Prohibited Binary - (Optional) A prohibited binary can be a known harmful binary or one that facilitates discovery of your environment.
- []string
- Version float64
- description String
- (Required) The description of the drift rule.
- enabled Boolean
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- exceptions
List<Get
Secure Drift Policy Rule Exception> - (Optional) Specify comma separated list of exceptions.
- id Double
- The id for the policy.
- mounted
Volume BooleanDrift Enabled - name String
- The name of the Secure managed policy.
- prohibited
Binaries List<GetSecure Drift Policy Rule Prohibited Binary> - (Optional) A prohibited binary can be a known harmful binary or one that facilitates discovery of your environment.
- List<String>
- version Double
- description string
- (Required) The description of the drift rule.
- enabled boolean
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- exceptions
Get
Secure Drift Policy Rule Exception[] - (Optional) Specify comma separated list of exceptions.
- id number
- The id for the policy.
- mounted
Volume booleanDrift Enabled - name string
- The name of the Secure managed policy.
- prohibited
Binaries GetSecure Drift Policy Rule Prohibited Binary[] - (Optional) A prohibited binary can be a known harmful binary or one that facilitates discovery of your environment.
- string[]
- version number
- description str
- (Required) The description of the drift rule.
- enabled bool
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- exceptions
Sequence[Get
Secure Drift Policy Rule Exception] - (Optional) Specify comma separated list of exceptions.
- id float
- The id for the policy.
- mounted_
volume_ booldrift_ enabled - name str
- The name of the Secure managed policy.
- prohibited_
binaries Sequence[GetSecure Drift Policy Rule Prohibited Binary] - (Optional) A prohibited binary can be a known harmful binary or one that facilitates discovery of your environment.
- Sequence[str]
- version float
- description String
- (Required) The description of the drift rule.
- enabled Boolean
- (Required) Toggle to dynamically detect execution of drifted binaries. A drifted binary is any binary that was not part of the original image of the container. It is typically downloaded or compiled into a running container.
- exceptions List<Property Map>
- (Optional) Specify comma separated list of exceptions.
- id Number
- The id for the policy.
- mounted
Volume BooleanDrift Enabled - name String
- The name of the Secure managed policy.
- prohibited
Binaries List<Property Map> - (Optional) A prohibited binary can be a known harmful binary or one that facilitates discovery of your environment.
- List<String>
- version Number
GetSecureDriftPolicyRuleException
- Items List<string>
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - Match
Items bool
- Items []string
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - Match
Items bool
- items List<String>
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - match
Items Boolean
- items string[]
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - match
Items boolean
- items Sequence[str]
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - match_
items bool
- items List<String>
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - match
Items Boolean
GetSecureDriftPolicyRuleProhibitedBinary
- Items List<string>
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - Match
Items bool
- Items []string
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - Match
Items bool
- items List<String>
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - match
Items Boolean
- items string[]
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - match
Items boolean
- items Sequence[str]
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - match_
items bool
- items List<String>
- (Required) Specify comma separated list of prohibited binaries, e.g.
/usr/bin/rm, /usr/bin/curl
. - match
Items Boolean
GetSecureDriftPolicyTimeouts
- Read string
- Read string
- read String
- read string
- read str
- read String
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