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

tencentcloud.getCosBucketInventorys

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 bucket inventorys.

    NOTE: The current resource does not support cdc.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const cosBucketInventorys = tencentcloud.getCosBucketInventorys({
        bucket: "xxxxxx",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cos_bucket_inventorys = tencentcloud.get_cos_bucket_inventorys(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.GetCosBucketInventorys(ctx, &tencentcloud.GetCosBucketInventorysArgs{
    			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 cosBucketInventorys = Tencentcloud.GetCosBucketInventorys.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.GetCosBucketInventorysArgs;
    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 cosBucketInventorys = TencentcloudFunctions.getCosBucketInventorys(GetCosBucketInventorysArgs.builder()
                .bucket("xxxxxx")
                .build());
    
        }
    }
    
    variables:
      cosBucketInventorys:
        fn::invoke:
          function: tencentcloud:getCosBucketInventorys
          arguments:
            bucket: xxxxxx
    

    Using getCosBucketInventorys

    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 getCosBucketInventorys(args: GetCosBucketInventorysArgs, opts?: InvokeOptions): Promise<GetCosBucketInventorysResult>
    function getCosBucketInventorysOutput(args: GetCosBucketInventorysOutputArgs, opts?: InvokeOptions): Output<GetCosBucketInventorysResult>
    def get_cos_bucket_inventorys(bucket: Optional[str] = None,
                                  id: Optional[str] = None,
                                  result_output_file: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetCosBucketInventorysResult
    def get_cos_bucket_inventorys_output(bucket: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  result_output_file: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetCosBucketInventorysResult]
    func GetCosBucketInventorys(ctx *Context, args *GetCosBucketInventorysArgs, opts ...InvokeOption) (*GetCosBucketInventorysResult, error)
    func GetCosBucketInventorysOutput(ctx *Context, args *GetCosBucketInventorysOutputArgs, opts ...InvokeOption) GetCosBucketInventorysResultOutput

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

    public static class GetCosBucketInventorys 
    {
        public static Task<GetCosBucketInventorysResult> InvokeAsync(GetCosBucketInventorysArgs args, InvokeOptions? opts = null)
        public static Output<GetCosBucketInventorysResult> Invoke(GetCosBucketInventorysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCosBucketInventorysResult> getCosBucketInventorys(GetCosBucketInventorysArgs args, InvokeOptions options)
    public static Output<GetCosBucketInventorysResult> getCosBucketInventorys(GetCosBucketInventorysArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCosBucketInventorys:getCosBucketInventorys
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Bucket string
    Bucket.
    Id string
    Whether to enable the inventory. true or false.
    ResultOutputFile string
    Used to save results.
    Bucket string
    Bucket.
    Id string
    Whether to enable the inventory. true or false.
    ResultOutputFile string
    Used to save results.
    bucket String
    Bucket.
    id String
    Whether to enable the inventory. true or false.
    resultOutputFile String
    Used to save results.
    bucket string
    Bucket.
    id string
    Whether to enable the inventory. true or false.
    resultOutputFile string
    Used to save results.
    bucket str
    Bucket.
    id str
    Whether to enable the inventory. true or false.
    result_output_file str
    Used to save results.
    bucket String
    Bucket.
    id String
    Whether to enable the inventory. true or false.
    resultOutputFile String
    Used to save results.

    getCosBucketInventorys Result

    The following output properties are available:

    Bucket string
    Bucket name.
    Id string
    Whether to enable the inventory. true or false.
    Inventorys List<GetCosBucketInventorysInventory>
    Multiple batch processing task information.
    ResultOutputFile string
    Bucket string
    Bucket name.
    Id string
    Whether to enable the inventory. true or false.
    Inventorys []GetCosBucketInventorysInventory
    Multiple batch processing task information.
    ResultOutputFile string
    bucket String
    Bucket name.
    id String
    Whether to enable the inventory. true or false.
    inventorys List<GetCosBucketInventorysInventory>
    Multiple batch processing task information.
    resultOutputFile String
    bucket string
    Bucket name.
    id string
    Whether to enable the inventory. true or false.
    inventorys GetCosBucketInventorysInventory[]
    Multiple batch processing task information.
    resultOutputFile string
    bucket str
    Bucket name.
    id str
    Whether to enable the inventory. true or false.
    inventorys Sequence[GetCosBucketInventorysInventory]
    Multiple batch processing task information.
    result_output_file str
    bucket String
    Bucket name.
    id String
    Whether to enable the inventory. true or false.
    inventorys List<Property Map>
    Multiple batch processing task information.
    resultOutputFile String

    Supporting Types

    GetCosBucketInventorysInventory

    Destinations List<GetCosBucketInventorysInventoryDestination>
    Information about the inventory result destination.
    Filters List<GetCosBucketInventorysInventoryFilter>
    Filters objects prefixed with the specified value to analyze.
    Id string
    Whether to enable the inventory. true or false.
    IncludedObjectVersions string
    Whether to include object versions in the inventory. All or No.
    IsEnabled string
    Whether to enable the inventory. true or false.
    OptionalFields List<GetCosBucketInventorysInventoryOptionalField>
    Schedules List<GetCosBucketInventorysInventorySchedule>
    Inventory job cycle.
    Destinations []GetCosBucketInventorysInventoryDestination
    Information about the inventory result destination.
    Filters []GetCosBucketInventorysInventoryFilter
    Filters objects prefixed with the specified value to analyze.
    Id string
    Whether to enable the inventory. true or false.
    IncludedObjectVersions string
    Whether to include object versions in the inventory. All or No.
    IsEnabled string
    Whether to enable the inventory. true or false.
    OptionalFields []GetCosBucketInventorysInventoryOptionalField
    Schedules []GetCosBucketInventorysInventorySchedule
    Inventory job cycle.
    destinations List<GetCosBucketInventorysInventoryDestination>
    Information about the inventory result destination.
    filters List<GetCosBucketInventorysInventoryFilter>
    Filters objects prefixed with the specified value to analyze.
    id String
    Whether to enable the inventory. true or false.
    includedObjectVersions String
    Whether to include object versions in the inventory. All or No.
    isEnabled String
    Whether to enable the inventory. true or false.
    optionalFields List<GetCosBucketInventorysInventoryOptionalField>
    schedules List<GetCosBucketInventorysInventorySchedule>
    Inventory job cycle.
    destinations GetCosBucketInventorysInventoryDestination[]
    Information about the inventory result destination.
    filters GetCosBucketInventorysInventoryFilter[]
    Filters objects prefixed with the specified value to analyze.
    id string
    Whether to enable the inventory. true or false.
    includedObjectVersions string
    Whether to include object versions in the inventory. All or No.
    isEnabled string
    Whether to enable the inventory. true or false.
    optionalFields GetCosBucketInventorysInventoryOptionalField[]
    schedules GetCosBucketInventorysInventorySchedule[]
    Inventory job cycle.
    destinations Sequence[GetCosBucketInventorysInventoryDestination]
    Information about the inventory result destination.
    filters Sequence[GetCosBucketInventorysInventoryFilter]
    Filters objects prefixed with the specified value to analyze.
    id str
    Whether to enable the inventory. true or false.
    included_object_versions str
    Whether to include object versions in the inventory. All or No.
    is_enabled str
    Whether to enable the inventory. true or false.
    optional_fields Sequence[GetCosBucketInventorysInventoryOptionalField]
    schedules Sequence[GetCosBucketInventorysInventorySchedule]
    Inventory job cycle.
    destinations List<Property Map>
    Information about the inventory result destination.
    filters List<Property Map>
    Filters objects prefixed with the specified value to analyze.
    id String
    Whether to enable the inventory. true or false.
    includedObjectVersions String
    Whether to include object versions in the inventory. All or No.
    isEnabled String
    Whether to enable the inventory. true or false.
    optionalFields List<Property Map>
    schedules List<Property Map>
    Inventory job cycle.

    GetCosBucketInventorysInventoryDestination

    AccountId string
    ID of the bucket owner.
    Bucket string
    Bucket.
    Encryptions List<GetCosBucketInventorysInventoryDestinationEncryption>
    Server-side encryption for the inventory result.
    Format string
    Format of the inventory result. Valid value: CSV.
    Prefix string
    Prefix of the objects to analyze.
    AccountId string
    ID of the bucket owner.
    Bucket string
    Bucket.
    Encryptions []GetCosBucketInventorysInventoryDestinationEncryption
    Server-side encryption for the inventory result.
    Format string
    Format of the inventory result. Valid value: CSV.
    Prefix string
    Prefix of the objects to analyze.
    accountId String
    ID of the bucket owner.
    bucket String
    Bucket.
    encryptions List<GetCosBucketInventorysInventoryDestinationEncryption>
    Server-side encryption for the inventory result.
    format String
    Format of the inventory result. Valid value: CSV.
    prefix String
    Prefix of the objects to analyze.
    accountId string
    ID of the bucket owner.
    bucket string
    Bucket.
    encryptions GetCosBucketInventorysInventoryDestinationEncryption[]
    Server-side encryption for the inventory result.
    format string
    Format of the inventory result. Valid value: CSV.
    prefix string
    Prefix of the objects to analyze.
    account_id str
    ID of the bucket owner.
    bucket str
    Bucket.
    encryptions Sequence[GetCosBucketInventorysInventoryDestinationEncryption]
    Server-side encryption for the inventory result.
    format str
    Format of the inventory result. Valid value: CSV.
    prefix str
    Prefix of the objects to analyze.
    accountId String
    ID of the bucket owner.
    bucket String
    Bucket.
    encryptions List<Property Map>
    Server-side encryption for the inventory result.
    format String
    Format of the inventory result. Valid value: CSV.
    prefix String
    Prefix of the objects to analyze.

    GetCosBucketInventorysInventoryDestinationEncryption

    SseCos string
    Encryption with COS-managed key. This field can be left empty.
    SseCos string
    Encryption with COS-managed key. This field can be left empty.
    sseCos String
    Encryption with COS-managed key. This field can be left empty.
    sseCos string
    Encryption with COS-managed key. This field can be left empty.
    sse_cos str
    Encryption with COS-managed key. This field can be left empty.
    sseCos String
    Encryption with COS-managed key. This field can be left empty.

    GetCosBucketInventorysInventoryFilter

    Periods List<GetCosBucketInventorysInventoryFilterPeriod>
    Creation time range of the objects to analyze.
    Prefix string
    Prefix of the objects to analyze.
    Periods []GetCosBucketInventorysInventoryFilterPeriod
    Creation time range of the objects to analyze.
    Prefix string
    Prefix of the objects to analyze.
    periods List<GetCosBucketInventorysInventoryFilterPeriod>
    Creation time range of the objects to analyze.
    prefix String
    Prefix of the objects to analyze.
    periods GetCosBucketInventorysInventoryFilterPeriod[]
    Creation time range of the objects to analyze.
    prefix string
    Prefix of the objects to analyze.
    periods Sequence[GetCosBucketInventorysInventoryFilterPeriod]
    Creation time range of the objects to analyze.
    prefix str
    Prefix of the objects to analyze.
    periods List<Property Map>
    Creation time range of the objects to analyze.
    prefix String
    Prefix of the objects to analyze.

    GetCosBucketInventorysInventoryFilterPeriod

    EndTime string
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    StartTime string
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    EndTime string
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    StartTime string
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    endTime String
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    startTime String
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    endTime string
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    startTime string
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    end_time str
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    start_time str
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.
    endTime String
    Creation end time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688762.
    startTime String
    Creation start time of the objects to analyze. The parameter is a timestamp in seconds, for example, 1568688761.

    GetCosBucketInventorysInventoryOptionalField

    Fields List<string>
    Fields []string
    fields List<String>
    fields string[]
    fields Sequence[str]
    fields List<String>

    GetCosBucketInventorysInventorySchedule

    Frequency string
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    Frequency string
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    frequency String
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    frequency string
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    frequency str
    Frequency of the inventory job. Enumerated values: Daily, Weekly.
    frequency String
    Frequency of the inventory job. Enumerated values: Daily, Weekly.

    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