- Resource: QuarantinedMessage
- Direction
- State
- TriggeredRule
- MessageContent
- Header
- Attachment
- ClassificationLabelValue
- ClassificationLabelFieldValue
- Methods
Resource: QuarantinedMessage
The QuarantinedMessage resource represents an email message held in an administrative quarantine.
| JSON representation |
|---|
{ "name": string, "messageId": string, "messageOwner": string, "quarantines": [ string ], "receiveTime": string, "direction": enum ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the quarantined message. Format: customers/{customer_id}/quarantinedMessages/{quarantined_message_id} |
messageId |
Output only. The immutable ID of the underlying Gmail message. |
messageOwner |
Output only. The email address of the owner of this message. |
quarantines[] |
Output only. The resource names of the quarantines that this message belongs to. Format: customers/{customer_id}/quarantines/{quarantine_id} |
receiveTime |
Output only. The timestamp of when the message was received. |
direction |
Output only. The direction of the message (e.g., INBOUND, OUTBOUND). |
state |
Output only. The current processing state of the message. |
retentionExpireTime |
Output only. The timestamp until which this message will be retained. |
triggeredRules[] |
Output only. Information about the rules that caused the quarantine. |
content |
Output only. The detailed content and metadata of the quarantined email. |
rawMessage |
Output only. The entire email message in an RFC 2822 formatted and base64url encoded string. Returns this if RAW content type is selected. |
Direction
The direction of the message.
| Enums | |
|---|---|
DIRECTION_UNSPECIFIED |
Unspecified. |
INBOUND |
The quarantined message was received by the user. |
OUTBOUND |
The quarantined message was sent by the user. |
State
The current processing state of the message.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Unspecified. |
PENDING_TRIAGE |
Message is in Quarantine. |
RELEASED |
Message was released from the quarantine. |
DENIED |
Message was denied while in the quarantine. |
TriggeredRule
Information about a specific rule that caused a message to be quarantined.
| JSON representation |
|---|
{ "policyId": string, "ruleId": string, "displayName": string } |
| Fields | |
|---|---|
policyId |
The policy ID that the established rule correlates to. |
ruleId |
The ID for the specific established rule. |
displayName |
The name or description of the established rule. |
MessageContent
Detailed information about the content of a quarantined email message.
| JSON representation |
|---|
{ "headers": [ { object ( |
| Fields | |
|---|---|
headers[] |
The headers of the email message. |
attachments[] |
The attachments found within the email message. |
body |
The plain-text body or snippet of the email message. |
subject |
The subject of the email message. |
labels[] |
Standard labels applied to the message (e.g., "QUARANTINE"). |
classificationLabelValues[] |
Classification Label values applied to the message. Only present for Google Workspace accounts. |
Header
A header in an email message.
| JSON representation |
|---|
{ "name": string, "value": string } |
| Fields | |
|---|---|
name |
The name of the header, such as "From" or "Subject". |
value |
The value of the header, which is MIME decoded. |
Attachment
An attachment within an email message.
| JSON representation |
|---|
{ "filename": string, "mimeType": string, "sizeBytes": string, "attachmentId": string } |
| Fields | |
|---|---|
filename |
The filename of the attachment. |
mimeType |
The MIME type of the attachment (e.g., "application/pdf"). |
sizeBytes |
The size of the attachment in bytes. |
attachmentId |
A unique identifier used to fetch the attachment's content. |
ClassificationLabelValue
Classification Labels applied to the email message.
| JSON representation |
|---|
{
"labelId": string,
"fields": [
{
object ( |
| Fields | |
|---|---|
labelId |
The canonical or raw alphanumeric classification label ID. |
fields[] |
Field values for the given classification label ID. |
ClassificationLabelFieldValue
Field values for a classification label.
| JSON representation |
|---|
{ "fieldId": string, "selection": string } |
| Fields | |
|---|---|
fieldId |
The field ID for the Classification Label Value. |
selection |
Selection choice ID for the selection option. |
Methods |
|
|---|---|
|
Denies a list of messages asynchronously. |
|
Releases a list of messages asynchronously. |
|
Denies a message from a quarantine. |
|
Gets metadata and content for a quarantined message. |
|
Queries for quarantined messages using specific filter conditions. |
|
Releases a message from a quarantine to be delivered to the recipients. |
|
Searches for quarantined messages using specific search queries. |