sysdig 1.56.1 published on Thursday, May 8, 2025 by sysdiglabs
sysdig.getSecureMlPolicy
Explore with Pulumi AI
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
GetSecure Ml Policy Timeouts 
- Name string
- The name of the Secure managed policy.
- Id string
- The id for the policy.
- Timeouts
GetSecure Ml Policy Timeouts 
- name String
- The name of the Secure managed policy.
- id String
- The id for the policy.
- timeouts
GetSecure Ml Policy Timeouts 
- name string
- The name of the Secure managed policy.
- id string
- The id for the policy.
- timeouts
GetSecure Ml Policy Timeouts 
- name str
- The name of the Secure managed policy.
- id str
- The id for the policy.
- timeouts
GetSecure 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
- NotificationChannels List<double>
- IDs of the notification channels to send alerts to when the policy is fired.
- Rules
List<GetSecure 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
GetSecure 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
- NotificationChannels []float64
- IDs of the notification channels to send alerts to when the policy is fired.
- Rules
[]GetSecure 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
GetSecure 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
- notificationChannels List<Double>
- IDs of the notification channels to send alerts to when the policy is fired.
- rules
List<GetSecure 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
GetSecure 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
- notificationChannels number[]
- IDs of the notification channels to send alerts to when the policy is fired.
- rules
GetSecure 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
GetSecure 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[GetSecure 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
GetSecure 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
- 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<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
- CryptominingTriggers []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
- cryptominingTriggers 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
- cryptominingTriggers 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
- 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.
- 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.