1. Packages
  2. stackit
  3. API Docs
  4. getObjectstorageBucket
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 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: Optional[pulumi.Input[str]] = None,
                                 project_id: Optional[pulumi.Input[str]] = None,
                                 region: Optional[pulumi.Input[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
    Name string
    The bucket name. It must be DNS conform.
    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
    Name string
    The bucket name. It must be DNS conform.
    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
    name String
    The bucket name. It must be DNS conform.
    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
    name string
    The bucket name. It must be DNS conform.
    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
    name str
    The bucket name. It must be DNS conform.
    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
    name String
    The bucket name. It must be DNS conform.
    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.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.