Argument Intergration with Terraform
Arguments transfer from Terraform
Example Usage
resource "vngcloud_vserver_server" "server"{
project_id = "pro-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-server"
encryption_volume = false
flavor_id = "flav-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
image_id = "img-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
network_id = "net-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
root_disk_size = 20
root_disk_type_id = "vtype-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
ssh_key = "ssh-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
security_group = ["secg-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
subnet_id = "sub-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Arguments Reference
1
project_id
REQUIRED
STRING
ID of the Project.
pro-462803f3-6858-466f-bf05-df2b33faa360
2
name
REQUIRED
STRING
Name of Server.
example-server-name
3
encryption_volume
REQUIRED
BOOLEAN
Is Server use encryption volume?
False
4
flavor_id
REQUIRED
STRING
ID of the Flavor.
flav-e2028a81-cc75-47e4-8af1-9eef2f857f84
5
image_id
REQUIRED
STRING
ID of the Image.
img-b5bf635e-0456-4765-b493-31d5fcfc05aa
6
network_id
REQUIRED
STRING
ID of Network.
net-961d6867-b65a-40ac-879e-d84e4dc768e0
7
root_disk_size
REQUIRED
NUMBER
Size of boot volume.
20
8
root_disk_type_id
REQUIRED
STRING
ID of boot volume type.
vtype-61c3fc5b-f4e9-45b4-8957-8aa7b6029018
9
ssh_key
OPTIONAL
STRING
ID of SSH key.
ssh-7bd70c56-1f05-4989-a0f0-cc3496b62001
10
security_group
OPTIONAL
STRING
ID of Security Group.
secg-3b12a078-b862-43b5-a56b-d7fc4429e535
11
subnet_id
REQUIRED
STRING
ID of the subnet.
sub-c1ebba8f-baa8-434c-beb7-2916199bb812
12
host_group_id
OPTIONAL
STRING
ID of Host Group.
/
13
action
OPTIONAL
STRING
Action with Server. It can be: stop, start; reboot.
start
14
attach_floating
OPTIONAL
BOOLEAN
Is Server attach a floating IP?
True
15
expire_password
OPTIONAL
BOOLEAN
Skip change password: false, else: true.
False
16
os_licence
OPTIONAL
BOOLEAN
License of OS.
True
17
root_disk_encryption_type
OPTIONAL
STRING
Type encryption of boot volume.
/
18
source_type
OPTIONAL
STRING
Type of Source.
/
19
user_name
OPTIONAL
STRING
Name of User.
usernamestackops
20
user_password
OPTIONAL
STRING
Password of User.
VngGCloud3030
21
server_group
OPTIONAL
STRING
ID của Server Group.
/
22
user_data
OPTIONAL
STRING
User_data to provide when launching the server.
${data.template_cloudinit_config.user_data.rendered}
23
user_data_base64_encode
OPTIONAL
BOOLEAN
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string.
True
24
is_poc
OPTIONAL
BOOLEAN
using POC wallet
True
Attributes transfer to Terraform
When GreenNode System has recorded all arguments above from Terraform, the following attributes are exported:
id STRING : ID of this Server
external_interfaces: (List of Map of String) List of Network external interface. It included:
external_interfaces STRING;
floating_ip STRING;
interface_typeSTRING;
mac STRING;
network_uuid STRING;
port_uuid STRING;
status STRING;
subnet_uuid STRING;
type STRING;
internal_interfaces: (List of Map of String) List of Network external interface. It included:
external_interfaces STRING;
floating_ip STRING;
interface_type STRING;
mac STRING;
network_uuid STRING;
port_uuid STRING;
status STRING;
subnet_uuid STRING;
type STRING./.
Last updated

