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

fortios.fmg.SystemAdom

Explore with Pulumi AI

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

    This resource supports Create/Read/Update/Delete system adom for FortiManager.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.SystemAdom("test1", {
        actionWhenConflictsOccurDuringPolicyCheck: "Continue",
        autoPushPolicyPackagesWhenDeviceBackOnline: "Enable",
        centralManagementFortiap: true,
        centralManagementSdwan: false,
        centralManagementVpn: false,
        mode: "Normal",
        performPolicyCheckBeforeEveryInstall: true,
        status: 1,
        type: "FortiCarrier",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.SystemAdom("test1",
        action_when_conflicts_occur_during_policy_check="Continue",
        auto_push_policy_packages_when_device_back_online="Enable",
        central_management_fortiap=True,
        central_management_sdwan=False,
        central_management_vpn=False,
        mode="Normal",
        perform_policy_check_before_every_install=True,
        status=1,
        type="FortiCarrier")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/fmg"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fmg.NewSystemAdom(ctx, "test1", &fmg.SystemAdomArgs{
    			ActionWhenConflictsOccurDuringPolicyCheck:  pulumi.String("Continue"),
    			AutoPushPolicyPackagesWhenDeviceBackOnline: pulumi.String("Enable"),
    			CentralManagementFortiap:                   pulumi.Bool(true),
    			CentralManagementSdwan:                     pulumi.Bool(false),
    			CentralManagementVpn:                       pulumi.Bool(false),
    			Mode:                                       pulumi.String("Normal"),
    			PerformPolicyCheckBeforeEveryInstall:       pulumi.Bool(true),
    			Status:                                     pulumi.Int(1),
    			Type:                                       pulumi.String("FortiCarrier"),
    		})
    		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 test1 = new Fortios.Fmg.SystemAdom("test1", new()
        {
            ActionWhenConflictsOccurDuringPolicyCheck = "Continue",
            AutoPushPolicyPackagesWhenDeviceBackOnline = "Enable",
            CentralManagementFortiap = true,
            CentralManagementSdwan = false,
            CentralManagementVpn = false,
            Mode = "Normal",
            PerformPolicyCheckBeforeEveryInstall = true,
            Status = 1,
            Type = "FortiCarrier",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.SystemAdom;
    import com.pulumi.fortios.fmg.SystemAdomArgs;
    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 test1 = new SystemAdom("test1", SystemAdomArgs.builder()
                .actionWhenConflictsOccurDuringPolicyCheck("Continue")
                .autoPushPolicyPackagesWhenDeviceBackOnline("Enable")
                .centralManagementFortiap(true)
                .centralManagementSdwan(false)
                .centralManagementVpn(false)
                .mode("Normal")
                .performPolicyCheckBeforeEveryInstall(true)
                .status(1)
                .type("FortiCarrier")
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:SystemAdom
        properties:
          actionWhenConflictsOccurDuringPolicyCheck: Continue
          autoPushPolicyPackagesWhenDeviceBackOnline: Enable
          centralManagementFortiap: true
          centralManagementSdwan: false
          centralManagementVpn: false
          mode: Normal
          performPolicyCheckBeforeEveryInstall: true
          status: 1
          type: FortiCarrier
    

    Create SystemAdom Resource

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

    Constructor syntax

    new SystemAdom(name: string, args?: SystemAdomArgs, opts?: CustomResourceOptions);
    @overload
    def SystemAdom(resource_name: str,
                   args: Optional[SystemAdomArgs] = None,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemAdom(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   action_when_conflicts_occur_during_policy_check: Optional[str] = None,
                   auto_push_policy_packages_when_device_back_online: Optional[str] = None,
                   central_management_fortiap: Optional[bool] = None,
                   central_management_sdwan: Optional[bool] = None,
                   central_management_vpn: Optional[bool] = None,
                   mode: Optional[str] = None,
                   name: Optional[str] = None,
                   perform_policy_check_before_every_install: Optional[bool] = None,
                   status: Optional[int] = None,
                   type: Optional[str] = None)
    func NewSystemAdom(ctx *Context, name string, args *SystemAdomArgs, opts ...ResourceOption) (*SystemAdom, error)
    public SystemAdom(string name, SystemAdomArgs? args = null, CustomResourceOptions? opts = null)
    public SystemAdom(String name, SystemAdomArgs args)
    public SystemAdom(String name, SystemAdomArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:SystemAdom
    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 SystemAdomArgs
    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 SystemAdomArgs
    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 SystemAdomArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemAdomArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemAdomArgs
    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 systemAdomResource = new Fortios.Fmg.SystemAdom("systemAdomResource", new()
    {
        ActionWhenConflictsOccurDuringPolicyCheck = "string",
        AutoPushPolicyPackagesWhenDeviceBackOnline = "string",
        CentralManagementFortiap = false,
        CentralManagementSdwan = false,
        CentralManagementVpn = false,
        Mode = "string",
        Name = "string",
        PerformPolicyCheckBeforeEveryInstall = false,
        Status = 0,
        Type = "string",
    });
    
    example, err := fmg.NewSystemAdom(ctx, "systemAdomResource", &fmg.SystemAdomArgs{
    	ActionWhenConflictsOccurDuringPolicyCheck:  pulumi.String("string"),
    	AutoPushPolicyPackagesWhenDeviceBackOnline: pulumi.String("string"),
    	CentralManagementFortiap:                   pulumi.Bool(false),
    	CentralManagementSdwan:                     pulumi.Bool(false),
    	CentralManagementVpn:                       pulumi.Bool(false),
    	Mode:                                       pulumi.String("string"),
    	Name:                                       pulumi.String("string"),
    	PerformPolicyCheckBeforeEveryInstall:       pulumi.Bool(false),
    	Status:                                     pulumi.Int(0),
    	Type:                                       pulumi.String("string"),
    })
    
    var systemAdomResource = new SystemAdom("systemAdomResource", SystemAdomArgs.builder()
        .actionWhenConflictsOccurDuringPolicyCheck("string")
        .autoPushPolicyPackagesWhenDeviceBackOnline("string")
        .centralManagementFortiap(false)
        .centralManagementSdwan(false)
        .centralManagementVpn(false)
        .mode("string")
        .name("string")
        .performPolicyCheckBeforeEveryInstall(false)
        .status(0)
        .type("string")
        .build());
    
    system_adom_resource = fortios.fmg.SystemAdom("systemAdomResource",
        action_when_conflicts_occur_during_policy_check="string",
        auto_push_policy_packages_when_device_back_online="string",
        central_management_fortiap=False,
        central_management_sdwan=False,
        central_management_vpn=False,
        mode="string",
        name="string",
        perform_policy_check_before_every_install=False,
        status=0,
        type="string")
    
    const systemAdomResource = new fortios.fmg.SystemAdom("systemAdomResource", {
        actionWhenConflictsOccurDuringPolicyCheck: "string",
        autoPushPolicyPackagesWhenDeviceBackOnline: "string",
        centralManagementFortiap: false,
        centralManagementSdwan: false,
        centralManagementVpn: false,
        mode: "string",
        name: "string",
        performPolicyCheckBeforeEveryInstall: false,
        status: 0,
        type: "string",
    });
    
    type: fortios:fmg:SystemAdom
    properties:
        actionWhenConflictsOccurDuringPolicyCheck: string
        autoPushPolicyPackagesWhenDeviceBackOnline: string
        centralManagementFortiap: false
        centralManagementSdwan: false
        centralManagementVpn: false
        mode: string
        name: string
        performPolicyCheckBeforeEveryInstall: false
        status: 0
        type: string
    

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

    ActionWhenConflictsOccurDuringPolicyCheck string
    True or False.
    AutoPushPolicyPackagesWhenDeviceBackOnline string
    True or False.
    CentralManagementFortiap bool
    True or False.
    CentralManagementSdwan bool
    True or False.
    CentralManagementVpn bool
    True or False.
    Mode string
    Adom mode: Normal or Backup.
    Name string
    Administrative Domain name.
    PerformPolicyCheckBeforeEveryInstall bool
    True or False.
    Status int
    Adom status. 0 means off and 1 means on.
    Type string
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    ActionWhenConflictsOccurDuringPolicyCheck string
    True or False.
    AutoPushPolicyPackagesWhenDeviceBackOnline string
    True or False.
    CentralManagementFortiap bool
    True or False.
    CentralManagementSdwan bool
    True or False.
    CentralManagementVpn bool
    True or False.
    Mode string
    Adom mode: Normal or Backup.
    Name string
    Administrative Domain name.
    PerformPolicyCheckBeforeEveryInstall bool
    True or False.
    Status int
    Adom status. 0 means off and 1 means on.
    Type string
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    actionWhenConflictsOccurDuringPolicyCheck String
    True or False.
    autoPushPolicyPackagesWhenDeviceBackOnline String
    True or False.
    centralManagementFortiap Boolean
    True or False.
    centralManagementSdwan Boolean
    True or False.
    centralManagementVpn Boolean
    True or False.
    mode String
    Adom mode: Normal or Backup.
    name String
    Administrative Domain name.
    performPolicyCheckBeforeEveryInstall Boolean
    True or False.
    status Integer
    Adom status. 0 means off and 1 means on.
    type String
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    actionWhenConflictsOccurDuringPolicyCheck string
    True or False.
    autoPushPolicyPackagesWhenDeviceBackOnline string
    True or False.
    centralManagementFortiap boolean
    True or False.
    centralManagementSdwan boolean
    True or False.
    centralManagementVpn boolean
    True or False.
    mode string
    Adom mode: Normal or Backup.
    name string
    Administrative Domain name.
    performPolicyCheckBeforeEveryInstall boolean
    True or False.
    status number
    Adom status. 0 means off and 1 means on.
    type string
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    action_when_conflicts_occur_during_policy_check str
    True or False.
    auto_push_policy_packages_when_device_back_online str
    True or False.
    central_management_fortiap bool
    True or False.
    central_management_sdwan bool
    True or False.
    central_management_vpn bool
    True or False.
    mode str
    Adom mode: Normal or Backup.
    name str
    Administrative Domain name.
    perform_policy_check_before_every_install bool
    True or False.
    status int
    Adom status. 0 means off and 1 means on.
    type str
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    actionWhenConflictsOccurDuringPolicyCheck String
    True or False.
    autoPushPolicyPackagesWhenDeviceBackOnline String
    True or False.
    centralManagementFortiap Boolean
    True or False.
    centralManagementSdwan Boolean
    True or False.
    centralManagementVpn Boolean
    True or False.
    mode String
    Adom mode: Normal or Backup.
    name String
    Administrative Domain name.
    performPolicyCheckBeforeEveryInstall Boolean
    True or False.
    status Number
    Adom status. 0 means off and 1 means on.
    type String
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".

    Outputs

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

    Get an existing SystemAdom 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?: SystemAdomState, opts?: CustomResourceOptions): SystemAdom
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action_when_conflicts_occur_during_policy_check: Optional[str] = None,
            auto_push_policy_packages_when_device_back_online: Optional[str] = None,
            central_management_fortiap: Optional[bool] = None,
            central_management_sdwan: Optional[bool] = None,
            central_management_vpn: Optional[bool] = None,
            mode: Optional[str] = None,
            name: Optional[str] = None,
            perform_policy_check_before_every_install: Optional[bool] = None,
            status: Optional[int] = None,
            type: Optional[str] = None) -> SystemAdom
    func GetSystemAdom(ctx *Context, name string, id IDInput, state *SystemAdomState, opts ...ResourceOption) (*SystemAdom, error)
    public static SystemAdom Get(string name, Input<string> id, SystemAdomState? state, CustomResourceOptions? opts = null)
    public static SystemAdom get(String name, Output<String> id, SystemAdomState 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:
    ActionWhenConflictsOccurDuringPolicyCheck string
    True or False.
    AutoPushPolicyPackagesWhenDeviceBackOnline string
    True or False.
    CentralManagementFortiap bool
    True or False.
    CentralManagementSdwan bool
    True or False.
    CentralManagementVpn bool
    True or False.
    Mode string
    Adom mode: Normal or Backup.
    Name string
    Administrative Domain name.
    PerformPolicyCheckBeforeEveryInstall bool
    True or False.
    Status int
    Adom status. 0 means off and 1 means on.
    Type string
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    ActionWhenConflictsOccurDuringPolicyCheck string
    True or False.
    AutoPushPolicyPackagesWhenDeviceBackOnline string
    True or False.
    CentralManagementFortiap bool
    True or False.
    CentralManagementSdwan bool
    True or False.
    CentralManagementVpn bool
    True or False.
    Mode string
    Adom mode: Normal or Backup.
    Name string
    Administrative Domain name.
    PerformPolicyCheckBeforeEveryInstall bool
    True or False.
    Status int
    Adom status. 0 means off and 1 means on.
    Type string
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    actionWhenConflictsOccurDuringPolicyCheck String
    True or False.
    autoPushPolicyPackagesWhenDeviceBackOnline String
    True or False.
    centralManagementFortiap Boolean
    True or False.
    centralManagementSdwan Boolean
    True or False.
    centralManagementVpn Boolean
    True or False.
    mode String
    Adom mode: Normal or Backup.
    name String
    Administrative Domain name.
    performPolicyCheckBeforeEveryInstall Boolean
    True or False.
    status Integer
    Adom status. 0 means off and 1 means on.
    type String
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    actionWhenConflictsOccurDuringPolicyCheck string
    True or False.
    autoPushPolicyPackagesWhenDeviceBackOnline string
    True or False.
    centralManagementFortiap boolean
    True or False.
    centralManagementSdwan boolean
    True or False.
    centralManagementVpn boolean
    True or False.
    mode string
    Adom mode: Normal or Backup.
    name string
    Administrative Domain name.
    performPolicyCheckBeforeEveryInstall boolean
    True or False.
    status number
    Adom status. 0 means off and 1 means on.
    type string
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    action_when_conflicts_occur_during_policy_check str
    True or False.
    auto_push_policy_packages_when_device_back_online str
    True or False.
    central_management_fortiap bool
    True or False.
    central_management_sdwan bool
    True or False.
    central_management_vpn bool
    True or False.
    mode str
    Adom mode: Normal or Backup.
    name str
    Administrative Domain name.
    perform_policy_check_before_every_install bool
    True or False.
    status int
    Adom status. 0 means off and 1 means on.
    type str
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".
    actionWhenConflictsOccurDuringPolicyCheck String
    True or False.
    autoPushPolicyPackagesWhenDeviceBackOnline String
    True or False.
    centralManagementFortiap Boolean
    True or False.
    centralManagementSdwan Boolean
    True or False.
    centralManagementVpn Boolean
    True or False.
    mode String
    Adom mode: Normal or Backup.
    name String
    Administrative Domain name.
    performPolicyCheckBeforeEveryInstall Boolean
    True or False.
    status Number
    Adom status. 0 means off and 1 means on.
    type String
    Domain type, Enum: ["FortiGate", "FortiCarrier], default is "FortiCarrier".

    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