Method: users.settings.sendAs.smimeInfo.insert
指定した送信元エイリアスの S/MIME 設定を挿入(アップロード)します。鍵には pkcs12 形式が必須です。
HTTP リクエスト
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
userId |
string
ユーザーのメールアドレス。特別な値 me を使用すると、認証済みユーザーを示すことができます。
|
sendAsEmail |
string
このエイリアスを使用して送信されたメールの「From:」ヘッダーに表示されるメールアドレスです。
|
リクエスト本文
リクエストの本文には SmimeInfo
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された SmimeInfo
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/gmail.settings.sharing
詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-05 UTC。
[null,null,["最終更新日 2024-09-05 UTC。"],[[["Inserts an S/MIME configuration for a specific send-as alias in a user's Gmail settings."],["The request requires providing the user ID and the send-as email address as path parameters."],["The request body needs to contain the S/MIME information in `SmimeInfo` format."],["Successful requests will return the newly created `SmimeInfo` object."],["Authorization necessitates the use of specific Gmail settings scopes."]]],["This describes how to upload S/MIME configurations for a Gmail send-as alias. It utilizes a `POST` HTTP request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo`, requiring `userId` and `sendAsEmail` as path parameters. The request body must contain `SmimeInfo` in pkcs12 format. A successful response returns a new `SmimeInfo` instance. Authorization requires either `gmail.settings.basic` or `gmail.settings.sharing` OAuth scopes.\n"]]