» opc_compute_security_application
The opc_compute_security_application
resource creates and manages a security application in an Oracle Cloud Infrastructure Compute Classic identity domain.
» Example Usage (TCP)
resource "opc_compute_security_application" "tomcat" {
name = "tomcat"
protocol = "tcp"
dport = "8080"
}
» Example Usage (ICMP)
resource "opc_compute_security_application" "tomcat" {
name = "tomcat"
protocol = "icmp"
icmptype = "echo"
icmpcode = "protocol"
}
» Argument Reference
The following arguments are supported:
-
name
- (Required) The unique (within the identity domain) name of the application -
protocol
- (Required) The protocol to enable for this application. Must be one oftcp
,udp
,ah
,esp
,icmp
,icmpv6
,igmp
,ipip
,gre
,mplsip
,ospf
,pim
,rdp
,sctp
orall
. -
dport
- (Required) The port, or range of ports, to enable for this application, e.g8080
,6000-7000
. This must be set if theprotocol
is set totcp
orudp
. -
icmptype
- (Optional) The ICMP type to enable for this application, if theprotocol
isicmp
. Must be one ofecho
,reply
,ttl
,traceroute
,unreachable
. -
icmpcode
- (Optional) The ICMP code to enable for this application, if theprotocol
isicmp
. Must be one ofadmin
,df
,host
,network
,port
orprotocol
.
» Import
Security Application's can be imported using the resource name
, e.g.
$ terraform import opc_compute_security_application.application1 example