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

     1  ---
     2  layout: "opc"
     3  page_title: "Oracle: opc_compute_route"
     4  sidebar_current: "docs-opc-resource-route"
     5  description: |-
     6    Creates and manages a Route resource for an IP Network
     7  ---
     8  
     9  # opc\_compute\_route
    10  
    11  The ``opc_compute_route`` resource creates and manages a route for an IP Network.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "opc_compute_route" "foo" {
    17    name              = "my-route"
    18    description       = "my IP Network route"
    19    admin_distance    = 1
    20    ip_address_prefix = "10.0.1.0/24"
    21    next_hop_vnic_set = "${opc_compute_vnic_set.bar.name}"
    22    tags              = ["tag1", "tag2"]
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `name` - (Required) The name of the route.
    31  
    32  * `description` - (Optional) The description of the route.
    33  
    34  * `admin_distance` - (Optional) The route's administrative distance. Defaults to `0`.
    35  
    36  * `ip_address_prefix` - (Required) The IPv4 address prefix, in CIDR format, of the external network from which to route traffic.
    37  
    38  * `next_hop_vnic_set` - (Required) Name of the virtual NIC set to route matching packets to. Routed flows are load-balanced among all the virtual NICs in the virtual NIC set.
    39  
    40  ## Attributes Reference
    41  
    42  The following attributes are exported:
    43  
    44  * `name` The name of the route
    45  
    46  * `description` - The description of the route.
    47  
    48  * `admin_distance` - The route's administrative distance. Defaults to `0`.
    49  
    50  * `ip_address_prefix` - The IPv4 address prefix, in CIDR format, of the external network from which to route traffic.
    51  
    52  * `next_hop_vnic_set` - Name of the virtual NIC set to route matching packets to. Routed flows are load-balanced among all the virtual NICs in the virtual NIC set.
    53  
    54  ## Import
    55  
    56  Route's can be imported using the `resource name`, e.g.
    57  
    58  ```shell
    59  $ terraform import opc_compute_route.route1 example
    60  ```