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

sysdig.getSecureMlPolicy

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 policy = sysdig.getSecureMlPolicy({
        name: "ML Policy 1",
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    policy = sysdig.get_secure_ml_policy(name="ML 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.LookupSecureMlPolicy(ctx, &sysdig.LookupSecureMlPolicyArgs{
    			Name: "ML 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.GetSecureMlPolicy.Invoke(new()
        {
            Name = "ML 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.GetSecureMlPolicyArgs;
    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.getSecureMlPolicy(GetSecureMlPolicyArgs.builder()
                .name("ML Policy 1")
                .build());
    
        }
    }
    
    variables:
      policy:
        fn::invoke:
          function: sysdig:getSecureMlPolicy
          arguments:
            name: ML Policy 1
    

    Using getSecureMlPolicy

    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 getSecureMlPolicy(args: GetSecureMlPolicyArgs, opts?: InvokeOptions): Promise<GetSecureMlPolicyResult>
    function getSecureMlPolicyOutput(args: GetSecureMlPolicyOutputArgs, opts?: InvokeOptions): Output<GetSecureMlPolicyResult>
    def get_secure_ml_policy(id: Optional[str] = None,
                             name: Optional[str] = None,
                             timeouts: Optional[GetSecureMlPolicyTimeouts] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSecureMlPolicyResult
    def get_secure_ml_policy_output(id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             timeouts: Optional[pulumi.Input[GetSecureMlPolicyTimeoutsArgs]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSecureMlPolicyResult]
    func LookupSecureMlPolicy(ctx *Context, args *LookupSecureMlPolicyArgs, opts ...InvokeOption) (*LookupSecureMlPolicyResult, error)
    func LookupSecureMlPolicyOutput(ctx *Context, args *LookupSecureMlPolicyOutputArgs, opts ...InvokeOption) LookupSecureMlPolicyResultOutput

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

    public static class GetSecureMlPolicy 
    {
        public static Task<GetSecureMlPolicyResult> InvokeAsync(GetSecureMlPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetSecureMlPolicyResult> Invoke(GetSecureMlPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecureMlPolicyResult> getSecureMlPolicy(GetSecureMlPolicyArgs args, InvokeOptions options)
    public static Output<GetSecureMlPolicyResult> getSecureMlPolicy(GetSecureMlPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sysdig:index/getSecureMlPolicy:getSecureMlPolicy
      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 GetSecureMlPolicyTimeouts
    Name string
    The name of the Secure managed policy.
    Id string
    The id for the policy.
    Timeouts GetSecureMlPolicyTimeouts
    name String
    The name of the Secure managed policy.
    id String
    The id for the policy.
    timeouts GetSecureMlPolicyTimeouts
    name string
    The name of the Secure managed policy.
    id string
    The id for the policy.
    timeouts GetSecureMlPolicyTimeouts
    name str
    The name of the Secure managed policy.
    id str
    The id for the policy.
    timeouts GetSecureMlPolicyTimeouts
    name String
    The name of the Secure managed policy.
    id String
    The id for the policy.
    timeouts Property Map

    getSecureMlPolicy Result

    The following output properties are available:

    Description string
    (Required) Rule description.
    Enabled bool
    Whether the policy is enabled or not.
    Id string
    The id for the policy.
    Name string
    NotificationChannels List<double>
    IDs of the notification channels to send alerts to when the policy is fired.
    Rules List<GetSecureMlPolicyRule>
    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 GetSecureMlPolicyTimeouts
    Description string
    (Required) Rule description.
    Enabled bool
    Whether the policy is enabled or not.
    Id string
    The id for the policy.
    Name string
    NotificationChannels []float64
    IDs of the notification channels to send alerts to when the policy is fired.
    Rules []GetSecureMlPolicyRule
    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 GetSecureMlPolicyTimeouts
    description String
    (Required) Rule description.
    enabled Boolean
    Whether the policy is enabled or not.
    id String
    The id for the policy.
    name String
    notificationChannels List<Double>
    IDs of the notification channels to send alerts to when the policy is fired.
    rules List<GetSecureMlPolicyRule>
    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 GetSecureMlPolicyTimeouts
    description string
    (Required) Rule description.
    enabled boolean
    Whether the policy is enabled or not.
    id string
    The id for the policy.
    name string
    notificationChannels number[]
    IDs of the notification channels to send alerts to when the policy is fired.
    rules GetSecureMlPolicyRule[]
    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 GetSecureMlPolicyTimeouts
    description str
    (Required) Rule description.
    enabled bool
    Whether the policy is enabled or not.
    id str
    The id for the policy.
    name str
    notification_channels Sequence[float]
    IDs of the notification channels to send alerts to when the policy is fired.
    rules Sequence[GetSecureMlPolicyRule]
    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 GetSecureMlPolicyTimeouts
    description String
    (Required) Rule description.
    enabled Boolean
    Whether the policy is enabled or not.
    id String
    The id for the policy.
    name String
    notificationChannels 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

    GetSecureMlPolicyRule

    CryptominingTriggers List<GetSecureMlPolicyRuleCryptominingTrigger>
    (Required) Cryptomining detection: Detect unusual activity in the Activity Audit based on the set confidence level.
    Description string
    (Required) Rule description.
    Id double
    The id for the policy.
    Name string
    The name of the Secure managed policy.
    Tags List<string>
    Version double
    CryptominingTriggers []GetSecureMlPolicyRuleCryptominingTrigger
    (Required) Cryptomining detection: Detect unusual activity in the Activity Audit based on the set confidence level.
    Description string
    (Required) Rule description.
    Id float64
    The id for the policy.
    Name string
    The name of the Secure managed policy.
    Tags []string
    Version float64
    cryptominingTriggers List<GetSecureMlPolicyRuleCryptominingTrigger>
    (Required) Cryptomining detection: Detect unusual activity in the Activity Audit based on the set confidence level.
    description String
    (Required) Rule description.
    id Double
    The id for the policy.
    name String
    The name of the Secure managed policy.
    tags List<String>
    version Double
    cryptominingTriggers GetSecureMlPolicyRuleCryptominingTrigger[]
    (Required) Cryptomining detection: Detect unusual activity in the Activity Audit based on the set confidence level.
    description string
    (Required) Rule description.
    id number
    The id for the policy.
    name string
    The name of the Secure managed policy.
    tags string[]
    version number
    cryptomining_triggers Sequence[GetSecureMlPolicyRuleCryptominingTrigger]
    (Required) Cryptomining detection: Detect unusual activity in the Activity Audit based on the set confidence level.
    description str
    (Required) Rule description.
    id float
    The id for the policy.
    name str
    The name of the Secure managed policy.
    tags Sequence[str]
    version float
    cryptominingTriggers List<Property Map>
    (Required) Cryptomining detection: Detect unusual activity in the Activity Audit based on the set confidence level.
    description String
    (Required) Rule description.
    id Number
    The id for the policy.
    name String
    The name of the Secure managed policy.
    tags List<String>
    version Number

    GetSecureMlPolicyRuleCryptominingTrigger

    Enabled bool
    Whether the policy is enabled or not.
    Threshold double
    (Required) Trigger at or above confidence level. Accepted values are 3 (Highest), 2 (Higher), 1 (Default)
    Enabled bool
    Whether the policy is enabled or not.
    Threshold float64
    (Required) Trigger at or above confidence level. Accepted values are 3 (Highest), 2 (Higher), 1 (Default)
    enabled Boolean
    Whether the policy is enabled or not.
    threshold Double
    (Required) Trigger at or above confidence level. Accepted values are 3 (Highest), 2 (Higher), 1 (Default)
    enabled boolean
    Whether the policy is enabled or not.
    threshold number
    (Required) Trigger at or above confidence level. Accepted values are 3 (Highest), 2 (Higher), 1 (Default)
    enabled bool
    Whether the policy is enabled or not.
    threshold float
    (Required) Trigger at or above confidence level. Accepted values are 3 (Highest), 2 (Higher), 1 (Default)
    enabled Boolean
    Whether the policy is enabled or not.
    threshold Number
    (Required) Trigger at or above confidence level. Accepted values are 3 (Highest), 2 (Higher), 1 (Default)

    GetSecureMlPolicyTimeouts

    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 logo
    sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs