@@ -15,6 +15,9 @@ func resourceComputeHttpHealthCheck() *schema.Resource {
1515 Read : resourceComputeHttpHealthCheckRead ,
1616 Delete : resourceComputeHttpHealthCheckDelete ,
1717 Update : resourceComputeHttpHealthCheckUpdate ,
18+ Importer : & schema.ResourceImporter {
19+ State : schema .ImportStatePassthrough ,
20+ },
1821
1922 Schema : map [string ]* schema.Schema {
2023 "name" : & schema.Schema {
@@ -55,6 +58,7 @@ func resourceComputeHttpHealthCheck() *schema.Resource {
5558 Type : schema .TypeString ,
5659 Optional : true ,
5760 ForceNew : true ,
61+ Computed : true ,
5862 },
5963
6064 "request_path" : & schema.Schema {
@@ -220,11 +224,14 @@ func resourceComputeHttpHealthCheckRead(d *schema.ResourceData, meta interface{}
220224 d .Set ("host" , hchk .Host )
221225 d .Set ("request_path" , hchk .RequestPath )
222226 d .Set ("check_interval_sec" , hchk .CheckIntervalSec )
223- d .Set ("health_threshold " , hchk .HealthyThreshold )
227+ d .Set ("healthy_threshold " , hchk .HealthyThreshold )
224228 d .Set ("port" , hchk .Port )
225229 d .Set ("timeout_sec" , hchk .TimeoutSec )
226230 d .Set ("unhealthy_threshold" , hchk .UnhealthyThreshold )
227231 d .Set ("self_link" , hchk .SelfLink )
232+ d .Set ("name" , hchk .Name )
233+ d .Set ("description" , hchk .Description )
234+ d .Set ("project" , project )
228235
229236 return nil
230237}
0 commit comments