1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getObsBuckets
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getObsBuckets

Explore with Pulumi AI

flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

Use this data source to get all OBS buckets.

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const buckets = flexibleengine.getObsBuckets({
    bucket: "your-bucket-name",
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

buckets = flexibleengine.get_obs_buckets(bucket="your-bucket-name")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.GetObsBuckets(ctx, &flexibleengine.GetObsBucketsArgs{
			Bucket: pulumi.StringRef("your-bucket-name"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var buckets = Flexibleengine.GetObsBuckets.Invoke(new()
    {
        Bucket = "your-bucket-name",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetObsBucketsArgs;
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 buckets = FlexibleengineFunctions.getObsBuckets(GetObsBucketsArgs.builder()
            .bucket("your-bucket-name")
            .build());

    }
}
Copy
variables:
  buckets:
    fn::invoke:
      function: flexibleengine:getObsBuckets
      arguments:
        bucket: your-bucket-name
Copy

Using getObsBuckets

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 getObsBuckets(args: GetObsBucketsArgs, opts?: InvokeOptions): Promise<GetObsBucketsResult>
function getObsBucketsOutput(args: GetObsBucketsOutputArgs, opts?: InvokeOptions): Output<GetObsBucketsResult>
Copy
def get_obs_buckets(bucket: Optional[str] = None,
                    enterprise_project_id: Optional[str] = None,
                    id: Optional[str] = None,
                    region: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetObsBucketsResult
def get_obs_buckets_output(bucket: Optional[pulumi.Input[str]] = None,
                    enterprise_project_id: Optional[pulumi.Input[str]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    region: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetObsBucketsResult]
Copy
func GetObsBuckets(ctx *Context, args *GetObsBucketsArgs, opts ...InvokeOption) (*GetObsBucketsResult, error)
func GetObsBucketsOutput(ctx *Context, args *GetObsBucketsOutputArgs, opts ...InvokeOption) GetObsBucketsResultOutput
Copy

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

public static class GetObsBuckets 
{
    public static Task<GetObsBucketsResult> InvokeAsync(GetObsBucketsArgs args, InvokeOptions? opts = null)
    public static Output<GetObsBucketsResult> Invoke(GetObsBucketsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetObsBucketsResult> getObsBuckets(GetObsBucketsArgs args, InvokeOptions options)
public static Output<GetObsBucketsResult> getObsBuckets(GetObsBucketsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getObsBuckets:getObsBuckets
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Bucket string
The name of the OBS bucket.
EnterpriseProjectId string
The enterprise project id of the OBS bucket.
Id string
The ID of the list.
Region string
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
Bucket string
The name of the OBS bucket.
EnterpriseProjectId string
The enterprise project id of the OBS bucket.
Id string
The ID of the list.
Region string
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
bucket String
The name of the OBS bucket.
enterpriseProjectId String
The enterprise project id of the OBS bucket.
id String
The ID of the list.
region String
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
bucket string
The name of the OBS bucket.
enterpriseProjectId string
The enterprise project id of the OBS bucket.
id string
The ID of the list.
region string
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
bucket str
The name of the OBS bucket.
enterprise_project_id str
The enterprise project id of the OBS bucket.
id str
The ID of the list.
region str
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
bucket String
The name of the OBS bucket.
enterpriseProjectId String
The enterprise project id of the OBS bucket.
id String
The ID of the list.
region String
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.

getObsBuckets Result

The following output properties are available:

Buckets List<GetObsBucketsBucket>
A list of OBS buckets. The buckets object structure is documented below.
Id string
The ID of the list.
Bucket string
The name of the OBS bucket.
EnterpriseProjectId string
The enterprise project id of the OBS bucket.
Region string
The region where the OBS bucket belongs.
Buckets []GetObsBucketsBucket
A list of OBS buckets. The buckets object structure is documented below.
Id string
The ID of the list.
Bucket string
The name of the OBS bucket.
EnterpriseProjectId string
The enterprise project id of the OBS bucket.
Region string
The region where the OBS bucket belongs.
buckets List<GetObsBucketsBucket>
A list of OBS buckets. The buckets object structure is documented below.
id String
The ID of the list.
bucket String
The name of the OBS bucket.
enterpriseProjectId String
The enterprise project id of the OBS bucket.
region String
The region where the OBS bucket belongs.
buckets GetObsBucketsBucket[]
A list of OBS buckets. The buckets object structure is documented below.
id string
The ID of the list.
bucket string
The name of the OBS bucket.
enterpriseProjectId string
The enterprise project id of the OBS bucket.
region string
The region where the OBS bucket belongs.
buckets Sequence[GetObsBucketsBucket]
A list of OBS buckets. The buckets object structure is documented below.
id str
The ID of the list.
bucket str
The name of the OBS bucket.
enterprise_project_id str
The enterprise project id of the OBS bucket.
region str
The region where the OBS bucket belongs.
buckets List<Property Map>
A list of OBS buckets. The buckets object structure is documented below.
id String
The ID of the list.
bucket String
The name of the OBS bucket.
enterpriseProjectId String
The enterprise project id of the OBS bucket.
region String
The region where the OBS bucket belongs.

Supporting Types

GetObsBucketsBucket

Bucket This property is required. string
The name of the OBS bucket.
CreatedAt This property is required. string
The date when the OBS bucket was created.
EnterpriseProjectId This property is required. string
The enterprise project id of the OBS bucket.
Region This property is required. string
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
StorageClass This property is required. string
The storage class of the OBS bucket.
Bucket This property is required. string
The name of the OBS bucket.
CreatedAt This property is required. string
The date when the OBS bucket was created.
EnterpriseProjectId This property is required. string
The enterprise project id of the OBS bucket.
Region This property is required. string
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
StorageClass This property is required. string
The storage class of the OBS bucket.
bucket This property is required. String
The name of the OBS bucket.
createdAt This property is required. String
The date when the OBS bucket was created.
enterpriseProjectId This property is required. String
The enterprise project id of the OBS bucket.
region This property is required. String
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
storageClass This property is required. String
The storage class of the OBS bucket.
bucket This property is required. string
The name of the OBS bucket.
createdAt This property is required. string
The date when the OBS bucket was created.
enterpriseProjectId This property is required. string
The enterprise project id of the OBS bucket.
region This property is required. string
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
storageClass This property is required. string
The storage class of the OBS bucket.
bucket This property is required. str
The name of the OBS bucket.
created_at This property is required. str
The date when the OBS bucket was created.
enterprise_project_id This property is required. str
The enterprise project id of the OBS bucket.
region This property is required. str
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
storage_class This property is required. str
The storage class of the OBS bucket.
bucket This property is required. String
The name of the OBS bucket.
createdAt This property is required. String
The date when the OBS bucket was created.
enterpriseProjectId This property is required. String
The enterprise project id of the OBS bucket.
region This property is required. String
The region in which to obtain the OBS bucket. If omitted, the provider-level region will be used.
storageClass This property is required. String
The storage class of the OBS bucket.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud