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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
trname:
type: fortios:system:Autoinstall
properties:
autoInstallConfig: enable
autoInstallImage: enable
defaultConfigFile: fgt_system.conf
defaultImageFile: image.out
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
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"),
})
var autoinstallResource = new Autoinstall("autoinstallResource", AutoinstallArgs.builder()
.autoInstallConfig("string")
.autoInstallImage("string")
.defaultConfigFile("string")
.defaultImageFile("string")
.vdomparam("string")
.build());
autoinstall_resource = fortios.system.Autoinstall("autoinstallResource",
auto_install_config="string",
auto_install_image="string",
default_config_file="string",
default_image_file="string",
vdomparam="string")
const autoinstallResource = new fortios.system.Autoinstall("autoinstallResource", {
autoInstallConfig: "string",
autoInstallImage: "string",
defaultConfigFile: "string",
defaultImageFile: "string",
vdomparam: "string",
});
type: fortios:system:Autoinstall
properties:
autoInstallConfig: string
autoInstallImage: string
defaultConfigFile: string
defaultImageFile: string
vdomparam: string
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:
- Auto
Install stringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - Auto
Install stringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - Default
Config stringFile - Default config file name in USB disk.
- Default
Image stringFile - Default image file name in USB disk.
- 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.
- Auto
Install stringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - Auto
Install stringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - Default
Config stringFile - Default config file name in USB disk.
- Default
Image stringFile - Default image file name in USB disk.
- 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.
- auto
Install StringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - auto
Install StringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - default
Config StringFile - Default config file name in USB disk.
- default
Image StringFile - Default image file name in USB disk.
- 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.
- auto
Install stringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - auto
Install stringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - default
Config stringFile - Default config file name in USB disk.
- default
Image stringFile - Default image file name in USB disk.
- 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.
- auto_
install_ strconfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - auto_
install_ strimage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - default_
config_ strfile - Default config file name in USB disk.
- default_
image_ strfile - Default image file name in USB disk.
- 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.
- auto
Install StringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - auto
Install StringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - default
Config StringFile - Default config file name in USB disk.
- default
Image StringFile - Default image file name in USB disk.
- 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 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)
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.
- Auto
Install stringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - Auto
Install stringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - Default
Config stringFile - Default config file name in USB disk.
- Default
Image stringFile - Default image file name in USB disk.
- 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.
- Auto
Install stringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - Auto
Install stringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - Default
Config stringFile - Default config file name in USB disk.
- Default
Image stringFile - Default image file name in USB disk.
- 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.
- auto
Install StringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - auto
Install StringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - default
Config StringFile - Default config file name in USB disk.
- default
Image StringFile - Default image file name in USB disk.
- 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.
- auto
Install stringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - auto
Install stringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - default
Config stringFile - Default config file name in USB disk.
- default
Image stringFile - Default image file name in USB disk.
- 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.
- auto_
install_ strconfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - auto_
install_ strimage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - default_
config_ strfile - Default config file name in USB disk.
- default_
image_ strfile - Default image file name in USB disk.
- 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.
- auto
Install StringConfig - Enable/disable auto install the config in USB disk. Valid values:
enable
,disable
. - auto
Install StringImage - Enable/disable auto install the image in USB disk. Valid values:
enable
,disable
. - default
Config StringFile - Default config file name in USB disk.
- default
Image StringFile - Default image file name in USB disk.
- 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
System AutoInstall can be imported using any of these accepted formats:
$ pulumi import fortios:system/autoinstall:Autoinstall labelname SystemAutoInstall
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:system/autoinstall:Autoinstall labelname SystemAutoInstall
$ 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.