published on Saturday, Jul 11, 2026 by Pulumi
published on Saturday, Jul 11, 2026 by Pulumi
This resource manages the Org Antivirus Profile.
An Antivirus Profile is used to configure the Antivirus feature on SRX devices. It specifies which content the Antivirus should analyse and which content should be ignored.
The Antivirus profiles can be used within the following resources:
mist_org_servicepolicy.antivirusmist_org_gatewaytemplate.service_policies.antivirusmist_org_deviceprofile_gateway.service_policies.antivirusmist_device_gateway.service_policies.antivirus
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";
const avprofileOne = new junipermist.org.Avprofile("avprofile_one", {
orgId: terraformTest.id,
fallbackAction: "block",
maxFilesize: 5000,
mimeWhitelists: ["image/png"],
name: "avprofile_one",
protocols: [
"ftp",
"http",
"imap",
"pop3",
"smtp",
],
urlWhitelists: ["www.google.fr"],
});
import pulumi
import pulumi_juniper_mist as junipermist
avprofile_one = junipermist.org.Avprofile("avprofile_one",
org_id=terraform_test["id"],
fallback_action="block",
max_filesize=5000,
mime_whitelists=["image/png"],
name="avprofile_one",
protocols=[
"ftp",
"http",
"imap",
"pop3",
"smtp",
],
url_whitelists=["www.google.fr"])
package main
import (
"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/org"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := org.NewAvprofile(ctx, "avprofile_one", &org.AvprofileArgs{
OrgId: pulumi.Any(terraformTest.Id),
FallbackAction: pulumi.String("block"),
MaxFilesize: pulumi.Int(5000),
MimeWhitelists: pulumi.StringArray{
pulumi.String("image/png"),
},
Name: pulumi.String("avprofile_one"),
Protocols: pulumi.StringArray{
pulumi.String("ftp"),
pulumi.String("http"),
pulumi.String("imap"),
pulumi.String("pop3"),
pulumi.String("smtp"),
},
UrlWhitelists: pulumi.StringArray{
pulumi.String("www.google.fr"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using JuniperMist = Pulumi.JuniperMist;
return await Deployment.RunAsync(() =>
{
var avprofileOne = new JuniperMist.Org.Avprofile("avprofile_one", new()
{
OrgId = terraformTest.Id,
FallbackAction = "block",
MaxFilesize = 5000,
MimeWhitelists = new[]
{
"image/png",
},
Name = "avprofile_one",
Protocols = new[]
{
"ftp",
"http",
"imap",
"pop3",
"smtp",
},
UrlWhitelists = new[]
{
"www.google.fr",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.org.Avprofile;
import com.pulumi.junipermist.org.AvprofileArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 avprofileOne = new Avprofile("avprofileOne", AvprofileArgs.builder()
.orgId(terraformTest.id())
.fallbackAction("block")
.maxFilesize(5000)
.mimeWhitelists("image/png")
.name("avprofile_one")
.protocols(
"ftp",
"http",
"imap",
"pop3",
"smtp")
.urlWhitelists("www.google.fr")
.build());
}
}
resources:
avprofileOne:
type: junipermist:org:Avprofile
name: avprofile_one
properties:
orgId: ${terraformTest.id}
fallbackAction: block
maxFilesize: 5000
mimeWhitelists:
- image/png
name: avprofile_one
protocols:
- ftp
- http
- imap
- pop3
- smtp
urlWhitelists:
- www.google.fr
pulumi {
required_providers {
junipermist = {
source = "pulumi/junipermist"
}
}
}
resource "junipermist_org_avprofile" "avprofile_one" {
org_id = terraformTest.id
fallback_action = "block"
max_filesize = 5000
mime_whitelists = ["image/png"]
name = "avprofile_one"
protocols = ["ftp", "http", "imap", "pop3", "smtp"]
url_whitelists = ["www.google.fr"]
}
Create Avprofile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Avprofile(name: string, args: AvprofileArgs, opts?: CustomResourceOptions);@overload
def Avprofile(resource_name: str,
args: AvprofileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Avprofile(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_id: Optional[str] = None,
protocols: Optional[Sequence[str]] = None,
fallback_action: Optional[str] = None,
max_filesize: Optional[int] = None,
mime_whitelists: Optional[Sequence[str]] = None,
name: Optional[str] = None,
url_whitelists: Optional[Sequence[str]] = None)func NewAvprofile(ctx *Context, name string, args AvprofileArgs, opts ...ResourceOption) (*Avprofile, error)public Avprofile(string name, AvprofileArgs args, CustomResourceOptions? opts = null)
public Avprofile(String name, AvprofileArgs args)
public Avprofile(String name, AvprofileArgs args, CustomResourceOptions options)
type: junipermist:org:Avprofile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "junipermist_org_avprofile" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AvprofileArgs
- 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 AvprofileArgs
- 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 AvprofileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AvprofileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AvprofileArgs
- 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 avprofileResource = new JuniperMist.Org.Avprofile("avprofileResource", new()
{
OrgId = "string",
Protocols = new[]
{
"string",
},
FallbackAction = "string",
MaxFilesize = 0,
MimeWhitelists = new[]
{
"string",
},
Name = "string",
UrlWhitelists = new[]
{
"string",
},
});
example, err := org.NewAvprofile(ctx, "avprofileResource", &org.AvprofileArgs{
OrgId: pulumi.String("string"),
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
FallbackAction: pulumi.String("string"),
MaxFilesize: pulumi.Int(0),
MimeWhitelists: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
UrlWhitelists: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "junipermist_org_avprofile" "avprofileResource" {
lifecycle {
create_before_destroy = true
}
org_id = "string"
protocols = ["string"]
fallback_action = "string"
max_filesize = 0
mime_whitelists = ["string"]
name = "string"
url_whitelists = ["string"]
}
var avprofileResource = new Avprofile("avprofileResource", AvprofileArgs.builder()
.orgId("string")
.protocols("string")
.fallbackAction("string")
.maxFilesize(0)
.mimeWhitelists("string")
.name("string")
.urlWhitelists("string")
.build());
avprofile_resource = junipermist.org.Avprofile("avprofileResource",
org_id="string",
protocols=["string"],
fallback_action="string",
max_filesize=0,
mime_whitelists=["string"],
name="string",
url_whitelists=["string"])
const avprofileResource = new junipermist.org.Avprofile("avprofileResource", {
orgId: "string",
protocols: ["string"],
fallbackAction: "string",
maxFilesize: 0,
mimeWhitelists: ["string"],
name: "string",
urlWhitelists: ["string"],
});
type: junipermist:org:Avprofile
properties:
fallbackAction: string
maxFilesize: 0
mimeWhitelists:
- string
name: string
orgId: string
protocols:
- string
urlWhitelists:
- string
Avprofile 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 Avprofile resource accepts the following input properties:
- Org
Id string - Owning organization identifier for this antivirus profile
- Protocols List<string>
- Network protocols inspected by this antivirus profile
- Fallback
Action string - Action to take when antivirus scanning cannot complete
- Max
Filesize int - Maximum file size scanned by this antivirus profile, in KB
- Mime
Whitelists List<string> - Content MIME types exempted from antivirus scanning
- Name string
- Display name of the antivirus profile
- Url
Whitelists List<string> - Allowed URL entries exempted from antivirus scanning
- Org
Id string - Owning organization identifier for this antivirus profile
- Protocols []string
- Network protocols inspected by this antivirus profile
- Fallback
Action string - Action to take when antivirus scanning cannot complete
- Max
Filesize int - Maximum file size scanned by this antivirus profile, in KB
- Mime
Whitelists []string - Content MIME types exempted from antivirus scanning
- Name string
- Display name of the antivirus profile
- Url
Whitelists []string - Allowed URL entries exempted from antivirus scanning
- org_
id string - Owning organization identifier for this antivirus profile
- protocols list(string)
- Network protocols inspected by this antivirus profile
- fallback_
action string - Action to take when antivirus scanning cannot complete
- max_
filesize number - Maximum file size scanned by this antivirus profile, in KB
- mime_
whitelists list(string) - Content MIME types exempted from antivirus scanning
- name string
- Display name of the antivirus profile
- url_
whitelists list(string) - Allowed URL entries exempted from antivirus scanning
- org
Id String - Owning organization identifier for this antivirus profile
- protocols List<String>
- Network protocols inspected by this antivirus profile
- fallback
Action String - Action to take when antivirus scanning cannot complete
- max
Filesize Integer - Maximum file size scanned by this antivirus profile, in KB
- mime
Whitelists List<String> - Content MIME types exempted from antivirus scanning
- name String
- Display name of the antivirus profile
- url
Whitelists List<String> - Allowed URL entries exempted from antivirus scanning
- org
Id string - Owning organization identifier for this antivirus profile
- protocols string[]
- Network protocols inspected by this antivirus profile
- fallback
Action string - Action to take when antivirus scanning cannot complete
- max
Filesize number - Maximum file size scanned by this antivirus profile, in KB
- mime
Whitelists string[] - Content MIME types exempted from antivirus scanning
- name string
- Display name of the antivirus profile
- url
Whitelists string[] - Allowed URL entries exempted from antivirus scanning
- org_
id str - Owning organization identifier for this antivirus profile
- protocols Sequence[str]
- Network protocols inspected by this antivirus profile
- fallback_
action str - Action to take when antivirus scanning cannot complete
- max_
filesize int - Maximum file size scanned by this antivirus profile, in KB
- mime_
whitelists Sequence[str] - Content MIME types exempted from antivirus scanning
- name str
- Display name of the antivirus profile
- url_
whitelists Sequence[str] - Allowed URL entries exempted from antivirus scanning
- org
Id String - Owning organization identifier for this antivirus profile
- protocols List<String>
- Network protocols inspected by this antivirus profile
- fallback
Action String - Action to take when antivirus scanning cannot complete
- max
Filesize Number - Maximum file size scanned by this antivirus profile, in KB
- mime
Whitelists List<String> - Content MIME types exempted from antivirus scanning
- name String
- Display name of the antivirus profile
- url
Whitelists List<String> - Allowed URL entries exempted from antivirus scanning
Outputs
All input properties are implicitly available as output properties. Additionally, the Avprofile 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 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 Avprofile Resource
Get an existing Avprofile 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?: AvprofileState, opts?: CustomResourceOptions): Avprofile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
fallback_action: Optional[str] = None,
max_filesize: Optional[int] = None,
mime_whitelists: Optional[Sequence[str]] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
protocols: Optional[Sequence[str]] = None,
url_whitelists: Optional[Sequence[str]] = None) -> Avprofilefunc GetAvprofile(ctx *Context, name string, id IDInput, state *AvprofileState, opts ...ResourceOption) (*Avprofile, error)public static Avprofile Get(string name, Input<string> id, AvprofileState? state, CustomResourceOptions? opts = null)public static Avprofile get(String name, Output<String> id, AvprofileState state, CustomResourceOptions options)resources: _: type: junipermist:org:Avprofile get: id: ${id}import {
to = junipermist_org_avprofile.example
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.
- Fallback
Action string - Action to take when antivirus scanning cannot complete
- Max
Filesize int - Maximum file size scanned by this antivirus profile, in KB
- Mime
Whitelists List<string> - Content MIME types exempted from antivirus scanning
- Name string
- Display name of the antivirus profile
- Org
Id string - Owning organization identifier for this antivirus profile
- Protocols List<string>
- Network protocols inspected by this antivirus profile
- Url
Whitelists List<string> - Allowed URL entries exempted from antivirus scanning
- Fallback
Action string - Action to take when antivirus scanning cannot complete
- Max
Filesize int - Maximum file size scanned by this antivirus profile, in KB
- Mime
Whitelists []string - Content MIME types exempted from antivirus scanning
- Name string
- Display name of the antivirus profile
- Org
Id string - Owning organization identifier for this antivirus profile
- Protocols []string
- Network protocols inspected by this antivirus profile
- Url
Whitelists []string - Allowed URL entries exempted from antivirus scanning
- fallback_
action string - Action to take when antivirus scanning cannot complete
- max_
filesize number - Maximum file size scanned by this antivirus profile, in KB
- mime_
whitelists list(string) - Content MIME types exempted from antivirus scanning
- name string
- Display name of the antivirus profile
- org_
id string - Owning organization identifier for this antivirus profile
- protocols list(string)
- Network protocols inspected by this antivirus profile
- url_
whitelists list(string) - Allowed URL entries exempted from antivirus scanning
- fallback
Action String - Action to take when antivirus scanning cannot complete
- max
Filesize Integer - Maximum file size scanned by this antivirus profile, in KB
- mime
Whitelists List<String> - Content MIME types exempted from antivirus scanning
- name String
- Display name of the antivirus profile
- org
Id String - Owning organization identifier for this antivirus profile
- protocols List<String>
- Network protocols inspected by this antivirus profile
- url
Whitelists List<String> - Allowed URL entries exempted from antivirus scanning
- fallback
Action string - Action to take when antivirus scanning cannot complete
- max
Filesize number - Maximum file size scanned by this antivirus profile, in KB
- mime
Whitelists string[] - Content MIME types exempted from antivirus scanning
- name string
- Display name of the antivirus profile
- org
Id string - Owning organization identifier for this antivirus profile
- protocols string[]
- Network protocols inspected by this antivirus profile
- url
Whitelists string[] - Allowed URL entries exempted from antivirus scanning
- fallback_
action str - Action to take when antivirus scanning cannot complete
- max_
filesize int - Maximum file size scanned by this antivirus profile, in KB
- mime_
whitelists Sequence[str] - Content MIME types exempted from antivirus scanning
- name str
- Display name of the antivirus profile
- org_
id str - Owning organization identifier for this antivirus profile
- protocols Sequence[str]
- Network protocols inspected by this antivirus profile
- url_
whitelists Sequence[str] - Allowed URL entries exempted from antivirus scanning
- fallback
Action String - Action to take when antivirus scanning cannot complete
- max
Filesize Number - Maximum file size scanned by this antivirus profile, in KB
- mime
Whitelists List<String> - Content MIME types exempted from antivirus scanning
- name String
- Display name of the antivirus profile
- org
Id String - Owning organization identifier for this antivirus profile
- protocols List<String>
- Network protocols inspected by this antivirus profile
- url
Whitelists List<String> - Allowed URL entries exempted from antivirus scanning
Import
Using pulumi import, import junipermist.org.Avprofile with:
IDP Profile can be imported by specifying the orgId and the avprofileId
$ pulumi import junipermist:org/avprofile:Avprofile avprofile_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mistTerraform Provider.
published on Saturday, Jul 11, 2026 by Pulumi