1. Packages
  2. Fortios
  3. API Docs
  4. system
  5. system/autoupdate
  6. Schedule
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.system/autoupdate.Schedule

Explore with Pulumi AI

Configure update schedule.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";

const trname = new fortios.system.autoupdate.Schedule("trname", {
    day: "Monday",
    frequency: "every",
    status: "enable",
    time: "02:60",
});
Copy
import pulumi
import pulumiverse_fortios as fortios

trname = fortios.system.autoupdate.Schedule("trname",
    day="Monday",
    frequency="every",
    status="enable",
    time="02:60")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := system.NewSchedule(ctx, "trname", &system.ScheduleArgs{
			Day:       pulumi.String("Monday"),
			Frequency: pulumi.String("every"),
			Status:    pulumi.String("enable"),
			Time:      pulumi.String("02:60"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortios.System.Autoupdate.Schedule("trname", new()
    {
        Day = "Monday",
        Frequency = "every",
        Status = "enable",
        Time = "02:60",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.system.Schedule;
import com.pulumi.fortios.system.ScheduleArgs;
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 Schedule("trname", ScheduleArgs.builder()
            .day("Monday")
            .frequency("every")
            .status("enable")
            .time("02:60")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortios:system/autoupdate:Schedule
    properties:
      day: Monday
      frequency: every
      status: enable
      time: 02:60
Copy

Create Schedule Resource

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

Constructor syntax

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

@overload
def Schedule(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             frequency: Optional[str] = None,
             status: Optional[str] = None,
             time: Optional[str] = None,
             day: Optional[str] = None,
             vdomparam: Optional[str] = None)
func NewSchedule(ctx *Context, name string, args ScheduleArgs, opts ...ResourceOption) (*Schedule, error)
public Schedule(string name, ScheduleArgs args, CustomResourceOptions? opts = null)
public Schedule(String name, ScheduleArgs args)
public Schedule(String name, ScheduleArgs args, CustomResourceOptions options)
type: fortios:system/autoupdate/schedule:Schedule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ScheduleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ScheduleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ScheduleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ScheduleArgs
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. ScheduleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Frequency This property is required. string
Update frequency.
Status This property is required. string
Enable/disable scheduled updates. Valid values: enable, disable.
Time This property is required. string
Update time.
Day string
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Frequency This property is required. string
Update frequency.
Status This property is required. string
Enable/disable scheduled updates. Valid values: enable, disable.
Time This property is required. string
Update time.
Day string
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
frequency This property is required. String
Update frequency.
status This property is required. String
Enable/disable scheduled updates. Valid values: enable, disable.
time This property is required. String
Update time.
day String
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
frequency This property is required. string
Update frequency.
status This property is required. string
Enable/disable scheduled updates. Valid values: enable, disable.
time This property is required. string
Update time.
day string
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
frequency This property is required. str
Update frequency.
status This property is required. str
Enable/disable scheduled updates. Valid values: enable, disable.
time This property is required. str
Update time.
day str
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
vdomparam Changes to this property will trigger replacement. str
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
frequency This property is required. String
Update frequency.
status This property is required. String
Enable/disable scheduled updates. Valid values: enable, disable.
time This property is required. String
Update time.
day String
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

Outputs

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

Get an existing Schedule 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?: ScheduleState, opts?: CustomResourceOptions): Schedule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        day: Optional[str] = None,
        frequency: Optional[str] = None,
        status: Optional[str] = None,
        time: Optional[str] = None,
        vdomparam: Optional[str] = None) -> Schedule
func GetSchedule(ctx *Context, name string, id IDInput, state *ScheduleState, opts ...ResourceOption) (*Schedule, error)
public static Schedule Get(string name, Input<string> id, ScheduleState? state, CustomResourceOptions? opts = null)
public static Schedule get(String name, Output<String> id, ScheduleState state, CustomResourceOptions options)
resources:  _:    type: fortios:system/autoupdate/schedule:Schedule    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:
Day string
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
Frequency string
Update frequency.
Status string
Enable/disable scheduled updates. Valid values: enable, disable.
Time string
Update time.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Day string
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
Frequency string
Update frequency.
Status string
Enable/disable scheduled updates. Valid values: enable, disable.
Time string
Update time.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
day String
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
frequency String
Update frequency.
status String
Enable/disable scheduled updates. Valid values: enable, disable.
time String
Update time.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
day string
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
frequency string
Update frequency.
status string
Enable/disable scheduled updates. Valid values: enable, disable.
time string
Update time.
vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
day str
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
frequency str
Update frequency.
status str
Enable/disable scheduled updates. Valid values: enable, disable.
time str
Update time.
vdomparam Changes to this property will trigger replacement. str
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
day String
Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
frequency String
Update frequency.
status String
Enable/disable scheduled updates. Valid values: enable, disable.
time String
Update time.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

Import

SystemAutoupdate Schedule can be imported using any of these accepted formats:

$ pulumi import fortios:system/autoupdate/schedule:Schedule labelname SystemAutoupdateSchedule
Copy

If you do not want to import arguments of block:

$ export “FORTIOS_IMPORT_TABLE”=“false”

$ pulumi import fortios:system/autoupdate/schedule:Schedule labelname SystemAutoupdateSchedule
Copy

$ unset “FORTIOS_IMPORT_TABLE”

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortios pulumiverse/pulumi-fortios
License
Apache-2.0
Notes
This Pulumi package is based on the fortios Terraform Provider.