@@ -18,6 +18,11 @@ func dataSourceDedicatedServer() *schema.Resource {
18
18
},
19
19
20
20
// Computed
21
+ "availability_zone" : {
22
+ Type : schema .TypeString ,
23
+ Computed : true ,
24
+ Description : "Dedicated AZ localisation" ,
25
+ },
21
26
"urn" : {
22
27
Type : schema .TypeString ,
23
28
Computed : true ,
@@ -34,35 +39,34 @@ func dataSourceDedicatedServer() *schema.Resource {
34
39
"boot_script" : {
35
40
Type : schema .TypeString ,
36
41
Computed : true ,
37
- Description : "" ,
42
+ Description : "Ipxe script served on boot " ,
38
43
},
39
44
"commercial_range" : {
40
45
Type : schema .TypeString ,
41
46
Computed : true ,
42
- Description : "dedicater server commercial range" ,
47
+ Description : "Dedicated server commercial range" ,
43
48
},
44
49
"datacenter" : {
45
50
Type : schema .TypeString ,
46
51
Computed : true ,
47
- Description : "dedicated datacenter localisation (bhs1,bhs2,...)" ,
52
+ Description : "Dedicated datacenter localisation (bhs1,bhs2,...)" ,
48
53
},
49
54
"ip" : {
50
55
Type : schema .TypeString ,
51
56
Computed : true ,
52
- Description : "dedicated server ip (IPv4)" ,
57
+ Description : "Dedicated server ip (IPv4)" ,
53
58
},
54
59
"ips" : {
55
60
Type : schema .TypeList ,
56
61
Computed : true ,
57
- Description : "dedicated server ip blocks" ,
62
+ Description : "Dedicated server ip blocks" ,
58
63
Elem : & schema.Schema {
59
64
Type : schema .TypeString ,
60
65
},
61
66
},
62
67
"link_speed" : {
63
- Type : schema .TypeInt ,
64
- Computed : true ,
65
- Description : "" ,
68
+ Type : schema .TypeInt ,
69
+ Computed : true ,
66
70
},
67
71
"monitoring" : {
68
72
Type : schema .TypeBool ,
@@ -72,13 +76,27 @@ func dataSourceDedicatedServer() *schema.Resource {
72
76
"name" : {
73
77
Type : schema .TypeString ,
74
78
Computed : true ,
75
- Description : "dedicated server name" ,
79
+ Description : "Dedicated server name" ,
80
+ },
81
+ "new_upgrade_system" : {
82
+ Type : schema .TypeBool ,
83
+ Computed : true ,
84
+ },
85
+ "no_intervention" : {
86
+ Type : schema .TypeBool ,
87
+ Computed : true ,
88
+ Description : "Prevent datacenter intervention" ,
76
89
},
77
90
"os" : {
78
91
Type : schema .TypeString ,
79
92
Computed : true ,
80
93
Description : "Operating system" ,
81
94
},
95
+ "power_state" : {
96
+ Type : schema .TypeString ,
97
+ Computed : true ,
98
+ Description : "Power state of the server: poweroff, poweron" ,
99
+ },
82
100
"professional_use" : {
83
101
Type : schema .TypeBool ,
84
102
Computed : true ,
@@ -89,15 +107,25 @@ func dataSourceDedicatedServer() *schema.Resource {
89
107
Computed : true ,
90
108
Description : "" ,
91
109
},
110
+ "region" : {
111
+ Type : schema .TypeString ,
112
+ Computed : true ,
113
+ Description : "Dedicated region localisation" ,
114
+ },
92
115
"rescue_mail" : {
93
116
Type : schema .TypeString ,
94
117
Computed : true ,
95
- Description : "" ,
118
+ Description : "Custom email used to receive rescue credentials" ,
119
+ },
120
+ "rescue_ssh_key" : {
121
+ Type : schema .TypeString ,
122
+ Computed : true ,
123
+ Description : "Public SSH Key used in the rescue mode" ,
96
124
},
97
125
"reverse" : {
98
126
Type : schema .TypeString ,
99
127
Computed : true ,
100
- Description : "dedicated server reverse" ,
128
+ Description : "Dedicated server reverse" ,
101
129
},
102
130
"root_device" : {
103
131
Type : schema .TypeString ,
@@ -107,12 +135,12 @@ func dataSourceDedicatedServer() *schema.Resource {
107
135
"server_id" : {
108
136
Type : schema .TypeInt ,
109
137
Computed : true ,
110
- Description : "your server id" ,
138
+ Description : "Server id" ,
111
139
},
112
140
"state" : {
113
141
Type : schema .TypeString ,
114
142
Computed : true ,
115
- Description : "error, hacked, hackedBlocked, ok" ,
143
+ Description : "All states a Dedicated can be in: error, hacked, hackedBlocked, ok" ,
116
144
},
117
145
"support_level" : {
118
146
Type : schema .TypeString ,
@@ -147,7 +175,7 @@ func dataSourceDedicatedServer() *schema.Resource {
147
175
"server_name" : {
148
176
Type : schema .TypeString ,
149
177
Computed : true ,
150
- Description : "server name" ,
178
+ Description : "Server name" ,
151
179
},
152
180
"vrack" : {
153
181
Type : schema .TypeString ,
@@ -228,6 +256,12 @@ func dataSourceDedicatedServerRead(d *schema.ResourceData, meta interface{}) err
228
256
d .Set ("server_id" , ds .ServerId )
229
257
d .Set ("state" , ds .State )
230
258
d .Set ("support_level" , ds .SupportLevel )
259
+ d .Set ("availability_zone" , ds .AvailabilityZone )
260
+ d .Set ("new_upgrade_system" , ds .NewUpgradeSystem )
261
+ d .Set ("no_intervention" , ds .NoIntervention )
262
+ d .Set ("power_state" , ds .PowerState )
263
+ d .Set ("region" , ds .Region )
264
+ d .Set ("rescue_ssh_key" , ds .RescueSshKey )
231
265
232
266
dsIps := & []string {}
233
267
err = config .OVHClient .Get (
0 commit comments