REST Resource: users.settings.sendAs.smimeInfo
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: SmimeInfo
การแสดง JSON |
{
"id": string,
"issuerCn": string,
"isDefault": boolean,
"expiration": string,
"encryptedKeyPassword": string,
// Union field key can be only one of the following:
"pem": string,
"pkcs12": string
// End of list of possible types for union field key .
} |
ช่อง |
id |
string
รหัสที่เปลี่ยนแปลงไม่ได้สำหรับ SmimeInfo
|
issuerCn |
string
ชื่อทั่วไปของผู้ออกใบรับรอง S/MIME
|
isDefault |
boolean
SmimeInfo นี้เป็นค่าเริ่มต้นสำหรับอีเมลที่ใช้ส่งแทนของผู้ใช้รายนี้หรือไม่
|
expiration |
string (int64 format)
เมื่อใบรับรองหมดอายุ (เป็นมิลลิวินาทีนับจากวันที่ 1 มกราคม ค.ศ. 1970)
|
encryptedKeyPassword |
string
รหัสผ่านคีย์ที่เข้ารหัสเมื่อคีย์ได้รับการเข้ารหัส
|
ฟิลด์สหภาพ key "คีย์" S/MIME ซึ่งอาจประกอบด้วยชุดค่าผสมต่างๆ ของคีย์สาธารณะ คีย์ส่วนตัว และเชนใบรับรอง ทั้งนี้ขึ้นอยู่กับรูปแบบที่คาดไว้และที่ใช้ key ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้เท่านั้น |
pem |
string
สตริงใบรับรอง X509 ที่ต่อเชื่อมกันในรูปแบบ PEM (การเข้ารหัส Base64 มาตรฐาน) รูปแบบที่ใช้สำหรับแสดงผลคีย์ ซึ่งรวมถึงคีย์สาธารณะและเชนใบรับรอง (ไม่ใช่คีย์ส่วนตัว)
|
pkcs12 |
string (bytes format)
รูปแบบ PKCS#12 ที่มีคู่คีย์ส่วนตัว/สาธารณะและเชนใบรับรองรายการเดียว ระบบจะยอมรับรูปแบบนี้จากไคลเอ็นต์เพื่อสร้าง SmimeInfo ใหม่เท่านั้น และจะไม่แสดงผลลัพธ์ใดๆ เนื่องจากไม่ได้มีไว้เพื่อส่งออกคีย์ส่วนตัว PKCS#12 อาจเข้ารหัสอยู่ ซึ่งในกรณีนี้คุณควรตั้งค่า encryptedKeyPassword ให้เหมาะสม สตริงที่เข้ารหัส Base64
|
เมธอด |
|
ลบการกำหนดค่า S/MIME ที่ระบุสำหรับอีเมลที่ใช้ส่งแทนที่ระบุ |
|
รับการกำหนดค่า S/MIME ที่ระบุสำหรับอีเมลแทนที่ระบุ |
|
แทรก (อัปโหลด) การกำหนดค่า S/MIME ที่ระบุสำหรับอีเมลแทนที่ระบุ |
|
แสดงรายการการกำหนดค่า S/MIME สำหรับอีเมลที่ใช้ส่งในชื่อที่ระบุ |
|
ตั้งค่า S/MIME เริ่มต้นสำหรับอีเมลแทนที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# REST Resource: users.settings.sendAs.smimeInfo\n\n- [Resource: SmimeInfo](#SmimeInfo)\n - [JSON representation](#SmimeInfo.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: SmimeInfo\n-------------------\n\nAn S/MIME email config.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"issuerCn\": string, \"isDefault\": boolean, \"expiration\": string, \"encryptedKeyPassword\": string, // Union field `key` can be only one of the following: \"pem\": string, \"pkcs12\": string // End of list of possible types for union field `key`. } ``` |\n\n| Fields ||\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The immutable ID for the SmimeInfo. |\n| `issuerCn` | `string` The S/MIME certificate issuer's common name. |\n| `isDefault` | `boolean` Whether this SmimeInfo is the default one for this user's send-as address. |\n| `expiration` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` When the certificate expires (in milliseconds since epoch). |\n| `encryptedKeyPassword` | `string` Encrypted key password, when key is encrypted. |\n| Union field `key`. The S/MIME \"key\", which may consist of various combinations of the public key, private key, and certificate chain depending on the format expected and used. `key` can be only one of the following: ||\n| `pem` | `string` PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key). |\n| `pkcs12` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately. A base64-encoded string. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| ### [delete](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/delete) | Deletes the specified S/MIME config for the specified send-as alias. |\n| ### [get](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/get) | Gets the specified S/MIME config for the specified send-as alias. |\n| ### [insert](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/insert) | Insert (upload) the given S/MIME config for the specified send-as alias. |\n| ### [list](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/list) | Lists S/MIME configs for the specified send-as alias. |\n| ### [setDefault](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/setDefault) | Sets the default S/MIME config for the specified send-as alias. |"]]