fortios.system/snmp.User
Explore with Pulumi AI
SNMP user configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.system.snmp.User("trname", {
authProto: "sha",
events: "cpu-high mem-low log-full intf-ip vpn-tun-up vpn-tun-down ha-switch ha-hb-failure ips-signature ips-anomaly av-virus av-oversize av-pattern av-fragmented fm-if-change bgp-established bgp-backward-transition ha-member-up ha-member-down ent-conf-change av-conserve av-bypass av-oversize-passed av-oversize-blocked ips-pkg-update ips-fail-open faz-disconnect wc-ap-up wc-ap-down fswctl-session-up fswctl-session-down load-balance-real-server-down per-cpu-high",
haDirect: "disable",
privProto: "aes",
queries: "disable",
queryPort: 161,
securityLevel: "no-auth-no-priv",
sourceIp: "0.0.0.0",
sourceIpv6: "::",
status: "disable",
trapLport: 162,
trapRport: 162,
trapStatus: "enable",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.system.snmp.User("trname",
auth_proto="sha",
events="cpu-high mem-low log-full intf-ip vpn-tun-up vpn-tun-down ha-switch ha-hb-failure ips-signature ips-anomaly av-virus av-oversize av-pattern av-fragmented fm-if-change bgp-established bgp-backward-transition ha-member-up ha-member-down ent-conf-change av-conserve av-bypass av-oversize-passed av-oversize-blocked ips-pkg-update ips-fail-open faz-disconnect wc-ap-up wc-ap-down fswctl-session-up fswctl-session-down load-balance-real-server-down per-cpu-high",
ha_direct="disable",
priv_proto="aes",
queries="disable",
query_port=161,
security_level="no-auth-no-priv",
source_ip="0.0.0.0",
source_ipv6="::",
status="disable",
trap_lport=162,
trap_rport=162,
trap_status="enable")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := system.NewUser(ctx, "trname", &system.UserArgs{
AuthProto: pulumi.String("sha"),
Events: pulumi.String("cpu-high mem-low log-full intf-ip vpn-tun-up vpn-tun-down ha-switch ha-hb-failure ips-signature ips-anomaly av-virus av-oversize av-pattern av-fragmented fm-if-change bgp-established bgp-backward-transition ha-member-up ha-member-down ent-conf-change av-conserve av-bypass av-oversize-passed av-oversize-blocked ips-pkg-update ips-fail-open faz-disconnect wc-ap-up wc-ap-down fswctl-session-up fswctl-session-down load-balance-real-server-down per-cpu-high"),
HaDirect: pulumi.String("disable"),
PrivProto: pulumi.String("aes"),
Queries: pulumi.String("disable"),
QueryPort: pulumi.Int(161),
SecurityLevel: pulumi.String("no-auth-no-priv"),
SourceIp: pulumi.String("0.0.0.0"),
SourceIpv6: pulumi.String("::"),
Status: pulumi.String("disable"),
TrapLport: pulumi.Int(162),
TrapRport: pulumi.Int(162),
TrapStatus: pulumi.String("enable"),
})
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 trname = new Fortios.System.Snmp.User("trname", new()
{
AuthProto = "sha",
Events = "cpu-high mem-low log-full intf-ip vpn-tun-up vpn-tun-down ha-switch ha-hb-failure ips-signature ips-anomaly av-virus av-oversize av-pattern av-fragmented fm-if-change bgp-established bgp-backward-transition ha-member-up ha-member-down ent-conf-change av-conserve av-bypass av-oversize-passed av-oversize-blocked ips-pkg-update ips-fail-open faz-disconnect wc-ap-up wc-ap-down fswctl-session-up fswctl-session-down load-balance-real-server-down per-cpu-high",
HaDirect = "disable",
PrivProto = "aes",
Queries = "disable",
QueryPort = 161,
SecurityLevel = "no-auth-no-priv",
SourceIp = "0.0.0.0",
SourceIpv6 = "::",
Status = "disable",
TrapLport = 162,
TrapRport = 162,
TrapStatus = "enable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.system.User;
import com.pulumi.fortios.system.UserArgs;
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 User("trname", UserArgs.builder()
.authProto("sha")
.events("cpu-high mem-low log-full intf-ip vpn-tun-up vpn-tun-down ha-switch ha-hb-failure ips-signature ips-anomaly av-virus av-oversize av-pattern av-fragmented fm-if-change bgp-established bgp-backward-transition ha-member-up ha-member-down ent-conf-change av-conserve av-bypass av-oversize-passed av-oversize-blocked ips-pkg-update ips-fail-open faz-disconnect wc-ap-up wc-ap-down fswctl-session-up fswctl-session-down load-balance-real-server-down per-cpu-high")
.haDirect("disable")
.privProto("aes")
.queries("disable")
.queryPort(161)
.securityLevel("no-auth-no-priv")
.sourceIp("0.0.0.0")
.sourceIpv6("::")
.status("disable")
.trapLport(162)
.trapRport(162)
.trapStatus("enable")
.build());
}
}
resources:
trname:
type: fortios:system/snmp:User
properties:
authProto: sha
events: cpu-high mem-low log-full intf-ip vpn-tun-up vpn-tun-down ha-switch ha-hb-failure ips-signature ips-anomaly av-virus av-oversize av-pattern av-fragmented fm-if-change bgp-established bgp-backward-transition ha-member-up ha-member-down ent-conf-change av-conserve av-bypass av-oversize-passed av-oversize-blocked ips-pkg-update ips-fail-open faz-disconnect wc-ap-up wc-ap-down fswctl-session-up fswctl-session-down load-balance-real-server-down per-cpu-high
haDirect: disable
privProto: aes
queries: disable
queryPort: 161
securityLevel: no-auth-no-priv
sourceIp: 0.0.0.0
sourceIpv6: '::'
status: disable
trapLport: 162
trapRport: 162
trapStatus: enable
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args?: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
args: Optional[UserArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth_proto: Optional[str] = None,
auth_pwd: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
events: Optional[str] = None,
get_all_tables: Optional[str] = None,
ha_direct: Optional[str] = None,
mib_view: Optional[str] = None,
name: Optional[str] = None,
notify_hosts: Optional[str] = None,
notify_hosts6: Optional[str] = None,
priv_proto: Optional[str] = None,
priv_pwd: Optional[str] = None,
queries: Optional[str] = None,
query_port: Optional[int] = None,
security_level: Optional[str] = None,
source_ip: Optional[str] = None,
source_ipv6: Optional[str] = None,
status: Optional[str] = None,
trap_lport: Optional[int] = None,
trap_rport: Optional[int] = None,
trap_status: Optional[str] = None,
vdomparam: Optional[str] = None,
vdoms: Optional[Sequence[UserVdomArgs]] = None)
func NewUser(ctx *Context, name string, args *UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs? args = null, CustomResourceOptions? opts = null)
type: fortios:system/snmp/user:User
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 UserArgs
- 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 UserArgs
- 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 UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
User 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 User resource accepts the following input properties:
- Auth
Proto string - Authentication protocol.
- Auth
Pwd string - Password for authentication protocol.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Events string
- SNMP notifications (traps) to send.
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Ha
Direct string - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - Mib
View string - SNMP access control MIB view.
- Name string
- SNMP user name.
- Notify
Hosts string - SNMP managers to send notifications (traps) to.
- Notify
Hosts6 string - IPv6 SNMP managers to send notifications (traps) to.
- Priv
Proto string - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - Priv
Pwd string - Password for privacy (encryption) protocol.
- Queries string
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - Query
Port int - SNMPv3 query port (default = 161).
- Security
Level string - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - Source
Ip string - Source IP for SNMP trap.
- Source
Ipv6 string - Source IPv6 for SNMP trap.
- Status string
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - Trap
Lport int - SNMPv3 local trap port (default = 162).
- Trap
Rport int - SNMPv3 trap remote port (default = 162).
- Trap
Status string - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- Vdoms
List<Pulumiverse.
Fortios. System. Snmp. Inputs. User Vdom> - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- Auth
Proto string - Authentication protocol.
- Auth
Pwd string - Password for authentication protocol.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Events string
- SNMP notifications (traps) to send.
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Ha
Direct string - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - Mib
View string - SNMP access control MIB view.
- Name string
- SNMP user name.
- Notify
Hosts string - SNMP managers to send notifications (traps) to.
- Notify
Hosts6 string - IPv6 SNMP managers to send notifications (traps) to.
- Priv
Proto string - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - Priv
Pwd string - Password for privacy (encryption) protocol.
- Queries string
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - Query
Port int - SNMPv3 query port (default = 161).
- Security
Level string - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - Source
Ip string - Source IP for SNMP trap.
- Source
Ipv6 string - Source IPv6 for SNMP trap.
- Status string
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - Trap
Lport int - SNMPv3 local trap port (default = 162).
- Trap
Rport int - SNMPv3 trap remote port (default = 162).
- Trap
Status string - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- Vdoms
[]User
Vdom Args - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- auth
Proto String - Authentication protocol.
- auth
Pwd String - Password for authentication protocol.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- events String
- SNMP notifications (traps) to send.
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- ha
Direct String - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - mib
View String - SNMP access control MIB view.
- name String
- SNMP user name.
- notify
Hosts String - SNMP managers to send notifications (traps) to.
- notify
Hosts6 String - IPv6 SNMP managers to send notifications (traps) to.
- priv
Proto String - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - priv
Pwd String - Password for privacy (encryption) protocol.
- queries String
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - query
Port Integer - SNMPv3 query port (default = 161).
- security
Level String - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - source
Ip String - Source IP for SNMP trap.
- source
Ipv6 String - Source IPv6 for SNMP trap.
- status String
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - trap
Lport Integer - SNMPv3 local trap port (default = 162).
- trap
Rport Integer - SNMPv3 trap remote port (default = 162).
- trap
Status String - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- vdoms
List<User
Vdom> - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- auth
Proto string - Authentication protocol.
- auth
Pwd string - Password for authentication protocol.
- dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- events string
- SNMP notifications (traps) to send.
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- ha
Direct string - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - mib
View string - SNMP access control MIB view.
- name string
- SNMP user name.
- notify
Hosts string - SNMP managers to send notifications (traps) to.
- notify
Hosts6 string - IPv6 SNMP managers to send notifications (traps) to.
- priv
Proto string - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - priv
Pwd string - Password for privacy (encryption) protocol.
- queries string
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - query
Port number - SNMPv3 query port (default = 161).
- security
Level string - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - source
Ip string - Source IP for SNMP trap.
- source
Ipv6 string - Source IPv6 for SNMP trap.
- status string
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - trap
Lport number - SNMPv3 local trap port (default = 162).
- trap
Rport number - SNMPv3 trap remote port (default = 162).
- trap
Status string - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- vdoms
User
Vdom[] - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- auth_
proto str - Authentication protocol.
- auth_
pwd str - Password for authentication protocol.
- dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- events str
- SNMP notifications (traps) to send.
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- ha_
direct str - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - mib_
view str - SNMP access control MIB view.
- name str
- SNMP user name.
- notify_
hosts str - SNMP managers to send notifications (traps) to.
- notify_
hosts6 str - IPv6 SNMP managers to send notifications (traps) to.
- priv_
proto str - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - priv_
pwd str - Password for privacy (encryption) protocol.
- queries str
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - query_
port int - SNMPv3 query port (default = 161).
- security_
level str - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - source_
ip str - Source IP for SNMP trap.
- source_
ipv6 str - Source IPv6 for SNMP trap.
- status str
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - trap_
lport int - SNMPv3 local trap port (default = 162).
- trap_
rport int - SNMPv3 trap remote port (default = 162).
- trap_
status str - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- vdoms
Sequence[User
Vdom Args] - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- auth
Proto String - Authentication protocol.
- auth
Pwd String - Password for authentication protocol.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- events String
- SNMP notifications (traps) to send.
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- ha
Direct String - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - mib
View String - SNMP access control MIB view.
- name String
- SNMP user name.
- notify
Hosts String - SNMP managers to send notifications (traps) to.
- notify
Hosts6 String - IPv6 SNMP managers to send notifications (traps) to.
- priv
Proto String - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - priv
Pwd String - Password for privacy (encryption) protocol.
- queries String
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - query
Port Number - SNMPv3 query port (default = 161).
- security
Level String - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - source
Ip String - Source IP for SNMP trap.
- source
Ipv6 String - Source IPv6 for SNMP trap.
- status String
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - trap
Lport Number - SNMPv3 local trap port (default = 162).
- trap
Rport Number - SNMPv3 trap remote port (default = 162).
- trap
Status String - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- vdoms List<Property Map>
- SNMP access control VDOMs. The structure of
vdoms
block is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the User 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 User Resource
Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_proto: Optional[str] = None,
auth_pwd: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
events: Optional[str] = None,
get_all_tables: Optional[str] = None,
ha_direct: Optional[str] = None,
mib_view: Optional[str] = None,
name: Optional[str] = None,
notify_hosts: Optional[str] = None,
notify_hosts6: Optional[str] = None,
priv_proto: Optional[str] = None,
priv_pwd: Optional[str] = None,
queries: Optional[str] = None,
query_port: Optional[int] = None,
security_level: Optional[str] = None,
source_ip: Optional[str] = None,
source_ipv6: Optional[str] = None,
status: Optional[str] = None,
trap_lport: Optional[int] = None,
trap_rport: Optional[int] = None,
trap_status: Optional[str] = None,
vdomparam: Optional[str] = None,
vdoms: Optional[Sequence[UserVdomArgs]] = None) -> User
func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
public static User get(String name, Output<String> id, UserState 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.
- Auth
Proto string - Authentication protocol.
- Auth
Pwd string - Password for authentication protocol.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Events string
- SNMP notifications (traps) to send.
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Ha
Direct string - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - Mib
View string - SNMP access control MIB view.
- Name string
- SNMP user name.
- Notify
Hosts string - SNMP managers to send notifications (traps) to.
- Notify
Hosts6 string - IPv6 SNMP managers to send notifications (traps) to.
- Priv
Proto string - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - Priv
Pwd string - Password for privacy (encryption) protocol.
- Queries string
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - Query
Port int - SNMPv3 query port (default = 161).
- Security
Level string - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - Source
Ip string - Source IP for SNMP trap.
- Source
Ipv6 string - Source IPv6 for SNMP trap.
- Status string
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - Trap
Lport int - SNMPv3 local trap port (default = 162).
- Trap
Rport int - SNMPv3 trap remote port (default = 162).
- Trap
Status string - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- Vdoms
List<Pulumiverse.
Fortios. System. Snmp. Inputs. User Vdom> - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- Auth
Proto string - Authentication protocol.
- Auth
Pwd string - Password for authentication protocol.
- Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Events string
- SNMP notifications (traps) to send.
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Ha
Direct string - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - Mib
View string - SNMP access control MIB view.
- Name string
- SNMP user name.
- Notify
Hosts string - SNMP managers to send notifications (traps) to.
- Notify
Hosts6 string - IPv6 SNMP managers to send notifications (traps) to.
- Priv
Proto string - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - Priv
Pwd string - Password for privacy (encryption) protocol.
- Queries string
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - Query
Port int - SNMPv3 query port (default = 161).
- Security
Level string - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - Source
Ip string - Source IP for SNMP trap.
- Source
Ipv6 string - Source IPv6 for SNMP trap.
- Status string
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - Trap
Lport int - SNMPv3 local trap port (default = 162).
- Trap
Rport int - SNMPv3 trap remote port (default = 162).
- Trap
Status string - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- Vdoms
[]User
Vdom Args - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- auth
Proto String - Authentication protocol.
- auth
Pwd String - Password for authentication protocol.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- events String
- SNMP notifications (traps) to send.
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- ha
Direct String - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - mib
View String - SNMP access control MIB view.
- name String
- SNMP user name.
- notify
Hosts String - SNMP managers to send notifications (traps) to.
- notify
Hosts6 String - IPv6 SNMP managers to send notifications (traps) to.
- priv
Proto String - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - priv
Pwd String - Password for privacy (encryption) protocol.
- queries String
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - query
Port Integer - SNMPv3 query port (default = 161).
- security
Level String - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - source
Ip String - Source IP for SNMP trap.
- source
Ipv6 String - Source IPv6 for SNMP trap.
- status String
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - trap
Lport Integer - SNMPv3 local trap port (default = 162).
- trap
Rport Integer - SNMPv3 trap remote port (default = 162).
- trap
Status String - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- vdoms
List<User
Vdom> - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- auth
Proto string - Authentication protocol.
- auth
Pwd string - Password for authentication protocol.
- dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- events string
- SNMP notifications (traps) to send.
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- ha
Direct string - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - mib
View string - SNMP access control MIB view.
- name string
- SNMP user name.
- notify
Hosts string - SNMP managers to send notifications (traps) to.
- notify
Hosts6 string - IPv6 SNMP managers to send notifications (traps) to.
- priv
Proto string - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - priv
Pwd string - Password for privacy (encryption) protocol.
- queries string
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - query
Port number - SNMPv3 query port (default = 161).
- security
Level string - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - source
Ip string - Source IP for SNMP trap.
- source
Ipv6 string - Source IPv6 for SNMP trap.
- status string
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - trap
Lport number - SNMPv3 local trap port (default = 162).
- trap
Rport number - SNMPv3 trap remote port (default = 162).
- trap
Status string - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- vdoms
User
Vdom[] - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- auth_
proto str - Authentication protocol.
- auth_
pwd str - Password for authentication protocol.
- dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- events str
- SNMP notifications (traps) to send.
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- ha_
direct str - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - mib_
view str - SNMP access control MIB view.
- name str
- SNMP user name.
- notify_
hosts str - SNMP managers to send notifications (traps) to.
- notify_
hosts6 str - IPv6 SNMP managers to send notifications (traps) to.
- priv_
proto str - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - priv_
pwd str - Password for privacy (encryption) protocol.
- queries str
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - query_
port int - SNMPv3 query port (default = 161).
- security_
level str - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - source_
ip str - Source IP for SNMP trap.
- source_
ipv6 str - Source IPv6 for SNMP trap.
- status str
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - trap_
lport int - SNMPv3 local trap port (default = 162).
- trap_
rport int - SNMPv3 trap remote port (default = 162).
- trap_
status str - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- vdoms
Sequence[User
Vdom Args] - SNMP access control VDOMs. The structure of
vdoms
block is documented below.
- auth
Proto String - Authentication protocol.
- auth
Pwd String - Password for authentication protocol.
- dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- events String
- SNMP notifications (traps) to send.
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- ha
Direct String - Enable/disable direct management of HA cluster members. Valid values:
enable
,disable
. - mib
View String - SNMP access control MIB view.
- name String
- SNMP user name.
- notify
Hosts String - SNMP managers to send notifications (traps) to.
- notify
Hosts6 String - IPv6 SNMP managers to send notifications (traps) to.
- priv
Proto String - Privacy (encryption) protocol. Valid values:
aes
,des
,aes256
,aes256cisco
. - priv
Pwd String - Password for privacy (encryption) protocol.
- queries String
- Enable/disable SNMP queries for this user. Valid values:
enable
,disable
. - query
Port Number - SNMPv3 query port (default = 161).
- security
Level String - Security level for message authentication and encryption. Valid values:
no-auth-no-priv
,auth-no-priv
,auth-priv
. - source
Ip String - Source IP for SNMP trap.
- source
Ipv6 String - Source IPv6 for SNMP trap.
- status String
- Enable/disable this SNMP user. Valid values:
enable
,disable
. - trap
Lport Number - SNMPv3 local trap port (default = 162).
- trap
Rport Number - SNMPv3 trap remote port (default = 162).
- trap
Status String - Enable/disable traps for this SNMP user. Valid values:
enable
,disable
. - 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.
- vdoms List<Property Map>
- SNMP access control VDOMs. The structure of
vdoms
block is documented below.
Supporting Types
UserVdom, UserVdomArgs
- Name string
- VDOM name
- Name string
- VDOM name
- name String
- VDOM name
- name string
- VDOM name
- name str
- VDOM name
- name String
- VDOM name
Import
SystemSnmp User can be imported using any of these accepted formats:
$ pulumi import fortios:system/snmp/user:User labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:system/snmp/user:User labelname {{name}}
$ 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.