Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.tos.BucketObjects
Explore with Pulumi AI
Use this data source to query detailed information of tos objects
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var @default = Volcengine.Tos.BucketObjects.Invoke(new()
    {
        BucketName = "test",
    });
});
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tos"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tos.BucketObjects(ctx, &tos.BucketObjectsArgs{
			BucketName: "test",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tos.TosFunctions;
import com.pulumi.volcengine.tos.inputs.BucketObjectsArgs;
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 default = TosFunctions.BucketObjects(BucketObjectsArgs.builder()
            .bucketName("test")
            .build());
    }
}
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.tos.bucket_objects(bucket_name="test")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.tos.BucketObjects({
    bucketName: "test",
});
variables:
  default:
    fn::invoke:
      Function: volcengine:tos:BucketObjects
      Arguments:
        bucketName: test
Using BucketObjects
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 bucketObjects(args: BucketObjectsArgs, opts?: InvokeOptions): Promise<BucketObjectsResult>
function bucketObjectsOutput(args: BucketObjectsOutputArgs, opts?: InvokeOptions): Output<BucketObjectsResult>def bucket_objects(bucket_name: Optional[str] = None,
                   name_regex: Optional[str] = None,
                   object_name: Optional[str] = None,
                   output_file: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> BucketObjectsResult
def bucket_objects_output(bucket_name: Optional[pulumi.Input[str]] = None,
                   name_regex: Optional[pulumi.Input[str]] = None,
                   object_name: Optional[pulumi.Input[str]] = None,
                   output_file: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[BucketObjectsResult]func BucketObjects(ctx *Context, args *BucketObjectsArgs, opts ...InvokeOption) (*BucketObjectsResult, error)
func BucketObjectsOutput(ctx *Context, args *BucketObjectsOutputArgs, opts ...InvokeOption) BucketObjectsResultOutputpublic static class BucketObjects 
{
    public static Task<BucketObjectsResult> InvokeAsync(BucketObjectsArgs args, InvokeOptions? opts = null)
    public static Output<BucketObjectsResult> Invoke(BucketObjectsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<BucketObjectsResult> bucketObjects(BucketObjectsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: volcengine:tos:BucketObjects
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Bucket
Name string - The name the TOS bucket.
 - Name
Regex string - A Name Regex of TOS Object.
 - Object
Name string - The name the TOS Object.
 - Output
File string - File name where to save data source results.
 
- Bucket
Name string - The name the TOS bucket.
 - Name
Regex string - A Name Regex of TOS Object.
 - Object
Name string - The name the TOS Object.
 - Output
File string - File name where to save data source results.
 
- bucket
Name String - The name the TOS bucket.
 - name
Regex String - A Name Regex of TOS Object.
 - object
Name String - The name the TOS Object.
 - output
File String - File name where to save data source results.
 
- bucket
Name string - The name the TOS bucket.
 - name
Regex string - A Name Regex of TOS Object.
 - object
Name string - The name the TOS Object.
 - output
File string - File name where to save data source results.
 
- bucket_
name str - The name the TOS bucket.
 - name_
regex str - A Name Regex of TOS Object.
 - object_
name str - The name the TOS Object.
 - output_
file str - File name where to save data source results.
 
- bucket
Name String - The name the TOS bucket.
 - name
Regex String - A Name Regex of TOS Object.
 - object
Name String - The name the TOS Object.
 - output
File String - File name where to save data source results.
 
BucketObjects Result
The following output properties are available:
- Bucket
Name string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Objects
List<Bucket
Objects Object>  - The collection of TOS Object query.
 - Total
Count int - The total count of TOS Object query.
 - Name
Regex string - Object
Name string - Output
File string 
- Bucket
Name string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Objects
[]Bucket
Objects Object  - The collection of TOS Object query.
 - Total
Count int - The total count of TOS Object query.
 - Name
Regex string - Object
Name string - Output
File string 
- bucket
Name String - id String
 - The provider-assigned unique ID for this managed resource.
 - objects
List<Bucket
Objects Object>  - The collection of TOS Object query.
 - total
Count Integer - The total count of TOS Object query.
 - name
Regex String - object
Name String - output
File String 
- bucket
Name string - id string
 - The provider-assigned unique ID for this managed resource.
 - objects
Bucket
Objects Object[]  - The collection of TOS Object query.
 - total
Count number - The total count of TOS Object query.
 - name
Regex string - object
Name string - output
File string 
- bucket_
name str - id str
 - The provider-assigned unique ID for this managed resource.
 - objects
Sequence[Bucket
Objects Object]  - The collection of TOS Object query.
 - total_
count int - The total count of TOS Object query.
 - name_
regex str - object_
name str - output_
file str 
- bucket
Name String - id String
 - The provider-assigned unique ID for this managed resource.
 - objects List<Property Map>
 - The collection of TOS Object query.
 - total
Count Number - The total count of TOS Object query.
 - name
Regex String - object
Name String - output
File String 
Supporting Types
BucketObjectsObject  
- Content string
 - The content the TOS Object when content type is json or text and xml.
 - Name string
 - The name the TOS Object.
 - Size int
 - The name the TOS Object size.
 - Storage
Class string - The name the TOS Object storage class.
 
- Content string
 - The content the TOS Object when content type is json or text and xml.
 - Name string
 - The name the TOS Object.
 - Size int
 - The name the TOS Object size.
 - Storage
Class string - The name the TOS Object storage class.
 
- content String
 - The content the TOS Object when content type is json or text and xml.
 - name String
 - The name the TOS Object.
 - size Integer
 - The name the TOS Object size.
 - storage
Class String - The name the TOS Object storage class.
 
- content string
 - The content the TOS Object when content type is json or text and xml.
 - name string
 - The name the TOS Object.
 - size number
 - The name the TOS Object size.
 - storage
Class string - The name the TOS Object storage class.
 
- content str
 - The content the TOS Object when content type is json or text and xml.
 - name str
 - The name the TOS Object.
 - size int
 - The name the TOS Object size.
 - storage_
class str - The name the TOS Object storage class.
 
- content String
 - The content the TOS Object when content type is json or text and xml.
 - name String
 - The name the TOS Object.
 - size Number
 - The name the TOS Object size.
 - storage
Class String - The name the TOS Object storage class.
 
Package Details
- Repository
 - volcengine volcengine/pulumi-volcengine
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
volcengineTerraform Provider.