@@ -66,6 +66,11 @@ func resourceIpLoadbalancingHttpFrontend() *schema.Resource {
66
66
Default : false ,
67
67
Optional : true ,
68
68
},
69
+ "redirect_location" : {
70
+ Type : schema .TypeString ,
71
+ Optional : true ,
72
+ ForceNew : false ,
73
+ },
69
74
"display_name" : {
70
75
Type : schema .TypeString ,
71
76
Optional : true ,
@@ -110,13 +115,14 @@ func resourceIpLoadbalancingHttpFrontendCreate(d *schema.ResourceData, meta inte
110
115
}
111
116
112
117
frontend := & IpLoadbalancingHttpFrontend {
113
- Port : d .Get ("port" ).(string ),
114
- Zone : d .Get ("zone" ).(string ),
115
- AllowedSource : allowedSources ,
116
- DedicatedIpFo : dedicatedIpFo ,
117
- Disabled : d .Get ("disabled" ).(bool ),
118
- Ssl : d .Get ("ssl" ).(bool ),
119
- DisplayName : d .Get ("display_name" ).(string ),
118
+ Port : d .Get ("port" ).(string ),
119
+ Zone : d .Get ("zone" ).(string ),
120
+ AllowedSource : allowedSources ,
121
+ DedicatedIpFo : dedicatedIpFo ,
122
+ Disabled : d .Get ("disabled" ).(bool ),
123
+ Ssl : d .Get ("ssl" ).(bool ),
124
+ RedirectLocation : d .Get ("redirect_location" ).(string ),
125
+ DisplayName : d .Get ("display_name" ).(string ),
120
126
}
121
127
122
128
frontend .DefaultFarmId = helpers .GetNilIntPointerFromData (d , "default_farm_id" )
@@ -164,6 +170,7 @@ func resourceIpLoadbalancingHttpFrontendRead(d *schema.ResourceData, meta interf
164
170
d .Set ("port" , r .Port )
165
171
d .Set ("ssl" , r .Ssl )
166
172
d .Set ("zone" , r .Zone )
173
+ d .Set ("redirect_location" , r .RedirectLocation )
167
174
168
175
return nil
169
176
}
@@ -189,13 +196,14 @@ func resourceIpLoadbalancingHttpFrontendUpdate(d *schema.ResourceData, meta inte
189
196
}
190
197
191
198
frontend := & IpLoadbalancingHttpFrontend {
192
- Port : d .Get ("port" ).(string ),
193
- Zone : d .Get ("zone" ).(string ),
194
- AllowedSource : allowedSources ,
195
- DedicatedIpFo : dedicatedIpFo ,
196
- Disabled : d .Get ("disabled" ).(bool ),
197
- Ssl : d .Get ("ssl" ).(bool ),
198
- DisplayName : d .Get ("display_name" ).(string ),
199
+ Port : d .Get ("port" ).(string ),
200
+ Zone : d .Get ("zone" ).(string ),
201
+ AllowedSource : allowedSources ,
202
+ DedicatedIpFo : dedicatedIpFo ,
203
+ Disabled : d .Get ("disabled" ).(bool ),
204
+ Ssl : d .Get ("ssl" ).(bool ),
205
+ RedirectLocation : d .Get ("redirect_location" ).(string ),
206
+ DisplayName : d .Get ("display_name" ).(string ),
199
207
}
200
208
201
209
frontend .DefaultFarmId = helpers .GetNilIntPointerFromData (d , "default_farm_id" )
0 commit comments