github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/opc/r/opc_compute_sec_rule.html.markdown (about) 1 --- 2 layout: "opc" 3 page_title: "Oracle: opc_compute_sec_rule" 4 sidebar_current: "docs-opc-resource-sec-rule" 5 description: |- 6 Creates and manages a sec rule in an OPC identity domain. 7 --- 8 9 # opc\_compute\_sec\_rule 10 11 The ``opc_compute_sec_rule`` resource creates and manages a sec rule in an OPC identity domain, which joinstogether a source security list (or security IP list), a destination security list (or security IP list), and a security application. 12 13 ## Example Usage 14 15 ```hcl 16 resource "opc_compute_sec_rule" "test_rule" { 17 name = "test" 18 source_list = "seclist:${opc_compute_security_list.sec-list1.name}" 19 destination_list = "seciplist:${opc_compute_security_ip_list.sec-ip-list1.name}" 20 action = "permit" 21 application = "${opc_compute_security_application.spring-boot.name}" 22 } 23 ``` 24 25 ## Argument Reference 26 27 The following arguments are supported: 28 29 * `name` - (Required) The unique (within the identity domain) name of the security rule. 30 31 * `description` - (Optional) A description for this security rule. 32 33 * `source_list` - (Required) The source security list (prefixed with `seclist:`), or security IP list (prefixed with 34 `seciplist:`). 35 36 * `destination_list` - (Required) The destination security list (prefixed with `seclist:`), or security IP list (prefixed with 37 `seciplist:`). 38 39 * `application` - (Required) The name of the application to which the rule applies. 40 41 * `action` - (Required) Whether to `permit`, `refuse` or `deny` packets to which this rule applies. This will ordinarily 42 be `permit`. 43 44 * `disabled` - (Optional) Whether to disable this security rule. This is useful if you want to temporarily disable a rule 45 without removing it outright from your Terraform resource definition. Defaults to `false`. 46 47 In addition to the above, the following values are exported: 48 49 * `uri` - The Uniform Resource Identifier of the sec rule. 50 51 ## Import 52 53 Sec Rule's can be imported using the `resource name`, e.g. 54 55 ```shell 56 $ terraform import opc_compute_sec_rule.rule1 example 57 ```