1. Packages
  2. Packages
  3. stackit
  4. API Docs
  5. getObjectstorageBucket
Viewing docs for stackit v0.0.5
published on Tuesday, Mar 31, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.5
published on Tuesday, Mar 31, 2026 by stackitcloud

    ObjectStorage bucket data source schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_objectstorage_bucket" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "example-name"
    }
    

    Using getObjectstorageBucket

    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 getObjectstorageBucket(args: GetObjectstorageBucketArgs, opts?: InvokeOptions): Promise<GetObjectstorageBucketResult>
    function getObjectstorageBucketOutput(args: GetObjectstorageBucketOutputArgs, opts?: InvokeOptions): Output<GetObjectstorageBucketResult>
    def get_objectstorage_bucket(name: Optional[str] = None,
                                 project_id: Optional[str] = None,
                                 region: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetObjectstorageBucketResult
    def get_objectstorage_bucket_output(name: pulumi.Input[Optional[str]] = None,
                                 project_id: pulumi.Input[Optional[str]] = None,
                                 region: pulumi.Input[Optional[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetObjectstorageBucketResult]
    func LookupObjectstorageBucket(ctx *Context, args *LookupObjectstorageBucketArgs, opts ...InvokeOption) (*LookupObjectstorageBucketResult, error)
    func LookupObjectstorageBucketOutput(ctx *Context, args *LookupObjectstorageBucketOutputArgs, opts ...InvokeOption) LookupObjectstorageBucketResultOutput

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

    public static class GetObjectstorageBucket 
    {
        public static Task<GetObjectstorageBucketResult> InvokeAsync(GetObjectstorageBucketArgs args, InvokeOptions? opts = null)
        public static Output<GetObjectstorageBucketResult> Invoke(GetObjectstorageBucketInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetObjectstorageBucketResult> getObjectstorageBucket(GetObjectstorageBucketArgs args, InvokeOptions options)
    public static Output<GetObjectstorageBucketResult> getObjectstorageBucket(GetObjectstorageBucketArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getObjectstorageBucket:getObjectstorageBucket
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The bucket name. It must be DNS conform.
    ProjectId string
    STACKIT Project ID to which the bucket is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    Name string
    The bucket name. It must be DNS conform.
    ProjectId string
    STACKIT Project ID to which the bucket is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    name String
    The bucket name. It must be DNS conform.
    projectId String
    STACKIT Project ID to which the bucket is associated.
    region String
    The resource region. If not defined, the provider region is used.
    name string
    The bucket name. It must be DNS conform.
    projectId string
    STACKIT Project ID to which the bucket is associated.
    region string
    The resource region. If not defined, the provider region is used.
    name str
    The bucket name. It must be DNS conform.
    project_id str
    STACKIT Project ID to which the bucket is associated.
    region str
    The resource region. If not defined, the provider region is used.
    name String
    The bucket name. It must be DNS conform.
    projectId String
    STACKIT Project ID to which the bucket is associated.
    region String
    The resource region. If not defined, the provider region is used.

    getObjectstorageBucket Result

    The following output properties are available:

    Id string
    Terraform's internal data source identifier. It is structured as "projectId,region,name".
    Name string
    The bucket name. It must be DNS conform.
    ObjectLock bool
    Enable Object Lock on this bucket. Can only be set at creation time. Requires an active project-level compliance lock.
    ProjectId string
    STACKIT Project ID to which the bucket is associated.
    UrlPathStyle string
    UrlVirtualHostedStyle string
    Region string
    The resource region. If not defined, the provider region is used.
    Id string
    Terraform's internal data source identifier. It is structured as "projectId,region,name".
    Name string
    The bucket name. It must be DNS conform.
    ObjectLock bool
    Enable Object Lock on this bucket. Can only be set at creation time. Requires an active project-level compliance lock.
    ProjectId string
    STACKIT Project ID to which the bucket is associated.
    UrlPathStyle string
    UrlVirtualHostedStyle string
    Region string
    The resource region. If not defined, the provider region is used.
    id String
    Terraform's internal data source identifier. It is structured as "projectId,region,name".
    name String
    The bucket name. It must be DNS conform.
    objectLock Boolean
    Enable Object Lock on this bucket. Can only be set at creation time. Requires an active project-level compliance lock.
    projectId String
    STACKIT Project ID to which the bucket is associated.
    urlPathStyle String
    urlVirtualHostedStyle String
    region String
    The resource region. If not defined, the provider region is used.
    id string
    Terraform's internal data source identifier. It is structured as "projectId,region,name".
    name string
    The bucket name. It must be DNS conform.
    objectLock boolean
    Enable Object Lock on this bucket. Can only be set at creation time. Requires an active project-level compliance lock.
    projectId string
    STACKIT Project ID to which the bucket is associated.
    urlPathStyle string
    urlVirtualHostedStyle string
    region string
    The resource region. If not defined, the provider region is used.
    id str
    Terraform's internal data source identifier. It is structured as "projectId,region,name".
    name str
    The bucket name. It must be DNS conform.
    object_lock bool
    Enable Object Lock on this bucket. Can only be set at creation time. Requires an active project-level compliance lock.
    project_id str
    STACKIT Project ID to which the bucket is associated.
    url_path_style str
    url_virtual_hosted_style str
    region str
    The resource region. If not defined, the provider region is used.
    id String
    Terraform's internal data source identifier. It is structured as "projectId,region,name".
    name String
    The bucket name. It must be DNS conform.
    objectLock Boolean
    Enable Object Lock on this bucket. Can only be set at creation time. Requires an active project-level compliance lock.
    projectId String
    STACKIT Project ID to which the bucket is associated.
    urlPathStyle String
    urlVirtualHostedStyle String
    region String
    The resource region. If not defined, the provider region is used.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.5
    published on Tuesday, Mar 31, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.