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

fortios.system/autoupdate.Schedule

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    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",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.system.autoupdate.Schedule("trname",
        day="Monday",
        frequency="every",
        status="enable",
        time="02:60")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      trname:
        type: fortios:system/autoupdate:Schedule
        properties:
          day: Monday
          frequency: every
          status: enable
          time: 02:60
    

    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 string
    The unique name of the resource.
    args ScheduleArgs
    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 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 string
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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

    The Schedule resource accepts the following input properties:

    Frequency string
    Update frequency.
    Status string
    Enable/disable scheduled updates. Valid values: enable, disable.
    Time string
    Update time.
    Day string
    Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
    Vdomparam 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 string
    Update frequency.
    Status string
    Enable/disable scheduled updates. Valid values: enable, disable.
    Time string
    Update time.
    Day string
    Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
    Vdomparam 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 String
    Update frequency.
    status String
    Enable/disable scheduled updates. Valid values: enable, disable.
    time String
    Update time.
    day String
    Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
    vdomparam 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 string
    Update frequency.
    status string
    Enable/disable scheduled updates. Valid values: enable, disable.
    time string
    Update time.
    day string
    Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
    vdomparam 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 str
    Update frequency.
    status str
    Enable/disable scheduled updates. Valid values: enable, disable.
    time str
    Update time.
    day str
    Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
    vdomparam 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 String
    Update frequency.
    status String
    Enable/disable scheduled updates. Valid values: enable, disable.
    time String
    Update time.
    day String
    Update day. Valid values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
    vdomparam 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)
    Resource lookup is not supported in YAML
    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:
    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 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 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 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 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 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 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
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

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

    $ 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.
    fortios logo
    Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse