fortios.system.Fm
Explore with Pulumi AI
Configure FM. Applies to FortiOS Version <= 7.0.1
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.system.Fm("trname", {
autoBackup: "disable",
ip: "0.0.0.0",
ipsec: "disable",
scheduledConfigRestore: "disable",
status: "disable",
vdom: "root",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.system.Fm("trname",
auto_backup="disable",
ip="0.0.0.0",
ipsec="disable",
scheduled_config_restore="disable",
status="disable",
vdom="root")
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.NewFm(ctx, "trname", &system.FmArgs{
AutoBackup: pulumi.String("disable"),
Ip: pulumi.String("0.0.0.0"),
Ipsec: pulumi.String("disable"),
ScheduledConfigRestore: pulumi.String("disable"),
Status: pulumi.String("disable"),
Vdom: pulumi.String("root"),
})
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.Fm("trname", new()
{
AutoBackup = "disable",
Ip = "0.0.0.0",
Ipsec = "disable",
ScheduledConfigRestore = "disable",
Status = "disable",
Vdom = "root",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.system.Fm;
import com.pulumi.fortios.system.FmArgs;
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 Fm("trname", FmArgs.builder()
.autoBackup("disable")
.ip("0.0.0.0")
.ipsec("disable")
.scheduledConfigRestore("disable")
.status("disable")
.vdom("root")
.build());
}
}
resources:
trname:
type: fortios:system:Fm
properties:
autoBackup: disable
ip: 0.0.0.0
ipsec: disable
scheduledConfigRestore: disable
status: disable
vdom: root
Create Fm Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Fm(name: string, args?: FmArgs, opts?: CustomResourceOptions);
@overload
def Fm(resource_name: str,
args: Optional[FmArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Fm(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_backup: Optional[str] = None,
fosid: Optional[str] = None,
ip: Optional[str] = None,
ipsec: Optional[str] = None,
scheduled_config_restore: Optional[str] = None,
status: Optional[str] = None,
vdom: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewFm(ctx *Context, name string, args *FmArgs, opts ...ResourceOption) (*Fm, error)
public Fm(string name, FmArgs? args = null, CustomResourceOptions? opts = null)
type: fortios:system:Fm
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 FmArgs
- 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 FmArgs
- 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 FmArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FmArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FmArgs
- 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 fmResource = new Fortios.System.Fm("fmResource", new()
{
AutoBackup = "string",
Fosid = "string",
Ip = "string",
Ipsec = "string",
ScheduledConfigRestore = "string",
Status = "string",
Vdom = "string",
Vdomparam = "string",
});
example, err := system.NewFm(ctx, "fmResource", &system.FmArgs{
AutoBackup: pulumi.String("string"),
Fosid: pulumi.String("string"),
Ip: pulumi.String("string"),
Ipsec: pulumi.String("string"),
ScheduledConfigRestore: pulumi.String("string"),
Status: pulumi.String("string"),
Vdom: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var fmResource = new Fm("fmResource", FmArgs.builder()
.autoBackup("string")
.fosid("string")
.ip("string")
.ipsec("string")
.scheduledConfigRestore("string")
.status("string")
.vdom("string")
.vdomparam("string")
.build());
fm_resource = fortios.system.Fm("fmResource",
auto_backup="string",
fosid="string",
ip="string",
ipsec="string",
scheduled_config_restore="string",
status="string",
vdom="string",
vdomparam="string")
const fmResource = new fortios.system.Fm("fmResource", {
autoBackup: "string",
fosid: "string",
ip: "string",
ipsec: "string",
scheduledConfigRestore: "string",
status: "string",
vdom: "string",
vdomparam: "string",
});
type: fortios:system:Fm
properties:
autoBackup: string
fosid: string
ip: string
ipsec: string
scheduledConfigRestore: string
status: string
vdom: string
vdomparam: string
Fm 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 Fm resource accepts the following input properties:
- Auto
Backup string - Enable/disable automatic backup. Valid values:
enable
,disable
. - Fosid string
- ID.
- Ip string
- IP address.
- Ipsec string
- Enable/disable IPsec. Valid values:
enable
,disable
. - Scheduled
Config stringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - Status string
- Enable/disable FM. Valid values:
enable
,disable
. - Vdom string
- VDOM.
- 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
Backup string - Enable/disable automatic backup. Valid values:
enable
,disable
. - Fosid string
- ID.
- Ip string
- IP address.
- Ipsec string
- Enable/disable IPsec. Valid values:
enable
,disable
. - Scheduled
Config stringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - Status string
- Enable/disable FM. Valid values:
enable
,disable
. - Vdom string
- VDOM.
- 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
Backup String - Enable/disable automatic backup. Valid values:
enable
,disable
. - fosid String
- ID.
- ip String
- IP address.
- ipsec String
- Enable/disable IPsec. Valid values:
enable
,disable
. - scheduled
Config StringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - status String
- Enable/disable FM. Valid values:
enable
,disable
. - vdom String
- VDOM.
- 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
Backup string - Enable/disable automatic backup. Valid values:
enable
,disable
. - fosid string
- ID.
- ip string
- IP address.
- ipsec string
- Enable/disable IPsec. Valid values:
enable
,disable
. - scheduled
Config stringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - status string
- Enable/disable FM. Valid values:
enable
,disable
. - vdom string
- VDOM.
- 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_
backup str - Enable/disable automatic backup. Valid values:
enable
,disable
. - fosid str
- ID.
- ip str
- IP address.
- ipsec str
- Enable/disable IPsec. Valid values:
enable
,disable
. - scheduled_
config_ strrestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - status str
- Enable/disable FM. Valid values:
enable
,disable
. - vdom str
- VDOM.
- 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
Backup String - Enable/disable automatic backup. Valid values:
enable
,disable
. - fosid String
- ID.
- ip String
- IP address.
- ipsec String
- Enable/disable IPsec. Valid values:
enable
,disable
. - scheduled
Config StringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - status String
- Enable/disable FM. Valid values:
enable
,disable
. - vdom String
- VDOM.
- 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 Fm 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 Fm Resource
Get an existing Fm 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?: FmState, opts?: CustomResourceOptions): Fm
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_backup: Optional[str] = None,
fosid: Optional[str] = None,
ip: Optional[str] = None,
ipsec: Optional[str] = None,
scheduled_config_restore: Optional[str] = None,
status: Optional[str] = None,
vdom: Optional[str] = None,
vdomparam: Optional[str] = None) -> Fm
func GetFm(ctx *Context, name string, id IDInput, state *FmState, opts ...ResourceOption) (*Fm, error)
public static Fm Get(string name, Input<string> id, FmState? state, CustomResourceOptions? opts = null)
public static Fm get(String name, Output<String> id, FmState 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
Backup string - Enable/disable automatic backup. Valid values:
enable
,disable
. - Fosid string
- ID.
- Ip string
- IP address.
- Ipsec string
- Enable/disable IPsec. Valid values:
enable
,disable
. - Scheduled
Config stringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - Status string
- Enable/disable FM. Valid values:
enable
,disable
. - Vdom string
- VDOM.
- 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
Backup string - Enable/disable automatic backup. Valid values:
enable
,disable
. - Fosid string
- ID.
- Ip string
- IP address.
- Ipsec string
- Enable/disable IPsec. Valid values:
enable
,disable
. - Scheduled
Config stringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - Status string
- Enable/disable FM. Valid values:
enable
,disable
. - Vdom string
- VDOM.
- 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
Backup String - Enable/disable automatic backup. Valid values:
enable
,disable
. - fosid String
- ID.
- ip String
- IP address.
- ipsec String
- Enable/disable IPsec. Valid values:
enable
,disable
. - scheduled
Config StringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - status String
- Enable/disable FM. Valid values:
enable
,disable
. - vdom String
- VDOM.
- 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
Backup string - Enable/disable automatic backup. Valid values:
enable
,disable
. - fosid string
- ID.
- ip string
- IP address.
- ipsec string
- Enable/disable IPsec. Valid values:
enable
,disable
. - scheduled
Config stringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - status string
- Enable/disable FM. Valid values:
enable
,disable
. - vdom string
- VDOM.
- 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_
backup str - Enable/disable automatic backup. Valid values:
enable
,disable
. - fosid str
- ID.
- ip str
- IP address.
- ipsec str
- Enable/disable IPsec. Valid values:
enable
,disable
. - scheduled_
config_ strrestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - status str
- Enable/disable FM. Valid values:
enable
,disable
. - vdom str
- VDOM.
- 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
Backup String - Enable/disable automatic backup. Valid values:
enable
,disable
. - fosid String
- ID.
- ip String
- IP address.
- ipsec String
- Enable/disable IPsec. Valid values:
enable
,disable
. - scheduled
Config StringRestore - Enable/disable scheduled configuration restore. Valid values:
enable
,disable
. - status String
- Enable/disable FM. Valid values:
enable
,disable
. - vdom String
- VDOM.
- 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 Fm can be imported using any of these accepted formats:
$ pulumi import fortios:system/fm:Fm labelname SystemFm
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:system/fm:Fm labelname SystemFm
$ 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.