» skytap_network

Provides a Skytap Network resource. Networks are not top-level elements of the Skytap API. Rather, they are elements properly contained within an environment. Operations on them are implicitly on the containing environment.

» Example Usage

# Create a new network
resource "skytap_network" "network" {
  environment_id = "123456"
  name = "my network"
  domain = "domain.com"
  subnet = ""
  gateway = ""
  tunnelable = true

» Argument Reference

The following arguments are supported:

  • environment_id - (Required, Force New) ID of the environment you want to attach the network to. If updating with a new one then the network will be recreated.
  • name - (Required) User-defined name of the network. Limited to 255 characters. UTF-8 character type.
  • domain - (Required) Domain name for the Skytap network. Limited to 64 characters.
  • subnet - (Required) Defines the subnet address and subnet mask size in CIDR format (for example, IP addresses for the VMs are assigned from this subnet and standard network services (DNS resolution, CIFS share, routes to Internet) are defined appropriately for it.
  • gateway - (Optional, Computed) Gateway IP address.
  • tunnelable - (Optional) If true, this network can be connected to other networks.

» Timeouts

The timeouts block allows you to specify timeouts for certain operations:

  • create - (Defaults to 10 mins) Used when creating the network
  • update - (Defaults to 10 mins) Used when updating the network
  • delete - (Defaults to 10 mins) Used when destroying the network

» Attributes Reference

The following attributes are exported:

  • id: The ID of the network.