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

fortimanager.ObjectWafProfileAddresslist

Explore with Pulumi AI

fortimanager logo
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

    Black address list and white address list.

    This resource is a sub resource for variable address_list of resource fortimanager.ObjectWafProfile. 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 trnameObjectWafProfile = new fortimanager.ObjectWafProfile("trnameObjectWafProfile", {});
    const trnameObjectWafProfileAddresslist = new fortimanager.ObjectWafProfileAddresslist("trnameObjectWafProfileAddresslist", {
        blockedLog: "enable",
        profile: trnameObjectWafProfile.name,
    }, {
        dependsOn: [trnameObjectWafProfile],
    });
    
    import pulumi
    import pulumi_fortimanager as fortimanager
    
    trname_object_waf_profile = fortimanager.ObjectWafProfile("trnameObjectWafProfile")
    trname_object_waf_profile_addresslist = fortimanager.ObjectWafProfileAddresslist("trnameObjectWafProfileAddresslist",
        blocked_log="enable",
        profile=trname_object_waf_profile.name,
        opts = pulumi.ResourceOptions(depends_on=[trname_object_waf_profile]))
    
    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 {
    		trnameObjectWafProfile, err := fortimanager.NewObjectWafProfile(ctx, "trnameObjectWafProfile", nil)
    		if err != nil {
    			return err
    		}
    		_, err = fortimanager.NewObjectWafProfileAddresslist(ctx, "trnameObjectWafProfileAddresslist", &fortimanager.ObjectWafProfileAddresslistArgs{
    			BlockedLog: pulumi.String("enable"),
    			Profile:    trnameObjectWafProfile.Name,
    		}, pulumi.DependsOn([]pulumi.Resource{
    			trnameObjectWafProfile,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortimanager = Pulumi.Fortimanager;
    
    return await Deployment.RunAsync(() => 
    {
        var trnameObjectWafProfile = new Fortimanager.ObjectWafProfile("trnameObjectWafProfile");
    
        var trnameObjectWafProfileAddresslist = new Fortimanager.ObjectWafProfileAddresslist("trnameObjectWafProfileAddresslist", new()
        {
            BlockedLog = "enable",
            Profile = trnameObjectWafProfile.Name,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                trnameObjectWafProfile,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortimanager.ObjectWafProfile;
    import com.pulumi.fortimanager.ObjectWafProfileAddresslist;
    import com.pulumi.fortimanager.ObjectWafProfileAddresslistArgs;
    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 trnameObjectWafProfile = new ObjectWafProfile("trnameObjectWafProfile");
    
            var trnameObjectWafProfileAddresslist = new ObjectWafProfileAddresslist("trnameObjectWafProfileAddresslist", ObjectWafProfileAddresslistArgs.builder()
                .blockedLog("enable")
                .profile(trnameObjectWafProfile.name())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(trnameObjectWafProfile)
                    .build());
    
        }
    }
    
    resources:
      trnameObjectWafProfileAddresslist:
        type: fortimanager:ObjectWafProfileAddresslist
        properties:
          blockedLog: enable
          profile: ${trnameObjectWafProfile.name}
        options:
          dependsOn:
            - ${trnameObjectWafProfile}
      trnameObjectWafProfile:
        type: fortimanager:ObjectWafProfile
    

    Create ObjectWafProfileAddresslist Resource

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

    Constructor syntax

    new ObjectWafProfileAddresslist(name: string, args: ObjectWafProfileAddresslistArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectWafProfileAddresslist(resource_name: str,
                                    args: ObjectWafProfileAddresslistArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectWafProfileAddresslist(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    profile: Optional[str] = None,
                                    adom: Optional[str] = None,
                                    blocked_address: Optional[str] = None,
                                    blocked_log: Optional[str] = None,
                                    object_waf_profile_addresslist_id: Optional[str] = None,
                                    scopetype: Optional[str] = None,
                                    severity: Optional[str] = None,
                                    status: Optional[str] = None,
                                    trusted_address: Optional[str] = None)
    func NewObjectWafProfileAddresslist(ctx *Context, name string, args ObjectWafProfileAddresslistArgs, opts ...ResourceOption) (*ObjectWafProfileAddresslist, error)
    public ObjectWafProfileAddresslist(string name, ObjectWafProfileAddresslistArgs args, CustomResourceOptions? opts = null)
    public ObjectWafProfileAddresslist(String name, ObjectWafProfileAddresslistArgs args)
    public ObjectWafProfileAddresslist(String name, ObjectWafProfileAddresslistArgs args, CustomResourceOptions options)
    
    type: fortimanager:ObjectWafProfileAddresslist
    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 ObjectWafProfileAddresslistArgs
    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 ObjectWafProfileAddresslistArgs
    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 ObjectWafProfileAddresslistArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectWafProfileAddresslistArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectWafProfileAddresslistArgs
    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 objectWafProfileAddresslistResource = new Fortimanager.ObjectWafProfileAddresslist("objectWafProfileAddresslistResource", new()
    {
        Profile = "string",
        Adom = "string",
        BlockedAddress = "string",
        BlockedLog = "string",
        ObjectWafProfileAddresslistId = "string",
        Scopetype = "string",
        Severity = "string",
        Status = "string",
        TrustedAddress = "string",
    });
    
    example, err := fortimanager.NewObjectWafProfileAddresslist(ctx, "objectWafProfileAddresslistResource", &fortimanager.ObjectWafProfileAddresslistArgs{
    Profile: pulumi.String("string"),
    Adom: pulumi.String("string"),
    BlockedAddress: pulumi.String("string"),
    BlockedLog: pulumi.String("string"),
    ObjectWafProfileAddresslistId: pulumi.String("string"),
    Scopetype: pulumi.String("string"),
    Severity: pulumi.String("string"),
    Status: pulumi.String("string"),
    TrustedAddress: pulumi.String("string"),
    })
    
    var objectWafProfileAddresslistResource = new ObjectWafProfileAddresslist("objectWafProfileAddresslistResource", ObjectWafProfileAddresslistArgs.builder()
        .profile("string")
        .adom("string")
        .blockedAddress("string")
        .blockedLog("string")
        .objectWafProfileAddresslistId("string")
        .scopetype("string")
        .severity("string")
        .status("string")
        .trustedAddress("string")
        .build());
    
    object_waf_profile_addresslist_resource = fortimanager.ObjectWafProfileAddresslist("objectWafProfileAddresslistResource",
        profile="string",
        adom="string",
        blocked_address="string",
        blocked_log="string",
        object_waf_profile_addresslist_id="string",
        scopetype="string",
        severity="string",
        status="string",
        trusted_address="string")
    
    const objectWafProfileAddresslistResource = new fortimanager.ObjectWafProfileAddresslist("objectWafProfileAddresslistResource", {
        profile: "string",
        adom: "string",
        blockedAddress: "string",
        blockedLog: "string",
        objectWafProfileAddresslistId: "string",
        scopetype: "string",
        severity: "string",
        status: "string",
        trustedAddress: "string",
    });
    
    type: fortimanager:ObjectWafProfileAddresslist
    properties:
        adom: string
        blockedAddress: string
        blockedLog: string
        objectWafProfileAddresslistId: string
        profile: string
        scopetype: string
        severity: string
        status: string
        trustedAddress: string
    

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

    Profile 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.
    BlockedAddress string
    Blocked address.
    BlockedLog string
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    ObjectWafProfileAddresslistId 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.
    Severity string
    Severity. Valid values: low, medium, high.
    Status string
    Status. Valid values: disable, enable.
    TrustedAddress string
    Trusted address.
    Profile 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.
    BlockedAddress string
    Blocked address.
    BlockedLog string
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    ObjectWafProfileAddresslistId 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.
    Severity string
    Severity. Valid values: low, medium, high.
    Status string
    Status. Valid values: disable, enable.
    TrustedAddress string
    Trusted address.
    profile 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.
    blockedAddress String
    Blocked address.
    blockedLog String
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    objectWafProfileAddresslistId 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.
    severity String
    Severity. Valid values: low, medium, high.
    status String
    Status. Valid values: disable, enable.
    trustedAddress String
    Trusted address.
    profile 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.
    blockedAddress string
    Blocked address.
    blockedLog string
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    objectWafProfileAddresslistId 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.
    severity string
    Severity. Valid values: low, medium, high.
    status string
    Status. Valid values: disable, enable.
    trustedAddress string
    Trusted address.
    profile 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.
    blocked_address str
    Blocked address.
    blocked_log str
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    object_waf_profile_addresslist_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.
    severity str
    Severity. Valid values: low, medium, high.
    status str
    Status. Valid values: disable, enable.
    trusted_address str
    Trusted address.
    profile 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.
    blockedAddress String
    Blocked address.
    blockedLog String
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    objectWafProfileAddresslistId 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.
    severity String
    Severity. Valid values: low, medium, high.
    status String
    Status. Valid values: disable, enable.
    trustedAddress String
    Trusted address.

    Outputs

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

    Get an existing ObjectWafProfileAddresslist 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?: ObjectWafProfileAddresslistState, opts?: CustomResourceOptions): ObjectWafProfileAddresslist
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            blocked_address: Optional[str] = None,
            blocked_log: Optional[str] = None,
            object_waf_profile_addresslist_id: Optional[str] = None,
            profile: Optional[str] = None,
            scopetype: Optional[str] = None,
            severity: Optional[str] = None,
            status: Optional[str] = None,
            trusted_address: Optional[str] = None) -> ObjectWafProfileAddresslist
    func GetObjectWafProfileAddresslist(ctx *Context, name string, id IDInput, state *ObjectWafProfileAddresslistState, opts ...ResourceOption) (*ObjectWafProfileAddresslist, error)
    public static ObjectWafProfileAddresslist Get(string name, Input<string> id, ObjectWafProfileAddresslistState? state, CustomResourceOptions? opts = null)
    public static ObjectWafProfileAddresslist get(String name, Output<String> id, ObjectWafProfileAddresslistState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:ObjectWafProfileAddresslist    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.
    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.
    BlockedAddress string
    Blocked address.
    BlockedLog string
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    ObjectWafProfileAddresslistId 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.
    Severity string
    Severity. Valid values: low, medium, high.
    Status string
    Status. Valid values: disable, enable.
    TrustedAddress string
    Trusted address.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    BlockedAddress string
    Blocked address.
    BlockedLog string
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    ObjectWafProfileAddresslistId 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.
    Severity string
    Severity. Valid values: low, medium, high.
    Status string
    Status. Valid values: disable, enable.
    TrustedAddress string
    Trusted address.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    blockedAddress String
    Blocked address.
    blockedLog String
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    objectWafProfileAddresslistId 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.
    severity String
    Severity. Valid values: low, medium, high.
    status String
    Status. Valid values: disable, enable.
    trustedAddress String
    Trusted address.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    blockedAddress string
    Blocked address.
    blockedLog string
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    objectWafProfileAddresslistId 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.
    severity string
    Severity. Valid values: low, medium, high.
    status string
    Status. Valid values: disable, enable.
    trustedAddress string
    Trusted address.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    blocked_address str
    Blocked address.
    blocked_log str
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    object_waf_profile_addresslist_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.
    severity str
    Severity. Valid values: low, medium, high.
    status str
    Status. Valid values: disable, enable.
    trusted_address str
    Trusted address.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    blockedAddress String
    Blocked address.
    blockedLog String
    Enable/disable logging on blocked addresses. Valid values: disable, enable.
    objectWafProfileAddresslistId 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.
    severity String
    Severity. Valid values: low, medium, high.
    status String
    Status. Valid values: disable, enable.
    trustedAddress String
    Trusted address.

    Import

    ObjectWaf ProfileAddressList 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/objectWafProfileAddresslist:ObjectWafProfileAddresslist labelname ObjectWafProfileAddressList
    

    $ 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.
    fortimanager logo
    fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev