sysdig 1.53.0 published on Thursday, Apr 17, 2025 by sysdiglabs
sysdig.getSecureMlPolicy
Explore with Pulumi AI
sysdig 1.53.0 published on Thursday, Apr 17, 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 dictionaryThe following arguments are supported:
- Name string
 - The name of the Secure managed policy.
 - Id string
 - The id for the policy.
 - Timeouts
Get
Secure Ml Policy Timeouts  
- Name string
 - The name of the Secure managed policy.
 - Id string
 - The id for the policy.
 - Timeouts
Get
Secure Ml Policy Timeouts  
- name String
 - The name of the Secure managed policy.
 - id String
 - The id for the policy.
 - timeouts
Get
Secure Ml Policy Timeouts  
- name string
 - The name of the Secure managed policy.
 - id string
 - The id for the policy.
 - timeouts
Get
Secure Ml Policy Timeouts  
- name str
 - The name of the Secure managed policy.
 - id str
 - The id for the policy.
 - timeouts
Get
Secure Ml Policy Timeouts  
- 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
 - Notification
Channels List<double> - IDs of the notification channels to send alerts to when the policy is fired.
 - Rules
List<Get
Secure Ml 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 Ml Policy Timeouts  
- Description string
 - (Required) Rule description.
 - Enabled bool
 - Whether the policy is enabled or not.
 - Id string
 - The id for the policy.
 - Name string
 - Notification
Channels []float64 - IDs of the notification channels to send alerts to when the policy is fired.
 - Rules
[]Get
Secure Ml 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 Ml Policy Timeouts  
- description String
 - (Required) Rule description.
 - enabled Boolean
 - Whether the policy is enabled or not.
 - id String
 - The id for the policy.
 - name String
 - notification
Channels List<Double> - IDs of the notification channels to send alerts to when the policy is fired.
 - rules
List<Get
Secure Ml 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 Ml Policy Timeouts  
- description string
 - (Required) Rule description.
 - enabled boolean
 - Whether the policy is enabled or not.
 - id string
 - The id for the policy.
 - name string
 - notification
Channels number[] - IDs of the notification channels to send alerts to when the policy is fired.
 - rules
Get
Secure Ml 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 Ml Policy Timeouts  
- 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[Get
Secure Ml 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 Ml Policy Timeouts  
- description String
 - (Required) Rule description.
 - enabled Boolean
 - Whether the policy is enabled or not.
 - id String
 - The id for the policy.
 - name String
 - 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
GetSecureMlPolicyRule    
- Cryptomining
Triggers List<GetSecure Ml Policy Rule Cryptomining Trigger>  - (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.
 - List<string>
 - Version double
 
- Cryptomining
Triggers []GetSecure Ml Policy Rule Cryptomining Trigger  - (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.
 - []string
 - Version float64
 
- cryptomining
Triggers List<GetSecure Ml Policy Rule Cryptomining Trigger>  - (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.
 - List<String>
 - version Double
 
- cryptomining
Triggers GetSecure Ml Policy Rule Cryptomining Trigger[]  - (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.
 - string[]
 - version number
 
- cryptomining_
triggers Sequence[GetSecure Ml Policy Rule Cryptomining Trigger]  - (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.
 - Sequence[str]
 - version float
 
- cryptomining
Triggers 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.
 - List<String>
 - version Number
 
GetSecureMlPolicyRuleCryptominingTrigger      
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 
sysdigTerraform Provider. 
sysdig 1.53.0 published on Thursday, Apr 17, 2025 by sysdiglabs