1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. getObjectstorageDefaultRetention
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud

    ObjectStorage default-retention resource schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_objectstorage_default_retention" "example" {
      project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      bucket_name = "example-bucket"
    }
    

    Using getObjectstorageDefaultRetention

    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 getObjectstorageDefaultRetention(args: GetObjectstorageDefaultRetentionArgs, opts?: InvokeOptions): Promise<GetObjectstorageDefaultRetentionResult>
    function getObjectstorageDefaultRetentionOutput(args: GetObjectstorageDefaultRetentionOutputArgs, opts?: InvokeOutputOptions): Output<GetObjectstorageDefaultRetentionResult>
    def get_objectstorage_default_retention(bucket_name: Optional[str] = None,
                                            project_id: Optional[str] = None,
                                            region: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetObjectstorageDefaultRetentionResult
    def get_objectstorage_default_retention_output(bucket_name: pulumi.Input[Optional[str]] = None,
                                            project_id: pulumi.Input[Optional[str]] = None,
                                            region: pulumi.Input[Optional[str]] = None,
                                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetObjectstorageDefaultRetentionResult]
    func LookupObjectstorageDefaultRetention(ctx *Context, args *LookupObjectstorageDefaultRetentionArgs, opts ...InvokeOption) (*LookupObjectstorageDefaultRetentionResult, error)
    func LookupObjectstorageDefaultRetentionOutput(ctx *Context, args *LookupObjectstorageDefaultRetentionOutputArgs, opts ...InvokeOption) LookupObjectstorageDefaultRetentionResultOutput

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

    public static class GetObjectstorageDefaultRetention 
    {
        public static Task<GetObjectstorageDefaultRetentionResult> InvokeAsync(GetObjectstorageDefaultRetentionArgs args, InvokeOptions? opts = null)
        public static Output<GetObjectstorageDefaultRetentionResult> Invoke(GetObjectstorageDefaultRetentionInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetObjectstorageDefaultRetentionResult> Invoke(GetObjectstorageDefaultRetentionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetObjectstorageDefaultRetentionResult> getObjectstorageDefaultRetention(GetObjectstorageDefaultRetentionArgs args, InvokeOptions options)
    public static Output<GetObjectstorageDefaultRetentionResult> getObjectstorageDefaultRetention(GetObjectstorageDefaultRetentionArgs args, InvokeOptions options)
    public static Output<GetObjectstorageDefaultRetentionResult> getObjectstorageDefaultRetention(GetObjectstorageDefaultRetentionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: stackit:index/getObjectstorageDefaultRetention:getObjectstorageDefaultRetention
      arguments:
        # arguments dictionary
    data "stackit_get_objectstorage_default_retention" "name" {
        # arguments
    }

    The following arguments are supported:

    BucketName string
    The associated bucket's name. It must be DNS conform.
    ProjectId string
    STACKIT Project ID to which the default-retention is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    BucketName string
    The associated bucket's name. It must be DNS conform.
    ProjectId string
    STACKIT Project ID to which the default-retention is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    bucket_name string
    The associated bucket's name. It must be DNS conform.
    project_id string
    STACKIT Project ID to which the default-retention is associated.
    region string
    The resource region. If not defined, the provider region is used.
    bucketName String
    The associated bucket's name. It must be DNS conform.
    projectId String
    STACKIT Project ID to which the default-retention is associated.
    region String
    The resource region. If not defined, the provider region is used.
    bucketName string
    The associated bucket's name. It must be DNS conform.
    projectId string
    STACKIT Project ID to which the default-retention is associated.
    region string
    The resource region. If not defined, the provider region is used.
    bucket_name str
    The associated bucket's name. It must be DNS conform.
    project_id str
    STACKIT Project ID to which the default-retention is associated.
    region str
    The resource region. If not defined, the provider region is used.
    bucketName String
    The associated bucket's name. It must be DNS conform.
    projectId String
    STACKIT Project ID to which the default-retention is associated.
    region String
    The resource region. If not defined, the provider region is used.

    getObjectstorageDefaultRetention Result

    The following output properties are available:

    BucketName string
    The associated bucket's name. It must be DNS conform.
    Days int
    The number retention period in days.
    Id string
    Terraform's internal resource identifier. It is structured as "projectId,region,bucketName".
    Mode string
    The retention mode for default retention on a bucket.
    ProjectId string
    STACKIT Project ID to which the default-retention is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    BucketName string
    The associated bucket's name. It must be DNS conform.
    Days int
    The number retention period in days.
    Id string
    Terraform's internal resource identifier. It is structured as "projectId,region,bucketName".
    Mode string
    The retention mode for default retention on a bucket.
    ProjectId string
    STACKIT Project ID to which the default-retention is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    bucket_name string
    The associated bucket's name. It must be DNS conform.
    days number
    The number retention period in days.
    id string
    Terraform's internal resource identifier. It is structured as "projectId,region,bucketName".
    mode string
    The retention mode for default retention on a bucket.
    project_id string
    STACKIT Project ID to which the default-retention is associated.
    region string
    The resource region. If not defined, the provider region is used.
    bucketName String
    The associated bucket's name. It must be DNS conform.
    days Integer
    The number retention period in days.
    id String
    Terraform's internal resource identifier. It is structured as "projectId,region,bucketName".
    mode String
    The retention mode for default retention on a bucket.
    projectId String
    STACKIT Project ID to which the default-retention is associated.
    region String
    The resource region. If not defined, the provider region is used.
    bucketName string
    The associated bucket's name. It must be DNS conform.
    days number
    The number retention period in days.
    id string
    Terraform's internal resource identifier. It is structured as "projectId,region,bucketName".
    mode string
    The retention mode for default retention on a bucket.
    projectId string
    STACKIT Project ID to which the default-retention is associated.
    region string
    The resource region. If not defined, the provider region is used.
    bucket_name str
    The associated bucket's name. It must be DNS conform.
    days int
    The number retention period in days.
    id str
    Terraform's internal resource identifier. It is structured as "projectId,region,bucketName".
    mode str
    The retention mode for default retention on a bucket.
    project_id str
    STACKIT Project ID to which the default-retention is associated.
    region str
    The resource region. If not defined, the provider region is used.
    bucketName String
    The associated bucket's name. It must be DNS conform.
    days Number
    The number retention period in days.
    id String
    Terraform's internal resource identifier. It is structured as "projectId,region,bucketName".
    mode String
    The retention mode for default retention on a bucket.
    projectId String
    STACKIT Project ID to which the default-retention is associated.
    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.7
    published on Monday, Aug 17, 2026 by stackitcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial