@@ -36,38 +36,45 @@ func DataSourceServers() *schema.Resource {
3636 Description : "Servers with these exact tags are listed." ,
3737 },
3838 "servers" : {
39- Type : schema .TypeList ,
40- Computed : true ,
39+ Type : schema .TypeList ,
40+ Description : "Servers" ,
41+ Computed : true ,
4142 Elem : & schema.Resource {
4243 Schema : map [string ]* schema.Schema {
4344 "id" : {
44- Computed : true ,
45- Type : schema .TypeString ,
45+ Computed : true ,
46+ Description : "UUID of the server." ,
47+ Type : schema .TypeString ,
4648 },
4749 "public_ip" : {
48- Computed : true ,
49- Type : schema .TypeString ,
50- Deprecated : "Use public_ips instead" ,
50+ Computed : true ,
51+ Description : "Public IP address." ,
52+ Type : schema .TypeString ,
53+ Deprecated : "Use public_ips instead" ,
5154 },
5255 "public_ips" : {
53- Type : schema .TypeList ,
54- Computed : true ,
56+ Type : schema .TypeList ,
57+ Description : "Public IPs associated with this server." ,
58+ Computed : true ,
5559 Elem : & schema.Resource {
5660 Schema : map [string ]* schema.Schema {
5761 "id" : {
58- Type : schema .TypeString ,
59- Computed : true ,
62+ Type : schema .TypeString ,
63+ Description : "UUID of the public IP." ,
64+ Computed : true ,
6065 },
6166 "address" : {
62- Type : schema .TypeString ,
63- Computed : true ,
67+ Type : schema .TypeString ,
68+ Description : "Address of the server" ,
69+ Computed : true ,
6470 },
6571 },
6672 },
6773 },
6874 "private_ip" : {
69- Computed : true ,
70- Type : schema .TypeString ,
75+ Computed : true ,
76+ Description : "Private IP address of the server." ,
77+ Type : schema .TypeString ,
7178 },
7279 "private_ips" : {
7380 Type : schema .TypeList ,
@@ -90,68 +97,83 @@ func DataSourceServers() *schema.Resource {
9097 },
9198 },
9299 "state" : {
93- Computed : true ,
94- Type : schema .TypeString ,
100+ Computed : true ,
101+ Description : "State of the server" ,
102+ Type : schema .TypeString ,
95103 },
96104 "name" : {
97- Computed : true ,
98- Type : schema .TypeString ,
105+ Computed : true ,
106+ Description : "Name of the server" ,
107+ Type : schema .TypeString ,
99108 },
100109 "boot_type" : {
101- Computed : true ,
102- Type : schema .TypeString ,
110+ Computed : true ,
111+ Description : "Boot type" ,
112+ Type : schema .TypeString ,
103113 },
104114 "bootscript_id" : {
105- Computed : true ,
106- Type : schema .TypeString ,
107- Deprecated : "bootscript are not supported" ,
115+ Computed : true ,
116+ Type : schema .TypeString ,
117+ Description : "UUID of the bootscript" ,
118+ Deprecated : "bootscript are not supported" ,
108119 },
109120 "type" : {
110- Computed : true ,
111- Type : schema .TypeString ,
121+ Computed : true ,
122+ Description : "Type of the server" ,
123+ Type : schema .TypeString ,
112124 },
113125 "tags" : {
114- Computed : true ,
115- Type : schema .TypeList ,
126+ Computed : true ,
127+ Description : "List of tags assigned to the server." ,
128+ Type : schema .TypeList ,
116129 Elem : & schema.Schema {
117130 Type : schema .TypeString ,
118131 },
119132 },
120133 "security_group_id" : {
121- Computed : true ,
122- Type : schema .TypeString ,
134+ Computed : true ,
135+ Description : "Security group ID" ,
136+ Type : schema .TypeString ,
123137 },
124138 "enable_ipv6" : {
125- Computed : true ,
126- Type : schema .TypeBool ,
139+ Computed : true ,
140+ Description : "Whether to enable IPv6 support" ,
141+ Type : schema .TypeBool ,
127142 },
128143 "enable_dynamic_ip" : {
129- Computed : true ,
130- Type : schema .TypeBool ,
144+ Computed : true ,
145+ Description : "Whether to enable dynamic IP addresses on this server" ,
146+ Type : schema .TypeBool ,
131147 },
132148 "image" : {
133- Computed : true ,
134- Type : schema .TypeString ,
149+ Computed : true ,
150+ Description : "Image ID of the server" ,
151+ Type : schema .TypeString ,
135152 },
136153 "placement_group_id" : {
137- Computed : true ,
138- Type : schema .TypeString ,
154+ Computed : true ,
155+ Description : "Placement Group ID" ,
156+ Type : schema .TypeString ,
139157 },
140158 "placement_group_policy_respected" : {
141- Computed : true ,
142- Type : schema .TypeBool ,
159+ Computed : true ,
160+ Description : "Whether the placement group policy respected or not" ,
161+ Type : schema .TypeBool ,
143162 },
144163 "ipv6_address" : {
145- Computed : true ,
146- Type : schema .TypeString ,
164+ Computed : true ,
165+ Description : "IPv6 Address for this server" ,
166+ Type : schema .TypeString ,
147167 },
148168 "ipv6_gateway" : {
149- Computed : true ,
150- Type : schema .TypeString ,
169+ Computed : true ,
170+ Description : "IPv6 gateway address" ,
171+ Type : schema .TypeString ,
151172 },
152173 "ipv6_prefix_length" : {
153- Computed : true ,
154- Type : schema .TypeInt ,
174+ Computed : true ,
175+ Description : "IPv6 prefix length" ,
176+ Type : schema .TypeInt ,
155177 },
156178 "zone" : zonal .Schema (),
157179 "organization_id" : account .OrganizationIDSchema (),
0 commit comments