1. Packages
  2. Sysdig Provider
  3. API Docs
  4. getSecureOktaMlPolicy
sysdig 3.3.1 published on Friday, Dec 12, 2025 by sysdiglabs
sysdig logo
sysdig 3.3.1 published on Friday, Dec 12, 2025 by sysdiglabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const policy = sysdig.getSecureOktaMlPolicy({
        name: "My Okta ML Policy",
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    policy = sysdig.get_secure_okta_ml_policy(name="My Okta ML Policy")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/v3/sysdig"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sysdig.LookupSecureOktaMlPolicy(ctx, &sysdig.LookupSecureOktaMlPolicyArgs{
    			Name: "My Okta ML Policy",
    		}, 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.GetSecureOktaMlPolicy.Invoke(new()
        {
            Name = "My Okta ML Policy",
        });
    
    });
    
    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.GetSecureOktaMlPolicyArgs;
    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.getSecureOktaMlPolicy(GetSecureOktaMlPolicyArgs.builder()
                .name("My Okta ML Policy")
                .build());
    
        }
    }
    
    variables:
      policy:
        fn::invoke:
          function: sysdig:getSecureOktaMlPolicy
          arguments:
            name: My Okta ML Policy
    

    Using getSecureOktaMlPolicy

    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 getSecureOktaMlPolicy(args: GetSecureOktaMlPolicyArgs, opts?: InvokeOptions): Promise<GetSecureOktaMlPolicyResult>
    function getSecureOktaMlPolicyOutput(args: GetSecureOktaMlPolicyOutputArgs, opts?: InvokeOptions): Output<GetSecureOktaMlPolicyResult>
    def get_secure_okta_ml_policy(id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  timeouts: Optional[GetSecureOktaMlPolicyTimeouts] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetSecureOktaMlPolicyResult
    def get_secure_okta_ml_policy_output(id: Optional[pulumi.Input[str]] = None,
                                  name: Optional[pulumi.Input[str]] = None,
                                  timeouts: Optional[pulumi.Input[GetSecureOktaMlPolicyTimeoutsArgs]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetSecureOktaMlPolicyResult]
    func LookupSecureOktaMlPolicy(ctx *Context, args *LookupSecureOktaMlPolicyArgs, opts ...InvokeOption) (*LookupSecureOktaMlPolicyResult, error)
    func LookupSecureOktaMlPolicyOutput(ctx *Context, args *LookupSecureOktaMlPolicyOutputArgs, opts ...InvokeOption) LookupSecureOktaMlPolicyResultOutput

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

    public static class GetSecureOktaMlPolicy 
    {
        public static Task<GetSecureOktaMlPolicyResult> InvokeAsync(GetSecureOktaMlPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetSecureOktaMlPolicyResult> Invoke(GetSecureOktaMlPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecureOktaMlPolicyResult> getSecureOktaMlPolicy(GetSecureOktaMlPolicyArgs args, InvokeOptions options)
    public static Output<GetSecureOktaMlPolicyResult> getSecureOktaMlPolicy(GetSecureOktaMlPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sysdig:index/getSecureOktaMlPolicy:getSecureOktaMlPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Secure Okta ML policy.
    Id string
    The ID of the rule.
    Timeouts GetSecureOktaMlPolicyTimeouts
    Name string
    The name of the Secure Okta ML policy.
    Id string
    The ID of the rule.
    Timeouts GetSecureOktaMlPolicyTimeouts
    name String
    The name of the Secure Okta ML policy.
    id String
    The ID of the rule.
    timeouts GetSecureOktaMlPolicyTimeouts
    name string
    The name of the Secure Okta ML policy.
    id string
    The ID of the rule.
    timeouts GetSecureOktaMlPolicyTimeouts
    name str
    The name of the Secure Okta ML policy.
    id str
    The ID of the rule.
    timeouts GetSecureOktaMlPolicyTimeouts
    name String
    The name of the Secure Okta ML policy.
    id String
    The ID of the rule.
    timeouts Property Map

    getSecureOktaMlPolicy Result

    The following output properties are available:

    Description string
    Rule description.
    Enabled bool
    Whether anomaly detection is enabled.
    Id string
    The ID of the rule.
    Name string
    The name of the rule.
    NotificationChannels List<double>
    IDs of the notification channels to send alerts to when the policy is fired.
    Rules List<GetSecureOktaMlPolicyRule>
    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
    The type of the policy. Always set to <span pulumi-lang-nodejs=""oktaMachineLearning"" pulumi-lang-dotnet=""OktaMachineLearning"" pulumi-lang-go=""oktaMachineLearning"" pulumi-lang-python=""okta_machine_learning"" pulumi-lang-yaml=""oktaMachineLearning"" pulumi-lang-java=""oktaMachineLearning"">"okta_machine_learning".
    Version double
    The version of the rule.
    Timeouts GetSecureOktaMlPolicyTimeouts
    Description string
    Rule description.
    Enabled bool
    Whether anomaly detection is enabled.
    Id string
    The ID of the rule.
    Name string
    The name of the rule.
    NotificationChannels []float64
    IDs of the notification channels to send alerts to when the policy is fired.
    Rules []GetSecureOktaMlPolicyRule
    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
    The type of the policy. Always set to <span pulumi-lang-nodejs=""oktaMachineLearning"" pulumi-lang-dotnet=""OktaMachineLearning"" pulumi-lang-go=""oktaMachineLearning"" pulumi-lang-python=""okta_machine_learning"" pulumi-lang-yaml=""oktaMachineLearning"" pulumi-lang-java=""oktaMachineLearning"">"okta_machine_learning".
    Version float64
    The version of the rule.
    Timeouts GetSecureOktaMlPolicyTimeouts
    description String
    Rule description.
    enabled Boolean
    Whether anomaly detection is enabled.
    id String
    The ID of the rule.
    name String
    The name of the rule.
    notificationChannels List<Double>
    IDs of the notification channels to send alerts to when the policy is fired.
    rules List<GetSecureOktaMlPolicyRule>
    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
    The type of the policy. Always set to <span pulumi-lang-nodejs=""oktaMachineLearning"" pulumi-lang-dotnet=""OktaMachineLearning"" pulumi-lang-go=""oktaMachineLearning"" pulumi-lang-python=""okta_machine_learning"" pulumi-lang-yaml=""oktaMachineLearning"" pulumi-lang-java=""oktaMachineLearning"">"okta_machine_learning".
    version Double
    The version of the rule.
    timeouts GetSecureOktaMlPolicyTimeouts
    description string
    Rule description.
    enabled boolean
    Whether anomaly detection is enabled.
    id string
    The ID of the rule.
    name string
    The name of the rule.
    notificationChannels number[]
    IDs of the notification channels to send alerts to when the policy is fired.
    rules GetSecureOktaMlPolicyRule[]
    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
    The type of the policy. Always set to <span pulumi-lang-nodejs=""oktaMachineLearning"" pulumi-lang-dotnet=""OktaMachineLearning"" pulumi-lang-go=""oktaMachineLearning"" pulumi-lang-python=""okta_machine_learning"" pulumi-lang-yaml=""oktaMachineLearning"" pulumi-lang-java=""oktaMachineLearning"">"okta_machine_learning".
    version number
    The version of the rule.
    timeouts GetSecureOktaMlPolicyTimeouts
    description str
    Rule description.
    enabled bool
    Whether anomaly detection is enabled.
    id str
    The ID of the rule.
    name str
    The name of the rule.
    notification_channels Sequence[float]
    IDs of the notification channels to send alerts to when the policy is fired.
    rules Sequence[GetSecureOktaMlPolicyRule]
    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
    The type of the policy. Always set to <span pulumi-lang-nodejs=""oktaMachineLearning"" pulumi-lang-dotnet=""OktaMachineLearning"" pulumi-lang-go=""oktaMachineLearning"" pulumi-lang-python=""okta_machine_learning"" pulumi-lang-yaml=""oktaMachineLearning"" pulumi-lang-java=""oktaMachineLearning"">"okta_machine_learning".
    version float
    The version of the rule.
    timeouts GetSecureOktaMlPolicyTimeouts
    description String
    Rule description.
    enabled Boolean
    Whether anomaly detection is enabled.
    id String
    The ID of the rule.
    name String
    The name of the rule.
    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
    The type of the policy. Always set to <span pulumi-lang-nodejs=""oktaMachineLearning"" pulumi-lang-dotnet=""OktaMachineLearning"" pulumi-lang-go=""oktaMachineLearning"" pulumi-lang-python=""okta_machine_learning"" pulumi-lang-yaml=""oktaMachineLearning"" pulumi-lang-java=""oktaMachineLearning"">"okta_machine_learning".
    version Number
    The version of the rule.
    timeouts Property Map

    Supporting Types

    GetSecureOktaMlPolicyRule

    AnomalousConsoleLogins List<GetSecureOktaMlPolicyRuleAnomalousConsoleLogin>
    Anomaly detection settings for logins.
    Description string
    Rule description.
    Id double
    The ID of the rule.
    Name string
    The name of the Secure Okta ML policy.
    Tags List<string>
    Tags associated with the rule.
    Version double
    The version of the rule.
    AnomalousConsoleLogins []GetSecureOktaMlPolicyRuleAnomalousConsoleLogin
    Anomaly detection settings for logins.
    Description string
    Rule description.
    Id float64
    The ID of the rule.
    Name string
    The name of the Secure Okta ML policy.
    Tags []string
    Tags associated with the rule.
    Version float64
    The version of the rule.
    anomalousConsoleLogins List<GetSecureOktaMlPolicyRuleAnomalousConsoleLogin>
    Anomaly detection settings for logins.
    description String
    Rule description.
    id Double
    The ID of the rule.
    name String
    The name of the Secure Okta ML policy.
    tags List<String>
    Tags associated with the rule.
    version Double
    The version of the rule.
    anomalousConsoleLogins GetSecureOktaMlPolicyRuleAnomalousConsoleLogin[]
    Anomaly detection settings for logins.
    description string
    Rule description.
    id number
    The ID of the rule.
    name string
    The name of the Secure Okta ML policy.
    tags string[]
    Tags associated with the rule.
    version number
    The version of the rule.
    anomalous_console_logins Sequence[GetSecureOktaMlPolicyRuleAnomalousConsoleLogin]
    Anomaly detection settings for logins.
    description str
    Rule description.
    id float
    The ID of the rule.
    name str
    The name of the Secure Okta ML policy.
    tags Sequence[str]
    Tags associated with the rule.
    version float
    The version of the rule.
    anomalousConsoleLogins List<Property Map>
    Anomaly detection settings for logins.
    description String
    Rule description.
    id Number
    The ID of the rule.
    name String
    The name of the Secure Okta ML policy.
    tags List<String>
    Tags associated with the rule.
    version Number
    The version of the rule.

    GetSecureOktaMlPolicyRuleAnomalousConsoleLogin

    Enabled bool
    Whether anomaly detection is enabled.
    Threshold double
    Confidence level threshold for triggering alerts. Valid values are: 1 (Default), 2 (High), 3 (Higher).
    Enabled bool
    Whether anomaly detection is enabled.
    Threshold float64
    Confidence level threshold for triggering alerts. Valid values are: 1 (Default), 2 (High), 3 (Higher).
    enabled Boolean
    Whether anomaly detection is enabled.
    threshold Double
    Confidence level threshold for triggering alerts. Valid values are: 1 (Default), 2 (High), 3 (Higher).
    enabled boolean
    Whether anomaly detection is enabled.
    threshold number
    Confidence level threshold for triggering alerts. Valid values are: 1 (Default), 2 (High), 3 (Higher).
    enabled bool
    Whether anomaly detection is enabled.
    threshold float
    Confidence level threshold for triggering alerts. Valid values are: 1 (Default), 2 (High), 3 (Higher).
    enabled Boolean
    Whether anomaly detection is enabled.
    threshold Number
    Confidence level threshold for triggering alerts. Valid values are: 1 (Default), 2 (High), 3 (Higher).

    GetSecureOktaMlPolicyTimeouts

    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 3.3.1 published on Friday, Dec 12, 2025 by sysdiglabs
      Meet Neo: Your AI Platform Teammate