steampipe plugin install francois2metz/gandi

Table: gandi_mailbox

The gandi_mailbox table can be used to query information about your mailboxes and you must specify which domain in the where or join clause using the domain column.

Examples

List mailboxes of a domain

select
address
from
gandi_mailbox
where
domain = 'example.net';

List maiboxes across all your domains

select
m.domain,
m.address
from
gandi_mailbox m
join gandi_domain d on d.fqdn = m.domain;

List maiboxes that are 90% of their quota

select
m.domain,
m.address,
m.quota_used
from
gandi_mailbox m
join gandi_domain d on d.fqdn = m.domain
where
case
when m.mailbox_type = 'premium' then (100 * m.quota_used) / 50000000
else (100 * m.quota_used) / 3000000
end > 90;

Schema for gandi_mailbox

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
addresstextFull email address.
antispambooleanAntispam is enabled.
autorenew_durationbigintDuration for autorenew.
autorenew_duration_typetextType of duration ('m' for month).
autorenew_enabledbooleanSpecify if autorenew is enabled on this mailbox.
domaintext=Domain name.
expires_attimestamp with time zoneExpiry date of the mailbox.
hreftextLink to mailbox details.
idtext=Unique id of the mailbox.
logintextMailbox login.
mailbox_typetextThe type of mailbox, one of: 'standard', 'premium', 'free'.
quota_usedbigintQuota used.