获取邮件任务
更新时间:2025-08-15 03:41:38
基本信息
Action
DescribeEmailJobs
Path
/iaas
Method
GET
请求参数
此接口除公共参数外,还包含以下参数。关于公共参数的更多信息,请参见前文内容。
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
console_id |
String |
否 |
Console |
email_jobs |
String |
否 |
邮件任务id |
owner |
String |
否 |
所属用户 ID |
search_word |
String |
否 |
模糊查询 |
status |
String |
否 |
状态 |
返回数据
此接口除公共返回参数外,还包含以下返回参数。关于公共返回参数的更多信息,请参见前文内容。
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
email_job_set |
Array |
否 |
邮件任务集合 |
email_job_set.condition |
String |
否 |
用户查询条件 |
email_job_set.console_id |
String |
否 |
Console |
email_job_set.content |
String |
否 |
邮件内容 |
email_job_set.create_time |
String |
否 |
创建时间 |
email_job_set.email_job_id |
String |
否 |
邮件任务id |
email_job_set.owner |
String |
否 |
所属用户 ID |
email_job_set.result |
String |
否 |
结果 |
email_job_set.status |
String |
否 |
状态 |
email_job_set.status_time |
String |
否 |
状态更新时间 |
email_job_set.succ_count |
Integer |
否 |
成功数 |
email_job_set.title |
String |
否 |
邮件标题 |
email_job_set.total_count |
Integer |
否 |
总数 |
total_count |
Integer |
否 |
查询结果总数 |
请求示例
{
"action": "DescribeEmailJobs",
"email_jobs": [],
"limit": 1,
"offset": 0,
"owner": 0,
"status": ""
}
返回示例
{
"action": "DescribeEmailJobsResponse",
"email_job_set": [
{
"condition": "{\"status\":\"active\",\"role\":\"user\",\"users\":[\"usr-xxxxxxxx\"],\"console\":\"alphacloud\",\"activated\":1,\"user_type\":0,\"console_id\":\"alphacloud\"}",
"console_id": "alphacloud",
"content": "email test",
"create_time": "2020-04-01T15:49:46Z",
"email_job_id": "ejob-xxxxxxxx",
"owner": "admin",
"result": "",
"status": "succeeded",
"status_time": "2020-04-01T15:49:47Z",
"succ_count": 0,
"title": "email-title",
"total_count": 1
}
],
"ret_code": 0,
"total_count": 720
}