published on Monday, May 4, 2026 by fortinetdev
published on Monday, May 4, 2026 by fortinetdev
ObjectFmg ScriptSchedule
This resource is a sub resource for variable
scheduleof resourcefortimanager.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.
resource "fortimanager_objectfmgscriptschedule" "name" {
# resource properties
}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"),
})
resource "fortimanager_objectfmgscriptschedule" "objectFmgScriptScheduleResource" {
script = "string"
adom = "string"
datetime = "string"
day_of_week = 0
device = 0
object_fmg_script_schedule_id = "string"
run_on_db = 0
scopetype = "string"
timestamp = 0
type = "string"
update_if_exist = false
user = "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
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Datetime string
- Datetime.
- Day
Of doubleWeek - Day-Of-Week.
- Device double
- Device.
- Object
Fmg stringScript Schedule Id - an identifier for the resource with format {{device}}.
- Run
On doubleDb - Run-On-Db.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Timestamp double
- Timestamp.
- Type string
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - Update
If boolExist - User string
- User.
- Script string
- Script.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Datetime string
- Datetime.
- Day
Of float64Week - Day-Of-Week.
- Device float64
- Device.
- Object
Fmg stringScript Schedule Id - an identifier for the resource with format {{device}}.
- Run
On float64Db - Run-On-Db.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Timestamp float64
- Timestamp.
- Type string
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - Update
If boolExist - User string
- User.
- script string
- Script.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime string
- Datetime.
- day_
of_ numberweek - Day-Of-Week.
- device number
- Device.
- object_
fmg_ stringscript_ schedule_ id - an identifier for the resource with format {{device}}.
- run_
on_ numberdb - Run-On-Db.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - timestamp number
- Timestamp.
- type string
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update_
if_ boolexist - user string
- User.
- script String
- Script.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime String
- Datetime.
- day
Of DoubleWeek - Day-Of-Week.
- device Double
- Device.
- object
Fmg StringScript Schedule Id - an identifier for the resource with format {{device}}.
- run
On DoubleDb - Run-On-Db.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - timestamp Double
- Timestamp.
- type String
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update
If BooleanExist - user String
- User.
- script string
- Script.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime string
- Datetime.
- day
Of numberWeek - Day-Of-Week.
- device number
- Device.
- object
Fmg stringScript Schedule Id - an identifier for the resource with format {{device}}.
- run
On numberDb - Run-On-Db.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - timestamp number
- Timestamp.
- type string
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update
If booleanExist - user string
- User.
- script str
- Script.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime str
- Datetime.
- day_
of_ floatweek - Day-Of-Week.
- device float
- Device.
- object_
fmg_ strscript_ schedule_ id - an identifier for the resource with format {{device}}.
- run_
on_ floatdb - Run-On-Db.
- scopetype str
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - timestamp float
- Timestamp.
- type str
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update_
if_ boolexist - user str
- User.
- script String
- Script.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime String
- Datetime.
- day
Of NumberWeek - Day-Of-Week.
- device Number
- Device.
- object
Fmg StringScript Schedule Id - an identifier for the resource with format {{device}}.
- run
On NumberDb - Run-On-Db.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - timestamp Number
- Timestamp.
- type String
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update
If BooleanExist - 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 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) -> ObjectFmgScriptSchedulefunc 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}import {
to = fortimanager_objectfmgscriptschedule.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.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Datetime string
- Datetime.
- Day
Of doubleWeek - Day-Of-Week.
- Device double
- Device.
- Object
Fmg stringScript Schedule Id - an identifier for the resource with format {{device}}.
- Run
On doubleDb - Run-On-Db.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Script string
- Script.
- Timestamp double
- Timestamp.
- Type string
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - Update
If boolExist - User string
- User.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Datetime string
- Datetime.
- Day
Of float64Week - Day-Of-Week.
- Device float64
- Device.
- Object
Fmg stringScript Schedule Id - an identifier for the resource with format {{device}}.
- Run
On float64Db - Run-On-Db.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Script string
- Script.
- Timestamp float64
- Timestamp.
- Type string
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - Update
If boolExist - User string
- User.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime string
- Datetime.
- day_
of_ numberweek - Day-Of-Week.
- device number
- Device.
- object_
fmg_ stringscript_ schedule_ id - an identifier for the resource with format {{device}}.
- run_
on_ numberdb - Run-On-Db.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - script string
- Script.
- timestamp number
- Timestamp.
- type string
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update_
if_ boolexist - user string
- User.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime String
- Datetime.
- day
Of DoubleWeek - Day-Of-Week.
- device Double
- Device.
- object
Fmg StringScript Schedule Id - an identifier for the resource with format {{device}}.
- run
On DoubleDb - Run-On-Db.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - script String
- Script.
- timestamp Double
- Timestamp.
- type String
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update
If BooleanExist - user String
- User.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime string
- Datetime.
- day
Of numberWeek - Day-Of-Week.
- device number
- Device.
- object
Fmg stringScript Schedule Id - an identifier for the resource with format {{device}}.
- run
On numberDb - Run-On-Db.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - script string
- Script.
- timestamp number
- Timestamp.
- type string
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update
If booleanExist - user string
- User.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime str
- Datetime.
- day_
of_ floatweek - Day-Of-Week.
- device float
- Device.
- object_
fmg_ strscript_ schedule_ id - an identifier for the resource with format {{device}}.
- run_
on_ floatdb - Run-On-Db.
- scopetype str
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - script str
- Script.
- timestamp float
- Timestamp.
- type str
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update_
if_ boolexist - user str
- User.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - datetime String
- Datetime.
- day
Of NumberWeek - Day-Of-Week.
- device Number
- Device.
- object
Fmg StringScript Schedule Id - an identifier for the resource with format {{device}}.
- run
On NumberDb - Run-On-Db.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - script String
- Script.
- timestamp Number
- Timestamp.
- type String
- Type. Valid values:
auto,onetime,daily,weekly,monthly. - update
If BooleanExist - 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
fortimanagerTerraform Provider.
published on Monday, May 4, 2026 by fortinetdev
