Method: users.settings.cse.identities.create
יוצרת ומגדירה זהות להצפנה מצד הלקוח שמורשה לשלוח אימייל מחשבון המשתמש. Google מפרסמת את אישור ה-S/MIME לספרייה משותפת בדומיין כולו, כדי שאנשים בארגון ב-Google Workspace יוכלו להצפין את האימייל ולשלוח אותו לזהות.
בקשת HTTP
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/cse/identities
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
כתובת האימייל הראשית של המבקש. כדי לציין את המשתמש המאומת, ניתן להשתמש בערך המיוחד me .
|
גוף הבקשה
גוף הבקשה מכיל מופע של CseIdentity
.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע חדש של CseIdentity
שנוצר.
היקפי הרשאות
כדי להשתמש בתכונה הזו יש צורך באחד מההיקפים הבאים של OAuth:
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/gmail.settings.sharing
למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-05 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-05 (שעון UTC)."],[[["Creates and configures a client-side encryption identity authorized to send mail from the user account, with the S/MIME certificate published to a shared directory for organization-wide encrypted communication."],["Uses an HTTP POST request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/cse/identities`, replacing `{userId}` with the user's email address or `me`."],["Requires a request body containing a `CseIdentity` object and returns a `CseIdentity` object upon successful creation."],["Needs authorization with either `https://www.googleapis.com/auth/gmail.settings.basic` or `https://www.googleapis.com/auth/gmail.settings.sharing` scope."]]],[]]