@@ -1067,6 +1067,19 @@ type DomainLastStatusDmarcRecord struct {
10671067 Error * string `json:"error"`
10681068}
10691069
1070+ // DomainLastStatusMXRecord: domain last status mx record.
1071+ type DomainLastStatusMXRecord struct {
1072+ // Status: status of the MX record's configuration. This record is optional to validate a domain, but highly recommended.
1073+ // Default value: unknown_record_status
1074+ Status DomainLastStatusRecordStatus `json:"status"`
1075+
1076+ // LastValidAt: time and date the MX record was last valid.
1077+ LastValidAt * time.Time `json:"last_valid_at"`
1078+
1079+ // Error: an error text displays in case the record is not valid.
1080+ Error * string `json:"error"`
1081+ }
1082+
10701083// DomainLastStatusSpfRecord: domain last status spf record.
10711084type DomainLastStatusSpfRecord struct {
10721085 // Status: status of the SPF record's configuration.
@@ -1487,6 +1500,9 @@ type DomainLastStatus struct {
14871500 // DmarcRecord: the DMARC record verification data.
14881501 DmarcRecord * DomainLastStatusDmarcRecord `json:"dmarc_record"`
14891502
1503+ // MxRecord: the MX record verification data.
1504+ MxRecord * DomainLastStatusMXRecord `json:"mx_record"`
1505+
14901506 // AutoconfigState: the verification state of domain auto-configuration.
14911507 AutoconfigState * DomainLastStatusAutoconfigState `json:"autoconfig_state"`
14921508}
@@ -1496,7 +1512,7 @@ type GetDomainLastStatusRequest struct {
14961512 // Region: region to target. If none is passed will use default region from the config.
14971513 Region scw.Region `json:"-"`
14981514
1499- // DomainID: ID of the domain to delete .
1515+ // DomainID: ID of the domain to get records status .
15001516 DomainID string `json:"-"`
15011517}
15021518
@@ -2483,7 +2499,7 @@ func (s *API) CheckDomain(req *CheckDomainRequest, opts ...scw.RequestOption) (*
24832499 return & resp , nil
24842500}
24852501
2486- // GetDomainLastStatus: Display SPF and DKIM records status and potential errors, including the found records to make debugging easier.
2502+ // GetDomainLastStatus: Display SPF, DKIM, DMARC and MX records status and potential errors, including the found records to make debugging easier.
24872503func (s * API ) GetDomainLastStatus (req * GetDomainLastStatusRequest , opts ... scw.RequestOption ) (* DomainLastStatus , error ) {
24882504 var err error
24892505
0 commit comments