tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getSesSendTasks
Start a Neo task
Explain and create a tencentcloud.getSesSendTasks resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of ses send_tasks
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const sendTasks = tencentcloud.getSesSendTasks({
status: 10,
receiverId: 1063742,
taskType: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
send_tasks = tencentcloud.get_ses_send_tasks(status=10,
receiver_id=1063742,
task_type=1)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetSesSendTasks(ctx, &tencentcloud.GetSesSendTasksArgs{
Status: pulumi.Float64Ref(10),
ReceiverId: pulumi.Float64Ref(1063742),
TaskType: pulumi.Float64Ref(1),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var sendTasks = Tencentcloud.GetSesSendTasks.Invoke(new()
{
Status = 10,
ReceiverId = 1063742,
TaskType = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetSesSendTasksArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var sendTasks = TencentcloudFunctions.getSesSendTasks(GetSesSendTasksArgs.builder()
.status(10)
.receiverId(1063742)
.taskType(1)
.build());
}
}
variables:
sendTasks:
fn::invoke:
function: tencentcloud:getSesSendTasks
arguments:
status: 10
receiverId: 1.063742e+06
taskType: 1
Using getSesSendTasks
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSesSendTasks(args: GetSesSendTasksArgs, opts?: InvokeOptions): Promise<GetSesSendTasksResult>
function getSesSendTasksOutput(args: GetSesSendTasksOutputArgs, opts?: InvokeOptions): Output<GetSesSendTasksResult>def get_ses_send_tasks(id: Optional[str] = None,
receiver_id: Optional[float] = None,
result_output_file: Optional[str] = None,
status: Optional[float] = None,
task_type: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetSesSendTasksResult
def get_ses_send_tasks_output(id: Optional[pulumi.Input[str]] = None,
receiver_id: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[float]] = None,
task_type: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSesSendTasksResult]func GetSesSendTasks(ctx *Context, args *GetSesSendTasksArgs, opts ...InvokeOption) (*GetSesSendTasksResult, error)
func GetSesSendTasksOutput(ctx *Context, args *GetSesSendTasksOutputArgs, opts ...InvokeOption) GetSesSendTasksResultOutput> Note: This function is named GetSesSendTasks in the Go SDK.
public static class GetSesSendTasks
{
public static Task<GetSesSendTasksResult> InvokeAsync(GetSesSendTasksArgs args, InvokeOptions? opts = null)
public static Output<GetSesSendTasksResult> Invoke(GetSesSendTasksInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSesSendTasksResult> getSesSendTasks(GetSesSendTasksArgs args, InvokeOptions options)
public static Output<GetSesSendTasksResult> getSesSendTasks(GetSesSendTasksArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getSesSendTasks:getSesSendTasks
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Receiver
Id double - Recipient group ID.
- Result
Output stringFile - Used to save results.
- Status double
- Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. To query tasks in all states, do not pass in this parameter. - Task
Type double - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter.
- Id string
- Receiver
Id float64 - Recipient group ID.
- Result
Output stringFile - Used to save results.
- Status float64
- Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. To query tasks in all states, do not pass in this parameter. - Task
Type float64 - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter.
- id String
- receiver
Id Double - Recipient group ID.
- result
Output StringFile - Used to save results.
- status Double
- Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. To query tasks in all states, do not pass in this parameter. - task
Type Double - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter.
- id string
- receiver
Id number - Recipient group ID.
- result
Output stringFile - Used to save results.
- status number
- Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. To query tasks in all states, do not pass in this parameter. - task
Type number - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter.
- id str
- receiver_
id float - Recipient group ID.
- result_
output_ strfile - Used to save results.
- status float
- Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. To query tasks in all states, do not pass in this parameter. - task_
type float - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter.
- id String
- receiver
Id Number - Recipient group ID.
- result
Output StringFile - Used to save results.
- status Number
- Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. To query tasks in all states, do not pass in this parameter. - task
Type Number - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter.
getSesSendTasks Result
The following output properties are available:
- Datas
List<Get
Ses Send Tasks Data> - Data record.
- Id string
- Receiver
Id double - Recipient group ID.
- Result
Output stringFile - Status double
- Task
Type double - Task type.
1: immediate;2: scheduled;3: recurring.
- Datas
[]Get
Ses Send Tasks Data - Data record.
- Id string
- Receiver
Id float64 - Recipient group ID.
- Result
Output stringFile - Status float64
- Task
Type float64 - Task type.
1: immediate;2: scheduled;3: recurring.
- datas
List<Get
Ses Send Tasks Data> - Data record.
- id String
- receiver
Id Double - Recipient group ID.
- result
Output StringFile - status Double
- task
Type Double - Task type.
1: immediate;2: scheduled;3: recurring.
- datas
Get
Ses Send Tasks Data[] - Data record.
- id string
- receiver
Id number - Recipient group ID.
- result
Output stringFile - status number
- task
Type number - Task type.
1: immediate;2: scheduled;3: recurring.
- datas
Sequence[Get
Ses Send Tasks Data] - Data record.
- id str
- receiver_
id float - Recipient group ID.
- result_
output_ strfile - status float
- task_
type float - Task type.
1: immediate;2: scheduled;3: recurring.
- datas List<Property Map>
- Data record.
- id String
- receiver
Id Number - Recipient group ID.
- result
Output StringFile - status Number
- task
Type Number - Task type.
1: immediate;2: scheduled;3: recurring.
Supporting Types
GetSesSendTasksData
- Cache
Count double - Number of emails cached.
- Create
Time string - Task creation time.
- Cycle
Params List<GetSes Send Tasks Data Cycle Param> - Parameters of a recurring taskNote: This field may return
null, indicating that no valid value can be found. - Err
Msg string - Task exception informationNote: This field may return
null, indicating that no valid value can be found. - From
Email stringAddress - Sender address.
- Receiver
Id double - Recipient group ID.
- Receivers
Name string - Recipient group name.
- Request
Count double - Number of emails requested to be sent.
- Send
Count double - Number of emails sent.
- Subject string
- Email subject.
- Task
Id double - Task ID.
- Task
Status double - Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. - Task
Type double - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter. - Templates
List<Get
Ses Send Tasks Data Template> - Template and template dataNote: This field may return
null, indicating that no valid value can be found. - Timed
Params List<GetSes Send Tasks Data Timed Param> - Parameters of a scheduled taskNote: This field may return
null, indicating that no valid value can be found. - Update
Time string - Task update time.
- Cache
Count float64 - Number of emails cached.
- Create
Time string - Task creation time.
- Cycle
Params []GetSes Send Tasks Data Cycle Param - Parameters of a recurring taskNote: This field may return
null, indicating that no valid value can be found. - Err
Msg string - Task exception informationNote: This field may return
null, indicating that no valid value can be found. - From
Email stringAddress - Sender address.
- Receiver
Id float64 - Recipient group ID.
- Receivers
Name string - Recipient group name.
- Request
Count float64 - Number of emails requested to be sent.
- Send
Count float64 - Number of emails sent.
- Subject string
- Email subject.
- Task
Id float64 - Task ID.
- Task
Status float64 - Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. - Task
Type float64 - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter. - Templates
[]Get
Ses Send Tasks Data Template - Template and template dataNote: This field may return
null, indicating that no valid value can be found. - Timed
Params []GetSes Send Tasks Data Timed Param - Parameters of a scheduled taskNote: This field may return
null, indicating that no valid value can be found. - Update
Time string - Task update time.
- cache
Count Double - Number of emails cached.
- create
Time String - Task creation time.
- cycle
Params List<GetSes Send Tasks Data Cycle Param> - Parameters of a recurring taskNote: This field may return
null, indicating that no valid value can be found. - err
Msg String - Task exception informationNote: This field may return
null, indicating that no valid value can be found. - from
Email StringAddress - Sender address.
- receiver
Id Double - Recipient group ID.
- receivers
Name String - Recipient group name.
- request
Count Double - Number of emails requested to be sent.
- send
Count Double - Number of emails sent.
- subject String
- Email subject.
- task
Id Double - Task ID.
- task
Status Double - Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. - task
Type Double - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter. - templates
List<Get
Ses Send Tasks Data Template> - Template and template dataNote: This field may return
null, indicating that no valid value can be found. - timed
Params List<GetSes Send Tasks Data Timed Param> - Parameters of a scheduled taskNote: This field may return
null, indicating that no valid value can be found. - update
Time String - Task update time.
- cache
Count number - Number of emails cached.
- create
Time string - Task creation time.
- cycle
Params GetSes Send Tasks Data Cycle Param[] - Parameters of a recurring taskNote: This field may return
null, indicating that no valid value can be found. - err
Msg string - Task exception informationNote: This field may return
null, indicating that no valid value can be found. - from
Email stringAddress - Sender address.
- receiver
Id number - Recipient group ID.
- receivers
Name string - Recipient group name.
- request
Count number - Number of emails requested to be sent.
- send
Count number - Number of emails sent.
- subject string
- Email subject.
- task
Id number - Task ID.
- task
Status number - Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. - task
Type number - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter. - templates
Get
Ses Send Tasks Data Template[] - Template and template dataNote: This field may return
null, indicating that no valid value can be found. - timed
Params GetSes Send Tasks Data Timed Param[] - Parameters of a scheduled taskNote: This field may return
null, indicating that no valid value can be found. - update
Time string - Task update time.
- cache_
count float - Number of emails cached.
- create_
time str - Task creation time.
- cycle_
params Sequence[GetSes Send Tasks Data Cycle Param] - Parameters of a recurring taskNote: This field may return
null, indicating that no valid value can be found. - err_
msg str - Task exception informationNote: This field may return
null, indicating that no valid value can be found. - from_
email_ straddress - Sender address.
- receiver_
id float - Recipient group ID.
- receivers_
name str - Recipient group name.
- request_
count float - Number of emails requested to be sent.
- send_
count float - Number of emails sent.
- subject str
- Email subject.
- task_
id float - Task ID.
- task_
status float - Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. - task_
type float - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter. - templates
Sequence[Get
Ses Send Tasks Data Template] - Template and template dataNote: This field may return
null, indicating that no valid value can be found. - timed_
params Sequence[GetSes Send Tasks Data Timed Param] - Parameters of a scheduled taskNote: This field may return
null, indicating that no valid value can be found. - update_
time str - Task update time.
- cache
Count Number - Number of emails cached.
- create
Time String - Task creation time.
- cycle
Params List<Property Map> - Parameters of a recurring taskNote: This field may return
null, indicating that no valid value can be found. - err
Msg String - Task exception informationNote: This field may return
null, indicating that no valid value can be found. - from
Email StringAddress - Sender address.
- receiver
Id Number - Recipient group ID.
- receivers
Name String - Recipient group name.
- request
Count Number - Number of emails requested to be sent.
- send
Count Number - Number of emails sent.
- subject String
- Email subject.
- task
Id Number - Task ID.
- task
Status Number - Task status.
1: to start;5: sending;6: sending suspended today;7: sending error;10: sent. - task
Type Number - Task type.
1: immediate;2: scheduled;3: recurring. To query tasks of all types, do not pass in this parameter. - templates List<Property Map>
- Template and template dataNote: This field may return
null, indicating that no valid value can be found. - timed
Params List<Property Map> - Parameters of a scheduled taskNote: This field may return
null, indicating that no valid value can be found. - update
Time String - Task update time.
GetSesSendTasksDataCycleParam
- Begin
Time string - Start time of a scheduled sending task.
- Interval
Time double - Task recurrence in hours.
- Term
Cycle double - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
- Begin
Time string - Start time of a scheduled sending task.
- Interval
Time float64 - Task recurrence in hours.
- Term
Cycle float64 - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
- begin
Time String - Start time of a scheduled sending task.
- interval
Time Double - Task recurrence in hours.
- term
Cycle Double - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
- begin
Time string - Start time of a scheduled sending task.
- interval
Time number - Task recurrence in hours.
- term
Cycle number - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
- begin_
time str - Start time of a scheduled sending task.
- interval_
time float - Task recurrence in hours.
- term_
cycle float - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
- begin
Time String - Start time of a scheduled sending task.
- interval
Time Number - Task recurrence in hours.
- term
Cycle Number - Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
GetSesSendTasksDataTemplate
- Template
Data string - Variable parameters in the template. Please use
json.dumpto format the JSON object into a string type. The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the corresponding value (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}. - Template
Id double - Template ID. If you do not have any template, please create one.
- Template
Data string - Variable parameters in the template. Please use
json.dumpto format the JSON object into a string type. The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the corresponding value (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}. - Template
Id float64 - Template ID. If you do not have any template, please create one.
- template
Data String - Variable parameters in the template. Please use
json.dumpto format the JSON object into a string type. The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the corresponding value (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}. - template
Id Double - Template ID. If you do not have any template, please create one.
- template
Data string - Variable parameters in the template. Please use
json.dumpto format the JSON object into a string type. The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the corresponding value (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}. - template
Id number - Template ID. If you do not have any template, please create one.
- template_
data str - Variable parameters in the template. Please use
json.dumpto format the JSON object into a string type. The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the corresponding value (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}. - template_
id float - Template ID. If you do not have any template, please create one.
- template
Data String - Variable parameters in the template. Please use
json.dumpto format the JSON object into a string type. The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the corresponding value (represented by {{value}}) when sending the email.Note: The parameter value cannot be data of a complex type such as HTML.Example: {name:xxx,age:xx}. - template
Id Number - Template ID. If you do not have any template, please create one.
GetSesSendTasksDataTimedParam
- Begin
Time string - Start time of a scheduled sending task.
- Begin
Time string - Start time of a scheduled sending task.
- begin
Time String - Start time of a scheduled sending task.
- begin
Time string - Start time of a scheduled sending task.
- begin_
time str - Start time of a scheduled sending task.
- begin
Time String - Start time of a scheduled sending task.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
