1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCosBatchs
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.getCosBatchs

Explore with Pulumi AI

tencentcloud 1.81.187 published on Monday, Apr 28, 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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

cos_batchs = tencentcloud.get_cos_batchs(appid="xxxxxx",
    uin="xxxxxx")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  cosBatchs:
    fn::invoke:
      function: tencentcloud:getCosBatchs
      arguments:
        appid: xxxxxx
        uin: xxxxxx
Copy

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>
Copy
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]
Copy
func GetCosBatchs(ctx *Context, args *GetCosBatchsArgs, opts ...InvokeOption) (*GetCosBatchsResult, error)
func GetCosBatchsOutput(ctx *Context, args *GetCosBatchsOutputArgs, opts ...InvokeOption) GetCosBatchsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCosBatchsResult> getCosBatchs(GetCosBatchsArgs args, InvokeOptions options)
public static Output<GetCosBatchsResult> getCosBatchs(GetCosBatchsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getCosBatchs:getCosBatchs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Appid This property is required. double
Appid.
Uin This property is required. 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 This property is required. float64
Appid.
Uin This property is required. 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 This property is required. Double
Appid.
uin This property is required. 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 This property is required. number
Appid.
uin This property is required. 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 This property is required. float
Appid.
uin This property is required. 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 This property is required. Number
Appid.
uin This property is required. 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 This property is required. string
Job creation time.
Description This property is required. string
Mission description. The length is limited to 0-256 bytes.
JobId This property is required. string
Job ID. The length is limited to 1-64 bytes.
Operation This property is required. string
Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
Priority This property is required. double
Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
ProgressSummaries This property is required. 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 This property is required. string
Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
TerminationDate This property is required. string
The end time of the batch processing job.
CreationTime This property is required. string
Job creation time.
Description This property is required. string
Mission description. The length is limited to 0-256 bytes.
JobId This property is required. string
Job ID. The length is limited to 1-64 bytes.
Operation This property is required. string
Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
Priority This property is required. float64
Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
ProgressSummaries This property is required. []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 This property is required. string
Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
TerminationDate This property is required. string
The end time of the batch processing job.
creationTime This property is required. String
Job creation time.
description This property is required. String
Mission description. The length is limited to 0-256 bytes.
jobId This property is required. String
Job ID. The length is limited to 1-64 bytes.
operation This property is required. String
Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
priority This property is required. Double
Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
progressSummaries This property is required. 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 This property is required. String
Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
terminationDate This property is required. String
The end time of the batch processing job.
creationTime This property is required. string
Job creation time.
description This property is required. string
Mission description. The length is limited to 0-256 bytes.
jobId This property is required. string
Job ID. The length is limited to 1-64 bytes.
operation This property is required. string
Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
priority This property is required. number
Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
progressSummaries This property is required. 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 This property is required. string
Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
terminationDate This property is required. string
The end time of the batch processing job.
creation_time This property is required. str
Job creation time.
description This property is required. str
Mission description. The length is limited to 0-256 bytes.
job_id This property is required. str
Job ID. The length is limited to 1-64 bytes.
operation This property is required. str
Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
priority This property is required. float
Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
progress_summaries This property is required. 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 This property is required. str
Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
termination_date This property is required. str
The end time of the batch processing job.
creationTime This property is required. String
Job creation time.
description This property is required. String
Mission description. The length is limited to 0-256 bytes.
jobId This property is required. String
Job ID. The length is limited to 1-64 bytes.
operation This property is required. String
Actions performed on objects in a batch processing job. For example, COSPutObjectCopy.
priority This property is required. Number
Mission priority. Tasks with higher values will be given priority. The priority size is limited to 0-2147483647.
progressSummaries This property is required. 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 This property is required. String
Task execution status. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended.
terminationDate This property is required. String
The end time of the batch processing job.

GetCosBatchsJobProgressSummary

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

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack