1. Packages
  2. Fortios
  3. API Docs
  4. firewall
  5. firewall/schedule
  6. Onetime
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.firewall/schedule.Onetime

Explore with Pulumi AI

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

    Onetime schedule configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.firewall.schedule.Onetime("trname", {
        color: 0,
        end: "00:00 2020/12/12",
        expirationDays: 2,
        start: "00:00 2010/12/12",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.firewall.schedule.Onetime("trname",
        color=0,
        end="00:00 2020/12/12",
        expiration_days=2,
        start="00:00 2010/12/12")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := firewall.NewOnetime(ctx, "trname", &firewall.OnetimeArgs{
    			Color:          pulumi.Int(0),
    			End:            pulumi.String("00:00 2020/12/12"),
    			ExpirationDays: pulumi.Int(2),
    			Start:          pulumi.String("00:00 2010/12/12"),
    		})
    		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.Firewall.Schedule.Onetime("trname", new()
        {
            Color = 0,
            End = "00:00 2020/12/12",
            ExpirationDays = 2,
            Start = "00:00 2010/12/12",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.firewall.Onetime;
    import com.pulumi.fortios.firewall.OnetimeArgs;
    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 Onetime("trname", OnetimeArgs.builder()        
                .color(0)
                .end("00:00 2020/12/12")
                .expirationDays(2)
                .start("00:00 2010/12/12")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:firewall/schedule:Onetime
        properties:
          color: 0
          end: 00:00 2020/12/12
          expirationDays: 2
          start: 00:00 2010/12/12
    

    Create Onetime Resource

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

    Constructor syntax

    new Onetime(name: string, args: OnetimeArgs, opts?: CustomResourceOptions);
    @overload
    def Onetime(resource_name: str,
                args: OnetimeArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Onetime(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                end: Optional[str] = None,
                start: Optional[str] = None,
                color: Optional[int] = None,
                end_utc: Optional[str] = None,
                expiration_days: Optional[int] = None,
                fabric_object: Optional[str] = None,
                name: Optional[str] = None,
                start_utc: Optional[str] = None,
                vdomparam: Optional[str] = None)
    func NewOnetime(ctx *Context, name string, args OnetimeArgs, opts ...ResourceOption) (*Onetime, error)
    public Onetime(string name, OnetimeArgs args, CustomResourceOptions? opts = null)
    public Onetime(String name, OnetimeArgs args)
    public Onetime(String name, OnetimeArgs args, CustomResourceOptions options)
    
    type: fortios:firewall/schedule/onetime:Onetime
    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 OnetimeArgs
    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 OnetimeArgs
    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 OnetimeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OnetimeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OnetimeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var onetimeResource = new Fortios.Firewall.Schedule.Onetime("onetimeResource", new()
    {
        End = "string",
        Start = "string",
        Color = 0,
        EndUtc = "string",
        ExpirationDays = 0,
        FabricObject = "string",
        Name = "string",
        StartUtc = "string",
        Vdomparam = "string",
    });
    
    example, err := firewall.NewOnetime(ctx, "onetimeResource", &firewall.OnetimeArgs{
    	End:            pulumi.String("string"),
    	Start:          pulumi.String("string"),
    	Color:          pulumi.Int(0),
    	EndUtc:         pulumi.String("string"),
    	ExpirationDays: pulumi.Int(0),
    	FabricObject:   pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	StartUtc:       pulumi.String("string"),
    	Vdomparam:      pulumi.String("string"),
    })
    
    var onetimeResource = new Onetime("onetimeResource", OnetimeArgs.builder()
        .end("string")
        .start("string")
        .color(0)
        .endUtc("string")
        .expirationDays(0)
        .fabricObject("string")
        .name("string")
        .startUtc("string")
        .vdomparam("string")
        .build());
    
    onetime_resource = fortios.firewall.schedule.Onetime("onetimeResource",
        end="string",
        start="string",
        color=0,
        end_utc="string",
        expiration_days=0,
        fabric_object="string",
        name="string",
        start_utc="string",
        vdomparam="string")
    
    const onetimeResource = new fortios.firewall.schedule.Onetime("onetimeResource", {
        end: "string",
        start: "string",
        color: 0,
        endUtc: "string",
        expirationDays: 0,
        fabricObject: "string",
        name: "string",
        startUtc: "string",
        vdomparam: "string",
    });
    
    Coming soon!
    

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

    End string
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    Start string
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    Color int
    Color of icon on the GUI.
    EndUtc string
    Schedule end date and time, in epoch format.
    ExpirationDays int
    Write an event log message this many days before the schedule expires.
    FabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    Name string
    Onetime schedule name.
    StartUtc string
    Schedule start date and time, in epoch format.
    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.
    End string
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    Start string
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    Color int
    Color of icon on the GUI.
    EndUtc string
    Schedule end date and time, in epoch format.
    ExpirationDays int
    Write an event log message this many days before the schedule expires.
    FabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    Name string
    Onetime schedule name.
    StartUtc string
    Schedule start date and time, in epoch format.
    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.
    end String
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    start String
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    color Integer
    Color of icon on the GUI.
    endUtc String
    Schedule end date and time, in epoch format.
    expirationDays Integer
    Write an event log message this many days before the schedule expires.
    fabricObject String
    Security Fabric global object setting. Valid values: enable, disable.
    name String
    Onetime schedule name.
    startUtc String
    Schedule start date and time, in epoch format.
    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.
    end string
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    start string
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    color number
    Color of icon on the GUI.
    endUtc string
    Schedule end date and time, in epoch format.
    expirationDays number
    Write an event log message this many days before the schedule expires.
    fabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    name string
    Onetime schedule name.
    startUtc string
    Schedule start date and time, in epoch format.
    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.
    end str
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    start str
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    color int
    Color of icon on the GUI.
    end_utc str
    Schedule end date and time, in epoch format.
    expiration_days int
    Write an event log message this many days before the schedule expires.
    fabric_object str
    Security Fabric global object setting. Valid values: enable, disable.
    name str
    Onetime schedule name.
    start_utc str
    Schedule start date and time, in epoch format.
    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.
    end String
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    start String
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    color Number
    Color of icon on the GUI.
    endUtc String
    Schedule end date and time, in epoch format.
    expirationDays Number
    Write an event log message this many days before the schedule expires.
    fabricObject String
    Security Fabric global object setting. Valid values: enable, disable.
    name String
    Onetime schedule name.
    startUtc String
    Schedule start date and time, in epoch format.
    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 Onetime 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 Onetime Resource

    Get an existing Onetime 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?: OnetimeState, opts?: CustomResourceOptions): Onetime
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            color: Optional[int] = None,
            end: Optional[str] = None,
            end_utc: Optional[str] = None,
            expiration_days: Optional[int] = None,
            fabric_object: Optional[str] = None,
            name: Optional[str] = None,
            start: Optional[str] = None,
            start_utc: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Onetime
    func GetOnetime(ctx *Context, name string, id IDInput, state *OnetimeState, opts ...ResourceOption) (*Onetime, error)
    public static Onetime Get(string name, Input<string> id, OnetimeState? state, CustomResourceOptions? opts = null)
    public static Onetime get(String name, Output<String> id, OnetimeState 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:
    Color int
    Color of icon on the GUI.
    End string
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    EndUtc string
    Schedule end date and time, in epoch format.
    ExpirationDays int
    Write an event log message this many days before the schedule expires.
    FabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    Name string
    Onetime schedule name.
    Start string
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    StartUtc string
    Schedule start date and time, in epoch format.
    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.
    Color int
    Color of icon on the GUI.
    End string
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    EndUtc string
    Schedule end date and time, in epoch format.
    ExpirationDays int
    Write an event log message this many days before the schedule expires.
    FabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    Name string
    Onetime schedule name.
    Start string
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    StartUtc string
    Schedule start date and time, in epoch format.
    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.
    color Integer
    Color of icon on the GUI.
    end String
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    endUtc String
    Schedule end date and time, in epoch format.
    expirationDays Integer
    Write an event log message this many days before the schedule expires.
    fabricObject String
    Security Fabric global object setting. Valid values: enable, disable.
    name String
    Onetime schedule name.
    start String
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    startUtc String
    Schedule start date and time, in epoch format.
    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.
    color number
    Color of icon on the GUI.
    end string
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    endUtc string
    Schedule end date and time, in epoch format.
    expirationDays number
    Write an event log message this many days before the schedule expires.
    fabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    name string
    Onetime schedule name.
    start string
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    startUtc string
    Schedule start date and time, in epoch format.
    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.
    color int
    Color of icon on the GUI.
    end str
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    end_utc str
    Schedule end date and time, in epoch format.
    expiration_days int
    Write an event log message this many days before the schedule expires.
    fabric_object str
    Security Fabric global object setting. Valid values: enable, disable.
    name str
    Onetime schedule name.
    start str
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    start_utc str
    Schedule start date and time, in epoch format.
    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.
    color Number
    Color of icon on the GUI.
    end String
    Schedule end date and time, format hh:mm yyyy/mm/dd.
    endUtc String
    Schedule end date and time, in epoch format.
    expirationDays Number
    Write an event log message this many days before the schedule expires.
    fabricObject String
    Security Fabric global object setting. Valid values: enable, disable.
    name String
    Onetime schedule name.
    start String
    Schedule start date and time, format hh:mm yyyy/mm/dd.
    startUtc String
    Schedule start date and time, in epoch format.
    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

    FirewallSchedule Onetime can be imported using any of these accepted formats:

    $ pulumi import fortios:firewall/schedule/onetime:Onetime labelname {{name}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:firewall/schedule/onetime:Onetime labelname {{name}}
    

    $ 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