Provides virtual guest resource. This allows virtual guests to be created, updated and deleted. For additional details please refer to API documentation.
Create a new virtual guest using the "Debian" image.
resource "softlayer_virtual_guest" "twc_terraform_sample" { name = "twc-terraform-sample-name" domain = "bar.example.com" image = "DEBIAN_7_64" region = "ams01" public_network_speed = 10 hourly_billing = true private_network_only = false cpu = 1 ram = 1024 disks = [25, 10, 20] user_data = "{\"value\":\"newvalue\"}" dedicated_acct_host_only = true local_disk = false frontend_vlan_id = 1085155 backend_vlan_id = 1085157 }
Create a new virtual guest using block device template.
resource "softlayer_virtual_guest" "terraform-sample-BDTGroup" { name = "terraform-sample-blockDeviceTemplateGroup" domain = "bar.example.com" region = "ams01" public_network_speed = 10 hourly_billing = false cpu = 1 ram = 1024 local_disk = false block_device_template_group_gid = "****-****-****-****-****" }
The following arguments are supported:
name
| string domain
| string cpu
| int ram
| int region
| string hourly_billing
| boolean true
, the computing instance will be billed on hourly usage, otherwise it will be billed on a monthly basis. local_disk
| boolean true
, the disks for the computing instance will be provisioned on the host which it runs, otherwise SAN disks will be provisioned. dedicated_acct_host_only
| boolean image
| string blockDeviceTemplateGroup.globalIdentifier
is provided, as the template will specify the operating system. block_device_template_group_gid
| string operatingSystemReferenceCode
is provided, as the template will specify the operating system. public_network_speed
| int private_network_only
| boolean frontend_vlan_id
| int backend_vlan_id
| int disks
| array user_data
| string ssh_keys
| array ipv4_address
| string editObject
call, template data defined here. ipv4_address_private
| string editObject
call, template data defined here. post_install_script_uri
| string The following attributes are exported:
id
- The ID of the virtual guest.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/softlayer/r/virtual_guest.html