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

fortimanager.ObjectCasbUseractivityMatchRules

Explore with Pulumi AI

CASB user activity rules.

This resource is a sub resource for variable rules of resource fortimanager.ObjectCasbUseractivityMatch. Conflict and overwrite may occur if use both of them.

Create ObjectCasbUseractivityMatchRules Resource

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

Constructor syntax

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

@overload
def ObjectCasbUseractivityMatchRules(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     match: Optional[str] = None,
                                     user_activity: Optional[str] = None,
                                     match_pattern: Optional[str] = None,
                                     fosid: Optional[float] = None,
                                     header_name: Optional[str] = None,
                                     domains: Optional[Sequence[str]] = None,
                                     adom: Optional[str] = None,
                                     match_value: Optional[str] = None,
                                     methods: Optional[Sequence[str]] = None,
                                     negate: Optional[str] = None,
                                     object_casb_useractivity_match_rules_id: Optional[str] = None,
                                     scopetype: Optional[str] = None,
                                     type: Optional[str] = None,
                                     case_sensitive: Optional[str] = None)
func NewObjectCasbUseractivityMatchRules(ctx *Context, name string, args ObjectCasbUseractivityMatchRulesArgs, opts ...ResourceOption) (*ObjectCasbUseractivityMatchRules, error)
public ObjectCasbUseractivityMatchRules(string name, ObjectCasbUseractivityMatchRulesArgs args, CustomResourceOptions? opts = null)
public ObjectCasbUseractivityMatchRules(String name, ObjectCasbUseractivityMatchRulesArgs args)
public ObjectCasbUseractivityMatchRules(String name, ObjectCasbUseractivityMatchRulesArgs args, CustomResourceOptions options)
type: fortimanager:ObjectCasbUseractivityMatchRules
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. ObjectCasbUseractivityMatchRulesArgs
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. ObjectCasbUseractivityMatchRulesArgs
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. ObjectCasbUseractivityMatchRulesArgs
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. ObjectCasbUseractivityMatchRulesArgs
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. ObjectCasbUseractivityMatchRulesArgs
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 objectCasbUseractivityMatchRulesResource = new Fortimanager.ObjectCasbUseractivityMatchRules("objectCasbUseractivityMatchRulesResource", new()
{
    Match = "string",
    UserActivity = "string",
    MatchPattern = "string",
    Fosid = 0,
    HeaderName = "string",
    Domains = new[]
    {
        "string",
    },
    Adom = "string",
    MatchValue = "string",
    Methods = new[]
    {
        "string",
    },
    Negate = "string",
    ObjectCasbUseractivityMatchRulesId = "string",
    Scopetype = "string",
    Type = "string",
    CaseSensitive = "string",
});
Copy
example, err := fortimanager.NewObjectCasbUseractivityMatchRules(ctx, "objectCasbUseractivityMatchRulesResource", &fortimanager.ObjectCasbUseractivityMatchRulesArgs{
Match: pulumi.String("string"),
UserActivity: pulumi.String("string"),
MatchPattern: pulumi.String("string"),
Fosid: pulumi.Float64(0),
HeaderName: pulumi.String("string"),
Domains: pulumi.StringArray{
pulumi.String("string"),
},
Adom: pulumi.String("string"),
MatchValue: pulumi.String("string"),
Methods: pulumi.StringArray{
pulumi.String("string"),
},
Negate: pulumi.String("string"),
ObjectCasbUseractivityMatchRulesId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Type: pulumi.String("string"),
CaseSensitive: pulumi.String("string"),
})
Copy
var objectCasbUseractivityMatchRulesResource = new ObjectCasbUseractivityMatchRules("objectCasbUseractivityMatchRulesResource", ObjectCasbUseractivityMatchRulesArgs.builder()
    .match("string")
    .userActivity("string")
    .matchPattern("string")
    .fosid(0)
    .headerName("string")
    .domains("string")
    .adom("string")
    .matchValue("string")
    .methods("string")
    .negate("string")
    .objectCasbUseractivityMatchRulesId("string")
    .scopetype("string")
    .type("string")
    .caseSensitive("string")
    .build());
Copy
object_casb_useractivity_match_rules_resource = fortimanager.ObjectCasbUseractivityMatchRules("objectCasbUseractivityMatchRulesResource",
    match="string",
    user_activity="string",
    match_pattern="string",
    fosid=0,
    header_name="string",
    domains=["string"],
    adom="string",
    match_value="string",
    methods=["string"],
    negate="string",
    object_casb_useractivity_match_rules_id="string",
    scopetype="string",
    type="string",
    case_sensitive="string")
Copy
const objectCasbUseractivityMatchRulesResource = new fortimanager.ObjectCasbUseractivityMatchRules("objectCasbUseractivityMatchRulesResource", {
    match: "string",
    userActivity: "string",
    matchPattern: "string",
    fosid: 0,
    headerName: "string",
    domains: ["string"],
    adom: "string",
    matchValue: "string",
    methods: ["string"],
    negate: "string",
    objectCasbUseractivityMatchRulesId: "string",
    scopetype: "string",
    type: "string",
    caseSensitive: "string",
});
Copy
type: fortimanager:ObjectCasbUseractivityMatchRules
properties:
    adom: string
    caseSensitive: string
    domains:
        - string
    fosid: 0
    headerName: string
    match: string
    matchPattern: string
    matchValue: string
    methods:
        - string
    negate: string
    objectCasbUseractivityMatchRulesId: string
    scopetype: string
    type: string
    userActivity: string
Copy

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

Match This property is required. string
Match.
UserActivity This property is required. string
User Activity.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
CaseSensitive string
CASB user activity match case sensitive. Valid values: disable, enable.
Domains List<string>
CASB user activity domain list.
Fosid double
CASB user activity rule ID.
HeaderName string
CASB user activity rule header name.
MatchPattern string
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
MatchValue string
CASB user activity rule match value.
Methods List<string>
CASB user activity method list.
Negate string
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
ObjectCasbUseractivityMatchRulesId string
an identifier for the resource with format {{fosid}}.
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.
Type string
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
Match This property is required. string
Match.
UserActivity This property is required. string
User Activity.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
CaseSensitive string
CASB user activity match case sensitive. Valid values: disable, enable.
Domains []string
CASB user activity domain list.
Fosid float64
CASB user activity rule ID.
HeaderName string
CASB user activity rule header name.
MatchPattern string
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
MatchValue string
CASB user activity rule match value.
Methods []string
CASB user activity method list.
Negate string
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
ObjectCasbUseractivityMatchRulesId string
an identifier for the resource with format {{fosid}}.
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.
Type string
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
match This property is required. String
Match.
userActivity This property is required. String
User Activity.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
caseSensitive String
CASB user activity match case sensitive. Valid values: disable, enable.
domains List<String>
CASB user activity domain list.
fosid Double
CASB user activity rule ID.
headerName String
CASB user activity rule header name.
matchPattern String
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
matchValue String
CASB user activity rule match value.
methods List<String>
CASB user activity method list.
negate String
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
objectCasbUseractivityMatchRulesId String
an identifier for the resource with format {{fosid}}.
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.
type String
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
match This property is required. string
Match.
userActivity This property is required. string
User Activity.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
caseSensitive string
CASB user activity match case sensitive. Valid values: disable, enable.
domains string[]
CASB user activity domain list.
fosid number
CASB user activity rule ID.
headerName string
CASB user activity rule header name.
matchPattern string
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
matchValue string
CASB user activity rule match value.
methods string[]
CASB user activity method list.
negate string
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
objectCasbUseractivityMatchRulesId string
an identifier for the resource with format {{fosid}}.
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.
type string
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
match This property is required. str
Match.
user_activity This property is required. str
User Activity.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
case_sensitive str
CASB user activity match case sensitive. Valid values: disable, enable.
domains Sequence[str]
CASB user activity domain list.
fosid float
CASB user activity rule ID.
header_name str
CASB user activity rule header name.
match_pattern str
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
match_value str
CASB user activity rule match value.
methods Sequence[str]
CASB user activity method list.
negate str
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
object_casb_useractivity_match_rules_id str
an identifier for the resource with format {{fosid}}.
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.
type str
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
match This property is required. String
Match.
userActivity This property is required. String
User Activity.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
caseSensitive String
CASB user activity match case sensitive. Valid values: disable, enable.
domains List<String>
CASB user activity domain list.
fosid Number
CASB user activity rule ID.
headerName String
CASB user activity rule header name.
matchPattern String
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
matchValue String
CASB user activity rule match value.
methods List<String>
CASB user activity method list.
negate String
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
objectCasbUseractivityMatchRulesId String
an identifier for the resource with format {{fosid}}.
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.
type String
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.

Outputs

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

Get an existing ObjectCasbUseractivityMatchRules 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?: ObjectCasbUseractivityMatchRulesState, opts?: CustomResourceOptions): ObjectCasbUseractivityMatchRules
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        case_sensitive: Optional[str] = None,
        domains: Optional[Sequence[str]] = None,
        fosid: Optional[float] = None,
        header_name: Optional[str] = None,
        match: Optional[str] = None,
        match_pattern: Optional[str] = None,
        match_value: Optional[str] = None,
        methods: Optional[Sequence[str]] = None,
        negate: Optional[str] = None,
        object_casb_useractivity_match_rules_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        type: Optional[str] = None,
        user_activity: Optional[str] = None) -> ObjectCasbUseractivityMatchRules
func GetObjectCasbUseractivityMatchRules(ctx *Context, name string, id IDInput, state *ObjectCasbUseractivityMatchRulesState, opts ...ResourceOption) (*ObjectCasbUseractivityMatchRules, error)
public static ObjectCasbUseractivityMatchRules Get(string name, Input<string> id, ObjectCasbUseractivityMatchRulesState? state, CustomResourceOptions? opts = null)
public static ObjectCasbUseractivityMatchRules get(String name, Output<String> id, ObjectCasbUseractivityMatchRulesState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectCasbUseractivityMatchRules    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.
CaseSensitive string
CASB user activity match case sensitive. Valid values: disable, enable.
Domains List<string>
CASB user activity domain list.
Fosid double
CASB user activity rule ID.
HeaderName string
CASB user activity rule header name.
Match string
Match.
MatchPattern string
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
MatchValue string
CASB user activity rule match value.
Methods List<string>
CASB user activity method list.
Negate string
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
ObjectCasbUseractivityMatchRulesId string
an identifier for the resource with format {{fosid}}.
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.
Type string
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
UserActivity string
User Activity.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
CaseSensitive string
CASB user activity match case sensitive. Valid values: disable, enable.
Domains []string
CASB user activity domain list.
Fosid float64
CASB user activity rule ID.
HeaderName string
CASB user activity rule header name.
Match string
Match.
MatchPattern string
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
MatchValue string
CASB user activity rule match value.
Methods []string
CASB user activity method list.
Negate string
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
ObjectCasbUseractivityMatchRulesId string
an identifier for the resource with format {{fosid}}.
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.
Type string
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
UserActivity string
User Activity.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
caseSensitive String
CASB user activity match case sensitive. Valid values: disable, enable.
domains List<String>
CASB user activity domain list.
fosid Double
CASB user activity rule ID.
headerName String
CASB user activity rule header name.
match String
Match.
matchPattern String
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
matchValue String
CASB user activity rule match value.
methods List<String>
CASB user activity method list.
negate String
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
objectCasbUseractivityMatchRulesId String
an identifier for the resource with format {{fosid}}.
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.
type String
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
userActivity String
User Activity.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
caseSensitive string
CASB user activity match case sensitive. Valid values: disable, enable.
domains string[]
CASB user activity domain list.
fosid number
CASB user activity rule ID.
headerName string
CASB user activity rule header name.
match string
Match.
matchPattern string
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
matchValue string
CASB user activity rule match value.
methods string[]
CASB user activity method list.
negate string
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
objectCasbUseractivityMatchRulesId string
an identifier for the resource with format {{fosid}}.
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.
type string
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
userActivity string
User Activity.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
case_sensitive str
CASB user activity match case sensitive. Valid values: disable, enable.
domains Sequence[str]
CASB user activity domain list.
fosid float
CASB user activity rule ID.
header_name str
CASB user activity rule header name.
match str
Match.
match_pattern str
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
match_value str
CASB user activity rule match value.
methods Sequence[str]
CASB user activity method list.
negate str
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
object_casb_useractivity_match_rules_id str
an identifier for the resource with format {{fosid}}.
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.
type str
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
user_activity str
User Activity.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
caseSensitive String
CASB user activity match case sensitive. Valid values: disable, enable.
domains List<String>
CASB user activity domain list.
fosid Number
CASB user activity rule ID.
headerName String
CASB user activity rule header name.
match String
Match.
matchPattern String
CASB user activity rule match pattern. Valid values: simple, substr, regexp.
matchValue String
CASB user activity rule match value.
methods List<String>
CASB user activity method list.
negate String
Enable/disable what the matching strategy must not be. Valid values: disable, enable.
objectCasbUseractivityMatchRulesId String
an identifier for the resource with format {{fosid}}.
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.
type String
CASB user activity rule type. Valid values: domains, host, path, header, header-value, method.
userActivity String
User Activity.

Import

ObjectCasb UserActivityMatchRules can be imported using any of these accepted formats:

Set import_options = [“user_activity=YOUR_VALUE”, “match=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectCasbUseractivityMatchRules:ObjectCasbUseractivityMatchRules labelname {{fosid}}
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.