1. Packages
  2. stackit
  3. API Docs
  4. ObjectstorageCredential
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 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:

    CredentialsGroupId string
    The credential group ID.
    ProjectId string
    STACKIT Project ID to which the credential group is associated.
    ExpirationTimestamp 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.
    CredentialsGroupId string
    The credential group ID.
    ProjectId string
    STACKIT Project ID to which the credential group is associated.
    ExpirationTimestamp 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.
    credentialsGroupId String
    The credential group ID.
    projectId String
    STACKIT Project ID to which the credential group is associated.
    expirationTimestamp 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.
    credentialsGroupId string
    The credential group ID.
    projectId string
    STACKIT Project ID to which the credential group is associated.
    expirationTimestamp 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_id str
    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.
    credentialsGroupId String
    The credential group ID.
    projectId String
    STACKIT Project ID to which the credential group is associated.
    expirationTimestamp 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:

    AccessKey string
    CredentialId string
    The credential ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    SecretAccessKey string
    AccessKey string
    CredentialId string
    The credential ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    SecretAccessKey string
    accessKey String
    credentialId String
    The credential ID.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    secretAccessKey String
    accessKey string
    credentialId string
    The credential ID.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    secretAccessKey string
    access_key str
    credential_id str
    The credential ID.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    secret_access_key str
    accessKey String
    credentialId String
    The credential ID.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    secretAccessKey String

    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) -> ObjectstorageCredential
    func 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.
    The following state arguments are supported:
    AccessKey string
    CredentialId string
    The credential ID.
    CredentialsGroupId string
    The credential group ID.
    ExpirationTimestamp string
    Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
    Name string
    ProjectId string
    STACKIT Project ID to which the credential group is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    SecretAccessKey string
    AccessKey string
    CredentialId string
    The credential ID.
    CredentialsGroupId string
    The credential group ID.
    ExpirationTimestamp string
    Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
    Name string
    ProjectId string
    STACKIT Project ID to which the credential group is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    SecretAccessKey string
    accessKey String
    credentialId String
    The credential ID.
    credentialsGroupId String
    The credential group ID.
    expirationTimestamp String
    Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
    name String
    projectId String
    STACKIT Project ID to which the credential group is associated.
    region String
    The resource region. If not defined, the provider region is used.
    secretAccessKey String
    accessKey string
    credentialId string
    The credential ID.
    credentialsGroupId string
    The credential group ID.
    expirationTimestamp string
    Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
    name string
    projectId string
    STACKIT Project ID to which the credential group is associated.
    region string
    The resource region. If not defined, the provider region is used.
    secretAccessKey string
    access_key str
    credential_id str
    The credential ID.
    credentials_group_id str
    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_key str
    accessKey String
    credentialId String
    The credential ID.
    credentialsGroupId String
    The credential group ID.
    expirationTimestamp String
    Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
    name String
    projectId String
    STACKIT Project ID to which the credential group is associated.
    region String
    The resource region. If not defined, the provider region is used.
    secretAccessKey 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.