Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of tos objects
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.tos.getBucketObjects({
bucketName: "test",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.tos.get_bucket_objects(bucket_name="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.GetBucketObjects(ctx, &tos.GetBucketObjectsArgs{
BucketName: "test",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Tos.GetBucketObjects.Invoke(new()
{
BucketName = "test",
});
});
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.GetBucketObjectsArgs;
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.getBucketObjects(GetBucketObjectsArgs.builder()
.bucketName("test")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:tos:getBucketObjects
Arguments:
bucketName: test
Using getBucketObjects
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 getBucketObjects(args: GetBucketObjectsArgs, opts?: InvokeOptions): Promise<GetBucketObjectsResult>
function getBucketObjectsOutput(args: GetBucketObjectsOutputArgs, opts?: InvokeOptions): Output<GetBucketObjectsResult>def get_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) -> GetBucketObjectsResult
def get_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[GetBucketObjectsResult]func GetBucketObjects(ctx *Context, args *GetBucketObjectsArgs, opts ...InvokeOption) (*GetBucketObjectsResult, error)
func GetBucketObjectsOutput(ctx *Context, args *GetBucketObjectsOutputArgs, opts ...InvokeOption) GetBucketObjectsResultOutput> Note: This function is named GetBucketObjects in the Go SDK.
public static class GetBucketObjects
{
public static Task<GetBucketObjectsResult> InvokeAsync(GetBucketObjectsArgs args, InvokeOptions? opts = null)
public static Output<GetBucketObjectsResult> Invoke(GetBucketObjectsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBucketObjectsResult> getBucketObjects(GetBucketObjectsArgs args, InvokeOptions options)
public static Output<GetBucketObjectsResult> getBucketObjects(GetBucketObjectsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:tos/getBucketObjects:getBucketObjects
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.
getBucketObjects Result
The following output properties are available:
- Bucket
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Objects
List<Get
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
[]Get
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<Get
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
Get
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[Get
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
GetBucketObjectsObject
- 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.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
