1. Packages
  2. Packages
  3. Fortimanager Provider
  4. API Docs
  5. ObjectFmgScript
Viewing docs for fortimanager 1.17.0
published on Monday, May 4, 2026 by fortinetdev
Viewing docs for fortimanager 1.17.0
published on Monday, May 4, 2026 by fortinetdev

    ObjectFmg Script

    The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

    • schedule: fortimanager.ObjectFmgScriptSchedule

    Create ObjectFmgScript Resource

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

    Constructor syntax

    new ObjectFmgScript(name: string, args?: ObjectFmgScriptArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectFmgScript(resource_name: str,
                        args: Optional[ObjectFmgScriptArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectFmgScript(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        adom: Optional[str] = None,
                        content: Optional[str] = None,
                        desc: Optional[str] = None,
                        dynamic_sort_subtable: Optional[str] = None,
                        filter_build: Optional[float] = None,
                        filter_device: Optional[float] = None,
                        filter_hostname: Optional[str] = None,
                        filter_ostype: Optional[float] = None,
                        filter_osver: Optional[float] = None,
                        filter_platform: Optional[str] = None,
                        filter_serial: Optional[str] = None,
                        members: Optional[Sequence[str]] = None,
                        name: Optional[str] = None,
                        object_fmg_script_id: Optional[str] = None,
                        schedules: Optional[Sequence[ObjectFmgScriptScheduleArgs]] = None,
                        scopetype: Optional[str] = None,
                        target: Optional[str] = None,
                        type: Optional[str] = None,
                        update_if_exist: Optional[bool] = None)
    func NewObjectFmgScript(ctx *Context, name string, args *ObjectFmgScriptArgs, opts ...ResourceOption) (*ObjectFmgScript, error)
    public ObjectFmgScript(string name, ObjectFmgScriptArgs? args = null, CustomResourceOptions? opts = null)
    public ObjectFmgScript(String name, ObjectFmgScriptArgs args)
    public ObjectFmgScript(String name, ObjectFmgScriptArgs args, CustomResourceOptions options)
    
    type: fortimanager:ObjectFmgScript
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "fortimanager_objectfmgscript" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ObjectFmgScriptArgs
    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 ObjectFmgScriptArgs
    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 ObjectFmgScriptArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectFmgScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectFmgScriptArgs
    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 objectFmgScriptResource = new Fortimanager.ObjectFmgScript("objectFmgScriptResource", new()
    {
        Adom = "string",
        Content = "string",
        Desc = "string",
        DynamicSortSubtable = "string",
        FilterBuild = 0,
        FilterDevice = 0,
        FilterHostname = "string",
        FilterOstype = 0,
        FilterOsver = 0,
        FilterPlatform = "string",
        FilterSerial = "string",
        Members = new[]
        {
            "string",
        },
        Name = "string",
        ObjectFmgScriptId = "string",
        Schedules = new[]
        {
            new Fortimanager.Inputs.ObjectFmgScriptScheduleArgs
            {
                Datetime = "string",
                DayOfWeek = 0,
                Device = 0,
                RunOnDb = 0,
                Timestamp = 0,
                Type = "string",
                User = "string",
            },
        },
        Scopetype = "string",
        Target = "string",
        Type = "string",
        UpdateIfExist = false,
    });
    
    example, err := fortimanager.NewObjectFmgScript(ctx, "objectFmgScriptResource", &fortimanager.ObjectFmgScriptArgs{
    	Adom:                pulumi.String("string"),
    	Content:             pulumi.String("string"),
    	Desc:                pulumi.String("string"),
    	DynamicSortSubtable: pulumi.String("string"),
    	FilterBuild:         pulumi.Float64(0),
    	FilterDevice:        pulumi.Float64(0),
    	FilterHostname:      pulumi.String("string"),
    	FilterOstype:        pulumi.Float64(0),
    	FilterOsver:         pulumi.Float64(0),
    	FilterPlatform:      pulumi.String("string"),
    	FilterSerial:        pulumi.String("string"),
    	Members: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name:              pulumi.String("string"),
    	ObjectFmgScriptId: pulumi.String("string"),
    	Schedules: fortimanager.ObjectFmgScriptScheduleTypeArray{
    		&fortimanager.ObjectFmgScriptScheduleTypeArgs{
    			Datetime:  pulumi.String("string"),
    			DayOfWeek: pulumi.Float64(0),
    			Device:    pulumi.Float64(0),
    			RunOnDb:   pulumi.Float64(0),
    			Timestamp: pulumi.Float64(0),
    			Type:      pulumi.String("string"),
    			User:      pulumi.String("string"),
    		},
    	},
    	Scopetype:     pulumi.String("string"),
    	Target:        pulumi.String("string"),
    	Type:          pulumi.String("string"),
    	UpdateIfExist: pulumi.Bool(false),
    })
    
    resource "fortimanager_objectfmgscript" "objectFmgScriptResource" {
      adom                  = "string"
      content               = "string"
      desc                  = "string"
      dynamic_sort_subtable = "string"
      filter_build          = 0
      filter_device         = 0
      filter_hostname       = "string"
      filter_ostype         = 0
      filter_osver          = 0
      filter_platform       = "string"
      filter_serial         = "string"
      members               = ["string"]
      name                  = "string"
      object_fmg_script_id  = "string"
      schedules {
        datetime    = "string"
        day_of_week = 0
        device      = 0
        run_on_db   = 0
        timestamp   = 0
        type        = "string"
        user        = "string"
      }
      scopetype       = "string"
      target          = "string"
      type            = "string"
      update_if_exist = false
    }
    
    var objectFmgScriptResource = new ObjectFmgScript("objectFmgScriptResource", ObjectFmgScriptArgs.builder()
        .adom("string")
        .content("string")
        .desc("string")
        .dynamicSortSubtable("string")
        .filterBuild(0.0)
        .filterDevice(0.0)
        .filterHostname("string")
        .filterOstype(0.0)
        .filterOsver(0.0)
        .filterPlatform("string")
        .filterSerial("string")
        .members("string")
        .name("string")
        .objectFmgScriptId("string")
        .schedules(ObjectFmgScriptScheduleArgs.builder()
            .datetime("string")
            .dayOfWeek(0.0)
            .device(0.0)
            .runOnDb(0.0)
            .timestamp(0.0)
            .type("string")
            .user("string")
            .build())
        .scopetype("string")
        .target("string")
        .type("string")
        .updateIfExist(false)
        .build());
    
    object_fmg_script_resource = fortimanager.ObjectFmgScript("objectFmgScriptResource",
        adom="string",
        content="string",
        desc="string",
        dynamic_sort_subtable="string",
        filter_build=float(0),
        filter_device=float(0),
        filter_hostname="string",
        filter_ostype=float(0),
        filter_osver=float(0),
        filter_platform="string",
        filter_serial="string",
        members=["string"],
        name="string",
        object_fmg_script_id="string",
        schedules=[{
            "datetime": "string",
            "day_of_week": float(0),
            "device": float(0),
            "run_on_db": float(0),
            "timestamp": float(0),
            "type": "string",
            "user": "string",
        }],
        scopetype="string",
        target="string",
        type="string",
        update_if_exist=False)
    
    const objectFmgScriptResource = new fortimanager.ObjectFmgScript("objectFmgScriptResource", {
        adom: "string",
        content: "string",
        desc: "string",
        dynamicSortSubtable: "string",
        filterBuild: 0,
        filterDevice: 0,
        filterHostname: "string",
        filterOstype: 0,
        filterOsver: 0,
        filterPlatform: "string",
        filterSerial: "string",
        members: ["string"],
        name: "string",
        objectFmgScriptId: "string",
        schedules: [{
            datetime: "string",
            dayOfWeek: 0,
            device: 0,
            runOnDb: 0,
            timestamp: 0,
            type: "string",
            user: "string",
        }],
        scopetype: "string",
        target: "string",
        type: "string",
        updateIfExist: false,
    });
    
    type: fortimanager:ObjectFmgScript
    properties:
        adom: string
        content: string
        desc: string
        dynamicSortSubtable: string
        filterBuild: 0
        filterDevice: 0
        filterHostname: string
        filterOstype: 0
        filterOsver: 0
        filterPlatform: string
        filterSerial: string
        members:
            - string
        name: string
        objectFmgScriptId: string
        schedules:
            - datetime: string
              dayOfWeek: 0
              device: 0
              runOnDb: 0
              timestamp: 0
              type: string
              user: string
        scopetype: string
        target: string
        type: string
        updateIfExist: false
    

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

    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Content string
    Content.
    Desc string
    Desc.
    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.
    FilterBuild double
    Filter_Build.
    FilterDevice double
    Filter_Device.
    FilterHostname string
    Filter_Hostname.
    FilterOstype double
    Filter_Ostype.
    FilterOsver double
    Filter_Osver.
    FilterPlatform string
    Filter_Platform.
    FilterSerial string
    Filter_Serial.
    Members List<string>
    Member.
    Name string
    Name.
    ObjectFmgScriptId string
    an identifier for the resource with format {{name}}.
    Schedules List<ObjectFmgScriptSchedule>
    Schedule. The structure of schedule block is documented below.
    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.
    Target string
    Target. Valid values: devdb, remote, adomdb.
    Type string
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    UpdateIfExist bool
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Content string
    Content.
    Desc string
    Desc.
    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.
    FilterBuild float64
    Filter_Build.
    FilterDevice float64
    Filter_Device.
    FilterHostname string
    Filter_Hostname.
    FilterOstype float64
    Filter_Ostype.
    FilterOsver float64
    Filter_Osver.
    FilterPlatform string
    Filter_Platform.
    FilterSerial string
    Filter_Serial.
    Members []string
    Member.
    Name string
    Name.
    ObjectFmgScriptId string
    an identifier for the resource with format {{name}}.
    Schedules []ObjectFmgScriptScheduleTypeArgs
    Schedule. The structure of schedule block is documented below.
    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.
    Target string
    Target. Valid values: devdb, remote, adomdb.
    Type string
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    UpdateIfExist bool
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content string
    Content.
    desc string
    Desc.
    dynamic_sort_subtable 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.
    filter_build number
    Filter_Build.
    filter_device number
    Filter_Device.
    filter_hostname string
    Filter_Hostname.
    filter_ostype number
    Filter_Ostype.
    filter_osver number
    Filter_Osver.
    filter_platform string
    Filter_Platform.
    filter_serial string
    Filter_Serial.
    members list(string)
    Member.
    name string
    Name.
    object_fmg_script_id string
    an identifier for the resource with format {{name}}.
    schedules list(object)
    Schedule. The structure of schedule block is documented below.
    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.
    target string
    Target. Valid values: devdb, remote, adomdb.
    type string
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    update_if_exist bool
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content String
    Content.
    desc String
    Desc.
    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.
    filterBuild Double
    Filter_Build.
    filterDevice Double
    Filter_Device.
    filterHostname String
    Filter_Hostname.
    filterOstype Double
    Filter_Ostype.
    filterOsver Double
    Filter_Osver.
    filterPlatform String
    Filter_Platform.
    filterSerial String
    Filter_Serial.
    members List<String>
    Member.
    name String
    Name.
    objectFmgScriptId String
    an identifier for the resource with format {{name}}.
    schedules List<ObjectFmgScriptSchedule>
    Schedule. The structure of schedule block is documented below.
    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.
    target String
    Target. Valid values: devdb, remote, adomdb.
    type String
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    updateIfExist Boolean
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content string
    Content.
    desc string
    Desc.
    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.
    filterBuild number
    Filter_Build.
    filterDevice number
    Filter_Device.
    filterHostname string
    Filter_Hostname.
    filterOstype number
    Filter_Ostype.
    filterOsver number
    Filter_Osver.
    filterPlatform string
    Filter_Platform.
    filterSerial string
    Filter_Serial.
    members string[]
    Member.
    name string
    Name.
    objectFmgScriptId string
    an identifier for the resource with format {{name}}.
    schedules ObjectFmgScriptSchedule[]
    Schedule. The structure of schedule block is documented below.
    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.
    target string
    Target. Valid values: devdb, remote, adomdb.
    type string
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    updateIfExist boolean
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content str
    Content.
    desc str
    Desc.
    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.
    filter_build float
    Filter_Build.
    filter_device float
    Filter_Device.
    filter_hostname str
    Filter_Hostname.
    filter_ostype float
    Filter_Ostype.
    filter_osver float
    Filter_Osver.
    filter_platform str
    Filter_Platform.
    filter_serial str
    Filter_Serial.
    members Sequence[str]
    Member.
    name str
    Name.
    object_fmg_script_id str
    an identifier for the resource with format {{name}}.
    schedules Sequence[ObjectFmgScriptScheduleArgs]
    Schedule. The structure of schedule block is documented below.
    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.
    target str
    Target. Valid values: devdb, remote, adomdb.
    type str
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    update_if_exist bool
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content String
    Content.
    desc String
    Desc.
    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.
    filterBuild Number
    Filter_Build.
    filterDevice Number
    Filter_Device.
    filterHostname String
    Filter_Hostname.
    filterOstype Number
    Filter_Ostype.
    filterOsver Number
    Filter_Osver.
    filterPlatform String
    Filter_Platform.
    filterSerial String
    Filter_Serial.
    members List<String>
    Member.
    name String
    Name.
    objectFmgScriptId String
    an identifier for the resource with format {{name}}.
    schedules List<Property Map>
    Schedule. The structure of schedule block is documented below.
    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.
    target String
    Target. Valid values: devdb, remote, adomdb.
    type String
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    updateIfExist Boolean

    Outputs

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

    Get an existing ObjectFmgScript 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?: ObjectFmgScriptState, opts?: CustomResourceOptions): ObjectFmgScript
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            content: Optional[str] = None,
            desc: Optional[str] = None,
            dynamic_sort_subtable: Optional[str] = None,
            filter_build: Optional[float] = None,
            filter_device: Optional[float] = None,
            filter_hostname: Optional[str] = None,
            filter_ostype: Optional[float] = None,
            filter_osver: Optional[float] = None,
            filter_platform: Optional[str] = None,
            filter_serial: Optional[str] = None,
            members: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            object_fmg_script_id: Optional[str] = None,
            schedules: Optional[Sequence[ObjectFmgScriptScheduleArgs]] = None,
            scopetype: Optional[str] = None,
            target: Optional[str] = None,
            type: Optional[str] = None,
            update_if_exist: Optional[bool] = None) -> ObjectFmgScript
    func GetObjectFmgScript(ctx *Context, name string, id IDInput, state *ObjectFmgScriptState, opts ...ResourceOption) (*ObjectFmgScript, error)
    public static ObjectFmgScript Get(string name, Input<string> id, ObjectFmgScriptState? state, CustomResourceOptions? opts = null)
    public static ObjectFmgScript get(String name, Output<String> id, ObjectFmgScriptState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:ObjectFmgScript    get:      id: ${id}
    import {
      to = fortimanager_objectfmgscript.example
      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.
    Content string
    Content.
    Desc string
    Desc.
    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.
    FilterBuild double
    Filter_Build.
    FilterDevice double
    Filter_Device.
    FilterHostname string
    Filter_Hostname.
    FilterOstype double
    Filter_Ostype.
    FilterOsver double
    Filter_Osver.
    FilterPlatform string
    Filter_Platform.
    FilterSerial string
    Filter_Serial.
    Members List<string>
    Member.
    Name string
    Name.
    ObjectFmgScriptId string
    an identifier for the resource with format {{name}}.
    Schedules List<ObjectFmgScriptSchedule>
    Schedule. The structure of schedule block is documented below.
    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.
    Target string
    Target. Valid values: devdb, remote, adomdb.
    Type string
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    UpdateIfExist bool
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Content string
    Content.
    Desc string
    Desc.
    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.
    FilterBuild float64
    Filter_Build.
    FilterDevice float64
    Filter_Device.
    FilterHostname string
    Filter_Hostname.
    FilterOstype float64
    Filter_Ostype.
    FilterOsver float64
    Filter_Osver.
    FilterPlatform string
    Filter_Platform.
    FilterSerial string
    Filter_Serial.
    Members []string
    Member.
    Name string
    Name.
    ObjectFmgScriptId string
    an identifier for the resource with format {{name}}.
    Schedules []ObjectFmgScriptScheduleTypeArgs
    Schedule. The structure of schedule block is documented below.
    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.
    Target string
    Target. Valid values: devdb, remote, adomdb.
    Type string
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    UpdateIfExist bool
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content string
    Content.
    desc string
    Desc.
    dynamic_sort_subtable 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.
    filter_build number
    Filter_Build.
    filter_device number
    Filter_Device.
    filter_hostname string
    Filter_Hostname.
    filter_ostype number
    Filter_Ostype.
    filter_osver number
    Filter_Osver.
    filter_platform string
    Filter_Platform.
    filter_serial string
    Filter_Serial.
    members list(string)
    Member.
    name string
    Name.
    object_fmg_script_id string
    an identifier for the resource with format {{name}}.
    schedules list(object)
    Schedule. The structure of schedule block is documented below.
    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.
    target string
    Target. Valid values: devdb, remote, adomdb.
    type string
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    update_if_exist bool
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content String
    Content.
    desc String
    Desc.
    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.
    filterBuild Double
    Filter_Build.
    filterDevice Double
    Filter_Device.
    filterHostname String
    Filter_Hostname.
    filterOstype Double
    Filter_Ostype.
    filterOsver Double
    Filter_Osver.
    filterPlatform String
    Filter_Platform.
    filterSerial String
    Filter_Serial.
    members List<String>
    Member.
    name String
    Name.
    objectFmgScriptId String
    an identifier for the resource with format {{name}}.
    schedules List<ObjectFmgScriptSchedule>
    Schedule. The structure of schedule block is documented below.
    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.
    target String
    Target. Valid values: devdb, remote, adomdb.
    type String
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    updateIfExist Boolean
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content string
    Content.
    desc string
    Desc.
    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.
    filterBuild number
    Filter_Build.
    filterDevice number
    Filter_Device.
    filterHostname string
    Filter_Hostname.
    filterOstype number
    Filter_Ostype.
    filterOsver number
    Filter_Osver.
    filterPlatform string
    Filter_Platform.
    filterSerial string
    Filter_Serial.
    members string[]
    Member.
    name string
    Name.
    objectFmgScriptId string
    an identifier for the resource with format {{name}}.
    schedules ObjectFmgScriptSchedule[]
    Schedule. The structure of schedule block is documented below.
    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.
    target string
    Target. Valid values: devdb, remote, adomdb.
    type string
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    updateIfExist boolean
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content str
    Content.
    desc str
    Desc.
    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.
    filter_build float
    Filter_Build.
    filter_device float
    Filter_Device.
    filter_hostname str
    Filter_Hostname.
    filter_ostype float
    Filter_Ostype.
    filter_osver float
    Filter_Osver.
    filter_platform str
    Filter_Platform.
    filter_serial str
    Filter_Serial.
    members Sequence[str]
    Member.
    name str
    Name.
    object_fmg_script_id str
    an identifier for the resource with format {{name}}.
    schedules Sequence[ObjectFmgScriptScheduleArgs]
    Schedule. The structure of schedule block is documented below.
    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.
    target str
    Target. Valid values: devdb, remote, adomdb.
    type str
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    update_if_exist bool
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    content String
    Content.
    desc String
    Desc.
    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.
    filterBuild Number
    Filter_Build.
    filterDevice Number
    Filter_Device.
    filterHostname String
    Filter_Hostname.
    filterOstype Number
    Filter_Ostype.
    filterOsver Number
    Filter_Osver.
    filterPlatform String
    Filter_Platform.
    filterSerial String
    Filter_Serial.
    members List<String>
    Member.
    name String
    Name.
    objectFmgScriptId String
    an identifier for the resource with format {{name}}.
    schedules List<Property Map>
    Schedule. The structure of schedule block is documented below.
    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.
    target String
    Target. Valid values: devdb, remote, adomdb.
    type String
    Type. Valid values: cli, tcl, cligrp, tclgrp, jinja.
    updateIfExist Boolean

    Supporting Types

    ObjectFmgScriptSchedule, ObjectFmgScriptScheduleArgs

    Datetime string
    Datetime.
    DayOfWeek double
    Day-Of-Week.
    Device double
    Device.
    RunOnDb double
    Run-On-Db.
    Timestamp double
    Timestamp.
    Type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    User string
    User.
    Datetime string
    Datetime.
    DayOfWeek float64
    Day-Of-Week.
    Device float64
    Device.
    RunOnDb float64
    Run-On-Db.
    Timestamp float64
    Timestamp.
    Type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    User string
    User.
    datetime string
    Datetime.
    day_of_week number
    Day-Of-Week.
    device number
    Device.
    run_on_db number
    Run-On-Db.
    timestamp number
    Timestamp.
    type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    user string
    User.
    datetime String
    Datetime.
    dayOfWeek Double
    Day-Of-Week.
    device Double
    Device.
    runOnDb Double
    Run-On-Db.
    timestamp Double
    Timestamp.
    type String
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    user String
    User.
    datetime string
    Datetime.
    dayOfWeek number
    Day-Of-Week.
    device number
    Device.
    runOnDb number
    Run-On-Db.
    timestamp number
    Timestamp.
    type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    user string
    User.
    datetime str
    Datetime.
    day_of_week float
    Day-Of-Week.
    device float
    Device.
    run_on_db float
    Run-On-Db.
    timestamp float
    Timestamp.
    type str
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    user str
    User.
    datetime String
    Datetime.
    dayOfWeek Number
    Day-Of-Week.
    device Number
    Device.
    runOnDb Number
    Run-On-Db.
    timestamp Number
    Timestamp.
    type String
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    user String
    User.

    Import

    ObjectFmg Script can be imported using any of these accepted formats:

    $ export “FORTIMANAGER_IMPORT_TABLE”=“true”

    $ pulumi import fortimanager:index/objectFmgScript:ObjectFmgScript labelname {{name}}
    

    $ 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.
    Viewing docs for fortimanager 1.17.0
    published on Monday, May 4, 2026 by fortinetdev
      Try Pulumi Cloud free. Your team will thank you.