CreateSNSEmailPlatform
Creates an email platform (email server). For example,
CreateSNSEmailPlatform name=my-sftp-server smtpServer=mail.zstack.org smtpPort=25 username=support@cloud.io password=password
{
"inventory": {
"createDate": "Jan 25, 2018 8:43:32 PM",
"lastOpDate": "Jan 25, 2018 8:43:32 PM",
"name": "my-sftp-server",
"smtpPort": 25,
"smtpServer": "mail.zstack.org",
"state": "Enabled",
"type": "Email",
"username": "support@cloud.io",
"uuid": "bec03e2d93224c7381782833e8b685ca"
},
"success": true
}
Parameters
| Name | Description | Optional | Valid Value | Starting Version |
|---|---|---|---|---|
| smtpServer | The SMTP server address. | 2.3 | ||
| smtpPort | The SMTP port. | 2.3 | ||
| username | The username. | 2.3 | ||
| password | The password. | Yes | 2.3 | |
| name | The resource name. | 2.3 | ||
| description | The detailed description of the resource. | Yes | 2.3 | |
| resourceUuid | Yes | 2.3 | ||
| encryptType | Yes |
|
2.3 | |
| userTags | The user tags. For more information, see CreateUserTag. | Yes | 2.3 | |
| systemTags | The user tags. For more information, see CreateSystemTag. | Yes | 2.3 | |
| timeout | Yes |
Note:
- When you add an email server, the system will automatically detect whether the username, password, email server address, email server port, and encryption type are correct. The waiting time does not exceed 5 seconds.
