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

tencentcloud.getCosBatchs

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query the COS batch.

    NOTE: The current resource does not support cos_domain.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const cosBatchs = tencentcloud.getCosBatchs({
        appid: "xxxxxx",
        uin: "xxxxxx",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cos_batchs = tencentcloud.get_cos_batchs(appid="xxxxxx",
        uin="xxxxxx")
    
    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.GetCosBatchs(ctx, &tencentcloud.GetCosBatchsArgs{
    			Appid: "xxxxxx",
    			Uin:   "xxxxxx",
    		}, 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 cosBatchs = Tencentcloud.GetCosBatchs.Invoke(new()
        {
            Appid = "xxxxxx",
            Uin = "xxxxxx",
        });
    
    });
    
    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.GetCosBatchsArgs;
    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 cosBatchs = TencentcloudFunctions.getCosBatchs(GetCosBatchsArgs.builder()
                .appid("xxxxxx")
                .uin("xxxxxx")
                .build());
    
        }
    }
    
    variables:
      cosBatchs:
        fn::invoke:
          function: tencentcloud:getCosBatchs
          arguments:
            appid: xxxxxx
            uin: xxxxxx
    

    Using getCosBatchs

    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 getCosBatchs(args: GetCosBatchsArgs, opts?: InvokeOptions): Promise<GetCosBatchsResult>
    function getCosBatchsOutput(args: GetCosBatchsOutputArgs, opts?: InvokeOptions): Output<GetCosBatchsResult>
    def get_cos_batchs(appid: Optional[float] = None,
                       id: Optional[str] = None,
                       job_statuses: Optional[str] = None,
                       result_output_file: Optional[str] = None,
                       uin: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetCosBatchsResult
    def get_cos_batchs_output(appid: Optional[pulumi.Input[float]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       job_statuses: Optional[pulumi.Input[str]] = None,
                       result_output_file: Optional[pulumi.Input[str]] = None,
                       uin: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetCosBatchsResult]
    func GetCosBatchs(ctx *Context, args *GetCosBatchsArgs, opts ...InvokeOption) (*GetCosBatchsResult, error)
    func GetCosBatchsOutput(ctx *Context, args *GetCosBatchsOutputArgs, opts ...InvokeOption) GetCosBatchsResultOutput

    > Note: This function is named GetCosBatchs in the Go SDK.

    public static class GetCosBatchs 
    {
        public static Task<GetCosBatchsResult> InvokeAsync(GetCosBatchsArgs args, InvokeOptions? opts = null)
        public static Output<GetCosBatchsResult> Invoke(GetCosBatchsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCosBatchsResult> getCosBatchs(GetCosBatchsArgs args, InvokeOptions options)
    public static Output<GetCosBatchsResult> getCosBatchs(GetCosBatchsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCosBatchs:getCosBatchs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Appid double
    Appid.
    Uin string
    Uin.
    Id string
    JobStatuses string
    The task status information you need to query. If you do not specify a task status, COS returns the status of all tasks that have been executed, including those that are in progress. If you specify a task status, COS returns the task in the specified state. Optional task states include: Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    ResultOutputFile string
    Used to save results.
    Appid float64
    Appid.
    Uin string
    Uin.
    Id string
    JobStatuses string
    The task status information you need to query. If you do not specify a task status, COS returns the status of all tasks that have been executed, including those that are in progress. If you specify a task status, COS returns the task in the specified state. Optional task states include: Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    ResultOutputFile string
    Used to save results.
    appid Double
    Appid.
    uin String
    Uin.
    id String
    jobStatuses String
    The task status information you need to query. If you do not specify a task status, COS returns the status of all tasks that have been executed, including those that are in progress. If you specify a task status, COS returns the task in the specified state. Optional task states include: Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    resultOutputFile String
    Used to save results.
    appid number
    Appid.
    uin string
    Uin.
    id string
    jobStatuses string
    The task status information you need to query. If you do not specify a task status, COS returns the status of all tasks that have been executed, including those that are in progress. If you specify a task status, COS returns the task in the specified state. Optional task states include: Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    resultOutputFile string
    Used to save results.
    appid float
    Appid.
    uin str
    Uin.
    id str
    job_statuses str
    The task status information you need to query. If you do not specify a task status, COS returns the status of all tasks that have been executed, including those that are in progress. If you specify a task status, COS returns the task in the specified state. Optional task states include: Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    result_output_file str
    Used to save results.
    appid Number
    Appid.
    uin String
    Uin.
    id String
    jobStatuses String
    The task status information you need to query. If you do not specify a task status, COS returns the status of all tasks that have been executed, including those that are in progress. If you specify a task status, COS returns the task in the specified state. Optional task states include: Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    resultOutputFile String
    Used to save results.

    getCosBatchs Result

    The following output properties are available:

    Appid double
    Id string
    Jobs List<GetCosBatchsJob>
    Multiple batch processing task information.
    Uin string
    JobStatuses string
    ResultOutputFile string
    Appid float64
    Id string
    Jobs []GetCosBatchsJob
    Multiple batch processing task information.
    Uin string
    JobStatuses string
    ResultOutputFile string
    appid Double
    id String
    jobs List<GetCosBatchsJob>
    Multiple batch processing task information.
    uin String
    jobStatuses String
    resultOutputFile String
    appid number
    id string
    jobs GetCosBatchsJob[]
    Multiple batch processing task information.
    uin string
    jobStatuses string
    resultOutputFile string
    appid float
    id str
    jobs Sequence[GetCosBatchsJob]
    Multiple batch processing task information.
    uin str
    job_statuses str
    result_output_file str
    appid Number
    id String
    jobs List<Property Map>
    Multiple batch processing task information.
    uin String
    jobStatuses String
    resultOutputFile String

    Supporting Types

    GetCosBatchsJob

    CreationTime string
    Job creation time.
    Description string
    Mission description. The length is limited to 0-256 bytes.
    JobId string
    Job ID. The length is limited to 1-64 bytes.
    Operation string
    Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
    Priority double
    Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
    ProgressSummaries List<GetCosBatchsJobProgressSummary>
    Summary of the status of task implementation. Describe the total number of operations performed in this task, the number of successful operations, and the number of failed operations.
    Status string
    Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    TerminationDate string
    The end time of the batch processing job.
    CreationTime string
    Job creation time.
    Description string
    Mission description. The length is limited to 0-256 bytes.
    JobId string
    Job ID. The length is limited to 1-64 bytes.
    Operation string
    Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
    Priority float64
    Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
    ProgressSummaries []GetCosBatchsJobProgressSummary
    Summary of the status of task implementation. Describe the total number of operations performed in this task, the number of successful operations, and the number of failed operations.
    Status string
    Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    TerminationDate string
    The end time of the batch processing job.
    creationTime String
    Job creation time.
    description String
    Mission description. The length is limited to 0-256 bytes.
    jobId String
    Job ID. The length is limited to 1-64 bytes.
    operation String
    Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
    priority Double
    Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
    progressSummaries List<GetCosBatchsJobProgressSummary>
    Summary of the status of task implementation. Describe the total number of operations performed in this task, the number of successful operations, and the number of failed operations.
    status String
    Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    terminationDate String
    The end time of the batch processing job.
    creationTime string
    Job creation time.
    description string
    Mission description. The length is limited to 0-256 bytes.
    jobId string
    Job ID. The length is limited to 1-64 bytes.
    operation string
    Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
    priority number
    Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
    progressSummaries GetCosBatchsJobProgressSummary[]
    Summary of the status of task implementation. Describe the total number of operations performed in this task, the number of successful operations, and the number of failed operations.
    status string
    Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    terminationDate string
    The end time of the batch processing job.
    creation_time str
    Job creation time.
    description str
    Mission description. The length is limited to 0-256 bytes.
    job_id str
    Job ID. The length is limited to 1-64 bytes.
    operation str
    Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
    priority float
    Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
    progress_summaries Sequence[GetCosBatchsJobProgressSummary]
    Summary of the status of task implementation. Describe the total number of operations performed in this task, the number of successful operations, and the number of failed operations.
    status str
    Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    termination_date str
    The end time of the batch processing job.
    creationTime String
    Job creation time.
    description String
    Mission description. The length is limited to 0-256 bytes.
    jobId String
    Job ID. The length is limited to 1-64 bytes.
    operation String
    Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
    priority Number
    Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
    progressSummaries List<Property Map>
    Summary of the status of task implementation. Describe the total number of operations performed in this task, the number of successful operations, and the number of failed operations.
    status String
    Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
    terminationDate String
    The end time of the batch processing job.

    GetCosBatchsJobProgressSummary

    NumberOfTasksFailed double
    The current failed Operand.
    NumberOfTasksSucceeded double
    The current successful Operand.
    TotalNumberOfTasks double
    Total Operand.
    NumberOfTasksFailed float64
    The current failed Operand.
    NumberOfTasksSucceeded float64
    The current successful Operand.
    TotalNumberOfTasks float64
    Total Operand.
    numberOfTasksFailed Double
    The current failed Operand.
    numberOfTasksSucceeded Double
    The current successful Operand.
    totalNumberOfTasks Double
    Total Operand.
    numberOfTasksFailed number
    The current failed Operand.
    numberOfTasksSucceeded number
    The current successful Operand.
    totalNumberOfTasks number
    Total Operand.
    number_of_tasks_failed float
    The current failed Operand.
    number_of_tasks_succeeded float
    The current successful Operand.
    total_number_of_tasks float
    Total Operand.
    numberOfTasksFailed Number
    The current failed Operand.
    numberOfTasksSucceeded Number
    The current successful Operand.
    totalNumberOfTasks Number
    Total Operand.

    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