@@ -120,6 +120,40 @@ func resourceScalewayTemDomain() *schema.Resource {
120120 Computed : true ,
121121 Description : "The Scaleway's blackhole MX server to use" ,
122122 },
123+ "reputation" : {
124+ Type : schema .TypeList ,
125+ Computed : true ,
126+ Description : "The domain's reputation" ,
127+ Elem : & schema.Resource {
128+ Schema : map [string ]* schema.Schema {
129+ "status" : {
130+ Type : schema .TypeString ,
131+ Computed : true ,
132+ Description : "Status of the domain's reputation" ,
133+ },
134+ "score" : {
135+ Type : schema .TypeInt ,
136+ Computed : true ,
137+ Description : "A range from 0 to 100 that determines your domain's reputation score" ,
138+ },
139+ "scored_at" : {
140+ Type : schema .TypeString ,
141+ Computed : true ,
142+ Description : "Time and date the score was calculated" ,
143+ },
144+ "previous_score" : {
145+ Type : schema .TypeInt ,
146+ Computed : true ,
147+ Description : "The previously-calculated domain's reputation score" ,
148+ },
149+ "previous_scored_at" : {
150+ Type : schema .TypeString ,
151+ Computed : true ,
152+ Description : "Time and date the previous reputation score was calculated" ,
153+ },
154+ },
155+ },
156+ },
123157 "region" : regionSchema (),
124158 "project_id" : projectIDSchema (),
125159 },
@@ -182,6 +216,7 @@ func resourceScalewayTemDomainRead(ctx context.Context, d *schema.ResourceData,
182216 _ = d .Set ("smtps_port" , tem .SMTPSPort )
183217 _ = d .Set ("smtps_port_alternative" , tem .SMTPSPortAlternative )
184218 _ = d .Set ("mx_blackhole" , tem .MXBlackhole )
219+ _ = d .Set ("reputation" , flattenDomainReputation (domain .Reputation ))
185220 _ = d .Set ("region" , string (region ))
186221 _ = d .Set ("project_id" , domain .ProjectID )
187222
0 commit comments