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

fortios.switchcontroller.Snmptrapthreshold

Explore with Pulumi AI

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

    Configure FortiSwitch SNMP trap threshold values globally. Applies to FortiOS Version >= 6.2.4.

    Create Snmptrapthreshold Resource

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

    Constructor syntax

    new Snmptrapthreshold(name: string, args?: SnmptrapthresholdArgs, opts?: CustomResourceOptions);
    @overload
    def Snmptrapthreshold(resource_name: str,
                          args: Optional[SnmptrapthresholdArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def Snmptrapthreshold(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          trap_high_cpu_threshold: Optional[int] = None,
                          trap_log_full_threshold: Optional[int] = None,
                          trap_low_memory_threshold: Optional[int] = None,
                          vdomparam: Optional[str] = None)
    func NewSnmptrapthreshold(ctx *Context, name string, args *SnmptrapthresholdArgs, opts ...ResourceOption) (*Snmptrapthreshold, error)
    public Snmptrapthreshold(string name, SnmptrapthresholdArgs? args = null, CustomResourceOptions? opts = null)
    public Snmptrapthreshold(String name, SnmptrapthresholdArgs args)
    public Snmptrapthreshold(String name, SnmptrapthresholdArgs args, CustomResourceOptions options)
    
    type: fortios:switchcontroller:Snmptrapthreshold
    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 SnmptrapthresholdArgs
    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 SnmptrapthresholdArgs
    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 SnmptrapthresholdArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SnmptrapthresholdArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SnmptrapthresholdArgs
    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 snmptrapthresholdResource = new Fortios.Switchcontroller.Snmptrapthreshold("snmptrapthresholdResource", new()
    {
        TrapHighCpuThreshold = 0,
        TrapLogFullThreshold = 0,
        TrapLowMemoryThreshold = 0,
        Vdomparam = "string",
    });
    
    example, err := switchcontroller.NewSnmptrapthreshold(ctx, "snmptrapthresholdResource", &switchcontroller.SnmptrapthresholdArgs{
    	TrapHighCpuThreshold:   pulumi.Int(0),
    	TrapLogFullThreshold:   pulumi.Int(0),
    	TrapLowMemoryThreshold: pulumi.Int(0),
    	Vdomparam:              pulumi.String("string"),
    })
    
    var snmptrapthresholdResource = new Snmptrapthreshold("snmptrapthresholdResource", SnmptrapthresholdArgs.builder()
        .trapHighCpuThreshold(0)
        .trapLogFullThreshold(0)
        .trapLowMemoryThreshold(0)
        .vdomparam("string")
        .build());
    
    snmptrapthreshold_resource = fortios.switchcontroller.Snmptrapthreshold("snmptrapthresholdResource",
        trap_high_cpu_threshold=0,
        trap_log_full_threshold=0,
        trap_low_memory_threshold=0,
        vdomparam="string")
    
    const snmptrapthresholdResource = new fortios.switchcontroller.Snmptrapthreshold("snmptrapthresholdResource", {
        trapHighCpuThreshold: 0,
        trapLogFullThreshold: 0,
        trapLowMemoryThreshold: 0,
        vdomparam: "string",
    });
    
    type: fortios:switchcontroller:Snmptrapthreshold
    properties:
        trapHighCpuThreshold: 0
        trapLogFullThreshold: 0
        trapLowMemoryThreshold: 0
        vdomparam: string
    

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

    TrapHighCpuThreshold int
    CPU usage when trap is sent.
    TrapLogFullThreshold int
    Log disk usage when trap is sent.
    TrapLowMemoryThreshold int
    Memory usage when trap is sent.
    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.
    TrapHighCpuThreshold int
    CPU usage when trap is sent.
    TrapLogFullThreshold int
    Log disk usage when trap is sent.
    TrapLowMemoryThreshold int
    Memory usage when trap is sent.
    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.
    trapHighCpuThreshold Integer
    CPU usage when trap is sent.
    trapLogFullThreshold Integer
    Log disk usage when trap is sent.
    trapLowMemoryThreshold Integer
    Memory usage when trap is sent.
    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.
    trapHighCpuThreshold number
    CPU usage when trap is sent.
    trapLogFullThreshold number
    Log disk usage when trap is sent.
    trapLowMemoryThreshold number
    Memory usage when trap is sent.
    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.
    trap_high_cpu_threshold int
    CPU usage when trap is sent.
    trap_log_full_threshold int
    Log disk usage when trap is sent.
    trap_low_memory_threshold int
    Memory usage when trap is sent.
    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.
    trapHighCpuThreshold Number
    CPU usage when trap is sent.
    trapLogFullThreshold Number
    Log disk usage when trap is sent.
    trapLowMemoryThreshold Number
    Memory usage when trap is sent.
    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 Snmptrapthreshold 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 Snmptrapthreshold Resource

    Get an existing Snmptrapthreshold 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?: SnmptrapthresholdState, opts?: CustomResourceOptions): Snmptrapthreshold
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            trap_high_cpu_threshold: Optional[int] = None,
            trap_log_full_threshold: Optional[int] = None,
            trap_low_memory_threshold: Optional[int] = None,
            vdomparam: Optional[str] = None) -> Snmptrapthreshold
    func GetSnmptrapthreshold(ctx *Context, name string, id IDInput, state *SnmptrapthresholdState, opts ...ResourceOption) (*Snmptrapthreshold, error)
    public static Snmptrapthreshold Get(string name, Input<string> id, SnmptrapthresholdState? state, CustomResourceOptions? opts = null)
    public static Snmptrapthreshold get(String name, Output<String> id, SnmptrapthresholdState 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:
    TrapHighCpuThreshold int
    CPU usage when trap is sent.
    TrapLogFullThreshold int
    Log disk usage when trap is sent.
    TrapLowMemoryThreshold int
    Memory usage when trap is sent.
    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.
    TrapHighCpuThreshold int
    CPU usage when trap is sent.
    TrapLogFullThreshold int
    Log disk usage when trap is sent.
    TrapLowMemoryThreshold int
    Memory usage when trap is sent.
    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.
    trapHighCpuThreshold Integer
    CPU usage when trap is sent.
    trapLogFullThreshold Integer
    Log disk usage when trap is sent.
    trapLowMemoryThreshold Integer
    Memory usage when trap is sent.
    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.
    trapHighCpuThreshold number
    CPU usage when trap is sent.
    trapLogFullThreshold number
    Log disk usage when trap is sent.
    trapLowMemoryThreshold number
    Memory usage when trap is sent.
    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.
    trap_high_cpu_threshold int
    CPU usage when trap is sent.
    trap_log_full_threshold int
    Log disk usage when trap is sent.
    trap_low_memory_threshold int
    Memory usage when trap is sent.
    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.
    trapHighCpuThreshold Number
    CPU usage when trap is sent.
    trapLogFullThreshold Number
    Log disk usage when trap is sent.
    trapLowMemoryThreshold Number
    Memory usage when trap is sent.
    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

    SwitchController SnmpTrapThreshold can be imported using any of these accepted formats:

    $ pulumi import fortios:switchcontroller/snmptrapthreshold:Snmptrapthreshold labelname SwitchControllerSnmpTrapThreshold
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:switchcontroller/snmptrapthreshold:Snmptrapthreshold labelname SwitchControllerSnmpTrapThreshold
    

    $ 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.
    fortios logo
    Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse