objectscale_bucket (Data Source)

This Data source Retrieves an Dell ObjectScale S3 bucket by name and gives its configuration and metadata (namespace, owner etc.)

Example Usage

/*
Copyright (c) 2025 Dell Inc., or its subsidiaries. All Rights Reserved.

Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/


Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

data "objectscale_bucket" "all" {
  namespace = "ns1"

  bucket_name_prefix = "1"
}

output "objectscale_buckets_all" {
  value = data.objectscale_bucket.all
}

Schema

Required

  • namespace (String) Name of the namespace.

Optional

  • bucket_name_prefix (String) Prefix of the Bucket name.

Read-Only

Nested Schema for buckets

Read-Only:

  • advanced_metadata_search_target_name (String) Advanced metadata search target name.
  • advanced_metadata_search_target_stream (String) Advanced metadata search target stream.
  • api_type (String) API type.
  • audit_delete_expiration (Number) Audit delete expiration in seconds.
  • auto_commit_period (Number) Auto-commit interval.
  • block_size (Number) Block size in GB.
  • block_size_in_count (Number) Block size in count.
  • created (String) Bucket creation time.
  • default_group (String) Bucket’s default group.
  • default_group_dir_execute_permission (Boolean) Directory execute permission for default group.
  • default_group_dir_read_permission (Boolean) Directory read permission for default group.
  • default_group_dir_write_permission (Boolean) Directory write permission for default group.
  • default_group_file_execute_permission (Boolean) File execute permission for default group.
  • default_group_file_read_permission (Boolean) Read permission for default group.
  • default_group_file_write_permission (Boolean) File write permission for default group.
  • default_object_lock_retention_days (Number) Default object lock retention days.
  • default_object_lock_retention_mode (String) Default object lock retention mode.
  • default_object_lock_retention_years (Number) Default object lock retention years.
  • default_retention (Number) Default bucket retention.
  • enable_advanced_metadata_search (Boolean) Enable advanced metadata search.
  • fs_access_enabled (Boolean) File system access enabled status.
  • id (String) Unique identifier generated by ECS for the bucket.
  • is_empty_bucket_in_progress (Boolean) If true, the bucket is being deleted (read-only until operation completes).
  • is_encryption_enabled (String) D@RE Bucket isEncryptionEnabled flag.
  • is_object_lock_enabled (Boolean) IsObjectLockEnabled flag.
  • is_object_lock_with_ado_allowed (Boolean) If true, Object Lock and ADO can be enabled together.
  • is_stale_allowed (Boolean) IsStaleAllowed flag.
  • is_tso_read_only (Boolean) IsTsoReadOnly flag.
  • local_object_metadata_reads (Boolean) Local object metadata reads bucket flag.
  • locked (Boolean) Locked status of the bucket.
  • min_max_governor (Attributes) Min/max governor for the bucket. (see below for nested schema)
  • name (String) Name assigned to this bucket resource in ECS.
  • namespace (String) Namespace of the bucket.
  • notification_size (Number) Notification size in GB.
  • notification_size_in_count (Number) Notification size in count.
  • owner (String) Bucket owner.
  • retention (Number) Default retention value for the bucket.
  • search_metadata (Attributes) Search metadata for the bucket. (see below for nested schema)
  • softquota (String) Bucket soft quota.
  • tag (Attributes List) Keywords and labels that can be added by a user to a resource to make it easy to find when doing a search. (see below for nested schema)
  • versioning_status (String) Bucket versioning status.
  • vpool (String) Replication group id.

Nested Schema for buckets.min_max_governor

Read-Only:

  • enforce_retention (Boolean) Enforce retention flag.
  • maximum_fixed_retention (Number) Maximum fixed retention.
  • maximum_variable_retention (Number) Maximum variable retention.
  • minimum_fixed_retention (Number) Minimum fixed retention.
  • minimum_variable_retention (Number) Minimum variable retention.

Nested Schema for buckets.search_metadata

Read-Only:

  • is_enabled (Boolean) Getter for the enabled flag.
  • max_keys (Number) Getter for maxKeys.
  • md_tokens (Boolean) Getter for the mdTokens flag.
  • metadata (Attributes List) Metadata keys associated with the bucket. (see below for nested schema)

Nested Schema for buckets.search_metadata.metadata

Read-Only:

  • datatype (String) The meta key data type.
  • name (String) The meta key name.
  • type (String) The meta key type.

Nested Schema for buckets.tag

Read-Only:

  • key (String) Tag key.
  • value (String) Tag value.