github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/opc/r/opc_compute_security_rule.html.markdown (about) 1 --- 2 layout: "opc" 3 page_title: "Oracle: opc_compute_security_rule" 4 sidebar_current: "docs-opc-resource-security-rule" 5 description: |- 6 Creates and manages a security rule in an OPC identity domain. 7 --- 8 9 # opc\_compute\_security\_rule 10 11 The ``opc_compute_security_rule`` resource creates and manages a security rule in an OPC identity domain. 12 13 ## Example Usage 14 15 ```hcl 16 resource "opc_compute_security_rule" "default" { 17 name = "SecurityRule1" 18 flow_direction = "ingress" 19 acl = "${opc_compute_acl.default.name}" 20 security_protocols = ["${opc_compute_security_protocol.default.name}"] 21 } 22 ``` 23 24 ## Argument Reference 25 26 The following arguments are supported: 27 28 * `name` - (Required) The name of the security rule. 29 30 * `flow_direction` - (Required) Specify the direction of flow of traffic, which is relative to the instances, for this security rule. Allowed values are ingress or egress. 31 32 * `disabled` - (Optional) Whether to disable this security rule. This is useful if you want to temporarily disable a rule without removing it outright from your Terraform resource definition. Defaults to `false`. 33 34 * `acl` - (Optional) Name of the ACL that contains this security rule. 35 36 * `dst_ip_address_prefixes` - (Optional) List of IP address prefix set names to match the packet's destination IP address. 37 38 * `src_ip_address_prefixes` - (Optional) List of names of IP address prefix set to match the packet's source IP address. 39 40 * `dst_vnic_set` - (Optional) Name of virtual NIC set containing the packet's destination virtual NIC. 41 42 * `src_vnic_set` - (Optional) Name of virtual NIC set containing the packet's source virtual NIC. 43 44 * `security_protocols` - (Optional) List of security protocol object names to match the packet's protocol and port. 45 46 * `description` - (Optional) A description of the security rule. 47 48 * `tags` - (Optional) List of tags that may be applied to the security rule. 49 50 ## Attributes Reference 51 52 In addition to the above, the following attributes are exported: 53 54 * `uri` - The Uniform Resource Identifier of the security rule. 55 56 ## Import 57 58 Security Rule's can be imported using the `resource name`, e.g. 59 60 ```shell 61 $ terraform import opc_compute_security_rule.rule1 example 62 ```