» gridscale_network

Get data of a network resource. This can be used to link networks to a server.

» Example Usage

Using the network datasource for the creation of a server:

data "gridscale_network" "networkname"{
    resource_id = "xxxx-xxxx-xxxx-xxxx"
}

resource "gridscale_server" "servername"{
    name = "terra-server"
    cores = 2
    memory = 4
    network {
        object_uuid = data.gridscale_network.networkname.id
        bootdevice = true
    }
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

  • id - The UUID of the network.
  • name - The UUID of the network.
  • location_uuid - The UUID of the location, that helps to identify which datacenter the network belongs to.
  • l2security - Defines information about MAC spoofing protection.
  • status - The status of the network.
  • network_type - The type of the network.
  • location_country - The human-readable name of the country where the network is located.
  • location_iata - The IATA airport code, which works as a location identifier.
  • location_name - The human-readable name of the location where the network is located.
  • delete_block - Defines if the network is administratively blocked.
  • create_time - Defines the date and time the network was initially created.
  • change_time - Defines the date and time of the last network change.
  • labels - The list of labels.