1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCosBucketMultipartUploads
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getCosBucketMultipartUploads

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

    Use this data source to query the COS bucket multipart uploads.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const cosBucketMultipartUploads = tencentcloud.getCosBucketMultipartUploads({
        bucket: "xxxxxx",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cos_bucket_multipart_uploads = tencentcloud.get_cos_bucket_multipart_uploads(bucket="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.GetCosBucketMultipartUploads(ctx, &tencentcloud.GetCosBucketMultipartUploadsArgs{
    			Bucket: "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 cosBucketMultipartUploads = Tencentcloud.GetCosBucketMultipartUploads.Invoke(new()
        {
            Bucket = "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.GetCosBucketMultipartUploadsArgs;
    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 cosBucketMultipartUploads = TencentcloudFunctions.getCosBucketMultipartUploads(GetCosBucketMultipartUploadsArgs.builder()
                .bucket("xxxxxx")
                .build());
    
        }
    }
    
    variables:
      cosBucketMultipartUploads:
        fn::invoke:
          function: tencentcloud:getCosBucketMultipartUploads
          arguments:
            bucket: xxxxxx
    

    Using getCosBucketMultipartUploads

    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 getCosBucketMultipartUploads(args: GetCosBucketMultipartUploadsArgs, opts?: InvokeOptions): Promise<GetCosBucketMultipartUploadsResult>
    function getCosBucketMultipartUploadsOutput(args: GetCosBucketMultipartUploadsOutputArgs, opts?: InvokeOptions): Output<GetCosBucketMultipartUploadsResult>
    def get_cos_bucket_multipart_uploads(bucket: Optional[str] = None,
                                         delimiter: Optional[str] = None,
                                         encoding_type: Optional[str] = None,
                                         id: Optional[str] = None,
                                         prefix: Optional[str] = None,
                                         result_output_file: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetCosBucketMultipartUploadsResult
    def get_cos_bucket_multipart_uploads_output(bucket: Optional[pulumi.Input[str]] = None,
                                         delimiter: Optional[pulumi.Input[str]] = None,
                                         encoding_type: Optional[pulumi.Input[str]] = None,
                                         id: Optional[pulumi.Input[str]] = None,
                                         prefix: Optional[pulumi.Input[str]] = None,
                                         result_output_file: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetCosBucketMultipartUploadsResult]
    func GetCosBucketMultipartUploads(ctx *Context, args *GetCosBucketMultipartUploadsArgs, opts ...InvokeOption) (*GetCosBucketMultipartUploadsResult, error)
    func GetCosBucketMultipartUploadsOutput(ctx *Context, args *GetCosBucketMultipartUploadsOutputArgs, opts ...InvokeOption) GetCosBucketMultipartUploadsResultOutput

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

    public static class GetCosBucketMultipartUploads 
    {
        public static Task<GetCosBucketMultipartUploadsResult> InvokeAsync(GetCosBucketMultipartUploadsArgs args, InvokeOptions? opts = null)
        public static Output<GetCosBucketMultipartUploadsResult> Invoke(GetCosBucketMultipartUploadsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCosBucketMultipartUploadsResult> getCosBucketMultipartUploads(GetCosBucketMultipartUploadsArgs args, InvokeOptions options)
    public static Output<GetCosBucketMultipartUploadsResult> getCosBucketMultipartUploads(GetCosBucketMultipartUploadsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCosBucketMultipartUploads:getCosBucketMultipartUploads
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Bucket string
    Bucket.
    Delimiter string
    The delimiter is a symbol, and the Object name contains the Object between the specified prefix and the first occurrence of delimiter characters as a set of elements: common prefix. If there is no prefix, start from the beginning of the path.
    EncodingType string
    Specifies the encoding format of the return value. Legal value: url.
    Id string
    The user's unique CAM identity ID.
    Prefix string
    The returned Object key must be prefixed with Prefix. Note that when using the prefix query, the returned key still contains Prefix.
    ResultOutputFile string
    Used to save results.
    Bucket string
    Bucket.
    Delimiter string
    The delimiter is a symbol, and the Object name contains the Object between the specified prefix and the first occurrence of delimiter characters as a set of elements: common prefix. If there is no prefix, start from the beginning of the path.
    EncodingType string
    Specifies the encoding format of the return value. Legal value: url.
    Id string
    The user's unique CAM identity ID.
    Prefix string
    The returned Object key must be prefixed with Prefix. Note that when using the prefix query, the returned key still contains Prefix.
    ResultOutputFile string
    Used to save results.
    bucket String
    Bucket.
    delimiter String
    The delimiter is a symbol, and the Object name contains the Object between the specified prefix and the first occurrence of delimiter characters as a set of elements: common prefix. If there is no prefix, start from the beginning of the path.
    encodingType String
    Specifies the encoding format of the return value. Legal value: url.
    id String
    The user's unique CAM identity ID.
    prefix String
    The returned Object key must be prefixed with Prefix. Note that when using the prefix query, the returned key still contains Prefix.
    resultOutputFile String
    Used to save results.
    bucket string
    Bucket.
    delimiter string
    The delimiter is a symbol, and the Object name contains the Object between the specified prefix and the first occurrence of delimiter characters as a set of elements: common prefix. If there is no prefix, start from the beginning of the path.
    encodingType string
    Specifies the encoding format of the return value. Legal value: url.
    id string
    The user's unique CAM identity ID.
    prefix string
    The returned Object key must be prefixed with Prefix. Note that when using the prefix query, the returned key still contains Prefix.
    resultOutputFile string
    Used to save results.
    bucket str
    Bucket.
    delimiter str
    The delimiter is a symbol, and the Object name contains the Object between the specified prefix and the first occurrence of delimiter characters as a set of elements: common prefix. If there is no prefix, start from the beginning of the path.
    encoding_type str
    Specifies the encoding format of the return value. Legal value: url.
    id str
    The user's unique CAM identity ID.
    prefix str
    The returned Object key must be prefixed with Prefix. Note that when using the prefix query, the returned key still contains Prefix.
    result_output_file str
    Used to save results.
    bucket String
    Bucket.
    delimiter String
    The delimiter is a symbol, and the Object name contains the Object between the specified prefix and the first occurrence of delimiter characters as a set of elements: common prefix. If there is no prefix, start from the beginning of the path.
    encodingType String
    Specifies the encoding format of the return value. Legal value: url.
    id String
    The user's unique CAM identity ID.
    prefix String
    The returned Object key must be prefixed with Prefix. Note that when using the prefix query, the returned key still contains Prefix.
    resultOutputFile String
    Used to save results.

    getCosBucketMultipartUploads Result

    The following output properties are available:

    Bucket string
    Id string
    The user's unique CAM identity ID.
    Uploads List<GetCosBucketMultipartUploadsUpload>
    Information for each Upload.
    Delimiter string
    EncodingType string
    Prefix string
    ResultOutputFile string
    Bucket string
    Id string
    The user's unique CAM identity ID.
    Uploads []GetCosBucketMultipartUploadsUpload
    Information for each Upload.
    Delimiter string
    EncodingType string
    Prefix string
    ResultOutputFile string
    bucket String
    id String
    The user's unique CAM identity ID.
    uploads List<GetCosBucketMultipartUploadsUpload>
    Information for each Upload.
    delimiter String
    encodingType String
    prefix String
    resultOutputFile String
    bucket string
    id string
    The user's unique CAM identity ID.
    uploads GetCosBucketMultipartUploadsUpload[]
    Information for each Upload.
    delimiter string
    encodingType string
    prefix string
    resultOutputFile string
    bucket str
    id str
    The user's unique CAM identity ID.
    uploads Sequence[GetCosBucketMultipartUploadsUpload]
    Information for each Upload.
    delimiter str
    encoding_type str
    prefix str
    result_output_file str
    bucket String
    id String
    The user's unique CAM identity ID.
    uploads List<Property Map>
    Information for each Upload.
    delimiter String
    encodingType String
    prefix String
    resultOutputFile String

    Supporting Types

    GetCosBucketMultipartUploadsUpload

    Initiated string
    The starting time of multipart upload.
    Initiators List<GetCosBucketMultipartUploadsUploadInitiator>
    Used to represent the information of the initiator of this upload.
    Key string
    Name of the Object.
    Owners List<GetCosBucketMultipartUploadsUploadOwner>
    Information used to represent the owner of these chunks.
    StorageClass string
    Used to represent the storage level of a chunk. Enumerated value: STANDARD,STANDARD_IA,ARCHIVE.
    UploadId string
    Mark the ID of this multipart upload.
    Initiated string
    The starting time of multipart upload.
    Initiators []GetCosBucketMultipartUploadsUploadInitiator
    Used to represent the information of the initiator of this upload.
    Key string
    Name of the Object.
    Owners []GetCosBucketMultipartUploadsUploadOwner
    Information used to represent the owner of these chunks.
    StorageClass string
    Used to represent the storage level of a chunk. Enumerated value: STANDARD,STANDARD_IA,ARCHIVE.
    UploadId string
    Mark the ID of this multipart upload.
    initiated String
    The starting time of multipart upload.
    initiators List<GetCosBucketMultipartUploadsUploadInitiator>
    Used to represent the information of the initiator of this upload.
    key String
    Name of the Object.
    owners List<GetCosBucketMultipartUploadsUploadOwner>
    Information used to represent the owner of these chunks.
    storageClass String
    Used to represent the storage level of a chunk. Enumerated value: STANDARD,STANDARD_IA,ARCHIVE.
    uploadId String
    Mark the ID of this multipart upload.
    initiated string
    The starting time of multipart upload.
    initiators GetCosBucketMultipartUploadsUploadInitiator[]
    Used to represent the information of the initiator of this upload.
    key string
    Name of the Object.
    owners GetCosBucketMultipartUploadsUploadOwner[]
    Information used to represent the owner of these chunks.
    storageClass string
    Used to represent the storage level of a chunk. Enumerated value: STANDARD,STANDARD_IA,ARCHIVE.
    uploadId string
    Mark the ID of this multipart upload.
    initiated str
    The starting time of multipart upload.
    initiators Sequence[GetCosBucketMultipartUploadsUploadInitiator]
    Used to represent the information of the initiator of this upload.
    key str
    Name of the Object.
    owners Sequence[GetCosBucketMultipartUploadsUploadOwner]
    Information used to represent the owner of these chunks.
    storage_class str
    Used to represent the storage level of a chunk. Enumerated value: STANDARD,STANDARD_IA,ARCHIVE.
    upload_id str
    Mark the ID of this multipart upload.
    initiated String
    The starting time of multipart upload.
    initiators List<Property Map>
    Used to represent the information of the initiator of this upload.
    key String
    Name of the Object.
    owners List<Property Map>
    Information used to represent the owner of these chunks.
    storageClass String
    Used to represent the storage level of a chunk. Enumerated value: STANDARD,STANDARD_IA,ARCHIVE.
    uploadId String
    Mark the ID of this multipart upload.

    GetCosBucketMultipartUploadsUploadInitiator

    DisplayName string
    Abbreviation for user identity ID (UIN).
    Id string
    The user's unique CAM identity ID.
    DisplayName string
    Abbreviation for user identity ID (UIN).
    Id string
    The user's unique CAM identity ID.
    displayName String
    Abbreviation for user identity ID (UIN).
    id String
    The user's unique CAM identity ID.
    displayName string
    Abbreviation for user identity ID (UIN).
    id string
    The user's unique CAM identity ID.
    display_name str
    Abbreviation for user identity ID (UIN).
    id str
    The user's unique CAM identity ID.
    displayName String
    Abbreviation for user identity ID (UIN).
    id String
    The user's unique CAM identity ID.

    GetCosBucketMultipartUploadsUploadOwner

    DisplayName string
    Abbreviation for user identity ID (UIN).
    Id string
    The user's unique CAM identity ID.
    DisplayName string
    Abbreviation for user identity ID (UIN).
    Id string
    The user's unique CAM identity ID.
    displayName String
    Abbreviation for user identity ID (UIN).
    id String
    The user's unique CAM identity ID.
    displayName string
    Abbreviation for user identity ID (UIN).
    id string
    The user's unique CAM identity ID.
    display_name str
    Abbreviation for user identity ID (UIN).
    id str
    The user's unique CAM identity ID.
    displayName String
    Abbreviation for user identity ID (UIN).
    id String
    The user's unique CAM identity ID.

    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.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack