fortimanager.ObjectWebfilterProfileFtgdwfRisk
Explore with Pulumi AI
FortiGuard risk level settings.
This resource is a sub resource for variable
risk
of resourcefortimanager.ObjectWebfilterProfileFtgdwf
. Conflict and overwrite may occur if use both of them.
Create ObjectWebfilterProfileFtgdwfRisk Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectWebfilterProfileFtgdwfRisk(name: string, args: ObjectWebfilterProfileFtgdwfRiskArgs, opts?: CustomResourceOptions);
@overload
def ObjectWebfilterProfileFtgdwfRisk(resource_name: str,
args: ObjectWebfilterProfileFtgdwfRiskInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectWebfilterProfileFtgdwfRisk(resource_name: str,
opts: Optional[ResourceOptions] = None,
profile: Optional[str] = None,
action: Optional[str] = None,
adom: Optional[str] = None,
fosid: Optional[float] = None,
log: Optional[str] = None,
object_webfilter_profile_ftgdwf_risk_id: Optional[str] = None,
risk_levels: Optional[Sequence[str]] = None,
scopetype: Optional[str] = None)
func NewObjectWebfilterProfileFtgdwfRisk(ctx *Context, name string, args ObjectWebfilterProfileFtgdwfRiskArgs, opts ...ResourceOption) (*ObjectWebfilterProfileFtgdwfRisk, error)
public ObjectWebfilterProfileFtgdwfRisk(string name, ObjectWebfilterProfileFtgdwfRiskArgs args, CustomResourceOptions? opts = null)
public ObjectWebfilterProfileFtgdwfRisk(String name, ObjectWebfilterProfileFtgdwfRiskArgs args)
public ObjectWebfilterProfileFtgdwfRisk(String name, ObjectWebfilterProfileFtgdwfRiskArgs args, CustomResourceOptions options)
type: fortimanager:ObjectWebfilterProfileFtgdwfRisk
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 ObjectWebfilterProfileFtgdwfRiskArgs
- 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 ObjectWebfilterProfileFtgdwfRiskInitArgs
- 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 ObjectWebfilterProfileFtgdwfRiskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectWebfilterProfileFtgdwfRiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectWebfilterProfileFtgdwfRiskArgs
- 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 objectWebfilterProfileFtgdwfRiskResource = new Fortimanager.ObjectWebfilterProfileFtgdwfRisk("objectWebfilterProfileFtgdwfRiskResource", new()
{
Profile = "string",
Action = "string",
Adom = "string",
Fosid = 0,
Log = "string",
ObjectWebfilterProfileFtgdwfRiskId = "string",
RiskLevels = new[]
{
"string",
},
Scopetype = "string",
});
example, err := fortimanager.NewObjectWebfilterProfileFtgdwfRisk(ctx, "objectWebfilterProfileFtgdwfRiskResource", &fortimanager.ObjectWebfilterProfileFtgdwfRiskArgs{
Profile: pulumi.String("string"),
Action: pulumi.String("string"),
Adom: pulumi.String("string"),
Fosid: pulumi.Float64(0),
Log: pulumi.String("string"),
ObjectWebfilterProfileFtgdwfRiskId: pulumi.String("string"),
RiskLevels: pulumi.StringArray{
pulumi.String("string"),
},
Scopetype: pulumi.String("string"),
})
var objectWebfilterProfileFtgdwfRiskResource = new ObjectWebfilterProfileFtgdwfRisk("objectWebfilterProfileFtgdwfRiskResource", ObjectWebfilterProfileFtgdwfRiskArgs.builder()
.profile("string")
.action("string")
.adom("string")
.fosid(0)
.log("string")
.objectWebfilterProfileFtgdwfRiskId("string")
.riskLevels("string")
.scopetype("string")
.build());
object_webfilter_profile_ftgdwf_risk_resource = fortimanager.ObjectWebfilterProfileFtgdwfRisk("objectWebfilterProfileFtgdwfRiskResource",
profile="string",
action="string",
adom="string",
fosid=0,
log="string",
object_webfilter_profile_ftgdwf_risk_id="string",
risk_levels=["string"],
scopetype="string")
const objectWebfilterProfileFtgdwfRiskResource = new fortimanager.ObjectWebfilterProfileFtgdwfRisk("objectWebfilterProfileFtgdwfRiskResource", {
profile: "string",
action: "string",
adom: "string",
fosid: 0,
log: "string",
objectWebfilterProfileFtgdwfRiskId: "string",
riskLevels: ["string"],
scopetype: "string",
});
type: fortimanager:ObjectWebfilterProfileFtgdwfRisk
properties:
action: string
adom: string
fosid: 0
log: string
objectWebfilterProfileFtgdwfRiskId: string
profile: string
riskLevels:
- string
scopetype: string
ObjectWebfilterProfileFtgdwfRisk 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 ObjectWebfilterProfileFtgdwfRisk resource accepts the following input properties:
- Profile string
- Profile.
- Action string
- Action to take for matches. Valid values:
block
,monitor
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Fosid double
- ID number.
- Log string
- Enable/disable logging. Valid values:
disable
,enable
. - Object
Webfilter stringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- Risk
Levels List<string> - Risk level to be examined.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- Profile string
- Profile.
- Action string
- Action to take for matches. Valid values:
block
,monitor
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Fosid float64
- ID number.
- Log string
- Enable/disable logging. Valid values:
disable
,enable
. - Object
Webfilter stringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- Risk
Levels []string - Risk level to be examined.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- profile String
- Profile.
- action String
- Action to take for matches. Valid values:
block
,monitor
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - fosid Double
- ID number.
- log String
- Enable/disable logging. Valid values:
disable
,enable
. - object
Webfilter StringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- risk
Levels List<String> - Risk level to be examined.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- profile string
- Profile.
- action string
- Action to take for matches. Valid values:
block
,monitor
. - adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - fosid number
- ID number.
- log string
- Enable/disable logging. Valid values:
disable
,enable
. - object
Webfilter stringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- risk
Levels string[] - Risk level to be examined.
- scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- profile str
- Profile.
- action str
- Action to take for matches. Valid values:
block
,monitor
. - adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - fosid float
- ID number.
- log str
- Enable/disable logging. Valid values:
disable
,enable
. - object_
webfilter_ strprofile_ ftgdwf_ risk_ id - an identifier for the resource with format {{fosid}}.
- risk_
levels Sequence[str] - Risk level to be examined.
- scopetype str
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- profile String
- Profile.
- action String
- Action to take for matches. Valid values:
block
,monitor
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - fosid Number
- ID number.
- log String
- Enable/disable logging. Valid values:
disable
,enable
. - object
Webfilter StringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- risk
Levels List<String> - Risk level to be examined.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectWebfilterProfileFtgdwfRisk 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 ObjectWebfilterProfileFtgdwfRisk Resource
Get an existing ObjectWebfilterProfileFtgdwfRisk 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?: ObjectWebfilterProfileFtgdwfRiskState, opts?: CustomResourceOptions): ObjectWebfilterProfileFtgdwfRisk
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
adom: Optional[str] = None,
fosid: Optional[float] = None,
log: Optional[str] = None,
object_webfilter_profile_ftgdwf_risk_id: Optional[str] = None,
profile: Optional[str] = None,
risk_levels: Optional[Sequence[str]] = None,
scopetype: Optional[str] = None) -> ObjectWebfilterProfileFtgdwfRisk
func GetObjectWebfilterProfileFtgdwfRisk(ctx *Context, name string, id IDInput, state *ObjectWebfilterProfileFtgdwfRiskState, opts ...ResourceOption) (*ObjectWebfilterProfileFtgdwfRisk, error)
public static ObjectWebfilterProfileFtgdwfRisk Get(string name, Input<string> id, ObjectWebfilterProfileFtgdwfRiskState? state, CustomResourceOptions? opts = null)
public static ObjectWebfilterProfileFtgdwfRisk get(String name, Output<String> id, ObjectWebfilterProfileFtgdwfRiskState state, CustomResourceOptions options)
resources: _: type: fortimanager:ObjectWebfilterProfileFtgdwfRisk 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.
- Action string
- Action to take for matches. Valid values:
block
,monitor
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Fosid double
- ID number.
- Log string
- Enable/disable logging. Valid values:
disable
,enable
. - Object
Webfilter stringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- Profile string
- Profile.
- Risk
Levels List<string> - Risk level to be examined.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- Action string
- Action to take for matches. Valid values:
block
,monitor
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Fosid float64
- ID number.
- Log string
- Enable/disable logging. Valid values:
disable
,enable
. - Object
Webfilter stringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- Profile string
- Profile.
- Risk
Levels []string - Risk level to be examined.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- action String
- Action to take for matches. Valid values:
block
,monitor
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - fosid Double
- ID number.
- log String
- Enable/disable logging. Valid values:
disable
,enable
. - object
Webfilter StringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- profile String
- Profile.
- risk
Levels List<String> - Risk level to be examined.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- action string
- Action to take for matches. Valid values:
block
,monitor
. - adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - fosid number
- ID number.
- log string
- Enable/disable logging. Valid values:
disable
,enable
. - object
Webfilter stringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- profile string
- Profile.
- risk
Levels string[] - Risk level to be examined.
- scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- action str
- Action to take for matches. Valid values:
block
,monitor
. - adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - fosid float
- ID number.
- log str
- Enable/disable logging. Valid values:
disable
,enable
. - object_
webfilter_ strprofile_ ftgdwf_ risk_ id - an identifier for the resource with format {{fosid}}.
- profile str
- Profile.
- risk_
levels Sequence[str] - Risk level to be examined.
- scopetype str
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- action String
- Action to take for matches. Valid values:
block
,monitor
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - fosid Number
- ID number.
- log String
- Enable/disable logging. Valid values:
disable
,enable
. - object
Webfilter StringProfile Ftgdwf Risk Id - an identifier for the resource with format {{fosid}}.
- profile String
- Profile.
- risk
Levels List<String> - Risk level to be examined.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
Import
ObjectWebfilter ProfileFtgdWfRisk 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/objectWebfilterProfileFtgdwfRisk:ObjectWebfilterProfileFtgdwfRisk labelname {{fosid}}
$ 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.