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

fortimanager.ObjectFirewallScheduleRecurring

Explore with Pulumi AI

Recurring schedule configuration.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname = new fortimanager.ObjectFirewallScheduleRecurring("trname", {
    color: 1,
    days: [
        "sunday",
        "monday",
        "tuesday",
        "wednesday",
        "thursday",
        "friday",
        "saturday",
        "none",
    ],
    end: "15:00",
    start: "07:00",
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.ObjectFirewallScheduleRecurring("trname",
    color=1,
    days=[
        "sunday",
        "monday",
        "tuesday",
        "wednesday",
        "thursday",
        "friday",
        "saturday",
        "none",
    ],
    end="15:00",
    start="07:00")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fortimanager.NewObjectFirewallScheduleRecurring(ctx, "trname", &fortimanager.ObjectFirewallScheduleRecurringArgs{
			Color: pulumi.Float64(1),
			Days: pulumi.StringArray{
				pulumi.String("sunday"),
				pulumi.String("monday"),
				pulumi.String("tuesday"),
				pulumi.String("wednesday"),
				pulumi.String("thursday"),
				pulumi.String("friday"),
				pulumi.String("saturday"),
				pulumi.String("none"),
			},
			End:   pulumi.String("15:00"),
			Start: pulumi.String("07:00"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortimanager.ObjectFirewallScheduleRecurring("trname", new()
    {
        Color = 1,
        Days = new[]
        {
            "sunday",
            "monday",
            "tuesday",
            "wednesday",
            "thursday",
            "friday",
            "saturday",
            "none",
        },
        End = "15:00",
        Start = "07:00",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectFirewallScheduleRecurring;
import com.pulumi.fortimanager.ObjectFirewallScheduleRecurringArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var trname = new ObjectFirewallScheduleRecurring("trname", ObjectFirewallScheduleRecurringArgs.builder()
            .color(1)
            .days(            
                "sunday",
                "monday",
                "tuesday",
                "wednesday",
                "thursday",
                "friday",
                "saturday",
                "none")
            .end("15:00")
            .start("07:00")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:ObjectFirewallScheduleRecurring
    properties:
      color: 1
      days:
        - sunday
        - monday
        - tuesday
        - wednesday
        - thursday
        - friday
        - saturday
        - none
      end: 15:00
      start: 07:00
Copy

Create ObjectFirewallScheduleRecurring Resource

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

Constructor syntax

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

@overload
def ObjectFirewallScheduleRecurring(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    adom: Optional[str] = None,
                                    color: Optional[float] = None,
                                    days: Optional[Sequence[str]] = None,
                                    end: Optional[str] = None,
                                    fabric_object: Optional[str] = None,
                                    global_object: Optional[float] = None,
                                    name: Optional[str] = None,
                                    object_firewall_schedule_recurring_id: Optional[str] = None,
                                    scopetype: Optional[str] = None,
                                    start: Optional[str] = None,
                                    uuid: Optional[str] = None)
func NewObjectFirewallScheduleRecurring(ctx *Context, name string, args *ObjectFirewallScheduleRecurringArgs, opts ...ResourceOption) (*ObjectFirewallScheduleRecurring, error)
public ObjectFirewallScheduleRecurring(string name, ObjectFirewallScheduleRecurringArgs? args = null, CustomResourceOptions? opts = null)
public ObjectFirewallScheduleRecurring(String name, ObjectFirewallScheduleRecurringArgs args)
public ObjectFirewallScheduleRecurring(String name, ObjectFirewallScheduleRecurringArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFirewallScheduleRecurring
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 ObjectFirewallScheduleRecurringArgs
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 ObjectFirewallScheduleRecurringArgs
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 ObjectFirewallScheduleRecurringArgs
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 ObjectFirewallScheduleRecurringArgs
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. ObjectFirewallScheduleRecurringArgs
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 objectFirewallScheduleRecurringResource = new Fortimanager.ObjectFirewallScheduleRecurring("objectFirewallScheduleRecurringResource", new()
{
    Adom = "string",
    Color = 0,
    Days = new[]
    {
        "string",
    },
    End = "string",
    FabricObject = "string",
    GlobalObject = 0,
    Name = "string",
    ObjectFirewallScheduleRecurringId = "string",
    Scopetype = "string",
    Start = "string",
    Uuid = "string",
});
Copy
example, err := fortimanager.NewObjectFirewallScheduleRecurring(ctx, "objectFirewallScheduleRecurringResource", &fortimanager.ObjectFirewallScheduleRecurringArgs{
Adom: pulumi.String("string"),
Color: pulumi.Float64(0),
Days: pulumi.StringArray{
pulumi.String("string"),
},
End: pulumi.String("string"),
FabricObject: pulumi.String("string"),
GlobalObject: pulumi.Float64(0),
Name: pulumi.String("string"),
ObjectFirewallScheduleRecurringId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Start: pulumi.String("string"),
Uuid: pulumi.String("string"),
})
Copy
var objectFirewallScheduleRecurringResource = new ObjectFirewallScheduleRecurring("objectFirewallScheduleRecurringResource", ObjectFirewallScheduleRecurringArgs.builder()
    .adom("string")
    .color(0)
    .days("string")
    .end("string")
    .fabricObject("string")
    .globalObject(0)
    .name("string")
    .objectFirewallScheduleRecurringId("string")
    .scopetype("string")
    .start("string")
    .uuid("string")
    .build());
Copy
object_firewall_schedule_recurring_resource = fortimanager.ObjectFirewallScheduleRecurring("objectFirewallScheduleRecurringResource",
    adom="string",
    color=0,
    days=["string"],
    end="string",
    fabric_object="string",
    global_object=0,
    name="string",
    object_firewall_schedule_recurring_id="string",
    scopetype="string",
    start="string",
    uuid="string")
Copy
const objectFirewallScheduleRecurringResource = new fortimanager.ObjectFirewallScheduleRecurring("objectFirewallScheduleRecurringResource", {
    adom: "string",
    color: 0,
    days: ["string"],
    end: "string",
    fabricObject: "string",
    globalObject: 0,
    name: "string",
    objectFirewallScheduleRecurringId: "string",
    scopetype: "string",
    start: "string",
    uuid: "string",
});
Copy
type: fortimanager:ObjectFirewallScheduleRecurring
properties:
    adom: string
    color: 0
    days:
        - string
    end: string
    fabricObject: string
    globalObject: 0
    name: string
    objectFirewallScheduleRecurringId: string
    scopetype: string
    start: string
    uuid: string
Copy

ObjectFirewallScheduleRecurring 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 ObjectFirewallScheduleRecurring 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.
Color double
Color of icon on the GUI.
Days List<string>
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
End string
Time of day to end the schedule, format hh:mm.
FabricObject string
Security Fabric global object setting. Valid values: disable, enable.
GlobalObject double
Global Object.
Name string
Recurring schedule name.
ObjectFirewallScheduleRecurringId string
an identifier for the resource with format {{name}}.
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.
Start string
Time of day to start the schedule, format hh:mm.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Color float64
Color of icon on the GUI.
Days []string
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
End string
Time of day to end the schedule, format hh:mm.
FabricObject string
Security Fabric global object setting. Valid values: disable, enable.
GlobalObject float64
Global Object.
Name string
Recurring schedule name.
ObjectFirewallScheduleRecurringId string
an identifier for the resource with format {{name}}.
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.
Start string
Time of day to start the schedule, format hh:mm.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color Double
Color of icon on the GUI.
days List<String>
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
end String
Time of day to end the schedule, format hh:mm.
fabricObject String
Security Fabric global object setting. Valid values: disable, enable.
globalObject Double
Global Object.
name String
Recurring schedule name.
objectFirewallScheduleRecurringId String
an identifier for the resource with format {{name}}.
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.
start String
Time of day to start the schedule, format hh:mm.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color number
Color of icon on the GUI.
days string[]
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
end string
Time of day to end the schedule, format hh:mm.
fabricObject string
Security Fabric global object setting. Valid values: disable, enable.
globalObject number
Global Object.
name string
Recurring schedule name.
objectFirewallScheduleRecurringId string
an identifier for the resource with format {{name}}.
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.
start string
Time of day to start the schedule, format hh:mm.
uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color float
Color of icon on the GUI.
days Sequence[str]
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
end str
Time of day to end the schedule, format hh:mm.
fabric_object str
Security Fabric global object setting. Valid values: disable, enable.
global_object float
Global Object.
name str
Recurring schedule name.
object_firewall_schedule_recurring_id str
an identifier for the resource with format {{name}}.
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.
start str
Time of day to start the schedule, format hh:mm.
uuid str
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color Number
Color of icon on the GUI.
days List<String>
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
end String
Time of day to end the schedule, format hh:mm.
fabricObject String
Security Fabric global object setting. Valid values: disable, enable.
globalObject Number
Global Object.
name String
Recurring schedule name.
objectFirewallScheduleRecurringId String
an identifier for the resource with format {{name}}.
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.
start String
Time of day to start the schedule, format hh:mm.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

Outputs

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

Get an existing ObjectFirewallScheduleRecurring 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?: ObjectFirewallScheduleRecurringState, opts?: CustomResourceOptions): ObjectFirewallScheduleRecurring
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        color: Optional[float] = None,
        days: Optional[Sequence[str]] = None,
        end: Optional[str] = None,
        fabric_object: Optional[str] = None,
        global_object: Optional[float] = None,
        name: Optional[str] = None,
        object_firewall_schedule_recurring_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        start: Optional[str] = None,
        uuid: Optional[str] = None) -> ObjectFirewallScheduleRecurring
func GetObjectFirewallScheduleRecurring(ctx *Context, name string, id IDInput, state *ObjectFirewallScheduleRecurringState, opts ...ResourceOption) (*ObjectFirewallScheduleRecurring, error)
public static ObjectFirewallScheduleRecurring Get(string name, Input<string> id, ObjectFirewallScheduleRecurringState? state, CustomResourceOptions? opts = null)
public static ObjectFirewallScheduleRecurring get(String name, Output<String> id, ObjectFirewallScheduleRecurringState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectFirewallScheduleRecurring    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.
Color double
Color of icon on the GUI.
Days List<string>
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
End string
Time of day to end the schedule, format hh:mm.
FabricObject string
Security Fabric global object setting. Valid values: disable, enable.
GlobalObject double
Global Object.
Name string
Recurring schedule name.
ObjectFirewallScheduleRecurringId string
an identifier for the resource with format {{name}}.
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.
Start string
Time of day to start the schedule, format hh:mm.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Color float64
Color of icon on the GUI.
Days []string
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
End string
Time of day to end the schedule, format hh:mm.
FabricObject string
Security Fabric global object setting. Valid values: disable, enable.
GlobalObject float64
Global Object.
Name string
Recurring schedule name.
ObjectFirewallScheduleRecurringId string
an identifier for the resource with format {{name}}.
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.
Start string
Time of day to start the schedule, format hh:mm.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color Double
Color of icon on the GUI.
days List<String>
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
end String
Time of day to end the schedule, format hh:mm.
fabricObject String
Security Fabric global object setting. Valid values: disable, enable.
globalObject Double
Global Object.
name String
Recurring schedule name.
objectFirewallScheduleRecurringId String
an identifier for the resource with format {{name}}.
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.
start String
Time of day to start the schedule, format hh:mm.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color number
Color of icon on the GUI.
days string[]
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
end string
Time of day to end the schedule, format hh:mm.
fabricObject string
Security Fabric global object setting. Valid values: disable, enable.
globalObject number
Global Object.
name string
Recurring schedule name.
objectFirewallScheduleRecurringId string
an identifier for the resource with format {{name}}.
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.
start string
Time of day to start the schedule, format hh:mm.
uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color float
Color of icon on the GUI.
days Sequence[str]
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
end str
Time of day to end the schedule, format hh:mm.
fabric_object str
Security Fabric global object setting. Valid values: disable, enable.
global_object float
Global Object.
name str
Recurring schedule name.
object_firewall_schedule_recurring_id str
an identifier for the resource with format {{name}}.
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.
start str
Time of day to start the schedule, format hh:mm.
uuid str
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
color Number
Color of icon on the GUI.
days List<String>
One or more days of the week on which the schedule is valid. Separate the names of the days with a space. Valid values: sunday, monday, tuesday, wednesday, thursday, friday, saturday, none.
end String
Time of day to end the schedule, format hh:mm.
fabricObject String
Security Fabric global object setting. Valid values: disable, enable.
globalObject Number
Global Object.
name String
Recurring schedule name.
objectFirewallScheduleRecurringId String
an identifier for the resource with format {{name}}.
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.
start String
Time of day to start the schedule, format hh:mm.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

Import

ObjectFirewall ScheduleRecurring can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectFirewallScheduleRecurring:ObjectFirewallScheduleRecurring labelname {{name}}
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.