github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/opc/r/opc_compute_security_association.html.markdown (about)

     1  ---
     2  layout: "opc"
     3  page_title: "Oracle: opc_compute_security_association"
     4  sidebar_current: "docs-opc-resource-security-association"
     5  description: |-
     6    Creates and manages a security association in an OPC identity domain.
     7  ---
     8  
     9  # opc\_compute\_security\_association
    10  
    11  The ``opc_compute_security_association`` resource creates and manages an association between an instance and a security
    12  list in an OPC identity domain.
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  resource "opc_compute_security_association" "test_instance_sec_list_1" {
    18    name    = "association1"
    19    vcable  = "${opc_compute_instance.test_instance.vcable}"
    20    seclist = "${opc_compute_security_list.sec_list1.name}"
    21  }
    22  ```
    23  
    24  ## Argument Reference
    25  
    26  The following arguments are supported:
    27  
    28  * `name` - (Optional) The Name for the Security Association. If not specified, one is created automatically. Changing this forces a new resource to be created.
    29  
    30  * `vcable` - (Required) The `vcable` of the instance to associate to the security list.
    31  
    32  * `seclist` - (Required) The name of the security list to associate the instance to.
    33  
    34  ## Import
    35  
    36  Security Association's can be imported using the `resource name`, e.g.
    37  
    38  ```shell
    39  $ terraform import opc_compute_security_association.association1 example
    40  ```