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

fortimanager.ObjectWafProfileMethod

Explore with Pulumi AI

Method restriction.

This resource is a sub resource for variable method of resource fortimanager.ObjectWafProfile. Conflict and overwrite may occur if use both of them. The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • method_policy: fortimanager.ObjectWafProfileMethodMethodpolicy

Example Usage

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

const trnameObjectWafProfile = new fortimanager.ObjectWafProfile("trnameObjectWafProfile", {});
const trnameObjectWafProfileMethod = new fortimanager.ObjectWafProfileMethod("trnameObjectWafProfileMethod", {
    defaultAllowedMethods: ["others"],
    log: "enable",
    profile: trnameObjectWafProfile.name,
}, {
    dependsOn: [trnameObjectWafProfile],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_waf_profile = fortimanager.ObjectWafProfile("trnameObjectWafProfile")
trname_object_waf_profile_method = fortimanager.ObjectWafProfileMethod("trnameObjectWafProfileMethod",
    default_allowed_methods=["others"],
    log="enable",
    profile=trname_object_waf_profile.name,
    opts = pulumi.ResourceOptions(depends_on=[trname_object_waf_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 {
		trnameObjectWafProfile, err := fortimanager.NewObjectWafProfile(ctx, "trnameObjectWafProfile", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectWafProfileMethod(ctx, "trnameObjectWafProfileMethod", &fortimanager.ObjectWafProfileMethodArgs{
			DefaultAllowedMethods: pulumi.StringArray{
				pulumi.String("others"),
			},
			Log:     pulumi.String("enable"),
			Profile: trnameObjectWafProfile.Name,
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectWafProfile,
		}))
		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 trnameObjectWafProfile = new Fortimanager.ObjectWafProfile("trnameObjectWafProfile");

    var trnameObjectWafProfileMethod = new Fortimanager.ObjectWafProfileMethod("trnameObjectWafProfileMethod", new()
    {
        DefaultAllowedMethods = new[]
        {
            "others",
        },
        Log = "enable",
        Profile = trnameObjectWafProfile.Name,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectWafProfile,
        },
    });

});
Copy
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.ObjectWafProfileMethod;
import com.pulumi.fortimanager.ObjectWafProfileMethodArgs;
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 trnameObjectWafProfileMethod = new ObjectWafProfileMethod("trnameObjectWafProfileMethod", ObjectWafProfileMethodArgs.builder()
            .defaultAllowedMethods("others")
            .log("enable")
            .profile(trnameObjectWafProfile.name())
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectWafProfile)
                .build());

    }
}
Copy
resources:
  trnameObjectWafProfileMethod:
    type: fortimanager:ObjectWafProfileMethod
    properties:
      defaultAllowedMethods:
        - others
      log: enable
      profile: ${trnameObjectWafProfile.name}
    options:
      dependsOn:
        - ${trnameObjectWafProfile}
  trnameObjectWafProfile:
    type: fortimanager:ObjectWafProfile
Copy

Create ObjectWafProfileMethod Resource

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

Constructor syntax

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

@overload
def ObjectWafProfileMethod(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           profile: Optional[str] = None,
                           adom: Optional[str] = None,
                           default_allowed_methods: Optional[Sequence[str]] = None,
                           dynamic_sort_subtable: Optional[str] = None,
                           log: Optional[str] = None,
                           method_policies: Optional[Sequence[ObjectWafProfileMethodMethodPolicyArgs]] = None,
                           object_waf_profile_method_id: Optional[str] = None,
                           scopetype: Optional[str] = None,
                           severity: Optional[str] = None,
                           status: Optional[str] = None)
func NewObjectWafProfileMethod(ctx *Context, name string, args ObjectWafProfileMethodArgs, opts ...ResourceOption) (*ObjectWafProfileMethod, error)
public ObjectWafProfileMethod(string name, ObjectWafProfileMethodArgs args, CustomResourceOptions? opts = null)
public ObjectWafProfileMethod(String name, ObjectWafProfileMethodArgs args)
public ObjectWafProfileMethod(String name, ObjectWafProfileMethodArgs args, CustomResourceOptions options)
type: fortimanager:ObjectWafProfileMethod
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. ObjectWafProfileMethodArgs
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. ObjectWafProfileMethodInitArgs
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. ObjectWafProfileMethodArgs
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. ObjectWafProfileMethodArgs
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. ObjectWafProfileMethodArgs
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 objectWafProfileMethodResource = new Fortimanager.ObjectWafProfileMethod("objectWafProfileMethodResource", new()
{
    Profile = "string",
    Adom = "string",
    DefaultAllowedMethods = new[]
    {
        "string",
    },
    DynamicSortSubtable = "string",
    Log = "string",
    MethodPolicies = new[]
    {
        new Fortimanager.Inputs.ObjectWafProfileMethodMethodPolicyArgs
        {
            Address = "string",
            AllowedMethods = new[]
            {
                "string",
            },
            Id = 0,
            Pattern = "string",
            Regex = "string",
        },
    },
    ObjectWafProfileMethodId = "string",
    Scopetype = "string",
    Severity = "string",
    Status = "string",
});
Copy
example, err := fortimanager.NewObjectWafProfileMethod(ctx, "objectWafProfileMethodResource", &fortimanager.ObjectWafProfileMethodArgs{
Profile: pulumi.String("string"),
Adom: pulumi.String("string"),
DefaultAllowedMethods: pulumi.StringArray{
pulumi.String("string"),
},
DynamicSortSubtable: pulumi.String("string"),
Log: pulumi.String("string"),
MethodPolicies: .ObjectWafProfileMethodMethodPolicyTypeArray{
&.ObjectWafProfileMethodMethodPolicyTypeArgs{
Address: pulumi.String("string"),
AllowedMethods: pulumi.StringArray{
pulumi.String("string"),
},
Id: pulumi.Float64(0),
Pattern: pulumi.String("string"),
Regex: pulumi.String("string"),
},
},
ObjectWafProfileMethodId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Severity: pulumi.String("string"),
Status: pulumi.String("string"),
})
Copy
var objectWafProfileMethodResource = new ObjectWafProfileMethod("objectWafProfileMethodResource", ObjectWafProfileMethodArgs.builder()
    .profile("string")
    .adom("string")
    .defaultAllowedMethods("string")
    .dynamicSortSubtable("string")
    .log("string")
    .methodPolicies(ObjectWafProfileMethodMethodPolicyArgs.builder()
        .address("string")
        .allowedMethods("string")
        .id(0)
        .pattern("string")
        .regex("string")
        .build())
    .objectWafProfileMethodId("string")
    .scopetype("string")
    .severity("string")
    .status("string")
    .build());
Copy
object_waf_profile_method_resource = fortimanager.ObjectWafProfileMethod("objectWafProfileMethodResource",
    profile="string",
    adom="string",
    default_allowed_methods=["string"],
    dynamic_sort_subtable="string",
    log="string",
    method_policies=[{
        "address": "string",
        "allowed_methods": ["string"],
        "id": 0,
        "pattern": "string",
        "regex": "string",
    }],
    object_waf_profile_method_id="string",
    scopetype="string",
    severity="string",
    status="string")
Copy
const objectWafProfileMethodResource = new fortimanager.ObjectWafProfileMethod("objectWafProfileMethodResource", {
    profile: "string",
    adom: "string",
    defaultAllowedMethods: ["string"],
    dynamicSortSubtable: "string",
    log: "string",
    methodPolicies: [{
        address: "string",
        allowedMethods: ["string"],
        id: 0,
        pattern: "string",
        regex: "string",
    }],
    objectWafProfileMethodId: "string",
    scopetype: "string",
    severity: "string",
    status: "string",
});
Copy
type: fortimanager:ObjectWafProfileMethod
properties:
    adom: string
    defaultAllowedMethods:
        - string
    dynamicSortSubtable: string
    log: string
    methodPolicies:
        - address: string
          allowedMethods:
            - string
          id: 0
          pattern: string
          regex: string
    objectWafProfileMethodId: string
    profile: string
    scopetype: string
    severity: string
    status: string
Copy

ObjectWafProfileMethod 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 ObjectWafProfileMethod 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.
DefaultAllowedMethods List<string>
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Log string
Enable/disable logging. Valid values: disable, enable.
MethodPolicies List<ObjectWafProfileMethodMethodPolicy>
Method-Policy. The structure of method_policy block is documented below.
ObjectWafProfileMethodId 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.
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.
DefaultAllowedMethods []string
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Log string
Enable/disable logging. Valid values: disable, enable.
MethodPolicies []ObjectWafProfileMethodMethodPolicyTypeArgs
Method-Policy. The structure of method_policy block is documented below.
ObjectWafProfileMethodId 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.
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.
defaultAllowedMethods List<String>
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
log String
Enable/disable logging. Valid values: disable, enable.
methodPolicies List<ObjectWafProfileMethodMethodPolicy>
Method-Policy. The structure of method_policy block is documented below.
objectWafProfileMethodId 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.
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.
defaultAllowedMethods string[]
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
log string
Enable/disable logging. Valid values: disable, enable.
methodPolicies ObjectWafProfileMethodMethodPolicy[]
Method-Policy. The structure of method_policy block is documented below.
objectWafProfileMethodId 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.
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.
default_allowed_methods Sequence[str]
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
log str
Enable/disable logging. Valid values: disable, enable.
method_policies Sequence[ObjectWafProfileMethodMethodPolicyArgs]
Method-Policy. The structure of method_policy block is documented below.
object_waf_profile_method_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.
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.
defaultAllowedMethods List<String>
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
log String
Enable/disable logging. Valid values: disable, enable.
methodPolicies List<Property Map>
Method-Policy. The structure of method_policy block is documented below.
objectWafProfileMethodId 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.

Outputs

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

Get an existing ObjectWafProfileMethod 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?: ObjectWafProfileMethodState, opts?: CustomResourceOptions): ObjectWafProfileMethod
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        default_allowed_methods: Optional[Sequence[str]] = None,
        dynamic_sort_subtable: Optional[str] = None,
        log: Optional[str] = None,
        method_policies: Optional[Sequence[ObjectWafProfileMethodMethodPolicyArgs]] = None,
        object_waf_profile_method_id: Optional[str] = None,
        profile: Optional[str] = None,
        scopetype: Optional[str] = None,
        severity: Optional[str] = None,
        status: Optional[str] = None) -> ObjectWafProfileMethod
func GetObjectWafProfileMethod(ctx *Context, name string, id IDInput, state *ObjectWafProfileMethodState, opts ...ResourceOption) (*ObjectWafProfileMethod, error)
public static ObjectWafProfileMethod Get(string name, Input<string> id, ObjectWafProfileMethodState? state, CustomResourceOptions? opts = null)
public static ObjectWafProfileMethod get(String name, Output<String> id, ObjectWafProfileMethodState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectWafProfileMethod    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.
DefaultAllowedMethods List<string>
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Log string
Enable/disable logging. Valid values: disable, enable.
MethodPolicies List<ObjectWafProfileMethodMethodPolicy>
Method-Policy. The structure of method_policy block is documented below.
ObjectWafProfileMethodId 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.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DefaultAllowedMethods []string
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Log string
Enable/disable logging. Valid values: disable, enable.
MethodPolicies []ObjectWafProfileMethodMethodPolicyTypeArgs
Method-Policy. The structure of method_policy block is documented below.
ObjectWafProfileMethodId 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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
defaultAllowedMethods List<String>
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
log String
Enable/disable logging. Valid values: disable, enable.
methodPolicies List<ObjectWafProfileMethodMethodPolicy>
Method-Policy. The structure of method_policy block is documented below.
objectWafProfileMethodId 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.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
defaultAllowedMethods string[]
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
log string
Enable/disable logging. Valid values: disable, enable.
methodPolicies ObjectWafProfileMethodMethodPolicy[]
Method-Policy. The structure of method_policy block is documented below.
objectWafProfileMethodId 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.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
default_allowed_methods Sequence[str]
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
log str
Enable/disable logging. Valid values: disable, enable.
method_policies Sequence[ObjectWafProfileMethodMethodPolicyArgs]
Method-Policy. The structure of method_policy block is documented below.
object_waf_profile_method_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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
defaultAllowedMethods List<String>
Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
log String
Enable/disable logging. Valid values: disable, enable.
methodPolicies List<Property Map>
Method-Policy. The structure of method_policy block is documented below.
objectWafProfileMethodId 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.

Supporting Types

ObjectWafProfileMethodMethodPolicy
, ObjectWafProfileMethodMethodPolicyArgs

Address string
Host address.
AllowedMethods List<string>
Allowed Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
Id double
HTTP method policy ID.
Pattern string
URL pattern.
Regex string
Enable/disable regular expression based pattern match. Valid values: disable, enable.
Address string
Host address.
AllowedMethods []string
Allowed Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
Id float64
HTTP method policy ID.
Pattern string
URL pattern.
Regex string
Enable/disable regular expression based pattern match. Valid values: disable, enable.
address String
Host address.
allowedMethods List<String>
Allowed Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
id Double
HTTP method policy ID.
pattern String
URL pattern.
regex String
Enable/disable regular expression based pattern match. Valid values: disable, enable.
address string
Host address.
allowedMethods string[]
Allowed Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
id number
HTTP method policy ID.
pattern string
URL pattern.
regex string
Enable/disable regular expression based pattern match. Valid values: disable, enable.
address str
Host address.
allowed_methods Sequence[str]
Allowed Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
id float
HTTP method policy ID.
pattern str
URL pattern.
regex str
Enable/disable regular expression based pattern match. Valid values: disable, enable.
address String
Host address.
allowedMethods List<String>
Allowed Methods. Valid values: delete, get, head, options, post, put, trace, others, connect.
id Number
HTTP method policy ID.
pattern String
URL pattern.
regex String
Enable/disable regular expression based pattern match. Valid values: disable, enable.

Import

ObjectWaf ProfileMethod 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/objectWafProfileMethod:ObjectWafProfileMethod labelname ObjectWafProfileMethod
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.