junipermist.org.Avprofile
Explore with Pulumi AI
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.antivirus
- mist_org_gatewaytemplate.service_policies.antivirus
- mist_org_deviceprofile_gateway.service_policies.antivirus
- mist_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.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 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
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.
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"),
	},
})
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:
- OrgId string
- Protocols List<string>
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- FallbackAction string
- enum: block,log-and-permit,permit
- MaxFilesize int
- In KB
- MimeWhitelists List<string>
- Name string
- UrlWhitelists List<string>
- OrgId string
- Protocols []string
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- FallbackAction string
- enum: block,log-and-permit,permit
- MaxFilesize int
- In KB
- MimeWhitelists []string
- Name string
- UrlWhitelists []string
- orgId String
- protocols List<String>
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- fallbackAction String
- enum: block,log-and-permit,permit
- maxFilesize Integer
- In KB
- mimeWhitelists List<String>
- name String
- urlWhitelists List<String>
- orgId string
- protocols string[]
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- fallbackAction string
- enum: block,log-and-permit,permit
- maxFilesize number
- In KB
- mimeWhitelists string[]
- name string
- urlWhitelists string[]
- org_id str
- protocols Sequence[str]
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- fallback_action str
- enum: block,log-and-permit,permit
- max_filesize int
- In KB
- mime_whitelists Sequence[str]
- name str
- url_whitelists Sequence[str]
- orgId String
- protocols List<String>
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- fallbackAction String
- enum: block,log-and-permit,permit
- maxFilesize Number
- In KB
- mimeWhitelists List<String>
- name String
- urlWhitelists List<String>
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 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}- 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.
- FallbackAction string
- enum: block,log-and-permit,permit
- MaxFilesize int
- In KB
- MimeWhitelists List<string>
- Name string
- OrgId string
- Protocols List<string>
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- UrlWhitelists List<string>
- FallbackAction string
- enum: block,log-and-permit,permit
- MaxFilesize int
- In KB
- MimeWhitelists []string
- Name string
- OrgId string
- Protocols []string
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- UrlWhitelists []string
- fallbackAction String
- enum: block,log-and-permit,permit
- maxFilesize Integer
- In KB
- mimeWhitelists List<String>
- name String
- orgId String
- protocols List<String>
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- urlWhitelists List<String>
- fallbackAction string
- enum: block,log-and-permit,permit
- maxFilesize number
- In KB
- mimeWhitelists string[]
- name string
- orgId string
- protocols string[]
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- urlWhitelists string[]
- fallback_action str
- enum: block,log-and-permit,permit
- max_filesize int
- In KB
- mime_whitelists Sequence[str]
- name str
- org_id str
- protocols Sequence[str]
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- url_whitelists Sequence[str]
- fallbackAction String
- enum: block,log-and-permit,permit
- maxFilesize Number
- In KB
- mimeWhitelists List<String>
- name String
- orgId String
- protocols List<String>
- List of protocols to monitor. enum: ftp,http,imap,pop3,smtp
- urlWhitelists List<String>
Import
Using pulumi import, import mist_org_avprofile with:
IDP Profile can be imported by specifying the org_id and the avprofile_id
$ 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.
