fortios.switchcontroller.Snmptrapthreshold
Explore with Pulumi AI
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Snmptrapthreshold resource accepts the following input properties:
- Trap
High intCpu Threshold - CPU usage when trap is sent.
- Trap
Log intFull Threshold - Log disk usage when trap is sent.
- Trap
Low intMemory Threshold - 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 intCpu Threshold - CPU usage when trap is sent.
- Trap
Log intFull Threshold - Log disk usage when trap is sent.
- Trap
Low intMemory Threshold - 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 IntegerCpu Threshold - CPU usage when trap is sent.
- trap
Log IntegerFull Threshold - Log disk usage when trap is sent.
- trap
Low IntegerMemory Threshold - 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 numberCpu Threshold - CPU usage when trap is sent.
- trap
Log numberFull Threshold - Log disk usage when trap is sent.
- trap
Low numberMemory Threshold - 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_ intcpu_ threshold - CPU usage when trap is sent.
- trap_
log_ intfull_ threshold - Log disk usage when trap is sent.
- trap_
low_ intmemory_ threshold - 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.
- trap
High NumberCpu Threshold - CPU usage when trap is sent.
- trap
Log NumberFull Threshold - Log disk usage when trap is sent.
- trap
Low NumberMemory Threshold - 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.
- Trap
High intCpu Threshold - CPU usage when trap is sent.
- Trap
Log intFull Threshold - Log disk usage when trap is sent.
- Trap
Low intMemory Threshold - 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 intCpu Threshold - CPU usage when trap is sent.
- Trap
Log intFull Threshold - Log disk usage when trap is sent.
- Trap
Low intMemory Threshold - 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 IntegerCpu Threshold - CPU usage when trap is sent.
- trap
Log IntegerFull Threshold - Log disk usage when trap is sent.
- trap
Low IntegerMemory Threshold - 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 numberCpu Threshold - CPU usage when trap is sent.
- trap
Log numberFull Threshold - Log disk usage when trap is sent.
- trap
Low numberMemory Threshold - 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_ intcpu_ threshold - CPU usage when trap is sent.
- trap_
log_ intfull_ threshold - Log disk usage when trap is sent.
- trap_
low_ intmemory_ threshold - 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.
- trap
High NumberCpu Threshold - CPU usage when trap is sent.
- trap
Log NumberFull Threshold - Log disk usage when trap is sent.
- trap
Low NumberMemory Threshold - 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.