Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 914 Bytes

gmailfilter.md

File metadata and controls

27 lines (20 loc) · 914 Bytes

Use with GmailFilter

Support Using Service Accounts or Using Application Default Credentials.

Example:

# Using Service Accounts
export GOOGLE_CREDENTIALS=/path/to/client_secret.json
export IMPERSONATED_USER_EMAIL="foobar@example.com"

# Using Application Default Credentials
gcloud auth application-default login \
  --client-id-file=client_secret.json \
  --scopes \
https://www.googleapis.com/auth/gmail.labels,\
https://www.googleapis.com/auth/gmail.settings.basic

./terraformer import gmailfilter -r=filter,label

List of supported GmailFilter resources:

  • label
    • gmailfilter_label
  • filter
    • gmailfilter_filter