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

     1  ---
     2  layout: "opc"
     3  page_title: "Oracle: opc_compute_ip_association"
     4  sidebar_current: "docs-opc-resource-ip-association"
     5  description: |-
     6    Creates and manages an IP association in an OPC identity domain for the Shared Network.
     7  ---
     8  
     9  # opc\_compute\_ip\_association
    10  
    11  The ``opc_compute_ip_association`` resource creates and manages an association between an IP address and an instance in
    12  an OPC identity domain, for the Shared Network.
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  resource "opc_compute_ip_association" "instance1_reservation1" {
    18    vcable     = "${opc_compute_instance.test_instance.vcable}"
    19    parentpool = "ipreservation:${opc_compute_ip_reservation.reservation1.name}"
    20  }
    21  ```
    22  
    23  ## Argument Reference
    24  
    25  The following arguments are supported:
    26  
    27  * `vcable` - (Required) The vcable of the instance to associate the IP address with.
    28  
    29  * `parentpool` - (Required) The pool from which to take an IP address. To associate a specific reserved IP address, use
    30  the prefix `ipreservation:` followed by the name of the IP reservation. To allocate an IP address from a pool, use the
    31  prefix `ippool:`, e.g. `ippool:/oracle/public/ippool`.
    32  
    33  
    34  ## Attributes Reference
    35  
    36  The following attributes are exported:
    37  
    38  * `name` The name of the IP Association
    39  
    40  ## Import
    41  
    42  IP Associations can be imported using the `resource name`, e.g.
    43  
    44  ```shell
    45  $ terraform import opc_compute_ip_association.association1 example
    46  ```