1. Packages
  2. Sysdig Provider
  3. API Docs
  4. SecureVulnerabilityException
sysdig 1.56.1 published on Thursday, May 8, 2025 by sysdiglabs

sysdig.SecureVulnerabilityException

Explore with Pulumi AI

sysdig logo
sysdig 1.56.1 published on Thursday, May 8, 2025 by sysdiglabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    import * as time from "@pulumi/time";
    
    const sampleSecureVulnerabilityExceptionList = new sysdig.SecureVulnerabilityExceptionList("sampleSecureVulnerabilityExceptionList", {description: "TERRAFORM TEST %s"});
    const example = new time.index.Time_static("example", {rfc3339: "2025-01-01T00:00:00Z"});
    const sampleSecureVulnerabilityException = new sysdig.SecureVulnerabilityException("sampleSecureVulnerabilityException", {
        cve: "CVE-1234-1234",
        listId: sampleSecureVulnerabilityExceptionList.secureVulnerabilityExceptionListId,
        expirationDate: example.unix,
        notes: "Example notes on why this exception is created",
        enabled: false,
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    import pulumi_time as time
    
    sample_secure_vulnerability_exception_list = sysdig.SecureVulnerabilityExceptionList("sampleSecureVulnerabilityExceptionList", description="TERRAFORM TEST %s")
    example = time.index.Time_static("example", rfc3339=2025-01-01T00:00:00Z)
    sample_secure_vulnerability_exception = sysdig.SecureVulnerabilityException("sampleSecureVulnerabilityException",
        cve="CVE-1234-1234",
        list_id=sample_secure_vulnerability_exception_list.secure_vulnerability_exception_list_id,
        expiration_date=example["unix"],
        notes="Example notes on why this exception is created",
        enabled=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
    	"github.com/pulumi/pulumi-time/sdk/go/time"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		sampleSecureVulnerabilityExceptionList, err := sysdig.NewSecureVulnerabilityExceptionList(ctx, "sampleSecureVulnerabilityExceptionList", &sysdig.SecureVulnerabilityExceptionListArgs{
    			Description: pulumi.String("TERRAFORM TEST %s"),
    		})
    		if err != nil {
    			return err
    		}
    		example, err := time.NewTime_static(ctx, "example", &time.Time_staticArgs{
    			Rfc3339: "2025-01-01T00:00:00Z",
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sysdig.NewSecureVulnerabilityException(ctx, "sampleSecureVulnerabilityException", &sysdig.SecureVulnerabilityExceptionArgs{
    			Cve:            pulumi.String("CVE-1234-1234"),
    			ListId:         sampleSecureVulnerabilityExceptionList.SecureVulnerabilityExceptionListId,
    			ExpirationDate: example.Unix,
    			Notes:          pulumi.String("Example notes on why this exception is created"),
    			Enabled:        pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sysdig = Pulumi.Sysdig;
    using Time = Pulumi.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var sampleSecureVulnerabilityExceptionList = new Sysdig.SecureVulnerabilityExceptionList("sampleSecureVulnerabilityExceptionList", new()
        {
            Description = "TERRAFORM TEST %s",
        });
    
        var example = new Time.Index.Time_static("example", new()
        {
            Rfc3339 = "2025-01-01T00:00:00Z",
        });
    
        var sampleSecureVulnerabilityException = new Sysdig.SecureVulnerabilityException("sampleSecureVulnerabilityException", new()
        {
            Cve = "CVE-1234-1234",
            ListId = sampleSecureVulnerabilityExceptionList.SecureVulnerabilityExceptionListId,
            ExpirationDate = example.Unix,
            Notes = "Example notes on why this exception is created",
            Enabled = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SecureVulnerabilityExceptionList;
    import com.pulumi.sysdig.SecureVulnerabilityExceptionListArgs;
    import com.pulumi.time.time_static;
    import com.pulumi.time.Time_staticArgs;
    import com.pulumi.sysdig.SecureVulnerabilityException;
    import com.pulumi.sysdig.SecureVulnerabilityExceptionArgs;
    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) {
            var sampleSecureVulnerabilityExceptionList = new SecureVulnerabilityExceptionList("sampleSecureVulnerabilityExceptionList", SecureVulnerabilityExceptionListArgs.builder()
                .description("TERRAFORM TEST %s")
                .build());
    
            var example = new Time_static("example", Time_staticArgs.builder()
                .rfc3339("2025-01-01T00:00:00Z")
                .build());
    
            var sampleSecureVulnerabilityException = new SecureVulnerabilityException("sampleSecureVulnerabilityException", SecureVulnerabilityExceptionArgs.builder()
                .cve("CVE-1234-1234")
                .listId(sampleSecureVulnerabilityExceptionList.secureVulnerabilityExceptionListId())
                .expirationDate(example.unix())
                .notes("Example notes on why this exception is created")
                .enabled(false)
                .build());
    
        }
    }
    
    resources:
      sampleSecureVulnerabilityExceptionList:
        type: sysdig:SecureVulnerabilityExceptionList
        properties:
          description: TERRAFORM TEST %s
      example:
        type: time:time_static
        properties:
          rfc3339: 2025-01-01T00:00:00Z
      sampleSecureVulnerabilityException:
        type: sysdig:SecureVulnerabilityException
        properties:
          cve: CVE-1234-1234
          listId: ${sampleSecureVulnerabilityExceptionList.secureVulnerabilityExceptionListId}
          expirationDate: ${example.unix}
          notes: Example notes on why this exception is created
          enabled: false
    

    Create SecureVulnerabilityException Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecureVulnerabilityException(name: string, args: SecureVulnerabilityExceptionArgs, opts?: CustomResourceOptions);
    @overload
    def SecureVulnerabilityException(resource_name: str,
                                     args: SecureVulnerabilityExceptionArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecureVulnerabilityException(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     cve: Optional[str] = None,
                                     list_id: Optional[str] = None,
                                     enabled: Optional[bool] = None,
                                     expiration_date: Optional[float] = None,
                                     notes: Optional[str] = None,
                                     secure_vulnerability_exception_id: Optional[str] = None,
                                     timeouts: Optional[SecureVulnerabilityExceptionTimeoutsArgs] = None)
    func NewSecureVulnerabilityException(ctx *Context, name string, args SecureVulnerabilityExceptionArgs, opts ...ResourceOption) (*SecureVulnerabilityException, error)
    public SecureVulnerabilityException(string name, SecureVulnerabilityExceptionArgs args, CustomResourceOptions? opts = null)
    public SecureVulnerabilityException(String name, SecureVulnerabilityExceptionArgs args)
    public SecureVulnerabilityException(String name, SecureVulnerabilityExceptionArgs args, CustomResourceOptions options)
    
    type: sysdig:SecureVulnerabilityException
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecureVulnerabilityExceptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecureVulnerabilityExceptionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecureVulnerabilityExceptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecureVulnerabilityExceptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecureVulnerabilityExceptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var secureVulnerabilityExceptionResource = new Sysdig.SecureVulnerabilityException("secureVulnerabilityExceptionResource", new()
    {
        Cve = "string",
        ListId = "string",
        Enabled = false,
        ExpirationDate = 0,
        Notes = "string",
        SecureVulnerabilityExceptionId = "string",
        Timeouts = new Sysdig.Inputs.SecureVulnerabilityExceptionTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := sysdig.NewSecureVulnerabilityException(ctx, "secureVulnerabilityExceptionResource", &sysdig.SecureVulnerabilityExceptionArgs{
    	Cve:                            pulumi.String("string"),
    	ListId:                         pulumi.String("string"),
    	Enabled:                        pulumi.Bool(false),
    	ExpirationDate:                 pulumi.Float64(0),
    	Notes:                          pulumi.String("string"),
    	SecureVulnerabilityExceptionId: pulumi.String("string"),
    	Timeouts: &sysdig.SecureVulnerabilityExceptionTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var secureVulnerabilityExceptionResource = new SecureVulnerabilityException("secureVulnerabilityExceptionResource", SecureVulnerabilityExceptionArgs.builder()
        .cve("string")
        .listId("string")
        .enabled(false)
        .expirationDate(0.0)
        .notes("string")
        .secureVulnerabilityExceptionId("string")
        .timeouts(SecureVulnerabilityExceptionTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    secure_vulnerability_exception_resource = sysdig.SecureVulnerabilityException("secureVulnerabilityExceptionResource",
        cve="string",
        list_id="string",
        enabled=False,
        expiration_date=0,
        notes="string",
        secure_vulnerability_exception_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const secureVulnerabilityExceptionResource = new sysdig.SecureVulnerabilityException("secureVulnerabilityExceptionResource", {
        cve: "string",
        listId: "string",
        enabled: false,
        expirationDate: 0,
        notes: "string",
        secureVulnerabilityExceptionId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: sysdig:SecureVulnerabilityException
    properties:
        cve: string
        enabled: false
        expirationDate: 0
        listId: string
        notes: string
        secureVulnerabilityExceptionId: string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

    SecureVulnerabilityException Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecureVulnerabilityException resource accepts the following input properties:

    Cve string
    The CVE ID to make an exception to.
    ListId string
    The ID of the Vulnerability exception list to assign this exception to.
    Enabled bool
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    ExpirationDate double
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    Notes string
    Some context of why this vulnerability is being ignored.
    SecureVulnerabilityExceptionId string
    Timeouts SecureVulnerabilityExceptionTimeouts
    Cve string
    The CVE ID to make an exception to.
    ListId string
    The ID of the Vulnerability exception list to assign this exception to.
    Enabled bool
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    ExpirationDate float64
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    Notes string
    Some context of why this vulnerability is being ignored.
    SecureVulnerabilityExceptionId string
    Timeouts SecureVulnerabilityExceptionTimeoutsArgs
    cve String
    The CVE ID to make an exception to.
    listId String
    The ID of the Vulnerability exception list to assign this exception to.
    enabled Boolean
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    expirationDate Double
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    notes String
    Some context of why this vulnerability is being ignored.
    secureVulnerabilityExceptionId String
    timeouts SecureVulnerabilityExceptionTimeouts
    cve string
    The CVE ID to make an exception to.
    listId string
    The ID of the Vulnerability exception list to assign this exception to.
    enabled boolean
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    expirationDate number
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    notes string
    Some context of why this vulnerability is being ignored.
    secureVulnerabilityExceptionId string
    timeouts SecureVulnerabilityExceptionTimeouts
    cve str
    The CVE ID to make an exception to.
    list_id str
    The ID of the Vulnerability exception list to assign this exception to.
    enabled bool
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    expiration_date float
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    notes str
    Some context of why this vulnerability is being ignored.
    secure_vulnerability_exception_id str
    timeouts SecureVulnerabilityExceptionTimeoutsArgs
    cve String
    The CVE ID to make an exception to.
    listId String
    The ID of the Vulnerability exception list to assign this exception to.
    enabled Boolean
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    expirationDate Number
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    notes String
    Some context of why this vulnerability is being ignored.
    secureVulnerabilityExceptionId String
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecureVulnerabilityException resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SecureVulnerabilityException Resource

    Get an existing SecureVulnerabilityException resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecureVulnerabilityExceptionState, opts?: CustomResourceOptions): SecureVulnerabilityException
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cve: Optional[str] = None,
            enabled: Optional[bool] = None,
            expiration_date: Optional[float] = None,
            list_id: Optional[str] = None,
            notes: Optional[str] = None,
            secure_vulnerability_exception_id: Optional[str] = None,
            timeouts: Optional[SecureVulnerabilityExceptionTimeoutsArgs] = None) -> SecureVulnerabilityException
    func GetSecureVulnerabilityException(ctx *Context, name string, id IDInput, state *SecureVulnerabilityExceptionState, opts ...ResourceOption) (*SecureVulnerabilityException, error)
    public static SecureVulnerabilityException Get(string name, Input<string> id, SecureVulnerabilityExceptionState? state, CustomResourceOptions? opts = null)
    public static SecureVulnerabilityException get(String name, Output<String> id, SecureVulnerabilityExceptionState state, CustomResourceOptions options)
    resources:  _:    type: sysdig:SecureVulnerabilityException    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Cve string
    The CVE ID to make an exception to.
    Enabled bool
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    ExpirationDate double
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    ListId string
    The ID of the Vulnerability exception list to assign this exception to.
    Notes string
    Some context of why this vulnerability is being ignored.
    SecureVulnerabilityExceptionId string
    Timeouts SecureVulnerabilityExceptionTimeouts
    Cve string
    The CVE ID to make an exception to.
    Enabled bool
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    ExpirationDate float64
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    ListId string
    The ID of the Vulnerability exception list to assign this exception to.
    Notes string
    Some context of why this vulnerability is being ignored.
    SecureVulnerabilityExceptionId string
    Timeouts SecureVulnerabilityExceptionTimeoutsArgs
    cve String
    The CVE ID to make an exception to.
    enabled Boolean
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    expirationDate Double
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    listId String
    The ID of the Vulnerability exception list to assign this exception to.
    notes String
    Some context of why this vulnerability is being ignored.
    secureVulnerabilityExceptionId String
    timeouts SecureVulnerabilityExceptionTimeouts
    cve string
    The CVE ID to make an exception to.
    enabled boolean
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    expirationDate number
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    listId string
    The ID of the Vulnerability exception list to assign this exception to.
    notes string
    Some context of why this vulnerability is being ignored.
    secureVulnerabilityExceptionId string
    timeouts SecureVulnerabilityExceptionTimeouts
    cve str
    The CVE ID to make an exception to.
    enabled bool
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    expiration_date float
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    list_id str
    The ID of the Vulnerability exception list to assign this exception to.
    notes str
    Some context of why this vulnerability is being ignored.
    secure_vulnerability_exception_id str
    timeouts SecureVulnerabilityExceptionTimeoutsArgs
    cve String
    The CVE ID to make an exception to.
    enabled Boolean
    If this is false, the CVE exception will be ignored, use this if you don't want to delete the exception. Default: true.
    expirationDate Number
    The expiration date of the exception, useful if you want to ignore some vulnerability only for a period of time. The time specified is Unix timestamp, and must reference a date at 00:00:00 AM. See the example where the referenced date is the 1st of January 2025. Default: 0 (no expiration date).
    listId String
    The ID of the Vulnerability exception list to assign this exception to.
    notes String
    Some context of why this vulnerability is being ignored.
    secureVulnerabilityExceptionId String
    timeouts Property Map

    Supporting Types

    SecureVulnerabilityExceptionTimeouts, SecureVulnerabilityExceptionTimeoutsArgs

    Create string
    Delete string
    Read string
    Update string
    Create string
    Delete string
    Read string
    Update string
    create String
    delete String
    read String
    update String
    create string
    delete string
    read string
    update string
    create str
    delete str
    read str
    update str
    create String
    delete String
    read String
    update String

    Import

    Vulnerability exception can be imported using the ID of the exception list, and the ID of the exception separated by /, e.g.

    $ pulumi import sysdig:index/secureVulnerabilityException:SecureVulnerabilityException example vulnexception_1iTWe5s3qFivOW4jcj5X8nnG3hn/vulnexceptionitem_1n1HL7la7LyJFAzr0DEc0hVbnFU
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.1 published on Thursday, May 8, 2025 by sysdiglabs