published on Friday, Feb 20, 2026 by stackitcloud
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:
- 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.
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.
- Url
Path stringStyle - Url
Virtual stringHosted Style
- Id string
- The provider-assigned unique ID for this managed resource.
- Url
Path stringStyle - Url
Virtual stringHosted Style
- id String
- The provider-assigned unique ID for this managed resource.
- url
Path StringStyle - url
Virtual StringHosted Style
- id string
- The provider-assigned unique ID for this managed resource.
- url
Path stringStyle - url
Virtual stringHosted Style
- id str
- The provider-assigned unique ID for this managed resource.
- url_
path_ strstyle - url_
virtual_ strhosted_ style
- id String
- The provider-assigned unique ID for this managed resource.
- url
Path StringStyle - url
Virtual StringHosted Style
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) -> ObjectstorageBucketfunc 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.
- Name string
- The bucket name. It must be DNS conform.
- Project
Id string - STACKIT Project ID to which the bucket is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Url
Path stringStyle - Url
Virtual stringHosted Style
- Name string
- The bucket name. It must be DNS conform.
- Project
Id string - STACKIT Project ID to which the bucket is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Url
Path stringStyle - Url
Virtual stringHosted Style
- name String
- The bucket name. It must be DNS conform.
- project
Id String - STACKIT Project ID to which the bucket is associated.
- region String
- The resource region. If not defined, the provider region is used.
- url
Path StringStyle - url
Virtual StringHosted Style
- name string
- The bucket name. It must be DNS conform.
- project
Id string - STACKIT Project ID to which the bucket is associated.
- region string
- The resource region. If not defined, the provider region is used.
- url
Path stringStyle - url
Virtual stringHosted Style
- 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_ strstyle - url_
virtual_ strhosted_ style
- name String
- The bucket name. It must be DNS conform.
- project
Id String - STACKIT Project ID to which the bucket is associated.
- region String
- The resource region. If not defined, the provider region is used.
- url
Path StringStyle - url
Virtual StringHosted Style
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Friday, Feb 20, 2026 by stackitcloud
