1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getSesSendTasks
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getSesSendTasks

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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({
        receiverId: 1063742,
        status: 10,
        taskType: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    send_tasks = tencentcloud.get_ses_send_tasks(receiver_id=1063742,
        status=10,
        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{
    			ReceiverId: pulumi.Float64Ref(1063742),
    			Status:     pulumi.Float64Ref(10),
    			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()
        {
            ReceiverId = 1063742,
            Status = 10,
            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()
                .receiverId(1063742)
                .status(10)
                .taskType(1)
                .build());
    
        }
    }
    
    variables:
      sendTasks:
        fn::invoke:
          function: tencentcloud:getSesSendTasks
          arguments:
            receiverId: 1.063742e+06
            status: 10
            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 dictionary

    The following arguments are supported:

    Id string
    ReceiverId double
    Recipient group ID.
    ResultOutputFile string
    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.
    TaskType double
    Task type. 1: immediate; 2: scheduled; 3: recurring. To query tasks of all types, do not pass in this parameter.
    Id string
    ReceiverId float64
    Recipient group ID.
    ResultOutputFile string
    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.
    TaskType float64
    Task type. 1: immediate; 2: scheduled; 3: recurring. To query tasks of all types, do not pass in this parameter.
    id String
    receiverId Double
    Recipient group ID.
    resultOutputFile String
    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.
    taskType Double
    Task type. 1: immediate; 2: scheduled; 3: recurring. To query tasks of all types, do not pass in this parameter.
    id string
    receiverId number
    Recipient group ID.
    resultOutputFile string
    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.
    taskType 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_file str
    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
    receiverId Number
    Recipient group ID.
    resultOutputFile String
    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.
    taskType 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<GetSesSendTasksData>
    Data record.
    Id string
    ReceiverId double
    Recipient group ID.
    ResultOutputFile string
    Status double
    TaskType double
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    Datas []GetSesSendTasksData
    Data record.
    Id string
    ReceiverId float64
    Recipient group ID.
    ResultOutputFile string
    Status float64
    TaskType float64
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    datas List<GetSesSendTasksData>
    Data record.
    id String
    receiverId Double
    Recipient group ID.
    resultOutputFile String
    status Double
    taskType Double
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    datas GetSesSendTasksData[]
    Data record.
    id string
    receiverId number
    Recipient group ID.
    resultOutputFile string
    status number
    taskType number
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    datas Sequence[GetSesSendTasksData]
    Data record.
    id str
    receiver_id float
    Recipient group ID.
    result_output_file str
    status float
    task_type float
    Task type. 1: immediate; 2: scheduled; 3: recurring.
    datas List<Property Map>
    Data record.
    id String
    receiverId Number
    Recipient group ID.
    resultOutputFile String
    status Number
    taskType Number
    Task type. 1: immediate; 2: scheduled; 3: recurring.

    Supporting Types

    GetSesSendTasksData

    CacheCount double
    Number of emails cached.
    CreateTime string
    Task creation time.
    CycleParams List<GetSesSendTasksDataCycleParam>
    Parameters of a recurring taskNote: This field may return null, indicating that no valid value can be found.
    ErrMsg string
    Task exception informationNote: This field may return null, indicating that no valid value can be found.
    FromEmailAddress string
    Sender address.
    ReceiverId double
    Recipient group ID.
    ReceiversName string
    Recipient group name.
    RequestCount double
    Number of emails requested to be sent.
    SendCount double
    Number of emails sent.
    Subject string
    Email subject.
    TaskId double
    Task ID.
    TaskStatus double
    Task status. 1: to start; 5: sending; 6: sending suspended today; 7: sending error; 10: sent.
    TaskType double
    Task type. 1: immediate; 2: scheduled; 3: recurring. To query tasks of all types, do not pass in this parameter.
    Templates List<GetSesSendTasksDataTemplate>
    Template and template dataNote: This field may return null, indicating that no valid value can be found.
    TimedParams List<GetSesSendTasksDataTimedParam>
    Parameters of a scheduled taskNote: This field may return null, indicating that no valid value can be found.
    UpdateTime string
    Task update time.
    CacheCount float64
    Number of emails cached.
    CreateTime string
    Task creation time.
    CycleParams []GetSesSendTasksDataCycleParam
    Parameters of a recurring taskNote: This field may return null, indicating that no valid value can be found.
    ErrMsg string
    Task exception informationNote: This field may return null, indicating that no valid value can be found.
    FromEmailAddress string
    Sender address.
    ReceiverId float64
    Recipient group ID.
    ReceiversName string
    Recipient group name.
    RequestCount float64
    Number of emails requested to be sent.
    SendCount float64
    Number of emails sent.
    Subject string
    Email subject.
    TaskId float64
    Task ID.
    TaskStatus float64
    Task status. 1: to start; 5: sending; 6: sending suspended today; 7: sending error; 10: sent.
    TaskType float64
    Task type. 1: immediate; 2: scheduled; 3: recurring. To query tasks of all types, do not pass in this parameter.
    Templates []GetSesSendTasksDataTemplate
    Template and template dataNote: This field may return null, indicating that no valid value can be found.
    TimedParams []GetSesSendTasksDataTimedParam
    Parameters of a scheduled taskNote: This field may return null, indicating that no valid value can be found.
    UpdateTime string
    Task update time.
    cacheCount Double
    Number of emails cached.
    createTime String
    Task creation time.
    cycleParams List<GetSesSendTasksDataCycleParam>
    Parameters of a recurring taskNote: This field may return null, indicating that no valid value can be found.
    errMsg String
    Task exception informationNote: This field may return null, indicating that no valid value can be found.
    fromEmailAddress String
    Sender address.
    receiverId Double
    Recipient group ID.
    receiversName String
    Recipient group name.
    requestCount Double
    Number of emails requested to be sent.
    sendCount Double
    Number of emails sent.
    subject String
    Email subject.
    taskId Double
    Task ID.
    taskStatus Double
    Task status. 1: to start; 5: sending; 6: sending suspended today; 7: sending error; 10: sent.
    taskType Double
    Task type. 1: immediate; 2: scheduled; 3: recurring. To query tasks of all types, do not pass in this parameter.
    templates List<GetSesSendTasksDataTemplate>
    Template and template dataNote: This field may return null, indicating that no valid value can be found.
    timedParams List<GetSesSendTasksDataTimedParam>
    Parameters of a scheduled taskNote: This field may return null, indicating that no valid value can be found.
    updateTime String
    Task update time.
    cacheCount number
    Number of emails cached.
    createTime string
    Task creation time.
    cycleParams GetSesSendTasksDataCycleParam[]
    Parameters of a recurring taskNote: This field may return null, indicating that no valid value can be found.
    errMsg string
    Task exception informationNote: This field may return null, indicating that no valid value can be found.
    fromEmailAddress string
    Sender address.
    receiverId number
    Recipient group ID.
    receiversName string
    Recipient group name.
    requestCount number
    Number of emails requested to be sent.
    sendCount number
    Number of emails sent.
    subject string
    Email subject.
    taskId number
    Task ID.
    taskStatus number
    Task status. 1: to start; 5: sending; 6: sending suspended today; 7: sending error; 10: sent.
    taskType number
    Task type. 1: immediate; 2: scheduled; 3: recurring. To query tasks of all types, do not pass in this parameter.
    templates GetSesSendTasksDataTemplate[]
    Template and template dataNote: This field may return null, indicating that no valid value can be found.
    timedParams GetSesSendTasksDataTimedParam[]
    Parameters of a scheduled taskNote: This field may return null, indicating that no valid value can be found.
    updateTime string
    Task update time.
    cache_count float
    Number of emails cached.
    create_time str
    Task creation time.
    cycle_params Sequence[GetSesSendTasksDataCycleParam]
    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_address str
    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[GetSesSendTasksDataTemplate]
    Template and template dataNote: This field may return null, indicating that no valid value can be found.
    timed_params Sequence[GetSesSendTasksDataTimedParam]
    Parameters of a scheduled taskNote: This field may return null, indicating that no valid value can be found.
    update_time str
    Task update time.
    cacheCount Number
    Number of emails cached.
    createTime String
    Task creation time.
    cycleParams List<Property Map>
    Parameters of a recurring taskNote: This field may return null, indicating that no valid value can be found.
    errMsg String
    Task exception informationNote: This field may return null, indicating that no valid value can be found.
    fromEmailAddress String
    Sender address.
    receiverId Number
    Recipient group ID.
    receiversName String
    Recipient group name.
    requestCount Number
    Number of emails requested to be sent.
    sendCount Number
    Number of emails sent.
    subject String
    Email subject.
    taskId Number
    Task ID.
    taskStatus Number
    Task status. 1: to start; 5: sending; 6: sending suspended today; 7: sending error; 10: sent.
    taskType 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.
    timedParams List<Property Map>
    Parameters of a scheduled taskNote: This field may return null, indicating that no valid value can be found.
    updateTime String
    Task update time.

    GetSesSendTasksDataCycleParam

    BeginTime string
    Start time of a scheduled sending task.
    IntervalTime double
    Task recurrence in hours.
    TermCycle double
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
    BeginTime string
    Start time of a scheduled sending task.
    IntervalTime float64
    Task recurrence in hours.
    TermCycle float64
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
    beginTime String
    Start time of a scheduled sending task.
    intervalTime Double
    Task recurrence in hours.
    termCycle Double
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.
    beginTime string
    Start time of a scheduled sending task.
    intervalTime number
    Task recurrence in hours.
    termCycle 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.
    beginTime String
    Start time of a scheduled sending task.
    intervalTime Number
    Task recurrence in hours.
    termCycle Number
    Specifies whether to end the cycle. This parameter is used to update the task. Valid values: 0: No; 1: Yes.

    GetSesSendTasksDataTemplate

    TemplateData string
    Variable parameters in the template. Please use json.dump to 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}.
    TemplateId double
    Template ID. If you do not have any template, please create one.
    TemplateData string
    Variable parameters in the template. Please use json.dump to 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}.
    TemplateId float64
    Template ID. If you do not have any template, please create one.
    templateData String
    Variable parameters in the template. Please use json.dump to 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}.
    templateId Double
    Template ID. If you do not have any template, please create one.
    templateData string
    Variable parameters in the template. Please use json.dump to 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}.
    templateId number
    Template ID. If you do not have any template, please create one.
    template_data str
    Variable parameters in the template. Please use json.dump to 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.
    templateData String
    Variable parameters in the template. Please use json.dump to 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}.
    templateId Number
    Template ID. If you do not have any template, please create one.

    GetSesSendTasksDataTimedParam

    BeginTime string
    Start time of a scheduled sending task.
    BeginTime string
    Start time of a scheduled sending task.
    beginTime String
    Start time of a scheduled sending task.
    beginTime string
    Start time of a scheduled sending task.
    begin_time str
    Start time of a scheduled sending task.
    beginTime 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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack