1. Packages
  2. stackit
  3. API Docs
  4. ObjectstorageBucket
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 resource schema. Must have a region specified in the provider configuration. If you are creating credentialsgroup and bucket resources simultaneously, please include the depends_on field so that they are created sequentially. This prevents errors from concurrent calls to the service enablement that is done in the background.

    Example Usage

    resource "stackit_objectstorage_bucket" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "example-bucket"
    }
    
    # Only use the import statement, if you want to import an existing objectstorage bucket
    import {
      to = stackit_objectstorage_bucket.import-example
      id = "${var.project_id},${var.region},${var.bucket_name}"
    }
    

    Create ObjectstorageBucket Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ObjectstorageBucket(name: string, args: ObjectstorageBucketArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectstorageBucket(resource_name: str,
                            args: ObjectstorageBucketArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectstorageBucket(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            project_id: Optional[str] = None,
                            name: Optional[str] = None,
                            region: Optional[str] = None)
    func NewObjectstorageBucket(ctx *Context, name string, args ObjectstorageBucketArgs, opts ...ResourceOption) (*ObjectstorageBucket, error)
    public ObjectstorageBucket(string name, ObjectstorageBucketArgs args, CustomResourceOptions? opts = null)
    public ObjectstorageBucket(String name, ObjectstorageBucketArgs args)
    public ObjectstorageBucket(String name, ObjectstorageBucketArgs args, CustomResourceOptions options)
    
    type: stackit:ObjectstorageBucket
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ObjectstorageBucketArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ObjectstorageBucketArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ObjectstorageBucketArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectstorageBucketArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectstorageBucketArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var objectstorageBucketResource = new Stackit.ObjectstorageBucket("objectstorageBucketResource", new()
    {
        ProjectId = "string",
        Name = "string",
        Region = "string",
    });
    
    example, err := stackit.NewObjectstorageBucket(ctx, "objectstorageBucketResource", &stackit.ObjectstorageBucketArgs{
    	ProjectId: pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	Region:    pulumi.String("string"),
    })
    
    var objectstorageBucketResource = new ObjectstorageBucket("objectstorageBucketResource", ObjectstorageBucketArgs.builder()
        .projectId("string")
        .name("string")
        .region("string")
        .build());
    
    objectstorage_bucket_resource = stackit.ObjectstorageBucket("objectstorageBucketResource",
        project_id="string",
        name="string",
        region="string")
    
    const objectstorageBucketResource = new stackit.ObjectstorageBucket("objectstorageBucketResource", {
        projectId: "string",
        name: "string",
        region: "string",
    });
    
    type: stackit:ObjectstorageBucket
    properties:
        name: string
        projectId: string
        region: string
    

    ObjectstorageBucket Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ObjectstorageBucket resource accepts the following input properties:

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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ObjectstorageBucket resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    UrlPathStyle string
    UrlVirtualHostedStyle string
    Id string
    The provider-assigned unique ID for this managed resource.
    UrlPathStyle string
    UrlVirtualHostedStyle string
    id String
    The provider-assigned unique ID for this managed resource.
    urlPathStyle String
    urlVirtualHostedStyle String
    id string
    The provider-assigned unique ID for this managed resource.
    urlPathStyle string
    urlVirtualHostedStyle string
    id str
    The provider-assigned unique ID for this managed resource.
    url_path_style str
    url_virtual_hosted_style str
    id String
    The provider-assigned unique ID for this managed resource.
    urlPathStyle String
    urlVirtualHostedStyle String

    Look up Existing ObjectstorageBucket Resource

    Get an existing ObjectstorageBucket resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ObjectstorageBucketState, opts?: CustomResourceOptions): ObjectstorageBucket
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            url_path_style: Optional[str] = None,
            url_virtual_hosted_style: Optional[str] = None) -> ObjectstorageBucket
    func GetObjectstorageBucket(ctx *Context, name string, id IDInput, state *ObjectstorageBucketState, opts ...ResourceOption) (*ObjectstorageBucket, error)
    public static ObjectstorageBucket Get(string name, Input<string> id, ObjectstorageBucketState? state, CustomResourceOptions? opts = null)
    public static ObjectstorageBucket get(String name, Output<String> id, ObjectstorageBucketState state, CustomResourceOptions options)
    resources:  _:    type: stackit:ObjectstorageBucket    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state 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.
    UrlPathStyle string
    UrlVirtualHostedStyle string
    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.
    UrlPathStyle string
    UrlVirtualHostedStyle string
    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.
    urlPathStyle String
    urlVirtualHostedStyle String
    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.
    urlPathStyle string
    urlVirtualHostedStyle string
    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.
    url_path_style str
    url_virtual_hosted_style str
    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.
    urlPathStyle String
    urlVirtualHostedStyle String

    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.