Platform O&M/Cloud Monitoring/Monitoring and Alarm/SNS/SNS Operations
POSTSNS OperationsSince 2.3SynchronousAuth Required
CreateSNSEmailPlatform
CreateSNSEmailPlatform
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
smtpServerStringRequiredThe SMTP server address.
smtpPortIntegerRequiredThe SMTP port.
usernameStringRequiredThe username.
passwordStringOptional. The password.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
resourceUuidStringOptional.
encryptTypeStringOptional.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/sns/application-platforms/email
/zstack/v1/sns/application-platforms/email
Request Example
curl -X POST 'http://{host}/zstack/v1/sns/application-platforms/email' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"smtpServer":"<smtpServer>","smtpPort":1,"username":"<username>","password":"<password>","name":"<name>","description":"<description>","resourceUuid":"<resourceUuid>","encryptType":"<encryptType>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "f6122105d8994b498e6184efcf03bb64", "name": "email platform", "description": "example description", "state": "Enabled", "type": "Email", "createDate": "Feb 28, 2018 9:47:35 AM", "lastOpDate": "Feb 28, 2018 9:47:35 AM" } }Change History
This API has no change history records yet.
