1. Packages
  2. stackit
  3. API Docs
  4. getObjectstorageCredential
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 data source schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_objectstorage_credential" "example" {
      project_id           = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      credentials_group_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      credential_id        = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getObjectstorageCredential

    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 getObjectstorageCredential(args: GetObjectstorageCredentialArgs, opts?: InvokeOptions): Promise<GetObjectstorageCredentialResult>
    function getObjectstorageCredentialOutput(args: GetObjectstorageCredentialOutputArgs, opts?: InvokeOptions): Output<GetObjectstorageCredentialResult>
    def get_objectstorage_credential(credential_id: Optional[str] = None,
                                     credentials_group_id: Optional[str] = None,
                                     project_id: Optional[str] = None,
                                     region: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetObjectstorageCredentialResult
    def get_objectstorage_credential_output(credential_id: Optional[pulumi.Input[str]] = None,
                                     credentials_group_id: Optional[pulumi.Input[str]] = None,
                                     project_id: Optional[pulumi.Input[str]] = None,
                                     region: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetObjectstorageCredentialResult]
    func LookupObjectstorageCredential(ctx *Context, args *LookupObjectstorageCredentialArgs, opts ...InvokeOption) (*LookupObjectstorageCredentialResult, error)
    func LookupObjectstorageCredentialOutput(ctx *Context, args *LookupObjectstorageCredentialOutputArgs, opts ...InvokeOption) LookupObjectstorageCredentialResultOutput

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

    public static class GetObjectstorageCredential 
    {
        public static Task<GetObjectstorageCredentialResult> InvokeAsync(GetObjectstorageCredentialArgs args, InvokeOptions? opts = null)
        public static Output<GetObjectstorageCredentialResult> Invoke(GetObjectstorageCredentialInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetObjectstorageCredentialResult> getObjectstorageCredential(GetObjectstorageCredentialArgs args, InvokeOptions options)
    public static Output<GetObjectstorageCredentialResult> getObjectstorageCredential(GetObjectstorageCredentialArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getObjectstorageCredential:getObjectstorageCredential
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CredentialId string
    The credential ID.
    CredentialsGroupId string
    The credential group ID.
    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.
    CredentialId string
    The credential ID.
    CredentialsGroupId string
    The credential group ID.
    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.
    credentialId String
    The credential ID.
    credentialsGroupId String
    The credential group ID.
    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.
    credentialId string
    The credential ID.
    credentialsGroupId string
    The credential group ID.
    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.
    credential_id str
    The credential ID.
    credentials_group_id str
    The credential group ID.
    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.
    credentialId String
    The credential ID.
    credentialsGroupId String
    The credential group ID.
    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.

    getObjectstorageCredential Result

    The following output properties are available:

    CredentialId string
    The credential ID.
    CredentialsGroupId string
    The credential group ID.
    ExpirationTimestamp string
    Id string
    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.
    CredentialId string
    The credential ID.
    CredentialsGroupId string
    The credential group ID.
    ExpirationTimestamp string
    Id string
    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.
    credentialId String
    The credential ID.
    credentialsGroupId String
    The credential group ID.
    expirationTimestamp String
    id String
    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.
    credentialId string
    The credential ID.
    credentialsGroupId string
    The credential group ID.
    expirationTimestamp string
    id string
    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.
    credential_id str
    The credential ID.
    credentials_group_id str
    The credential group ID.
    expiration_timestamp str
    id str
    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.
    credentialId String
    The credential ID.
    credentialsGroupId String
    The credential group ID.
    expirationTimestamp String
    id String
    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.

    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.