Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse
fortios.system/snmp.getCommunity
Explore with Pulumi AI
Use this data source to get information on an fortios systemsnmp community
Using getCommunity
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCommunity(args: GetCommunityArgs, opts?: InvokeOptions): Promise<GetCommunityResult>
function getCommunityOutput(args: GetCommunityOutputArgs, opts?: InvokeOptions): Output<GetCommunityResult>
def get_community(fosid: Optional[int] = None,
vdomparam: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCommunityResult
def get_community_output(fosid: Optional[pulumi.Input[int]] = None,
vdomparam: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCommunityResult]
func LookupCommunity(ctx *Context, args *LookupCommunityArgs, opts ...InvokeOption) (*LookupCommunityResult, error)
func LookupCommunityOutput(ctx *Context, args *LookupCommunityOutputArgs, opts ...InvokeOption) LookupCommunityResultOutput
> Note: This function is named LookupCommunity
in the Go SDK.
public static class GetCommunity
{
public static Task<GetCommunityResult> InvokeAsync(GetCommunityArgs args, InvokeOptions? opts = null)
public static Output<GetCommunityResult> Invoke(GetCommunityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCommunityResult> getCommunity(GetCommunityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fortios:system/snmp/getCommunity:getCommunity
arguments:
# arguments dictionary
The following arguments are supported:
- Fosid int
- Specify the fosid of the desired systemsnmp community.
- Vdomparam string
- Specifies the vdom to which the data source 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.
- Fosid int
- Specify the fosid of the desired systemsnmp community.
- Vdomparam string
- Specifies the vdom to which the data source 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.
- fosid Integer
- Specify the fosid of the desired systemsnmp community.
- vdomparam String
- Specifies the vdom to which the data source 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.
- fosid number
- Specify the fosid of the desired systemsnmp community.
- vdomparam string
- Specifies the vdom to which the data source 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.
- fosid int
- Specify the fosid of the desired systemsnmp community.
- vdomparam str
- Specifies the vdom to which the data source 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.
- fosid Number
- Specify the fosid of the desired systemsnmp community.
- vdomparam String
- Specifies the vdom to which the data source 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.
getCommunity Result
The following output properties are available:
- Events string
- SNMP trap events.
- Fosid int
- Community ID.
- Hosts
List<Pulumiverse.
Fortios. System. Snmp. Outputs. Get Community Host> - Configure IPv4 SNMP managers (hosts). The structure of
hosts
block is documented below. - Hosts6s
List<Pulumiverse.
Fortios. System. Snmp. Outputs. Get Community Hosts6> - Configure IPv6 SNMP managers. The structure of
hosts6
block is documented below. - Id string
- The provider-assigned unique ID for this managed resource.
- Mib
View string - SNMP access control MIB view.
- Name string
- VDOM name
- Query
V1Port int - SNMP v1 query port (default = 161).
- Query
V1Status string - Enable/disable SNMP v1 queries.
- Query
V2c intPort - SNMP v2c query port (default = 161).
- Query
V2c stringStatus - Enable/disable SNMP v2c queries.
- Status string
- Enable/disable this SNMP community.
- Trap
V1Lport int - SNMP v1 trap local port (default = 162).
- Trap
V1Rport int - SNMP v1 trap remote port (default = 162).
- Trap
V1Status string - Enable/disable SNMP v1 traps.
- Trap
V2c intLport - SNMP v2c trap local port (default = 162).
- Trap
V2c intRport - SNMP v2c trap remote port (default = 162).
- Trap
V2c stringStatus - Enable/disable SNMP v2c traps.
- Vdoms
List<Pulumiverse.
Fortios. System. Snmp. Outputs. Get Community Vdom> - SNMP access control VDOMs. The structure of
vdoms
block is documented below. - Vdomparam string
- Events string
- SNMP trap events.
- Fosid int
- Community ID.
- Hosts
[]Get
Community Host - Configure IPv4 SNMP managers (hosts). The structure of
hosts
block is documented below. - Hosts6s
[]Get
Community Hosts6 - Configure IPv6 SNMP managers. The structure of
hosts6
block is documented below. - Id string
- The provider-assigned unique ID for this managed resource.
- Mib
View string - SNMP access control MIB view.
- Name string
- VDOM name
- Query
V1Port int - SNMP v1 query port (default = 161).
- Query
V1Status string - Enable/disable SNMP v1 queries.
- Query
V2c intPort - SNMP v2c query port (default = 161).
- Query
V2c stringStatus - Enable/disable SNMP v2c queries.
- Status string
- Enable/disable this SNMP community.
- Trap
V1Lport int - SNMP v1 trap local port (default = 162).
- Trap
V1Rport int - SNMP v1 trap remote port (default = 162).
- Trap
V1Status string - Enable/disable SNMP v1 traps.
- Trap
V2c intLport - SNMP v2c trap local port (default = 162).
- Trap
V2c intRport - SNMP v2c trap remote port (default = 162).
- Trap
V2c stringStatus - Enable/disable SNMP v2c traps.
- Vdoms
[]Get
Community Vdom - SNMP access control VDOMs. The structure of
vdoms
block is documented below. - Vdomparam string
- events String
- SNMP trap events.
- fosid Integer
- Community ID.
- hosts
List<Get
Community Host> - Configure IPv4 SNMP managers (hosts). The structure of
hosts
block is documented below. - hosts6s
List<Get
Community Hosts6> - Configure IPv6 SNMP managers. The structure of
hosts6
block is documented below. - id String
- The provider-assigned unique ID for this managed resource.
- mib
View String - SNMP access control MIB view.
- name String
- VDOM name
- query
V1Port Integer - SNMP v1 query port (default = 161).
- query
V1Status String - Enable/disable SNMP v1 queries.
- query
V2c IntegerPort - SNMP v2c query port (default = 161).
- query
V2c StringStatus - Enable/disable SNMP v2c queries.
- status String
- Enable/disable this SNMP community.
- trap
V1Lport Integer - SNMP v1 trap local port (default = 162).
- trap
V1Rport Integer - SNMP v1 trap remote port (default = 162).
- trap
V1Status String - Enable/disable SNMP v1 traps.
- trap
V2c IntegerLport - SNMP v2c trap local port (default = 162).
- trap
V2c IntegerRport - SNMP v2c trap remote port (default = 162).
- trap
V2c StringStatus - Enable/disable SNMP v2c traps.
- vdoms
List<Get
Community Vdom> - SNMP access control VDOMs. The structure of
vdoms
block is documented below. - vdomparam String
- events string
- SNMP trap events.
- fosid number
- Community ID.
- hosts
Get
Community Host[] - Configure IPv4 SNMP managers (hosts). The structure of
hosts
block is documented below. - hosts6s
Get
Community Hosts6[] - Configure IPv6 SNMP managers. The structure of
hosts6
block is documented below. - id string
- The provider-assigned unique ID for this managed resource.
- mib
View string - SNMP access control MIB view.
- name string
- VDOM name
- query
V1Port number - SNMP v1 query port (default = 161).
- query
V1Status string - Enable/disable SNMP v1 queries.
- query
V2c numberPort - SNMP v2c query port (default = 161).
- query
V2c stringStatus - Enable/disable SNMP v2c queries.
- status string
- Enable/disable this SNMP community.
- trap
V1Lport number - SNMP v1 trap local port (default = 162).
- trap
V1Rport number - SNMP v1 trap remote port (default = 162).
- trap
V1Status string - Enable/disable SNMP v1 traps.
- trap
V2c numberLport - SNMP v2c trap local port (default = 162).
- trap
V2c numberRport - SNMP v2c trap remote port (default = 162).
- trap
V2c stringStatus - Enable/disable SNMP v2c traps.
- vdoms
Get
Community Vdom[] - SNMP access control VDOMs. The structure of
vdoms
block is documented below. - vdomparam string
- events str
- SNMP trap events.
- fosid int
- Community ID.
- hosts
Sequence[Get
Community Host] - Configure IPv4 SNMP managers (hosts). The structure of
hosts
block is documented below. - hosts6s
Sequence[Get
Community Hosts6] - Configure IPv6 SNMP managers. The structure of
hosts6
block is documented below. - id str
- The provider-assigned unique ID for this managed resource.
- mib_
view str - SNMP access control MIB view.
- name str
- VDOM name
- query_
v1_ intport - SNMP v1 query port (default = 161).
- query_
v1_ strstatus - Enable/disable SNMP v1 queries.
- query_
v2c_ intport - SNMP v2c query port (default = 161).
- query_
v2c_ strstatus - Enable/disable SNMP v2c queries.
- status str
- Enable/disable this SNMP community.
- trap_
v1_ intlport - SNMP v1 trap local port (default = 162).
- trap_
v1_ intrport - SNMP v1 trap remote port (default = 162).
- trap_
v1_ strstatus - Enable/disable SNMP v1 traps.
- trap_
v2c_ intlport - SNMP v2c trap local port (default = 162).
- trap_
v2c_ intrport - SNMP v2c trap remote port (default = 162).
- trap_
v2c_ strstatus - Enable/disable SNMP v2c traps.
- vdoms
Sequence[Get
Community Vdom] - SNMP access control VDOMs. The structure of
vdoms
block is documented below. - vdomparam str
- events String
- SNMP trap events.
- fosid Number
- Community ID.
- hosts List<Property Map>
- Configure IPv4 SNMP managers (hosts). The structure of
hosts
block is documented below. - hosts6s List<Property Map>
- Configure IPv6 SNMP managers. The structure of
hosts6
block is documented below. - id String
- The provider-assigned unique ID for this managed resource.
- mib
View String - SNMP access control MIB view.
- name String
- VDOM name
- query
V1Port Number - SNMP v1 query port (default = 161).
- query
V1Status String - Enable/disable SNMP v1 queries.
- query
V2c NumberPort - SNMP v2c query port (default = 161).
- query
V2c StringStatus - Enable/disable SNMP v2c queries.
- status String
- Enable/disable this SNMP community.
- trap
V1Lport Number - SNMP v1 trap local port (default = 162).
- trap
V1Rport Number - SNMP v1 trap remote port (default = 162).
- trap
V1Status String - Enable/disable SNMP v1 traps.
- trap
V2c NumberLport - SNMP v2c trap local port (default = 162).
- trap
V2c NumberRport - SNMP v2c trap remote port (default = 162).
- trap
V2c StringStatus - Enable/disable SNMP v2c traps.
- vdoms List<Property Map>
- SNMP access control VDOMs. The structure of
vdoms
block is documented below. - vdomparam String
Supporting Types
GetCommunityHost
GetCommunityHosts6
- Ha
Direct string - Enable/disable direct management of HA cluster members.
- Host
Type string - Control whether the SNMP manager sends SNMP queries, receives SNMP traps, or both.
- Id int
- Host6 entry ID.
- Ipv6 string
- SNMP manager IPv6 address prefix.
- Source
Ipv6 string - Source IPv6 address for SNMP traps.
- Ha
Direct string - Enable/disable direct management of HA cluster members.
- Host
Type string - Control whether the SNMP manager sends SNMP queries, receives SNMP traps, or both.
- Id int
- Host6 entry ID.
- Ipv6 string
- SNMP manager IPv6 address prefix.
- Source
Ipv6 string - Source IPv6 address for SNMP traps.
- ha
Direct String - Enable/disable direct management of HA cluster members.
- host
Type String - Control whether the SNMP manager sends SNMP queries, receives SNMP traps, or both.
- id Integer
- Host6 entry ID.
- ipv6 String
- SNMP manager IPv6 address prefix.
- source
Ipv6 String - Source IPv6 address for SNMP traps.
- ha
Direct string - Enable/disable direct management of HA cluster members.
- host
Type string - Control whether the SNMP manager sends SNMP queries, receives SNMP traps, or both.
- id number
- Host6 entry ID.
- ipv6 string
- SNMP manager IPv6 address prefix.
- source
Ipv6 string - Source IPv6 address for SNMP traps.
- ha_
direct str - Enable/disable direct management of HA cluster members.
- host_
type str - Control whether the SNMP manager sends SNMP queries, receives SNMP traps, or both.
- id int
- Host6 entry ID.
- ipv6 str
- SNMP manager IPv6 address prefix.
- source_
ipv6 str - Source IPv6 address for SNMP traps.
- ha
Direct String - Enable/disable direct management of HA cluster members.
- host
Type String - Control whether the SNMP manager sends SNMP queries, receives SNMP traps, or both.
- id Number
- Host6 entry ID.
- ipv6 String
- SNMP manager IPv6 address prefix.
- source
Ipv6 String - Source IPv6 address for SNMP traps.
GetCommunityVdom
- Name string
- VDOM name
- Name string
- VDOM name
- name String
- VDOM name
- name string
- VDOM name
- name str
- VDOM name
- name String
- VDOM name
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.