layout | page_title | sidebar_current | description |
---|---|---|---|
gridscale |
gridscale: public network |
docs-gridscale-datasource-public-network |
Gets data of a public network. |
Get data of the public network. Use this to link your servers to the public network easily.
Using the public network datasource for the creation of a server:
data "gridscale_public_network" "pubnet"{
}
resource "gridscale_server" "servername"{
name = "terra-server"
cores = 2
memory = 4
network {
object_uuid = data.gridscale_public_network.pubnet.id
bootdevice = true
}
}
The following arguments are supported:
resource_id
- (Required) The UUID of the public network.
The following attributes are exported:
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.