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

fortios.system.Fortimanager

Explore with Pulumi AI

fortios logo
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

    Configure FortiManager. Applies to FortiOS Version <= 7.0.1.

    By design considerations, the feature is using the fortios.system.Centralmanagement resource as documented below.

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.system.Centralmanagement("trname", {
        allowMonitor: "enable",
        allowPushConfiguration: "enable",
        allowPushFirmware: "enable",
        allowRemoteFirmwareUpgrade: "enable",
        encAlgorithm: "high",
        fmg: "\"192.168.52.177\"",
        includeDefaultServers: "enable",
        mode: "normal",
        type: "fortimanager",
        vdom: "root",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.system.Centralmanagement("trname",
        allow_monitor="enable",
        allow_push_configuration="enable",
        allow_push_firmware="enable",
        allow_remote_firmware_upgrade="enable",
        enc_algorithm="high",
        fmg="\"192.168.52.177\"",
        include_default_servers="enable",
        mode="normal",
        type="fortimanager",
        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.NewCentralmanagement(ctx, "trname", &system.CentralmanagementArgs{
    			AllowMonitor:               pulumi.String("enable"),
    			AllowPushConfiguration:     pulumi.String("enable"),
    			AllowPushFirmware:          pulumi.String("enable"),
    			AllowRemoteFirmwareUpgrade: pulumi.String("enable"),
    			EncAlgorithm:               pulumi.String("high"),
    			Fmg:                        pulumi.String("\"192.168.52.177\""),
    			IncludeDefaultServers:      pulumi.String("enable"),
    			Mode:                       pulumi.String("normal"),
    			Type:                       pulumi.String("fortimanager"),
    			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.Centralmanagement("trname", new()
        {
            AllowMonitor = "enable",
            AllowPushConfiguration = "enable",
            AllowPushFirmware = "enable",
            AllowRemoteFirmwareUpgrade = "enable",
            EncAlgorithm = "high",
            Fmg = "\"192.168.52.177\"",
            IncludeDefaultServers = "enable",
            Mode = "normal",
            Type = "fortimanager",
            Vdom = "root",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.system.Centralmanagement;
    import com.pulumi.fortios.system.CentralmanagementArgs;
    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 Centralmanagement("trname", CentralmanagementArgs.builder()
                .allowMonitor("enable")
                .allowPushConfiguration("enable")
                .allowPushFirmware("enable")
                .allowRemoteFirmwareUpgrade("enable")
                .encAlgorithm("high")
                .fmg("\"192.168.52.177\"")
                .includeDefaultServers("enable")
                .mode("normal")
                .type("fortimanager")
                .vdom("root")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:system:Centralmanagement
        properties:
          allowMonitor: enable
          allowPushConfiguration: enable
          allowPushFirmware: enable
          allowRemoteFirmwareUpgrade: enable
          encAlgorithm: high
          fmg: '"192.168.52.177"'
          includeDefaultServers: enable
          mode: normal
          type: fortimanager
          vdom: root
    

    Create Fortimanager Resource

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

    Constructor syntax

    new Fortimanager(name: string, args?: FortimanagerArgs, opts?: CustomResourceOptions);
    @overload
    def Fortimanager(resource_name: str,
                     args: Optional[FortimanagerArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Fortimanager(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     central_management: Optional[str] = None,
                     central_mgmt_auto_backup: Optional[str] = None,
                     central_mgmt_schedule_config_restore: Optional[str] = None,
                     central_mgmt_schedule_script_restore: Optional[str] = None,
                     ip: Optional[str] = None,
                     ipsec: Optional[str] = None,
                     vdom: Optional[str] = None,
                     vdomparam: Optional[str] = None)
    func NewFortimanager(ctx *Context, name string, args *FortimanagerArgs, opts ...ResourceOption) (*Fortimanager, error)
    public Fortimanager(string name, FortimanagerArgs? args = null, CustomResourceOptions? opts = null)
    public Fortimanager(String name, FortimanagerArgs args)
    public Fortimanager(String name, FortimanagerArgs args, CustomResourceOptions options)
    
    type: fortios:system:Fortimanager
    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 FortimanagerArgs
    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 FortimanagerArgs
    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 FortimanagerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FortimanagerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FortimanagerArgs
    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 fortimanagerResource = new Fortios.System.Fortimanager("fortimanagerResource", new()
    {
        CentralManagement = "string",
        CentralMgmtAutoBackup = "string",
        CentralMgmtScheduleConfigRestore = "string",
        CentralMgmtScheduleScriptRestore = "string",
        Ip = "string",
        Ipsec = "string",
        Vdom = "string",
        Vdomparam = "string",
    });
    
    example, err := system.NewFortimanager(ctx, "fortimanagerResource", &system.FortimanagerArgs{
    	CentralManagement:                pulumi.String("string"),
    	CentralMgmtAutoBackup:            pulumi.String("string"),
    	CentralMgmtScheduleConfigRestore: pulumi.String("string"),
    	CentralMgmtScheduleScriptRestore: pulumi.String("string"),
    	Ip:                               pulumi.String("string"),
    	Ipsec:                            pulumi.String("string"),
    	Vdom:                             pulumi.String("string"),
    	Vdomparam:                        pulumi.String("string"),
    })
    
    var fortimanagerResource = new Fortimanager("fortimanagerResource", FortimanagerArgs.builder()
        .centralManagement("string")
        .centralMgmtAutoBackup("string")
        .centralMgmtScheduleConfigRestore("string")
        .centralMgmtScheduleScriptRestore("string")
        .ip("string")
        .ipsec("string")
        .vdom("string")
        .vdomparam("string")
        .build());
    
    fortimanager_resource = fortios.system.Fortimanager("fortimanagerResource",
        central_management="string",
        central_mgmt_auto_backup="string",
        central_mgmt_schedule_config_restore="string",
        central_mgmt_schedule_script_restore="string",
        ip="string",
        ipsec="string",
        vdom="string",
        vdomparam="string")
    
    const fortimanagerResource = new fortios.system.Fortimanager("fortimanagerResource", {
        centralManagement: "string",
        centralMgmtAutoBackup: "string",
        centralMgmtScheduleConfigRestore: "string",
        centralMgmtScheduleScriptRestore: "string",
        ip: "string",
        ipsec: "string",
        vdom: "string",
        vdomparam: "string",
    });
    
    type: fortios:system:Fortimanager
    properties:
        centralManagement: string
        centralMgmtAutoBackup: string
        centralMgmtScheduleConfigRestore: string
        centralMgmtScheduleScriptRestore: string
        ip: string
        ipsec: string
        vdom: string
        vdomparam: string
    

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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Fortimanager 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 Fortimanager Resource

    Get an existing Fortimanager 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?: FortimanagerState, opts?: CustomResourceOptions): Fortimanager
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            central_management: Optional[str] = None,
            central_mgmt_auto_backup: Optional[str] = None,
            central_mgmt_schedule_config_restore: Optional[str] = None,
            central_mgmt_schedule_script_restore: Optional[str] = None,
            ip: Optional[str] = None,
            ipsec: Optional[str] = None,
            vdom: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Fortimanager
    func GetFortimanager(ctx *Context, name string, id IDInput, state *FortimanagerState, opts ...ResourceOption) (*Fortimanager, error)
    public static Fortimanager Get(string name, Input<string> id, FortimanagerState? state, CustomResourceOptions? opts = null)
    public static Fortimanager get(String name, Output<String> id, FortimanagerState 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:

    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.6 published on Tuesday, Jul 9, 2024 by pulumiverse