1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectVirtualpatchProfileExemption
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.ObjectVirtualpatchProfileExemption

Explore with Pulumi AI

Exempt devices or rules.

This resource is a sub resource for variable exemption of resource fortimanager.ObjectVirtualpatchProfile. Conflict and overwrite may occur if use both of them.

Create ObjectVirtualpatchProfileExemption Resource

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

Constructor syntax

new ObjectVirtualpatchProfileExemption(name: string, args: ObjectVirtualpatchProfileExemptionArgs, opts?: CustomResourceOptions);
@overload
def ObjectVirtualpatchProfileExemption(resource_name: str,
                                       args: ObjectVirtualpatchProfileExemptionInitArgs,
                                       opts: Optional[ResourceOptions] = None)

@overload
def ObjectVirtualpatchProfileExemption(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       profile: Optional[str] = None,
                                       adom: Optional[str] = None,
                                       devices: Optional[Sequence[str]] = None,
                                       fosid: Optional[float] = None,
                                       object_virtualpatch_profile_exemption_id: Optional[str] = None,
                                       rules: Optional[Sequence[float]] = None,
                                       scopetype: Optional[str] = None,
                                       status: Optional[str] = None)
func NewObjectVirtualpatchProfileExemption(ctx *Context, name string, args ObjectVirtualpatchProfileExemptionArgs, opts ...ResourceOption) (*ObjectVirtualpatchProfileExemption, error)
public ObjectVirtualpatchProfileExemption(string name, ObjectVirtualpatchProfileExemptionArgs args, CustomResourceOptions? opts = null)
public ObjectVirtualpatchProfileExemption(String name, ObjectVirtualpatchProfileExemptionArgs args)
public ObjectVirtualpatchProfileExemption(String name, ObjectVirtualpatchProfileExemptionArgs args, CustomResourceOptions options)
type: fortimanager:ObjectVirtualpatchProfileExemption
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ObjectVirtualpatchProfileExemptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ObjectVirtualpatchProfileExemptionInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectVirtualpatchProfileExemptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectVirtualpatchProfileExemptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ObjectVirtualpatchProfileExemptionArgs
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 objectVirtualpatchProfileExemptionResource = new Fortimanager.ObjectVirtualpatchProfileExemption("objectVirtualpatchProfileExemptionResource", new()
{
    Profile = "string",
    Adom = "string",
    Devices = new[]
    {
        "string",
    },
    Fosid = 0,
    ObjectVirtualpatchProfileExemptionId = "string",
    Rules = new[]
    {
        0,
    },
    Scopetype = "string",
    Status = "string",
});
Copy
example, err := fortimanager.NewObjectVirtualpatchProfileExemption(ctx, "objectVirtualpatchProfileExemptionResource", &fortimanager.ObjectVirtualpatchProfileExemptionArgs{
Profile: pulumi.String("string"),
Adom: pulumi.String("string"),
Devices: pulumi.StringArray{
pulumi.String("string"),
},
Fosid: pulumi.Float64(0),
ObjectVirtualpatchProfileExemptionId: pulumi.String("string"),
Rules: pulumi.Float64Array{
pulumi.Float64(0),
},
Scopetype: pulumi.String("string"),
Status: pulumi.String("string"),
})
Copy
var objectVirtualpatchProfileExemptionResource = new ObjectVirtualpatchProfileExemption("objectVirtualpatchProfileExemptionResource", ObjectVirtualpatchProfileExemptionArgs.builder()
    .profile("string")
    .adom("string")
    .devices("string")
    .fosid(0)
    .objectVirtualpatchProfileExemptionId("string")
    .rules(0)
    .scopetype("string")
    .status("string")
    .build());
Copy
object_virtualpatch_profile_exemption_resource = fortimanager.ObjectVirtualpatchProfileExemption("objectVirtualpatchProfileExemptionResource",
    profile="string",
    adom="string",
    devices=["string"],
    fosid=0,
    object_virtualpatch_profile_exemption_id="string",
    rules=[0],
    scopetype="string",
    status="string")
Copy
const objectVirtualpatchProfileExemptionResource = new fortimanager.ObjectVirtualpatchProfileExemption("objectVirtualpatchProfileExemptionResource", {
    profile: "string",
    adom: "string",
    devices: ["string"],
    fosid: 0,
    objectVirtualpatchProfileExemptionId: "string",
    rules: [0],
    scopetype: "string",
    status: "string",
});
Copy
type: fortimanager:ObjectVirtualpatchProfileExemption
properties:
    adom: string
    devices:
        - string
    fosid: 0
    objectVirtualpatchProfileExemptionId: string
    profile: string
    rules:
        - 0
    scopetype: string
    status: string
Copy

ObjectVirtualpatchProfileExemption 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 ObjectVirtualpatchProfileExemption resource accepts the following input properties:

Profile This property is required. string
Profile.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Devices List<string>
Device MAC addresses.
Fosid double
IDs.
ObjectVirtualpatchProfileExemptionId string
an identifier for the resource with format {{fosid}}.
Rules List<double>
Patch signature rule IDs.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable exemption. Valid values: disable, enable.
Profile This property is required. string
Profile.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Devices []string
Device MAC addresses.
Fosid float64
IDs.
ObjectVirtualpatchProfileExemptionId string
an identifier for the resource with format {{fosid}}.
Rules []float64
Patch signature rule IDs.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable exemption. Valid values: disable, enable.
profile This property is required. String
Profile.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
devices List<String>
Device MAC addresses.
fosid Double
IDs.
objectVirtualpatchProfileExemptionId String
an identifier for the resource with format {{fosid}}.
rules List<Double>
Patch signature rule IDs.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable exemption. Valid values: disable, enable.
profile This property is required. string
Profile.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
devices string[]
Device MAC addresses.
fosid number
IDs.
objectVirtualpatchProfileExemptionId string
an identifier for the resource with format {{fosid}}.
rules number[]
Patch signature rule IDs.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status string
Enable/disable exemption. Valid values: disable, enable.
profile This property is required. str
Profile.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
devices Sequence[str]
Device MAC addresses.
fosid float
IDs.
object_virtualpatch_profile_exemption_id str
an identifier for the resource with format {{fosid}}.
rules Sequence[float]
Patch signature rule IDs.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status str
Enable/disable exemption. Valid values: disable, enable.
profile This property is required. String
Profile.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
devices List<String>
Device MAC addresses.
fosid Number
IDs.
objectVirtualpatchProfileExemptionId String
an identifier for the resource with format {{fosid}}.
rules List<Number>
Patch signature rule IDs.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable exemption. Valid values: disable, enable.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObjectVirtualpatchProfileExemption 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 ObjectVirtualpatchProfileExemption Resource

Get an existing ObjectVirtualpatchProfileExemption 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?: ObjectVirtualpatchProfileExemptionState, opts?: CustomResourceOptions): ObjectVirtualpatchProfileExemption
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        devices: Optional[Sequence[str]] = None,
        fosid: Optional[float] = None,
        object_virtualpatch_profile_exemption_id: Optional[str] = None,
        profile: Optional[str] = None,
        rules: Optional[Sequence[float]] = None,
        scopetype: Optional[str] = None,
        status: Optional[str] = None) -> ObjectVirtualpatchProfileExemption
func GetObjectVirtualpatchProfileExemption(ctx *Context, name string, id IDInput, state *ObjectVirtualpatchProfileExemptionState, opts ...ResourceOption) (*ObjectVirtualpatchProfileExemption, error)
public static ObjectVirtualpatchProfileExemption Get(string name, Input<string> id, ObjectVirtualpatchProfileExemptionState? state, CustomResourceOptions? opts = null)
public static ObjectVirtualpatchProfileExemption get(String name, Output<String> id, ObjectVirtualpatchProfileExemptionState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectVirtualpatchProfileExemption    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Devices List<string>
Device MAC addresses.
Fosid double
IDs.
ObjectVirtualpatchProfileExemptionId string
an identifier for the resource with format {{fosid}}.
Profile string
Profile.
Rules List<double>
Patch signature rule IDs.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable exemption. Valid values: disable, enable.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Devices []string
Device MAC addresses.
Fosid float64
IDs.
ObjectVirtualpatchProfileExemptionId string
an identifier for the resource with format {{fosid}}.
Profile string
Profile.
Rules []float64
Patch signature rule IDs.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Status string
Enable/disable exemption. Valid values: disable, enable.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
devices List<String>
Device MAC addresses.
fosid Double
IDs.
objectVirtualpatchProfileExemptionId String
an identifier for the resource with format {{fosid}}.
profile String
Profile.
rules List<Double>
Patch signature rule IDs.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable exemption. Valid values: disable, enable.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
devices string[]
Device MAC addresses.
fosid number
IDs.
objectVirtualpatchProfileExemptionId string
an identifier for the resource with format {{fosid}}.
profile string
Profile.
rules number[]
Patch signature rule IDs.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status string
Enable/disable exemption. Valid values: disable, enable.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
devices Sequence[str]
Device MAC addresses.
fosid float
IDs.
object_virtualpatch_profile_exemption_id str
an identifier for the resource with format {{fosid}}.
profile str
Profile.
rules Sequence[float]
Patch signature rule IDs.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status str
Enable/disable exemption. Valid values: disable, enable.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
devices List<String>
Device MAC addresses.
fosid Number
IDs.
objectVirtualpatchProfileExemptionId String
an identifier for the resource with format {{fosid}}.
profile String
Profile.
rules List<Number>
Patch signature rule IDs.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
status String
Enable/disable exemption. Valid values: disable, enable.

Import

ObjectVirtualPatch ProfileExemption can be imported using any of these accepted formats:

Set import_options = [“profile=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectVirtualpatchProfileExemption:ObjectVirtualpatchProfileExemption labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

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

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.