2017-03-29 18:37:14 +02:00
---
2017-04-04 00:24:53 +02:00
layout: "opc"
2017-03-29 18:37:14 +02:00
page_title: "Oracle: opc_compute_security_application"
2017-04-04 00:24:53 +02:00
sidebar_current: "docs-opc-resource-security-application"
2017-03-29 18:37:14 +02:00
description: |-
Creates and manages a security application in an OPC identity domain.
---
2017-03-29 19:30:04 +02:00
# opc\_compute\_security\_application
2017-03-29 18:37:14 +02:00
The ``opc_compute_security_application`` resource creates and manages a security application in an OPC identity domain.
2017-04-04 00:24:53 +02:00
## Example Usage (TCP)
2017-03-29 18:37:14 +02:00
2017-04-25 21:23:35 +02:00
```hcl
2017-03-29 18:37:14 +02:00
resource "opc_compute_security_application" "tomcat" {
2017-04-07 12:57:52 +02:00
name = "tomcat"
protocol = "tcp"
dport = "8080"
2017-04-04 00:24:53 +02:00
}
```
## Example Usage (ICMP)
2017-04-25 21:23:35 +02:00
```hcl
2017-04-04 00:24:53 +02:00
resource "opc_compute_security_application" "tomcat" {
2017-04-07 12:57:52 +02:00
name = "tomcat"
protocol = "icmp"
icmptype = "echo"
icmpcode = "protocol"
2017-03-29 18:37:14 +02:00
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) The unique (within the identity domain) name of the application
2017-04-04 00:24:53 +02:00
* `protocol` - (Required) The protocol to enable for this application. Must be one of
`tcp` , `udp` , `ah` , `esp` , `icmp` , `icmpv6` , `igmp` , `ipip` , `gre` , `mplsip` , `ospf` , `pim` , `rdp` , `sctp` or `all` .
2017-03-29 18:37:14 +02:00
2017-04-04 00:24:53 +02:00
* `dport` - (Required) The port, or range of ports, to enable for this application, e.g `8080` , `6000-7000` . This must be set if the `protocol` is set to `tcp` or `udp` .
2017-03-29 18:37:14 +02:00
* `icmptype` - (Optional) The ICMP type to enable for this application, if the `protocol` is `icmp` . Must be one of
`echo` , `reply` , `ttl` , `traceroute` , `unreachable` .
* `icmpcode` - (Optional) The ICMP code to enable for this application, if the `protocol` is `icmp` . Must be one of
2017-04-04 00:24:53 +02:00
`admin` , `df` , `host` , `network` , `port` or `protocol` .
## Import
Security Application's can be imported using the `resource name` , e.g.
2017-04-25 21:23:35 +02:00
```shell
$ terraform import opc_compute_security_application.application1 example
2017-04-04 00:24:53 +02:00
```