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

fortios.system.Autoinstall

Explore with Pulumi AI

Configure USB auto installation.

Example Usage

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

const trname = new fortios.system.Autoinstall("trname", {
    autoInstallConfig: "enable",
    autoInstallImage: "enable",
    defaultConfigFile: "fgt_system.conf",
    defaultImageFile: "image.out",
});
Copy
import pulumi
import pulumiverse_fortios as fortios

trname = fortios.system.Autoinstall("trname",
    auto_install_config="enable",
    auto_install_image="enable",
    default_config_file="fgt_system.conf",
    default_image_file="image.out")
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.NewAutoinstall(ctx, "trname", &system.AutoinstallArgs{
			AutoInstallConfig: pulumi.String("enable"),
			AutoInstallImage:  pulumi.String("enable"),
			DefaultConfigFile: pulumi.String("fgt_system.conf"),
			DefaultImageFile:  pulumi.String("image.out"),
		})
		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.Autoinstall("trname", new()
    {
        AutoInstallConfig = "enable",
        AutoInstallImage = "enable",
        DefaultConfigFile = "fgt_system.conf",
        DefaultImageFile = "image.out",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.system.Autoinstall;
import com.pulumi.fortios.system.AutoinstallArgs;
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 Autoinstall("trname", AutoinstallArgs.builder()
            .autoInstallConfig("enable")
            .autoInstallImage("enable")
            .defaultConfigFile("fgt_system.conf")
            .defaultImageFile("image.out")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortios:system:Autoinstall
    properties:
      autoInstallConfig: enable
      autoInstallImage: enable
      defaultConfigFile: fgt_system.conf
      defaultImageFile: image.out
Copy

Create Autoinstall Resource

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

Constructor syntax

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

@overload
def Autoinstall(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                auto_install_config: Optional[str] = None,
                auto_install_image: Optional[str] = None,
                default_config_file: Optional[str] = None,
                default_image_file: Optional[str] = None,
                vdomparam: Optional[str] = None)
func NewAutoinstall(ctx *Context, name string, args *AutoinstallArgs, opts ...ResourceOption) (*Autoinstall, error)
public Autoinstall(string name, AutoinstallArgs? args = null, CustomResourceOptions? opts = null)
public Autoinstall(String name, AutoinstallArgs args)
public Autoinstall(String name, AutoinstallArgs args, CustomResourceOptions options)
type: fortios:system:Autoinstall
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 AutoinstallArgs
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 AutoinstallArgs
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 AutoinstallArgs
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 AutoinstallArgs
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. AutoinstallArgs
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 autoinstallResource = new Fortios.System.Autoinstall("autoinstallResource", new()
{
    AutoInstallConfig = "string",
    AutoInstallImage = "string",
    DefaultConfigFile = "string",
    DefaultImageFile = "string",
    Vdomparam = "string",
});
Copy
example, err := system.NewAutoinstall(ctx, "autoinstallResource", &system.AutoinstallArgs{
	AutoInstallConfig: pulumi.String("string"),
	AutoInstallImage:  pulumi.String("string"),
	DefaultConfigFile: pulumi.String("string"),
	DefaultImageFile:  pulumi.String("string"),
	Vdomparam:         pulumi.String("string"),
})
Copy
var autoinstallResource = new Autoinstall("autoinstallResource", AutoinstallArgs.builder()
    .autoInstallConfig("string")
    .autoInstallImage("string")
    .defaultConfigFile("string")
    .defaultImageFile("string")
    .vdomparam("string")
    .build());
Copy
autoinstall_resource = fortios.system.Autoinstall("autoinstallResource",
    auto_install_config="string",
    auto_install_image="string",
    default_config_file="string",
    default_image_file="string",
    vdomparam="string")
Copy
const autoinstallResource = new fortios.system.Autoinstall("autoinstallResource", {
    autoInstallConfig: "string",
    autoInstallImage: "string",
    defaultConfigFile: "string",
    defaultImageFile: "string",
    vdomparam: "string",
});
Copy
type: fortios:system:Autoinstall
properties:
    autoInstallConfig: string
    autoInstallImage: string
    defaultConfigFile: string
    defaultImageFile: string
    vdomparam: string
Copy

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

AutoInstallConfig string
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
AutoInstallImage string
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
DefaultConfigFile string
Default config file name in USB disk.
DefaultImageFile string
Default image file name in USB disk.
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.
AutoInstallConfig string
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
AutoInstallImage string
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
DefaultConfigFile string
Default config file name in USB disk.
DefaultImageFile string
Default image file name in USB disk.
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.
autoInstallConfig String
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
autoInstallImage String
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
defaultConfigFile String
Default config file name in USB disk.
defaultImageFile String
Default image file name in USB disk.
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.
autoInstallConfig string
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
autoInstallImage string
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
defaultConfigFile string
Default config file name in USB disk.
defaultImageFile string
Default image file name in USB disk.
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.
auto_install_config str
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
auto_install_image str
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
default_config_file str
Default config file name in USB disk.
default_image_file str
Default image file name in USB disk.
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.
autoInstallConfig String
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
autoInstallImage String
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
defaultConfigFile String
Default config file name in USB disk.
defaultImageFile String
Default image file name in USB disk.
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 Autoinstall 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 Autoinstall Resource

Get an existing Autoinstall 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?: AutoinstallState, opts?: CustomResourceOptions): Autoinstall
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_install_config: Optional[str] = None,
        auto_install_image: Optional[str] = None,
        default_config_file: Optional[str] = None,
        default_image_file: Optional[str] = None,
        vdomparam: Optional[str] = None) -> Autoinstall
func GetAutoinstall(ctx *Context, name string, id IDInput, state *AutoinstallState, opts ...ResourceOption) (*Autoinstall, error)
public static Autoinstall Get(string name, Input<string> id, AutoinstallState? state, CustomResourceOptions? opts = null)
public static Autoinstall get(String name, Output<String> id, AutoinstallState state, CustomResourceOptions options)
resources:  _:    type: fortios:system:Autoinstall    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:
AutoInstallConfig string
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
AutoInstallImage string
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
DefaultConfigFile string
Default config file name in USB disk.
DefaultImageFile string
Default image file name in USB disk.
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.
AutoInstallConfig string
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
AutoInstallImage string
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
DefaultConfigFile string
Default config file name in USB disk.
DefaultImageFile string
Default image file name in USB disk.
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.
autoInstallConfig String
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
autoInstallImage String
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
defaultConfigFile String
Default config file name in USB disk.
defaultImageFile String
Default image file name in USB disk.
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.
autoInstallConfig string
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
autoInstallImage string
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
defaultConfigFile string
Default config file name in USB disk.
defaultImageFile string
Default image file name in USB disk.
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.
auto_install_config str
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
auto_install_image str
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
default_config_file str
Default config file name in USB disk.
default_image_file str
Default image file name in USB disk.
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.
autoInstallConfig String
Enable/disable auto install the config in USB disk. Valid values: enable, disable.
autoInstallImage String
Enable/disable auto install the image in USB disk. Valid values: enable, disable.
defaultConfigFile String
Default config file name in USB disk.
defaultImageFile String
Default image file name in USB disk.
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

System AutoInstall can be imported using any of these accepted formats:

$ pulumi import fortios:system/autoinstall:Autoinstall labelname SystemAutoInstall
Copy

If you do not want to import arguments of block:

$ export “FORTIOS_IMPORT_TABLE”=“false”

$ pulumi import fortios:system/autoinstall:Autoinstall labelname SystemAutoInstall
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.