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

fortios.fmg.FirewallSecurityPolicypackage

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 firewall security policypackage on FortiManager which could be installed to the FortiGate later

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.FirewallSecurityPolicypackage("test1", {target: "FGVM64-test"});
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.FirewallSecurityPolicypackage("test1", target="FGVM64-test")
    
    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.NewFirewallSecurityPolicypackage(ctx, "test1", &fmg.FirewallSecurityPolicypackageArgs{
    			Target: pulumi.String("FGVM64-test"),
    		})
    		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.FirewallSecurityPolicypackage("test1", new()
        {
            Target = "FGVM64-test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.FirewallSecurityPolicypackage;
    import com.pulumi.fortios.fmg.FirewallSecurityPolicypackageArgs;
    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 FirewallSecurityPolicypackage("test1", FirewallSecurityPolicypackageArgs.builder()
                .target("FGVM64-test")
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:FirewallSecurityPolicypackage
        properties:
          target: FGVM64-test
    

    Create FirewallSecurityPolicypackage Resource

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

    Constructor syntax

    new FirewallSecurityPolicypackage(name: string, args?: FirewallSecurityPolicypackageArgs, opts?: CustomResourceOptions);
    @overload
    def FirewallSecurityPolicypackage(resource_name: str,
                                      args: Optional[FirewallSecurityPolicypackageArgs] = None,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def FirewallSecurityPolicypackage(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      adom: Optional[str] = None,
                                      inspection_mode: Optional[str] = None,
                                      name: Optional[str] = None,
                                      target: Optional[str] = None,
                                      vdom: Optional[str] = None)
    func NewFirewallSecurityPolicypackage(ctx *Context, name string, args *FirewallSecurityPolicypackageArgs, opts ...ResourceOption) (*FirewallSecurityPolicypackage, error)
    public FirewallSecurityPolicypackage(string name, FirewallSecurityPolicypackageArgs? args = null, CustomResourceOptions? opts = null)
    public FirewallSecurityPolicypackage(String name, FirewallSecurityPolicypackageArgs args)
    public FirewallSecurityPolicypackage(String name, FirewallSecurityPolicypackageArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:FirewallSecurityPolicypackage
    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 FirewallSecurityPolicypackageArgs
    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 FirewallSecurityPolicypackageArgs
    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 FirewallSecurityPolicypackageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FirewallSecurityPolicypackageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FirewallSecurityPolicypackageArgs
    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 firewallSecurityPolicypackageResource = new Fortios.Fmg.FirewallSecurityPolicypackage("firewallSecurityPolicypackageResource", new()
    {
        Adom = "string",
        InspectionMode = "string",
        Name = "string",
        Target = "string",
        Vdom = "string",
    });
    
    example, err := fmg.NewFirewallSecurityPolicypackage(ctx, "firewallSecurityPolicypackageResource", &fmg.FirewallSecurityPolicypackageArgs{
    	Adom:           pulumi.String("string"),
    	InspectionMode: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	Target:         pulumi.String("string"),
    	Vdom:           pulumi.String("string"),
    })
    
    var firewallSecurityPolicypackageResource = new FirewallSecurityPolicypackage("firewallSecurityPolicypackageResource", FirewallSecurityPolicypackageArgs.builder()
        .adom("string")
        .inspectionMode("string")
        .name("string")
        .target("string")
        .vdom("string")
        .build());
    
    firewall_security_policypackage_resource = fortios.fmg.FirewallSecurityPolicypackage("firewallSecurityPolicypackageResource",
        adom="string",
        inspection_mode="string",
        name="string",
        target="string",
        vdom="string")
    
    const firewallSecurityPolicypackageResource = new fortios.fmg.FirewallSecurityPolicypackage("firewallSecurityPolicypackageResource", {
        adom: "string",
        inspectionMode: "string",
        name: "string",
        target: "string",
        vdom: "string",
    });
    
    type: fortios:fmg:FirewallSecurityPolicypackage
    properties:
        adom: string
        inspectionMode: string
        name: string
        target: string
        vdom: string
    

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

    Adom string
    Source ADOM name. default is 'root'
    InspectionMode string
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    Name string
    Security policy package name.
    Target string
    The installation target.
    Vdom string
    Vdom of managed device. default is 'root'
    Adom string
    Source ADOM name. default is 'root'
    InspectionMode string
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    Name string
    Security policy package name.
    Target string
    The installation target.
    Vdom string
    Vdom of managed device. default is 'root'
    adom String
    Source ADOM name. default is 'root'
    inspectionMode String
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    name String
    Security policy package name.
    target String
    The installation target.
    vdom String
    Vdom of managed device. default is 'root'
    adom string
    Source ADOM name. default is 'root'
    inspectionMode string
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    name string
    Security policy package name.
    target string
    The installation target.
    vdom string
    Vdom of managed device. default is 'root'
    adom str
    Source ADOM name. default is 'root'
    inspection_mode str
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    name str
    Security policy package name.
    target str
    The installation target.
    vdom str
    Vdom of managed device. default is 'root'
    adom String
    Source ADOM name. default is 'root'
    inspectionMode String
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    name String
    Security policy package name.
    target String
    The installation target.
    vdom String
    Vdom of managed device. default is 'root'

    Outputs

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

    Get an existing FirewallSecurityPolicypackage 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?: FirewallSecurityPolicypackageState, opts?: CustomResourceOptions): FirewallSecurityPolicypackage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            inspection_mode: Optional[str] = None,
            name: Optional[str] = None,
            target: Optional[str] = None,
            vdom: Optional[str] = None) -> FirewallSecurityPolicypackage
    func GetFirewallSecurityPolicypackage(ctx *Context, name string, id IDInput, state *FirewallSecurityPolicypackageState, opts ...ResourceOption) (*FirewallSecurityPolicypackage, error)
    public static FirewallSecurityPolicypackage Get(string name, Input<string> id, FirewallSecurityPolicypackageState? state, CustomResourceOptions? opts = null)
    public static FirewallSecurityPolicypackage get(String name, Output<String> id, FirewallSecurityPolicypackageState 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:
    Adom string
    Source ADOM name. default is 'root'
    InspectionMode string
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    Name string
    Security policy package name.
    Target string
    The installation target.
    Vdom string
    Vdom of managed device. default is 'root'
    Adom string
    Source ADOM name. default is 'root'
    InspectionMode string
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    Name string
    Security policy package name.
    Target string
    The installation target.
    Vdom string
    Vdom of managed device. default is 'root'
    adom String
    Source ADOM name. default is 'root'
    inspectionMode String
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    name String
    Security policy package name.
    target String
    The installation target.
    vdom String
    Vdom of managed device. default is 'root'
    adom string
    Source ADOM name. default is 'root'
    inspectionMode string
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    name string
    Security policy package name.
    target string
    The installation target.
    vdom string
    Vdom of managed device. default is 'root'
    adom str
    Source ADOM name. default is 'root'
    inspection_mode str
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    name str
    Security policy package name.
    target str
    The installation target.
    vdom str
    Vdom of managed device. default is 'root'
    adom String
    Source ADOM name. default is 'root'
    inspectionMode String
    Inspection Mode. Enum:[flow, proxy]. default is 'flow'
    name String
    Security policy package name.
    target String
    The installation target.
    vdom String
    Vdom of managed device. default is 'root'

    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