1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. PackagesPblock
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.PackagesPblock

Explore with Pulumi AI

Packages Pblock

The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • firewall_consolidated_policy: fortimanager.PackagesPblockFirewallConsolidatedPolicy
  • firewall_policy: fortimanager.PackagesPblockFirewallPolicy
  • firewall_policy6: fortimanager.PackagesPblockFirewallPolicy6
  • firewall_proxy_policy: fortimanager_packages_pblock_firewall_proxypolicy
  • firewall_security_policy: fortimanager.PackagesPblockFirewallSecuritypolicy

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname = new fortimanager.PackagesPblock("trname", {type: "pblock"});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.PackagesPblock("trname", type="pblock")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fortimanager.NewPackagesPblock(ctx, "trname", &fortimanager.PackagesPblockArgs{
			Type: pulumi.String("pblock"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortimanager.PackagesPblock("trname", new()
    {
        Type = "pblock",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.PackagesPblock;
import com.pulumi.fortimanager.PackagesPblockArgs;
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 PackagesPblock("trname", PackagesPblockArgs.builder()
            .type("pblock")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:PackagesPblock
    properties:
      type: pblock
Copy

Create PackagesPblock Resource

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

Constructor syntax

new PackagesPblock(name: string, args?: PackagesPblockArgs, opts?: CustomResourceOptions);
@overload
def PackagesPblock(resource_name: str,
                   args: Optional[PackagesPblockArgs] = None,
                   opts: Optional[ResourceOptions] = None)

@overload
def PackagesPblock(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   adom: Optional[str] = None,
                   name: Optional[str] = None,
                   oid: Optional[float] = None,
                   packages_pblock_id: Optional[str] = None,
                   packagesettings: Optional[PackagesPblockPackagesettingsArgs] = None,
                   scopetype: Optional[str] = None,
                   type: Optional[str] = None)
func NewPackagesPblock(ctx *Context, name string, args *PackagesPblockArgs, opts ...ResourceOption) (*PackagesPblock, error)
public PackagesPblock(string name, PackagesPblockArgs? args = null, CustomResourceOptions? opts = null)
public PackagesPblock(String name, PackagesPblockArgs args)
public PackagesPblock(String name, PackagesPblockArgs args, CustomResourceOptions options)
type: fortimanager:PackagesPblock
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args PackagesPblockArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args PackagesPblockArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args PackagesPblockArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args PackagesPblockArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PackagesPblockArgs
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 packagesPblockResource = new Fortimanager.PackagesPblock("packagesPblockResource", new()
{
    Adom = "string",
    Name = "string",
    Oid = 0,
    PackagesPblockId = "string",
    Packagesettings = new Fortimanager.Inputs.PackagesPblockPackagesettingsArgs
    {
        CentralNat = "string",
        ConsolidatedFirewallMode = "string",
        Fwpolicy6ImplicitLog = "string",
        FwpolicyImplicitLog = "string",
        InspectionMode = "string",
        NgfwMode = "string",
        PolicyOffloadLevel = "string",
        SslSshProfile = "string",
    },
    Scopetype = "string",
    Type = "string",
});
Copy
example, err := fortimanager.NewPackagesPblock(ctx, "packagesPblockResource", &fortimanager.PackagesPblockArgs{
Adom: pulumi.String("string"),
Name: pulumi.String("string"),
Oid: pulumi.Float64(0),
PackagesPblockId: pulumi.String("string"),
Packagesettings: &.PackagesPblockPackagesettingsArgs{
CentralNat: pulumi.String("string"),
ConsolidatedFirewallMode: pulumi.String("string"),
Fwpolicy6ImplicitLog: pulumi.String("string"),
FwpolicyImplicitLog: pulumi.String("string"),
InspectionMode: pulumi.String("string"),
NgfwMode: pulumi.String("string"),
PolicyOffloadLevel: pulumi.String("string"),
SslSshProfile: pulumi.String("string"),
},
Scopetype: pulumi.String("string"),
Type: pulumi.String("string"),
})
Copy
var packagesPblockResource = new PackagesPblock("packagesPblockResource", PackagesPblockArgs.builder()
    .adom("string")
    .name("string")
    .oid(0)
    .packagesPblockId("string")
    .packagesettings(PackagesPblockPackagesettingsArgs.builder()
        .centralNat("string")
        .consolidatedFirewallMode("string")
        .fwpolicy6ImplicitLog("string")
        .fwpolicyImplicitLog("string")
        .inspectionMode("string")
        .ngfwMode("string")
        .policyOffloadLevel("string")
        .sslSshProfile("string")
        .build())
    .scopetype("string")
    .type("string")
    .build());
Copy
packages_pblock_resource = fortimanager.PackagesPblock("packagesPblockResource",
    adom="string",
    name="string",
    oid=0,
    packages_pblock_id="string",
    packagesettings={
        "central_nat": "string",
        "consolidated_firewall_mode": "string",
        "fwpolicy6_implicit_log": "string",
        "fwpolicy_implicit_log": "string",
        "inspection_mode": "string",
        "ngfw_mode": "string",
        "policy_offload_level": "string",
        "ssl_ssh_profile": "string",
    },
    scopetype="string",
    type="string")
Copy
const packagesPblockResource = new fortimanager.PackagesPblock("packagesPblockResource", {
    adom: "string",
    name: "string",
    oid: 0,
    packagesPblockId: "string",
    packagesettings: {
        centralNat: "string",
        consolidatedFirewallMode: "string",
        fwpolicy6ImplicitLog: "string",
        fwpolicyImplicitLog: "string",
        inspectionMode: "string",
        ngfwMode: "string",
        policyOffloadLevel: "string",
        sslSshProfile: "string",
    },
    scopetype: "string",
    type: "string",
});
Copy
type: fortimanager:PackagesPblock
properties:
    adom: string
    name: string
    oid: 0
    packagesPblockId: string
    packagesettings:
        centralNat: string
        consolidatedFirewallMode: string
        fwpolicy6ImplicitLog: string
        fwpolicyImplicitLog: string
        inspectionMode: string
        ngfwMode: string
        policyOffloadLevel: string
        sslSshProfile: string
    scopetype: string
    type: string
Copy

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

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Name string
Name.
Oid double
Oid.
PackagesPblockId string
an identifier for the resource with format {{name}}.
Packagesettings PackagesPblockPackagesettings
Package Settings. The structure of packagesettings block is documented below.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Type string
Type. Valid values: pblock.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Name string
Name.
Oid float64
Oid.
PackagesPblockId string
an identifier for the resource with format {{name}}.
Packagesettings PackagesPblockPackagesettingsArgs
Package Settings. The structure of packagesettings block is documented below.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Type string
Type. Valid values: pblock.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name String
Name.
oid Double
Oid.
packagesPblockId String
an identifier for the resource with format {{name}}.
packagesettings PackagesPblockPackagesettings
Package Settings. The structure of packagesettings block is documented below.
scopetype String
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
type String
Type. Valid values: pblock.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name string
Name.
oid number
Oid.
packagesPblockId string
an identifier for the resource with format {{name}}.
packagesettings PackagesPblockPackagesettings
Package Settings. The structure of packagesettings block is documented below.
scopetype string
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
type string
Type. Valid values: pblock.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name str
Name.
oid float
Oid.
packages_pblock_id str
an identifier for the resource with format {{name}}.
packagesettings PackagesPblockPackagesettingsArgs
Package Settings. The structure of packagesettings block is documented below.
scopetype str
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
type str
Type. Valid values: pblock.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name String
Name.
oid Number
Oid.
packagesPblockId String
an identifier for the resource with format {{name}}.
packagesettings Property Map
Package Settings. The structure of packagesettings block is documented below.
scopetype String
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
type String
Type. Valid values: pblock.

Outputs

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

Get an existing PackagesPblock 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?: PackagesPblockState, opts?: CustomResourceOptions): PackagesPblock
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        name: Optional[str] = None,
        oid: Optional[float] = None,
        packages_pblock_id: Optional[str] = None,
        packagesettings: Optional[PackagesPblockPackagesettingsArgs] = None,
        scopetype: Optional[str] = None,
        type: Optional[str] = None) -> PackagesPblock
func GetPackagesPblock(ctx *Context, name string, id IDInput, state *PackagesPblockState, opts ...ResourceOption) (*PackagesPblock, error)
public static PackagesPblock Get(string name, Input<string> id, PackagesPblockState? state, CustomResourceOptions? opts = null)
public static PackagesPblock get(String name, Output<String> id, PackagesPblockState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:PackagesPblock    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Name string
Name.
Oid double
Oid.
PackagesPblockId string
an identifier for the resource with format {{name}}.
Packagesettings PackagesPblockPackagesettings
Package Settings. The structure of packagesettings block is documented below.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Type string
Type. Valid values: pblock.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Name string
Name.
Oid float64
Oid.
PackagesPblockId string
an identifier for the resource with format {{name}}.
Packagesettings PackagesPblockPackagesettingsArgs
Package Settings. The structure of packagesettings block is documented below.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Type string
Type. Valid values: pblock.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name String
Name.
oid Double
Oid.
packagesPblockId String
an identifier for the resource with format {{name}}.
packagesettings PackagesPblockPackagesettings
Package Settings. The structure of packagesettings block is documented below.
scopetype String
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
type String
Type. Valid values: pblock.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name string
Name.
oid number
Oid.
packagesPblockId string
an identifier for the resource with format {{name}}.
packagesettings PackagesPblockPackagesettings
Package Settings. The structure of packagesettings block is documented below.
scopetype string
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
type string
Type. Valid values: pblock.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name str
Name.
oid float
Oid.
packages_pblock_id str
an identifier for the resource with format {{name}}.
packagesettings PackagesPblockPackagesettingsArgs
Package Settings. The structure of packagesettings block is documented below.
scopetype str
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
type str
Type. Valid values: pblock.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name String
Name.
oid Number
Oid.
packagesPblockId String
an identifier for the resource with format {{name}}.
packagesettings Property Map
Package Settings. The structure of packagesettings block is documented below.
scopetype String
The scope of application of the resource. Valid values: inherit, adom. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
type String
Type. Valid values: pblock.

Supporting Types

PackagesPblockPackagesettings
, PackagesPblockPackagesettingsArgs

CentralNat string
Central-Nat. Valid values: disable, enable.
ConsolidatedFirewallMode string
Consolidated-Firewall-Mode. Valid values: disable, enable.
Fwpolicy6ImplicitLog string
Fwpolicy6-Implicit-Log. Valid values: disable, enable.
FwpolicyImplicitLog string
Fwpolicy-Implicit-Log. Valid values: disable, enable.
InspectionMode string
Inspection-Mode. Valid values: proxy, flow.
NgfwMode string
Ngfw-Mode. Valid values: profile-based, policy-based.
PolicyOffloadLevel string
Policy-Offload-Level. Valid values: disable, default, dos-offload, full-offload.
SslSshProfile string
Ssl-Ssh-Profile.
CentralNat string
Central-Nat. Valid values: disable, enable.
ConsolidatedFirewallMode string
Consolidated-Firewall-Mode. Valid values: disable, enable.
Fwpolicy6ImplicitLog string
Fwpolicy6-Implicit-Log. Valid values: disable, enable.
FwpolicyImplicitLog string
Fwpolicy-Implicit-Log. Valid values: disable, enable.
InspectionMode string
Inspection-Mode. Valid values: proxy, flow.
NgfwMode string
Ngfw-Mode. Valid values: profile-based, policy-based.
PolicyOffloadLevel string
Policy-Offload-Level. Valid values: disable, default, dos-offload, full-offload.
SslSshProfile string
Ssl-Ssh-Profile.
centralNat String
Central-Nat. Valid values: disable, enable.
consolidatedFirewallMode String
Consolidated-Firewall-Mode. Valid values: disable, enable.
fwpolicy6ImplicitLog String
Fwpolicy6-Implicit-Log. Valid values: disable, enable.
fwpolicyImplicitLog String
Fwpolicy-Implicit-Log. Valid values: disable, enable.
inspectionMode String
Inspection-Mode. Valid values: proxy, flow.
ngfwMode String
Ngfw-Mode. Valid values: profile-based, policy-based.
policyOffloadLevel String
Policy-Offload-Level. Valid values: disable, default, dos-offload, full-offload.
sslSshProfile String
Ssl-Ssh-Profile.
centralNat string
Central-Nat. Valid values: disable, enable.
consolidatedFirewallMode string
Consolidated-Firewall-Mode. Valid values: disable, enable.
fwpolicy6ImplicitLog string
Fwpolicy6-Implicit-Log. Valid values: disable, enable.
fwpolicyImplicitLog string
Fwpolicy-Implicit-Log. Valid values: disable, enable.
inspectionMode string
Inspection-Mode. Valid values: proxy, flow.
ngfwMode string
Ngfw-Mode. Valid values: profile-based, policy-based.
policyOffloadLevel string
Policy-Offload-Level. Valid values: disable, default, dos-offload, full-offload.
sslSshProfile string
Ssl-Ssh-Profile.
central_nat str
Central-Nat. Valid values: disable, enable.
consolidated_firewall_mode str
Consolidated-Firewall-Mode. Valid values: disable, enable.
fwpolicy6_implicit_log str
Fwpolicy6-Implicit-Log. Valid values: disable, enable.
fwpolicy_implicit_log str
Fwpolicy-Implicit-Log. Valid values: disable, enable.
inspection_mode str
Inspection-Mode. Valid values: proxy, flow.
ngfw_mode str
Ngfw-Mode. Valid values: profile-based, policy-based.
policy_offload_level str
Policy-Offload-Level. Valid values: disable, default, dos-offload, full-offload.
ssl_ssh_profile str
Ssl-Ssh-Profile.
centralNat String
Central-Nat. Valid values: disable, enable.
consolidatedFirewallMode String
Consolidated-Firewall-Mode. Valid values: disable, enable.
fwpolicy6ImplicitLog String
Fwpolicy6-Implicit-Log. Valid values: disable, enable.
fwpolicyImplicitLog String
Fwpolicy-Implicit-Log. Valid values: disable, enable.
inspectionMode String
Inspection-Mode. Valid values: proxy, flow.
ngfwMode String
Ngfw-Mode. Valid values: profile-based, policy-based.
policyOffloadLevel String
Policy-Offload-Level. Valid values: disable, default, dos-offload, full-offload.
sslSshProfile String
Ssl-Ssh-Profile.

Import

Packages Pblock can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/packagesPblock:PackagesPblock labelname {{name}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.