1. Packages
  2. Packages
  3. Fortimanager Provider
  4. API Docs
  5. ObjectFmgScriptSchedule
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 ScriptSchedule

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

    Create ObjectFmgScriptSchedule Resource

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

    Constructor syntax

    new ObjectFmgScriptSchedule(name: string, args: ObjectFmgScriptScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectFmgScriptSchedule(resource_name: str,
                                args: ObjectFmgScriptScheduleInitArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectFmgScriptSchedule(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                script: Optional[str] = None,
                                adom: Optional[str] = None,
                                datetime: Optional[str] = None,
                                day_of_week: Optional[float] = None,
                                device: Optional[float] = None,
                                object_fmg_script_schedule_id: Optional[str] = None,
                                run_on_db: Optional[float] = None,
                                scopetype: Optional[str] = None,
                                timestamp: Optional[float] = None,
                                type: Optional[str] = None,
                                update_if_exist: Optional[bool] = None,
                                user: Optional[str] = None)
    func NewObjectFmgScriptSchedule(ctx *Context, name string, args ObjectFmgScriptScheduleArgs, opts ...ResourceOption) (*ObjectFmgScriptSchedule, error)
    public ObjectFmgScriptSchedule(string name, ObjectFmgScriptScheduleArgs args, CustomResourceOptions? opts = null)
    public ObjectFmgScriptSchedule(String name, ObjectFmgScriptScheduleArgs args)
    public ObjectFmgScriptSchedule(String name, ObjectFmgScriptScheduleArgs args, CustomResourceOptions options)
    
    type: fortimanager:ObjectFmgScriptSchedule
    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 ObjectFmgScriptScheduleArgs
    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 ObjectFmgScriptScheduleInitArgs
    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 ObjectFmgScriptScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectFmgScriptScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectFmgScriptScheduleArgs
    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 objectFmgScriptScheduleResource = new Fortimanager.ObjectFmgScriptSchedule("objectFmgScriptScheduleResource", new()
    {
        Script = "string",
        Adom = "string",
        Datetime = "string",
        DayOfWeek = 0,
        Device = 0,
        ObjectFmgScriptScheduleId = "string",
        RunOnDb = 0,
        Scopetype = "string",
        Timestamp = 0,
        Type = "string",
        UpdateIfExist = false,
        User = "string",
    });
    
    example, err := fortimanager.NewObjectFmgScriptSchedule(ctx, "objectFmgScriptScheduleResource", &fortimanager.ObjectFmgScriptScheduleArgs{
    	Script:                    pulumi.String("string"),
    	Adom:                      pulumi.String("string"),
    	Datetime:                  pulumi.String("string"),
    	DayOfWeek:                 pulumi.Float64(0),
    	Device:                    pulumi.Float64(0),
    	ObjectFmgScriptScheduleId: pulumi.String("string"),
    	RunOnDb:                   pulumi.Float64(0),
    	Scopetype:                 pulumi.String("string"),
    	Timestamp:                 pulumi.Float64(0),
    	Type:                      pulumi.String("string"),
    	UpdateIfExist:             pulumi.Bool(false),
    	User:                      pulumi.String("string"),
    })
    
    var objectFmgScriptScheduleResource = new ObjectFmgScriptSchedule("objectFmgScriptScheduleResource", ObjectFmgScriptScheduleArgs.builder()
        .script("string")
        .adom("string")
        .datetime("string")
        .dayOfWeek(0.0)
        .device(0.0)
        .objectFmgScriptScheduleId("string")
        .runOnDb(0.0)
        .scopetype("string")
        .timestamp(0.0)
        .type("string")
        .updateIfExist(false)
        .user("string")
        .build());
    
    object_fmg_script_schedule_resource = fortimanager.ObjectFmgScriptSchedule("objectFmgScriptScheduleResource",
        script="string",
        adom="string",
        datetime="string",
        day_of_week=float(0),
        device=float(0),
        object_fmg_script_schedule_id="string",
        run_on_db=float(0),
        scopetype="string",
        timestamp=float(0),
        type="string",
        update_if_exist=False,
        user="string")
    
    const objectFmgScriptScheduleResource = new fortimanager.ObjectFmgScriptSchedule("objectFmgScriptScheduleResource", {
        script: "string",
        adom: "string",
        datetime: "string",
        dayOfWeek: 0,
        device: 0,
        objectFmgScriptScheduleId: "string",
        runOnDb: 0,
        scopetype: "string",
        timestamp: 0,
        type: "string",
        updateIfExist: false,
        user: "string",
    });
    
    type: fortimanager:ObjectFmgScriptSchedule
    properties:
        adom: string
        datetime: string
        dayOfWeek: 0
        device: 0
        objectFmgScriptScheduleId: string
        runOnDb: 0
        scopetype: string
        script: string
        timestamp: 0
        type: string
        updateIfExist: false
        user: string
    

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

    Script string
    Script.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Datetime string
    Datetime.
    DayOfWeek double
    Day-Of-Week.
    Device double
    Device.
    ObjectFmgScriptScheduleId string
    an identifier for the resource with format {{device}}.
    RunOnDb double
    Run-On-Db.
    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.
    Timestamp double
    Timestamp.
    Type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    UpdateIfExist bool
    User string
    User.
    Script string
    Script.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Datetime string
    Datetime.
    DayOfWeek float64
    Day-Of-Week.
    Device float64
    Device.
    ObjectFmgScriptScheduleId string
    an identifier for the resource with format {{device}}.
    RunOnDb float64
    Run-On-Db.
    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.
    Timestamp float64
    Timestamp.
    Type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    UpdateIfExist bool
    User string
    User.
    script String
    Script.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    datetime String
    Datetime.
    dayOfWeek Double
    Day-Of-Week.
    device Double
    Device.
    objectFmgScriptScheduleId String
    an identifier for the resource with format {{device}}.
    runOnDb Double
    Run-On-Db.
    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.
    timestamp Double
    Timestamp.
    type String
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    updateIfExist Boolean
    user String
    User.
    script string
    Script.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    datetime string
    Datetime.
    dayOfWeek number
    Day-Of-Week.
    device number
    Device.
    objectFmgScriptScheduleId string
    an identifier for the resource with format {{device}}.
    runOnDb number
    Run-On-Db.
    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.
    timestamp number
    Timestamp.
    type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    updateIfExist boolean
    user string
    User.
    script str
    Script.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    datetime str
    Datetime.
    day_of_week float
    Day-Of-Week.
    device float
    Device.
    object_fmg_script_schedule_id str
    an identifier for the resource with format {{device}}.
    run_on_db float
    Run-On-Db.
    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.
    timestamp float
    Timestamp.
    type str
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    update_if_exist bool
    user str
    User.
    script String
    Script.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    datetime String
    Datetime.
    dayOfWeek Number
    Day-Of-Week.
    device Number
    Device.
    objectFmgScriptScheduleId String
    an identifier for the resource with format {{device}}.
    runOnDb Number
    Run-On-Db.
    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.
    timestamp Number
    Timestamp.
    type String
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    updateIfExist Boolean
    user String
    User.

    Outputs

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

    Get an existing ObjectFmgScriptSchedule 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?: ObjectFmgScriptScheduleState, opts?: CustomResourceOptions): ObjectFmgScriptSchedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            datetime: Optional[str] = None,
            day_of_week: Optional[float] = None,
            device: Optional[float] = None,
            object_fmg_script_schedule_id: Optional[str] = None,
            run_on_db: Optional[float] = None,
            scopetype: Optional[str] = None,
            script: Optional[str] = None,
            timestamp: Optional[float] = None,
            type: Optional[str] = None,
            update_if_exist: Optional[bool] = None,
            user: Optional[str] = None) -> ObjectFmgScriptSchedule
    func GetObjectFmgScriptSchedule(ctx *Context, name string, id IDInput, state *ObjectFmgScriptScheduleState, opts ...ResourceOption) (*ObjectFmgScriptSchedule, error)
    public static ObjectFmgScriptSchedule Get(string name, Input<string> id, ObjectFmgScriptScheduleState? state, CustomResourceOptions? opts = null)
    public static ObjectFmgScriptSchedule get(String name, Output<String> id, ObjectFmgScriptScheduleState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:ObjectFmgScriptSchedule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Datetime string
    Datetime.
    DayOfWeek double
    Day-Of-Week.
    Device double
    Device.
    ObjectFmgScriptScheduleId string
    an identifier for the resource with format {{device}}.
    RunOnDb double
    Run-On-Db.
    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.
    Script string
    Script.
    Timestamp double
    Timestamp.
    Type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    UpdateIfExist bool
    User string
    User.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Datetime string
    Datetime.
    DayOfWeek float64
    Day-Of-Week.
    Device float64
    Device.
    ObjectFmgScriptScheduleId string
    an identifier for the resource with format {{device}}.
    RunOnDb float64
    Run-On-Db.
    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.
    Script string
    Script.
    Timestamp float64
    Timestamp.
    Type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    UpdateIfExist bool
    User string
    User.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    datetime String
    Datetime.
    dayOfWeek Double
    Day-Of-Week.
    device Double
    Device.
    objectFmgScriptScheduleId String
    an identifier for the resource with format {{device}}.
    runOnDb Double
    Run-On-Db.
    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.
    script String
    Script.
    timestamp Double
    Timestamp.
    type String
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    updateIfExist Boolean
    user String
    User.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    datetime string
    Datetime.
    dayOfWeek number
    Day-Of-Week.
    device number
    Device.
    objectFmgScriptScheduleId string
    an identifier for the resource with format {{device}}.
    runOnDb number
    Run-On-Db.
    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.
    script string
    Script.
    timestamp number
    Timestamp.
    type string
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    updateIfExist boolean
    user string
    User.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    datetime str
    Datetime.
    day_of_week float
    Day-Of-Week.
    device float
    Device.
    object_fmg_script_schedule_id str
    an identifier for the resource with format {{device}}.
    run_on_db float
    Run-On-Db.
    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.
    script str
    Script.
    timestamp float
    Timestamp.
    type str
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    update_if_exist bool
    user str
    User.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    datetime String
    Datetime.
    dayOfWeek Number
    Day-Of-Week.
    device Number
    Device.
    objectFmgScriptScheduleId String
    an identifier for the resource with format {{device}}.
    runOnDb Number
    Run-On-Db.
    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.
    script String
    Script.
    timestamp Number
    Timestamp.
    type String
    Type. Valid values: auto, onetime, daily, weekly, monthly.
    updateIfExist Boolean
    user String
    User.

    Import

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

    Set import_options = [“script=YOUR_VALUE”] in the provider section.

    $ export “FORTIMANAGER_IMPORT_TABLE”=“true”

    $ pulumi import fortimanager:index/objectFmgScriptSchedule:ObjectFmgScriptSchedule labelname {{device}}
    

    $ 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.