createEmailConfig
Creates a new email configuration.
You must specify configName
.
Arguments | Descriptions |
---|---|
configName |
The name of your email configuration. Argument type: String |
description |
(Optional) A plain text or HTML description for this object. If using HTML, you must surround your text with Argument type: String |
mailFrom |
(Optional) The email address used as the email sender address for notifications. Argument type: String |
mailHost |
(Optional) The name of the email server host. Argument type: String |
mailPort |
(Optional) The port number for the mail server, but may not need to be specified. The protocol software determines the default value (25 for SMTP and 465 for SSMTP). Specify a value for this argument when a non-default port is used. Argument type: String |
mailProtocol |
(Optional) This is either SSMTP or SMTP (not case-sensitive). The default is SMTP. |
mailUser |
(Optional) This can be an individual or a generic name like "CloudBees Flow" — name of the email user on whose behalf CloudBees Flow sends email notifications. Argument type: String |
mailUserPassword |
(Optional) Password for the email user who is sending notifications. Argument type: String |
deleteEmailConfig
getEmailConfig
Retrieves an email configuration by name.
You must specify a configName
.
Arguments | Descriptions |
---|---|
configName |
The name of the email configuration. Argument Type: String |
Response
Returns one emailConfig
element.
The mailUserPassword attribute value is not returned or displayed by the getEmailConfigs and getEmailConfig commands for security reasons.
|
getEmailConfigs
Retrieves all email configurations.
Arguments | Descriptions |
---|---|
None |
– |
Response
Returns one or more emailConfig
elements.
NOTE:
-
The
mailUserPassword
attribute value is not returned or displayed by thegetEmailConfigs
andgetEmailConfig
commands for security reasons. -
The
configIndex
attribute is managed internally by CloudBees Flow and cannot be used in any of the email configuration APIs. It is used internally to identify the order ofemailConfig
objects within the list.
modifyEmailConfig
Modifies an existing email configuration.
You must specify the configName
.
Arguments | Descriptions |
---|---|
configName |
The name of your email configuration. Argument Type: String |
description |
(Optional) A plain text or HTML description for this object. If using HTML, you must surround your text with Argument Type: String |
mailFrom |
(Optional) The email address used as the email "sender" address for notifications. Argument Type: String |
mailHost |
(Optional) The name of the email server host. Argument Type: String |
mailPort |
(Optional) The port number for the mail server, but may not need to be specified. The protocol software determines the default value (25 for SMTP and 465 for SSMTP). Specify a value for this argument when a non-default port is used. Argument Type: Integer |
mailProtocol |
(Optional) This is either SSMTP or SMTP (not case-sensitive). The default is SMTP. Argument Type: String |
mailUser |
(Optional) The name of the email user, which can be an individual or a generic name such as "CloudBees Flow". Argument Type: String |
mailUserPassword |
(Optional) The password for the email user. Argument Type: String |
newName |
(Optional) New name of the email configuration. Argument Type: String |