@@ -55,6 +55,7 @@ $MailboxAuditBypassAssociation = (Get-MailboxAuditBypassAssociation -ResultSize
5555
5656$MalwareFilterPolicy = (Get-MalwareFilterPolicy)
5757$HostedOutboundSpamFilterPolicy = (Get-HostedOutboundSpamFilterPolicy)
58+ $HostedContentFilterPolicy = (Get-HostedContentFilterPolicy)
5859$TransportRule = (Get-TransportRule)
5960$RemoteDomain = (Get-RemoteDomain Default)
6061$SafeLinksPolicy = (Get-SafeLinksPolicy)
@@ -79,6 +80,7 @@ $TransportConfig = (Get-TransportConfig)
7980$exchangeOnline = New-Object PSObject
8081Add-Member -InputObject $exchangeOnline -MemberType NoteProperty -Name MalwareFilterPolicy -Value @($MalwareFilterPolicy)
8182Add-Member -InputObject $exchangeOnline -MemberType NoteProperty -Name HostedOutboundSpamFilterPolicy -Value @($HostedOutboundSpamFilterPolicy)
83+ Add-Member -InputObject $exchangeOnline -MemberType NoteProperty -Name HostedContentFilterPolicy -Value @($HostedContentFilterPolicy)
8284Add-Member -InputObject $exchangeOnline -MemberType NoteProperty -Name TransportRule -Value @($TransportRule)
8385Add-Member -InputObject $exchangeOnline -MemberType NoteProperty -Name RemoteDomain -Value @($RemoteDomain)
8486Add-Member -InputObject $exchangeOnline -MemberType NoteProperty -Name SafeLinksPolicy -Value @($SafeLinksPolicy)
@@ -109,6 +111,7 @@ ConvertTo-Json -Depth 4 $exchangeOnline
109111type ExchangeOnlineReport struct {
110112 MalwareFilterPolicy []any `json:"MalwareFilterPolicy"`
111113 HostedOutboundSpamFilterPolicy []any `json:"HostedOutboundSpamFilterPolicy"`
114+ HostedContentFilterPolicy []any `json:"HostedContentFilterPolicy"`
112115 TransportRule []any `json:"TransportRule"`
113116 RemoteDomain []any `json:"RemoteDomain"`
114117 SafeLinksPolicy []any `json:"SafeLinksPolicy"`
@@ -392,6 +395,9 @@ func (r *mqlMs365Exchangeonline) getExchangeReport() error {
392395 hostedOutboundSpamFilterPolicy , hostedOutboundSpamFilterPolicyErr := convert .JsonToDictSlice (report .HostedOutboundSpamFilterPolicy )
393396 r .HostedOutboundSpamFilterPolicy = plugin.TValue [[]any ]{Data : hostedOutboundSpamFilterPolicy , State : plugin .StateIsSet , Error : hostedOutboundSpamFilterPolicyErr }
394397
398+ hostedContentFilterPolicy , hostedContentFilterPolicyErr := convert .JsonToDictSlice (report .HostedContentFilterPolicy )
399+ r .HostedContentFilterPolicy = plugin.TValue [[]any ]{Data : hostedContentFilterPolicy , State : plugin .StateIsSet , Error : hostedContentFilterPolicyErr }
400+
395401 transportRule , transportRuleErr := convert .JsonToDictSlice (report .TransportRule )
396402 r .TransportRule = plugin.TValue [[]any ]{Data : transportRule , State : plugin .StateIsSet , Error : transportRuleErr }
397403
@@ -524,6 +530,10 @@ func (r *mqlMs365Exchangeonline) hostedOutboundSpamFilterPolicy() ([]any, error)
524530 return nil , r .getExchangeReport ()
525531}
526532
533+ func (r * mqlMs365Exchangeonline ) hostedContentFilterPolicy () ([]any , error ) {
534+ return nil , r .getExchangeReport ()
535+ }
536+
527537func (r * mqlMs365Exchangeonline ) transportRule () ([]any , error ) {
528538 return nil , r .getExchangeReport ()
529539}
0 commit comments