sysdig.SecureVulnerabilityException
Explore with Pulumi AI
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.
- List
Id 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.
- Expiration
Date 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.
- Secure
Vulnerability stringException Id - Timeouts
Secure
Vulnerability Exception Timeouts
- Cve string
- The CVE ID to make an exception to.
- List
Id 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.
- Expiration
Date 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.
- Secure
Vulnerability stringException Id - Timeouts
Secure
Vulnerability Exception Timeouts Args
- cve String
- The CVE ID to make an exception to.
- list
Id 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.
- expiration
Date 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.
- secure
Vulnerability StringException Id - timeouts
Secure
Vulnerability Exception Timeouts
- cve string
- The CVE ID to make an exception to.
- list
Id 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.
- expiration
Date 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.
- secure
Vulnerability stringException Id - timeouts
Secure
Vulnerability Exception Timeouts
- 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_ strexception_ id - timeouts
Secure
Vulnerability Exception Timeouts Args
- cve String
- The CVE ID to make an exception to.
- list
Id 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.
- expiration
Date 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.
- secure
Vulnerability StringException Id - 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.
- 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.
- Expiration
Date 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).
- List
Id string - The ID of the Vulnerability exception list to assign this exception to.
- Notes string
- Some context of why this vulnerability is being ignored.
- Secure
Vulnerability stringException Id - Timeouts
Secure
Vulnerability Exception Timeouts
- 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.
- Expiration
Date 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).
- List
Id string - The ID of the Vulnerability exception list to assign this exception to.
- Notes string
- Some context of why this vulnerability is being ignored.
- Secure
Vulnerability stringException Id - Timeouts
Secure
Vulnerability Exception Timeouts Args
- 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.
- expiration
Date 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).
- list
Id String - The ID of the Vulnerability exception list to assign this exception to.
- notes String
- Some context of why this vulnerability is being ignored.
- secure
Vulnerability StringException Id - timeouts
Secure
Vulnerability Exception Timeouts
- 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.
- expiration
Date 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).
- list
Id string - The ID of the Vulnerability exception list to assign this exception to.
- notes string
- Some context of why this vulnerability is being ignored.
- secure
Vulnerability stringException Id - timeouts
Secure
Vulnerability Exception Timeouts
- 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_ strexception_ id - timeouts
Secure
Vulnerability Exception Timeouts Args
- 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.
- expiration
Date 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).
- list
Id String - The ID of the Vulnerability exception list to assign this exception to.
- notes String
- Some context of why this vulnerability is being ignored.
- secure
Vulnerability StringException Id - timeouts Property Map
Supporting Types
SecureVulnerabilityExceptionTimeouts, SecureVulnerabilityExceptionTimeoutsArgs
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.