# BadWhitelist

- [JSON representation](https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/BadWhitelist#SCHEMA_REPRESENTATION)

Alert for setting the domain or IP that malicious email comes from as whitelisted domain or IP in Gmail advanced settings.

| JSON representation |
|---|
| ``` { "domainId": { object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/DomainId`) }, "maliciousEntity": { object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/MaliciousEntity`) }, "messages": [ { object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/GmailMessageInfo`) } ], "sourceIp": string } ``` |

| Fields ||
|---|---|
| `domainId` | ``object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/DomainId`)`` The domain ID. |
| `maliciousEntity` | ``object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/MaliciousEntity`)`` The entity whose actions triggered a Gmail phishing alert. |
| `messages[]` | ``object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/GmailMessageInfo`)`` The list of messages contained by this alert. |
| `sourceIp` | `string` The source IP address of the malicious email, for example, `127.0.0.1`. |