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 buckets
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.tos.getBuckets({
nameRegex: "test",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.tos.get_buckets(name_regex="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.GetBuckets(ctx, &tos.GetBucketsArgs{
NameRegex: pulumi.StringRef("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.GetBuckets.Invoke(new()
{
NameRegex = "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.GetBucketsArgs;
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.getBuckets(GetBucketsArgs.builder()
.nameRegex("test")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:tos:getBuckets
Arguments:
nameRegex: test
Using getBuckets
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 getBuckets(args: GetBucketsArgs, opts?: InvokeOptions): Promise<GetBucketsResult>
function getBucketsOutput(args: GetBucketsOutputArgs, opts?: InvokeOptions): Output<GetBucketsResult>def get_buckets(bucket_name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBucketsResult
def get_buckets_output(bucket_name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBucketsResult]func GetBuckets(ctx *Context, args *GetBucketsArgs, opts ...InvokeOption) (*GetBucketsResult, error)
func GetBucketsOutput(ctx *Context, args *GetBucketsOutputArgs, opts ...InvokeOption) GetBucketsResultOutput> Note: This function is named GetBuckets in the Go SDK.
public static class GetBuckets
{
public static Task<GetBucketsResult> InvokeAsync(GetBucketsArgs args, InvokeOptions? opts = null)
public static Output<GetBucketsResult> Invoke(GetBucketsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBucketsResult> getBuckets(GetBucketsArgs args, InvokeOptions options)
public static Output<GetBucketsResult> getBuckets(GetBucketsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:tos/getBuckets:getBuckets
arguments:
# arguments dictionaryThe following arguments are supported:
- Bucket
Name string - The name the TOS bucket.
- Name
Regex string - A Name Regex of TOS bucket.
- 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 bucket.
- 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 bucket.
- 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 bucket.
- 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 bucket.
- 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 bucket.
- output
File String - File name where to save data source results.
getBuckets Result
The following output properties are available:
- Buckets
List<Get
Buckets Bucket> - The collection of TOS bucket query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of TOS bucket query.
- Bucket
Name string - Name
Regex string - Output
File string
- Buckets
[]Get
Buckets Bucket - The collection of TOS bucket query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of TOS bucket query.
- Bucket
Name string - Name
Regex string - Output
File string
- buckets
List<Get
Buckets Bucket> - The collection of TOS bucket query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of TOS bucket query.
- bucket
Name String - name
Regex String - output
File String
- buckets
Get
Buckets Bucket[] - The collection of TOS bucket query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of TOS bucket query.
- bucket
Name string - name
Regex string - output
File string
- buckets
Sequence[Get
Buckets Bucket] - The collection of TOS bucket query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of TOS bucket query.
- bucket_
name str - name_
regex str - output_
file str
- buckets List<Property Map>
- The collection of TOS bucket query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of TOS bucket query.
- bucket
Name String - name
Regex String - output
File String
Supporting Types
GetBucketsBucket
- Creation
Date string - The create date of the TOS bucket.
- Extranet
Endpoint string - The extranet endpoint of the TOS bucket.
- Intranet
Endpoint string - The intranet endpoint the TOS bucket.
- Is
Truncated bool - (Deprecated) The Field is Deprecated. The truncated the TOS bucket.
- Location string
- The location of the TOS bucket.
- Marker string
- (Deprecated) The Field is Deprecated. The marker the TOS bucket.
- Max
Keys int - (Deprecated) The Field is Deprecated. The max keys the TOS bucket.
- Name string
- The name the TOS bucket.
- Prefix string
- (Deprecated) The Field is Deprecated. The prefix the TOS bucket.
- Creation
Date string - The create date of the TOS bucket.
- Extranet
Endpoint string - The extranet endpoint of the TOS bucket.
- Intranet
Endpoint string - The intranet endpoint the TOS bucket.
- Is
Truncated bool - (Deprecated) The Field is Deprecated. The truncated the TOS bucket.
- Location string
- The location of the TOS bucket.
- Marker string
- (Deprecated) The Field is Deprecated. The marker the TOS bucket.
- Max
Keys int - (Deprecated) The Field is Deprecated. The max keys the TOS bucket.
- Name string
- The name the TOS bucket.
- Prefix string
- (Deprecated) The Field is Deprecated. The prefix the TOS bucket.
- creation
Date String - The create date of the TOS bucket.
- extranet
Endpoint String - The extranet endpoint of the TOS bucket.
- intranet
Endpoint String - The intranet endpoint the TOS bucket.
- is
Truncated Boolean - (Deprecated) The Field is Deprecated. The truncated the TOS bucket.
- location String
- The location of the TOS bucket.
- marker String
- (Deprecated) The Field is Deprecated. The marker the TOS bucket.
- max
Keys Integer - (Deprecated) The Field is Deprecated. The max keys the TOS bucket.
- name String
- The name the TOS bucket.
- prefix String
- (Deprecated) The Field is Deprecated. The prefix the TOS bucket.
- creation
Date string - The create date of the TOS bucket.
- extranet
Endpoint string - The extranet endpoint of the TOS bucket.
- intranet
Endpoint string - The intranet endpoint the TOS bucket.
- is
Truncated boolean - (Deprecated) The Field is Deprecated. The truncated the TOS bucket.
- location string
- The location of the TOS bucket.
- marker string
- (Deprecated) The Field is Deprecated. The marker the TOS bucket.
- max
Keys number - (Deprecated) The Field is Deprecated. The max keys the TOS bucket.
- name string
- The name the TOS bucket.
- prefix string
- (Deprecated) The Field is Deprecated. The prefix the TOS bucket.
- creation_
date str - The create date of the TOS bucket.
- extranet_
endpoint str - The extranet endpoint of the TOS bucket.
- intranet_
endpoint str - The intranet endpoint the TOS bucket.
- is_
truncated bool - (Deprecated) The Field is Deprecated. The truncated the TOS bucket.
- location str
- The location of the TOS bucket.
- marker str
- (Deprecated) The Field is Deprecated. The marker the TOS bucket.
- max_
keys int - (Deprecated) The Field is Deprecated. The max keys the TOS bucket.
- name str
- The name the TOS bucket.
- prefix str
- (Deprecated) The Field is Deprecated. The prefix the TOS bucket.
- creation
Date String - The create date of the TOS bucket.
- extranet
Endpoint String - The extranet endpoint of the TOS bucket.
- intranet
Endpoint String - The intranet endpoint the TOS bucket.
- is
Truncated Boolean - (Deprecated) The Field is Deprecated. The truncated the TOS bucket.
- location String
- The location of the TOS bucket.
- marker String
- (Deprecated) The Field is Deprecated. The marker the TOS bucket.
- max
Keys Number - (Deprecated) The Field is Deprecated. The max keys the TOS bucket.
- name String
- The name the TOS bucket.
- prefix String
- (Deprecated) The Field is Deprecated. The prefix the TOS bucket.
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
