1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectAntivirusProfileNacquar
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.ObjectAntivirusProfileNacquar

Explore with Pulumi AI

Configure AntiVirus quarantine settings.

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trnameObjectAntivirusProfile = new fortimanager.ObjectAntivirusProfile("trnameObjectAntivirusProfile", {});
const trnameObjectAntivirusProfileNacquar = new fortimanager.ObjectAntivirusProfileNacquar("trnameObjectAntivirusProfileNacquar", {
    infected: "none",
    log: "enable",
    profile: trnameObjectAntivirusProfile.name,
}, {
    dependsOn: [trnameObjectAntivirusProfile],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_antivirus_profile = fortimanager.ObjectAntivirusProfile("trnameObjectAntivirusProfile")
trname_object_antivirus_profile_nacquar = fortimanager.ObjectAntivirusProfileNacquar("trnameObjectAntivirusProfileNacquar",
    infected="none",
    log="enable",
    profile=trname_object_antivirus_profile.name,
    opts = pulumi.ResourceOptions(depends_on=[trname_object_antivirus_profile]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		trnameObjectAntivirusProfile, err := fortimanager.NewObjectAntivirusProfile(ctx, "trnameObjectAntivirusProfile", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectAntivirusProfileNacquar(ctx, "trnameObjectAntivirusProfileNacquar", &fortimanager.ObjectAntivirusProfileNacquarArgs{
			Infected: pulumi.String("none"),
			Log:      pulumi.String("enable"),
			Profile:  trnameObjectAntivirusProfile.Name,
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectAntivirusProfile,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trnameObjectAntivirusProfile = new Fortimanager.ObjectAntivirusProfile("trnameObjectAntivirusProfile");

    var trnameObjectAntivirusProfileNacquar = new Fortimanager.ObjectAntivirusProfileNacquar("trnameObjectAntivirusProfileNacquar", new()
    {
        Infected = "none",
        Log = "enable",
        Profile = trnameObjectAntivirusProfile.Name,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectAntivirusProfile,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectAntivirusProfile;
import com.pulumi.fortimanager.ObjectAntivirusProfileNacquar;
import com.pulumi.fortimanager.ObjectAntivirusProfileNacquarArgs;
import com.pulumi.resources.CustomResourceOptions;
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 trnameObjectAntivirusProfile = new ObjectAntivirusProfile("trnameObjectAntivirusProfile");

        var trnameObjectAntivirusProfileNacquar = new ObjectAntivirusProfileNacquar("trnameObjectAntivirusProfileNacquar", ObjectAntivirusProfileNacquarArgs.builder()
            .infected("none")
            .log("enable")
            .profile(trnameObjectAntivirusProfile.name())
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectAntivirusProfile)
                .build());

    }
}
Copy
resources:
  trnameObjectAntivirusProfileNacquar:
    type: fortimanager:ObjectAntivirusProfileNacquar
    properties:
      infected: none
      log: enable
      profile: ${trnameObjectAntivirusProfile.name}
    options:
      dependsOn:
        - ${trnameObjectAntivirusProfile}
  trnameObjectAntivirusProfile:
    type: fortimanager:ObjectAntivirusProfile
Copy

Create ObjectAntivirusProfileNacquar Resource

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

Constructor syntax

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

@overload
def ObjectAntivirusProfileNacquar(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  profile: Optional[str] = None,
                                  adom: Optional[str] = None,
                                  expiry: Optional[str] = None,
                                  infected: Optional[str] = None,
                                  log: Optional[str] = None,
                                  object_antivirus_profile_nacquar_id: Optional[str] = None,
                                  scopetype: Optional[str] = None)
func NewObjectAntivirusProfileNacquar(ctx *Context, name string, args ObjectAntivirusProfileNacquarArgs, opts ...ResourceOption) (*ObjectAntivirusProfileNacquar, error)
public ObjectAntivirusProfileNacquar(string name, ObjectAntivirusProfileNacquarArgs args, CustomResourceOptions? opts = null)
public ObjectAntivirusProfileNacquar(String name, ObjectAntivirusProfileNacquarArgs args)
public ObjectAntivirusProfileNacquar(String name, ObjectAntivirusProfileNacquarArgs args, CustomResourceOptions options)
type: fortimanager:ObjectAntivirusProfileNacquar
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. ObjectAntivirusProfileNacquarArgs
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. ObjectAntivirusProfileNacquarArgs
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. ObjectAntivirusProfileNacquarArgs
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. ObjectAntivirusProfileNacquarArgs
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. ObjectAntivirusProfileNacquarArgs
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 objectAntivirusProfileNacquarResource = new Fortimanager.ObjectAntivirusProfileNacquar("objectAntivirusProfileNacquarResource", new()
{
    Profile = "string",
    Adom = "string",
    Expiry = "string",
    Infected = "string",
    Log = "string",
    ObjectAntivirusProfileNacquarId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectAntivirusProfileNacquar(ctx, "objectAntivirusProfileNacquarResource", &fortimanager.ObjectAntivirusProfileNacquarArgs{
Profile: pulumi.String("string"),
Adom: pulumi.String("string"),
Expiry: pulumi.String("string"),
Infected: pulumi.String("string"),
Log: pulumi.String("string"),
ObjectAntivirusProfileNacquarId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
Copy
var objectAntivirusProfileNacquarResource = new ObjectAntivirusProfileNacquar("objectAntivirusProfileNacquarResource", ObjectAntivirusProfileNacquarArgs.builder()
    .profile("string")
    .adom("string")
    .expiry("string")
    .infected("string")
    .log("string")
    .objectAntivirusProfileNacquarId("string")
    .scopetype("string")
    .build());
Copy
object_antivirus_profile_nacquar_resource = fortimanager.ObjectAntivirusProfileNacquar("objectAntivirusProfileNacquarResource",
    profile="string",
    adom="string",
    expiry="string",
    infected="string",
    log="string",
    object_antivirus_profile_nacquar_id="string",
    scopetype="string")
Copy
const objectAntivirusProfileNacquarResource = new fortimanager.ObjectAntivirusProfileNacquar("objectAntivirusProfileNacquarResource", {
    profile: "string",
    adom: "string",
    expiry: "string",
    infected: "string",
    log: "string",
    objectAntivirusProfileNacquarId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectAntivirusProfileNacquar
properties:
    adom: string
    expiry: string
    infected: string
    log: string
    objectAntivirusProfileNacquarId: string
    profile: string
    scopetype: string
Copy

ObjectAntivirusProfileNacquar 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 ObjectAntivirusProfileNacquar 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.
Expiry string
Duration of quarantine.
Infected string
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
Log string
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
ObjectAntivirusProfileNacquarId string
an identifier for the resource.
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.
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.
Expiry string
Duration of quarantine.
Infected string
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
Log string
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
ObjectAntivirusProfileNacquarId string
an identifier for the resource.
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.
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.
expiry String
Duration of quarantine.
infected String
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
log String
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
objectAntivirusProfileNacquarId String
an identifier for the resource.
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.
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.
expiry string
Duration of quarantine.
infected string
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
log string
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
objectAntivirusProfileNacquarId string
an identifier for the resource.
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.
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.
expiry str
Duration of quarantine.
infected str
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
log str
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
object_antivirus_profile_nacquar_id str
an identifier for the resource.
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.
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.
expiry String
Duration of quarantine.
infected String
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
log String
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
objectAntivirusProfileNacquarId String
an identifier for the resource.
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.

Outputs

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

Get an existing ObjectAntivirusProfileNacquar 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?: ObjectAntivirusProfileNacquarState, opts?: CustomResourceOptions): ObjectAntivirusProfileNacquar
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        expiry: Optional[str] = None,
        infected: Optional[str] = None,
        log: Optional[str] = None,
        object_antivirus_profile_nacquar_id: Optional[str] = None,
        profile: Optional[str] = None,
        scopetype: Optional[str] = None) -> ObjectAntivirusProfileNacquar
func GetObjectAntivirusProfileNacquar(ctx *Context, name string, id IDInput, state *ObjectAntivirusProfileNacquarState, opts ...ResourceOption) (*ObjectAntivirusProfileNacquar, error)
public static ObjectAntivirusProfileNacquar Get(string name, Input<string> id, ObjectAntivirusProfileNacquarState? state, CustomResourceOptions? opts = null)
public static ObjectAntivirusProfileNacquar get(String name, Output<String> id, ObjectAntivirusProfileNacquarState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectAntivirusProfileNacquar    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.
Expiry string
Duration of quarantine.
Infected string
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
Log string
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
ObjectAntivirusProfileNacquarId string
an identifier for the resource.
Profile string
Profile.
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.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Expiry string
Duration of quarantine.
Infected string
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
Log string
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
ObjectAntivirusProfileNacquarId string
an identifier for the resource.
Profile string
Profile.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
expiry String
Duration of quarantine.
infected String
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
log String
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
objectAntivirusProfileNacquarId String
an identifier for the resource.
profile String
Profile.
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.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
expiry string
Duration of quarantine.
infected string
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
log string
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
objectAntivirusProfileNacquarId string
an identifier for the resource.
profile string
Profile.
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.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
expiry str
Duration of quarantine.
infected str
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
log str
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
object_antivirus_profile_nacquar_id str
an identifier for the resource.
profile str
Profile.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
expiry String
Duration of quarantine.
infected String
Enable/Disable quarantining infected hosts to the banned user list. Valid values: none, quar-src-ip, quar-interface.
log String
Enable/disable AntiVirus quarantine logging. Valid values: disable, enable.
objectAntivirusProfileNacquarId String
an identifier for the resource.
profile String
Profile.
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.

Import

ObjectAntivirus ProfileNacQuar 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/objectAntivirusProfileNacquar:ObjectAntivirusProfileNacquar labelname ObjectAntivirusProfileNacQuar
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.