opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getObsBucket
Explore with Pulumi AI
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
Up-to-date reference of API arguments for OBS bucket you can get at documentation portal
Use this data source to get details about bucket within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const bucket = opentelekomcloud.getObsBucket({
bucket: "my-test-bucket",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
bucket = opentelekomcloud.get_obs_bucket(bucket="my-test-bucket")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.LookupObsBucket(ctx, &opentelekomcloud.LookupObsBucketArgs{
Bucket: "my-test-bucket",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var bucket = Opentelekomcloud.GetObsBucket.Invoke(new()
{
Bucket = "my-test-bucket",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
import com.pulumi.opentelekomcloud.inputs.GetObsBucketArgs;
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 bucket = OpentelekomcloudFunctions.getObsBucket(GetObsBucketArgs.builder()
.bucket("my-test-bucket")
.build());
}
}
variables:
bucket:
fn::invoke:
function: opentelekomcloud:getObsBucket
arguments:
bucket: my-test-bucket
Using getObsBucket
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 getObsBucket(args: GetObsBucketArgs, opts?: InvokeOptions): Promise<GetObsBucketResult>
function getObsBucketOutput(args: GetObsBucketOutputArgs, opts?: InvokeOptions): Output<GetObsBucketResult>
def get_obs_bucket(bucket: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetObsBucketResult
def get_obs_bucket_output(bucket: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetObsBucketResult]
func LookupObsBucket(ctx *Context, args *LookupObsBucketArgs, opts ...InvokeOption) (*LookupObsBucketResult, error)
func LookupObsBucketOutput(ctx *Context, args *LookupObsBucketOutputArgs, opts ...InvokeOption) LookupObsBucketResultOutput
> Note: This function is named LookupObsBucket
in the Go SDK.
public static class GetObsBucket
{
public static Task<GetObsBucketResult> InvokeAsync(GetObsBucketArgs args, InvokeOptions? opts = null)
public static Output<GetObsBucketResult> Invoke(GetObsBucketInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetObsBucketResult> getObsBucket(GetObsBucketArgs args, InvokeOptions options)
public static Output<GetObsBucketResult> getObsBucket(GetObsBucketArgs args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getObsBucket:getObsBucket
arguments:
# arguments dictionary
The following arguments are supported:
getObsBucket Result
The following output properties are available:
- Bucket string
- Bucket
Domain stringName - The bucket domain name. Will be of format
bucketname.obs.region.otc.t-systems.com
. - Cors
Rules List<GetObs Bucket Cors Rule> - A rule of Cross-Origin Resource Sharing (documented below).
- Event
Notifications List<GetObs Bucket Event Notification> - A configuration of bucket event notifications (documented below).
- Id string
- Lifecycle
Rules List<GetObs Bucket Lifecycle Rule> - A configuration of object lifecycle management (documented below).
- Loggings
List<Get
Obs Bucket Logging> - A settings of bucket logging (documented below).
- Region string
- The region this bucket resides in.
- Server
Side List<GetEncryptions Obs Bucket Server Side Encryption> - A configuration of server side encryption (documented below).
- Storage
Class string - The class of storage used to store the object.
- Dictionary<string, string>
- A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
- Versioning bool
- Websites
List<Get
Obs Bucket Website> - A website object (documented below).
- Bucket string
- Bucket
Domain stringName - The bucket domain name. Will be of format
bucketname.obs.region.otc.t-systems.com
. - Cors
Rules []GetObs Bucket Cors Rule - A rule of Cross-Origin Resource Sharing (documented below).
- Event
Notifications []GetObs Bucket Event Notification - A configuration of bucket event notifications (documented below).
- Id string
- Lifecycle
Rules []GetObs Bucket Lifecycle Rule - A configuration of object lifecycle management (documented below).
- Loggings
[]Get
Obs Bucket Logging - A settings of bucket logging (documented below).
- Region string
- The region this bucket resides in.
- Server
Side []GetEncryptions Obs Bucket Server Side Encryption - A configuration of server side encryption (documented below).
- Storage
Class string - The class of storage used to store the object.
- map[string]string
- A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
- Versioning bool
- Websites
[]Get
Obs Bucket Website - A website object (documented below).
- bucket String
- bucket
Domain StringName - The bucket domain name. Will be of format
bucketname.obs.region.otc.t-systems.com
. - cors
Rules List<GetObs Bucket Cors Rule> - A rule of Cross-Origin Resource Sharing (documented below).
- event
Notifications List<GetObs Bucket Event Notification> - A configuration of bucket event notifications (documented below).
- id String
- lifecycle
Rules List<GetObs Bucket Lifecycle Rule> - A configuration of object lifecycle management (documented below).
- loggings
List<Get
Obs Bucket Logging> - A settings of bucket logging (documented below).
- region String
- The region this bucket resides in.
- server
Side List<GetEncryptions Obs Bucket Server Side Encryption> - A configuration of server side encryption (documented below).
- storage
Class String - The class of storage used to store the object.
- Map<String,String>
- A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
- versioning Boolean
- websites
List<Get
Obs Bucket Website> - A website object (documented below).
- bucket string
- bucket
Domain stringName - The bucket domain name. Will be of format
bucketname.obs.region.otc.t-systems.com
. - cors
Rules GetObs Bucket Cors Rule[] - A rule of Cross-Origin Resource Sharing (documented below).
- event
Notifications GetObs Bucket Event Notification[] - A configuration of bucket event notifications (documented below).
- id string
- lifecycle
Rules GetObs Bucket Lifecycle Rule[] - A configuration of object lifecycle management (documented below).
- loggings
Get
Obs Bucket Logging[] - A settings of bucket logging (documented below).
- region string
- The region this bucket resides in.
- server
Side GetEncryptions Obs Bucket Server Side Encryption[] - A configuration of server side encryption (documented below).
- storage
Class string - The class of storage used to store the object.
- {[key: string]: string}
- A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
- versioning boolean
- websites
Get
Obs Bucket Website[] - A website object (documented below).
- bucket str
- bucket_
domain_ strname - The bucket domain name. Will be of format
bucketname.obs.region.otc.t-systems.com
. - cors_
rules Sequence[GetObs Bucket Cors Rule] - A rule of Cross-Origin Resource Sharing (documented below).
- event_
notifications Sequence[GetObs Bucket Event Notification] - A configuration of bucket event notifications (documented below).
- id str
- lifecycle_
rules Sequence[GetObs Bucket Lifecycle Rule] - A configuration of object lifecycle management (documented below).
- loggings
Sequence[Get
Obs Bucket Logging] - A settings of bucket logging (documented below).
- region str
- The region this bucket resides in.
- server_
side_ Sequence[Getencryptions Obs Bucket Server Side Encryption] - A configuration of server side encryption (documented below).
- storage_
class str - The class of storage used to store the object.
- Mapping[str, str]
- A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
- versioning bool
- websites
Sequence[Get
Obs Bucket Website] - A website object (documented below).
- bucket String
- bucket
Domain StringName - The bucket domain name. Will be of format
bucketname.obs.region.otc.t-systems.com
. - cors
Rules List<Property Map> - A rule of Cross-Origin Resource Sharing (documented below).
- event
Notifications List<Property Map> - A configuration of bucket event notifications (documented below).
- id String
- lifecycle
Rules List<Property Map> - A configuration of object lifecycle management (documented below).
- loggings List<Property Map>
- A settings of bucket logging (documented below).
- region String
- The region this bucket resides in.
- server
Side List<Property Map>Encryptions - A configuration of server side encryption (documented below).
- storage
Class String - The class of storage used to store the object.
- Map<String>
- A mapping of tags to assign to the bucket. Each tag is represented by one key-value pair.
- versioning Boolean
- websites List<Property Map>
- A website object (documented below).
Supporting Types
GetObsBucketCorsRule
- Allowed
Headers List<string> - Allowed
Methods List<string> - Allowed
Origins List<string> - Expose
Headers List<string> - Max
Age doubleSeconds
- Allowed
Headers []string - Allowed
Methods []string - Allowed
Origins []string - Expose
Headers []string - Max
Age float64Seconds
- allowed
Headers List<String> - allowed
Methods List<String> - allowed
Origins List<String> - expose
Headers List<String> - max
Age DoubleSeconds
- allowed
Headers string[] - allowed
Methods string[] - allowed
Origins string[] - expose
Headers string[] - max
Age numberSeconds
- allowed_
headers Sequence[str] - allowed_
methods Sequence[str] - allowed_
origins Sequence[str] - expose_
headers Sequence[str] - max_
age_ floatseconds
- allowed
Headers List<String> - allowed
Methods List<String> - allowed
Origins List<String> - expose
Headers List<String> - max
Age NumberSeconds
GetObsBucketEventNotification
- Events List<string>
- Filter
Rules List<GetObs Bucket Event Notification Filter Rule> - Id string
- Topic string
- Events []string
- Filter
Rules []GetObs Bucket Event Notification Filter Rule - Id string
- Topic string
- events List<String>
- filter
Rules List<GetObs Bucket Event Notification Filter Rule> - id String
- topic String
- events string[]
- filter
Rules GetObs Bucket Event Notification Filter Rule[] - id string
- topic string
- events Sequence[str]
- filter_
rules Sequence[GetObs Bucket Event Notification Filter Rule] - id str
- topic str
- events List<String>
- filter
Rules List<Property Map> - id String
- topic String
GetObsBucketEventNotificationFilterRule
GetObsBucketLifecycleRule
- Enabled bool
- Specifies lifecycle rule status.
- Expirations
List<Get
Obs Bucket Lifecycle Rule Expiration> - Specifies a period when objects that have been last updated are automatically deleted. (documented below).
- Name string
- Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.
- Noncurrent
Version List<GetExpirations Obs Bucket Lifecycle Rule Noncurrent Version Expiration> - Specifies a period when noncurrent object versions are automatically deleted. (documented below).
- Noncurrent
Version List<GetTransitions Obs Bucket Lifecycle Rule Noncurrent Version Transition> - Specifies a period when noncurrent object versions are
automatically transitioned to
WARM
orCOLD
storage class (documented below). - Prefix string
- Object key prefix identifying one or more objects to which the rule applies.
- Transitions
List<Get
Obs Bucket Lifecycle Rule Transition> - Specifies a period when objects that have been last updated are automatically
transitioned to
WARM
orCOLD
storage class (documented below).
- Enabled bool
- Specifies lifecycle rule status.
- Expirations
[]Get
Obs Bucket Lifecycle Rule Expiration - Specifies a period when objects that have been last updated are automatically deleted. (documented below).
- Name string
- Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.
- Noncurrent
Version []GetExpirations Obs Bucket Lifecycle Rule Noncurrent Version Expiration - Specifies a period when noncurrent object versions are automatically deleted. (documented below).
- Noncurrent
Version []GetTransitions Obs Bucket Lifecycle Rule Noncurrent Version Transition - Specifies a period when noncurrent object versions are
automatically transitioned to
WARM
orCOLD
storage class (documented below). - Prefix string
- Object key prefix identifying one or more objects to which the rule applies.
- Transitions
[]Get
Obs Bucket Lifecycle Rule Transition - Specifies a period when objects that have been last updated are automatically
transitioned to
WARM
orCOLD
storage class (documented below).
- enabled Boolean
- Specifies lifecycle rule status.
- expirations
List<Get
Obs Bucket Lifecycle Rule Expiration> - Specifies a period when objects that have been last updated are automatically deleted. (documented below).
- name String
- Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.
- noncurrent
Version List<GetExpirations Obs Bucket Lifecycle Rule Noncurrent Version Expiration> - Specifies a period when noncurrent object versions are automatically deleted. (documented below).
- noncurrent
Version List<GetTransitions Obs Bucket Lifecycle Rule Noncurrent Version Transition> - Specifies a period when noncurrent object versions are
automatically transitioned to
WARM
orCOLD
storage class (documented below). - prefix String
- Object key prefix identifying one or more objects to which the rule applies.
- transitions
List<Get
Obs Bucket Lifecycle Rule Transition> - Specifies a period when objects that have been last updated are automatically
transitioned to
WARM
orCOLD
storage class (documented below).
- enabled boolean
- Specifies lifecycle rule status.
- expirations
Get
Obs Bucket Lifecycle Rule Expiration[] - Specifies a period when objects that have been last updated are automatically deleted. (documented below).
- name string
- Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.
- noncurrent
Version GetExpirations Obs Bucket Lifecycle Rule Noncurrent Version Expiration[] - Specifies a period when noncurrent object versions are automatically deleted. (documented below).
- noncurrent
Version GetTransitions Obs Bucket Lifecycle Rule Noncurrent Version Transition[] - Specifies a period when noncurrent object versions are
automatically transitioned to
WARM
orCOLD
storage class (documented below). - prefix string
- Object key prefix identifying one or more objects to which the rule applies.
- transitions
Get
Obs Bucket Lifecycle Rule Transition[] - Specifies a period when objects that have been last updated are automatically
transitioned to
WARM
orCOLD
storage class (documented below).
- enabled bool
- Specifies lifecycle rule status.
- expirations
Sequence[Get
Obs Bucket Lifecycle Rule Expiration] - Specifies a period when objects that have been last updated are automatically deleted. (documented below).
- name str
- Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.
- noncurrent_
version_ Sequence[Getexpirations Obs Bucket Lifecycle Rule Noncurrent Version Expiration] - Specifies a period when noncurrent object versions are automatically deleted. (documented below).
- noncurrent_
version_ Sequence[Gettransitions Obs Bucket Lifecycle Rule Noncurrent Version Transition] - Specifies a period when noncurrent object versions are
automatically transitioned to
WARM
orCOLD
storage class (documented below). - prefix str
- Object key prefix identifying one or more objects to which the rule applies.
- transitions
Sequence[Get
Obs Bucket Lifecycle Rule Transition] - Specifies a period when objects that have been last updated are automatically
transitioned to
WARM
orCOLD
storage class (documented below).
- enabled Boolean
- Specifies lifecycle rule status.
- expirations List<Property Map>
- Specifies a period when objects that have been last updated are automatically deleted. (documented below).
- name String
- Unique identifier for lifecycle rules. The Rule Name contains a maximum of 255 characters.
- noncurrent
Version List<Property Map>Expirations - Specifies a period when noncurrent object versions are automatically deleted. (documented below).
- noncurrent
Version List<Property Map>Transitions - Specifies a period when noncurrent object versions are
automatically transitioned to
WARM
orCOLD
storage class (documented below). - prefix String
- Object key prefix identifying one or more objects to which the rule applies.
- transitions List<Property Map>
- Specifies a period when objects that have been last updated are automatically
transitioned to
WARM
orCOLD
storage class (documented below).
GetObsBucketLifecycleRuleExpiration
- Days double
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- Days float64
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- days Double
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- days number
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- days float
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- days Number
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
GetObsBucketLifecycleRuleNoncurrentVersionExpiration
- Days double
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- Days float64
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- days Double
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- days number
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- days float
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- days Number
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
GetObsBucketLifecycleRuleNoncurrentVersionTransition
- Days double
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- Storage
Class string - The class of storage used to store the object.
- Days float64
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- Storage
Class string - The class of storage used to store the object.
- days Double
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- storage
Class String - The class of storage used to store the object.
- days number
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- storage
Class string - The class of storage used to store the object.
- days float
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- storage_
class str - The class of storage used to store the object.
- days Number
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- storage
Class String - The class of storage used to store the object.
GetObsBucketLifecycleRuleTransition
- Days double
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- Storage
Class string - The class of storage used to store the object.
- Days float64
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- Storage
Class string - The class of storage used to store the object.
- days Double
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- storage
Class String - The class of storage used to store the object.
- days number
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- storage
Class string - The class of storage used to store the object.
- days float
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- storage_
class str - The class of storage used to store the object.
- days Number
- Specifies the number of days when noncurrent object versions are automatically transitioned to the specified storage class.
- storage
Class String - The class of storage used to store the object.
GetObsBucketLogging
- Target
Bucket string - The name of the bucket that will receive the log objects.
- Target
Prefix string - To specify a key prefix for log objects.
- Target
Bucket string - The name of the bucket that will receive the log objects.
- Target
Prefix string - To specify a key prefix for log objects.
- target
Bucket String - The name of the bucket that will receive the log objects.
- target
Prefix String - To specify a key prefix for log objects.
- target
Bucket string - The name of the bucket that will receive the log objects.
- target
Prefix string - To specify a key prefix for log objects.
- target_
bucket str - The name of the bucket that will receive the log objects.
- target_
prefix str - To specify a key prefix for log objects.
- target
Bucket String - The name of the bucket that will receive the log objects.
- target
Prefix String - To specify a key prefix for log objects.
GetObsBucketServerSideEncryption
- algorithm str
- kms_
key_ strid
GetObsBucketWebsite
- Error
Document string - Specifies the error page returned when an error occurs during static website access.
- Index
Document string - Specifies the default homepage of the static website, only HTML web pages are supported.
- Redirect
All stringRequests To - A hostname to redirect all website requests for this bucket to.
- Routing
Rules string - A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied.
- Error
Document string - Specifies the error page returned when an error occurs during static website access.
- Index
Document string - Specifies the default homepage of the static website, only HTML web pages are supported.
- Redirect
All stringRequests To - A hostname to redirect all website requests for this bucket to.
- Routing
Rules string - A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied.
- error
Document String - Specifies the error page returned when an error occurs during static website access.
- index
Document String - Specifies the default homepage of the static website, only HTML web pages are supported.
- redirect
All StringRequests To - A hostname to redirect all website requests for this bucket to.
- routing
Rules String - A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied.
- error
Document string - Specifies the error page returned when an error occurs during static website access.
- index
Document string - Specifies the default homepage of the static website, only HTML web pages are supported.
- redirect
All stringRequests To - A hostname to redirect all website requests for this bucket to.
- routing
Rules string - A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied.
- error_
document str - Specifies the error page returned when an error occurs during static website access.
- index_
document str - Specifies the default homepage of the static website, only HTML web pages are supported.
- redirect_
all_ strrequests_ to - A hostname to redirect all website requests for this bucket to.
- routing_
rules str - A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied.
- error
Document String - Specifies the error page returned when an error occurs during static website access.
- index
Document String - Specifies the default homepage of the static website, only HTML web pages are supported.
- redirect
All StringRequests To - A hostname to redirect all website requests for this bucket to.
- routing
Rules String - A JSON or XML format containing routing rules describing redirect behavior and when redirects are applied.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud