published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
ObjectStorage credential resource schema. Must have a region specified in the provider configuration.
Example Usage
resource "stackit_objectstorage_credential" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
credentials_group_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
expiration_timestamp = "2027-01-02T03:04:05Z"
}
# Only use the import statement, if you want to import an existing objectstorage credential
import {
to = stackit_objectstorage_credential.import-example
id = "${var.project_id},${var.region},${var.bucket_credentials_group_id},${var.bucket_credential_id}"
}
Create ObjectstorageCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectstorageCredential(name: string, args: ObjectstorageCredentialArgs, opts?: CustomResourceOptions);@overload
def ObjectstorageCredential(resource_name: str,
args: ObjectstorageCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectstorageCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
credentials_group_id: Optional[str] = None,
project_id: Optional[str] = None,
expiration_timestamp: Optional[str] = None,
region: Optional[str] = None)func NewObjectstorageCredential(ctx *Context, name string, args ObjectstorageCredentialArgs, opts ...ResourceOption) (*ObjectstorageCredential, error)public ObjectstorageCredential(string name, ObjectstorageCredentialArgs args, CustomResourceOptions? opts = null)
public ObjectstorageCredential(String name, ObjectstorageCredentialArgs args)
public ObjectstorageCredential(String name, ObjectstorageCredentialArgs args, CustomResourceOptions options)
type: stackit:ObjectstorageCredential
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 ObjectstorageCredentialArgs
- 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 ObjectstorageCredentialArgs
- 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 ObjectstorageCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectstorageCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectstorageCredentialArgs
- 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 objectstorageCredentialResource = new Stackit.ObjectstorageCredential("objectstorageCredentialResource", new()
{
CredentialsGroupId = "string",
ProjectId = "string",
ExpirationTimestamp = "string",
Region = "string",
});
example, err := stackit.NewObjectstorageCredential(ctx, "objectstorageCredentialResource", &stackit.ObjectstorageCredentialArgs{
CredentialsGroupId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
ExpirationTimestamp: pulumi.String("string"),
Region: pulumi.String("string"),
})
var objectstorageCredentialResource = new ObjectstorageCredential("objectstorageCredentialResource", ObjectstorageCredentialArgs.builder()
.credentialsGroupId("string")
.projectId("string")
.expirationTimestamp("string")
.region("string")
.build());
objectstorage_credential_resource = stackit.ObjectstorageCredential("objectstorageCredentialResource",
credentials_group_id="string",
project_id="string",
expiration_timestamp="string",
region="string")
const objectstorageCredentialResource = new stackit.ObjectstorageCredential("objectstorageCredentialResource", {
credentialsGroupId: "string",
projectId: "string",
expirationTimestamp: "string",
region: "string",
});
type: stackit:ObjectstorageCredential
properties:
credentialsGroupId: string
expirationTimestamp: string
projectId: string
region: string
ObjectstorageCredential 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 ObjectstorageCredential resource accepts the following input properties:
- Credentials
Group stringId - The credential group ID.
- Project
Id string - STACKIT Project ID to which the credential group is associated.
- Expiration
Timestamp string - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- Region string
- The resource region. If not defined, the provider region is used.
- Credentials
Group stringId - The credential group ID.
- Project
Id string - STACKIT Project ID to which the credential group is associated.
- Expiration
Timestamp string - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- Region string
- The resource region. If not defined, the provider region is used.
- credentials
Group StringId - The credential group ID.
- project
Id String - STACKIT Project ID to which the credential group is associated.
- expiration
Timestamp String - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- region String
- The resource region. If not defined, the provider region is used.
- credentials
Group stringId - The credential group ID.
- project
Id string - STACKIT Project ID to which the credential group is associated.
- expiration
Timestamp string - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- region string
- The resource region. If not defined, the provider region is used.
- credentials_
group_ strid - The credential group ID.
- project_
id str - STACKIT Project ID to which the credential group is associated.
- expiration_
timestamp str - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- region str
- The resource region. If not defined, the provider region is used.
- credentials
Group StringId - The credential group ID.
- project
Id String - STACKIT Project ID to which the credential group is associated.
- expiration
Timestamp String - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- 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 ObjectstorageCredential resource produces the following output properties:
- Access
Key string - Credential
Id string - The credential ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Secret
Access stringKey
- Access
Key string - Credential
Id string - The credential ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Secret
Access stringKey
- access
Key String - credential
Id String - The credential ID.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- secret
Access StringKey
- access
Key string - credential
Id string - The credential ID.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- secret
Access stringKey
- access_
key str - credential_
id str - The credential ID.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- secret_
access_ strkey
- access
Key String - credential
Id String - The credential ID.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- secret
Access StringKey
Look up Existing ObjectstorageCredential Resource
Get an existing ObjectstorageCredential 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?: ObjectstorageCredentialState, opts?: CustomResourceOptions): ObjectstorageCredential@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_key: Optional[str] = None,
credential_id: Optional[str] = None,
credentials_group_id: Optional[str] = None,
expiration_timestamp: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
secret_access_key: Optional[str] = None) -> ObjectstorageCredentialfunc GetObjectstorageCredential(ctx *Context, name string, id IDInput, state *ObjectstorageCredentialState, opts ...ResourceOption) (*ObjectstorageCredential, error)public static ObjectstorageCredential Get(string name, Input<string> id, ObjectstorageCredentialState? state, CustomResourceOptions? opts = null)public static ObjectstorageCredential get(String name, Output<String> id, ObjectstorageCredentialState state, CustomResourceOptions options)resources: _: type: stackit:ObjectstorageCredential 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.
- Access
Key string - Credential
Id string - The credential ID.
- Credentials
Group stringId - The credential group ID.
- Expiration
Timestamp string - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- Name string
- Project
Id string - STACKIT Project ID to which the credential group is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Secret
Access stringKey
- Access
Key string - Credential
Id string - The credential ID.
- Credentials
Group stringId - The credential group ID.
- Expiration
Timestamp string - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- Name string
- Project
Id string - STACKIT Project ID to which the credential group is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Secret
Access stringKey
- access
Key String - credential
Id String - The credential ID.
- credentials
Group StringId - The credential group ID.
- expiration
Timestamp String - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- name String
- project
Id String - STACKIT Project ID to which the credential group is associated.
- region String
- The resource region. If not defined, the provider region is used.
- secret
Access StringKey
- access
Key string - credential
Id string - The credential ID.
- credentials
Group stringId - The credential group ID.
- expiration
Timestamp string - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- name string
- project
Id string - STACKIT Project ID to which the credential group is associated.
- region string
- The resource region. If not defined, the provider region is used.
- secret
Access stringKey
- access_
key str - credential_
id str - The credential ID.
- credentials_
group_ strid - The credential group ID.
- expiration_
timestamp str - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- name str
- project_
id str - STACKIT Project ID to which the credential group is associated.
- region str
- The resource region. If not defined, the provider region is used.
- secret_
access_ strkey
- access
Key String - credential
Id String - The credential ID.
- credentials
Group StringId - The credential group ID.
- expiration
Timestamp String - Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
- name String
- project
Id String - STACKIT Project ID to which the credential group is associated.
- region String
- The resource region. If not defined, the provider region is used.
- secret
Access StringKey
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
