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

    Observability credential resource schema. Must have a region specified in the provider configuration.

    Example Usage

    resource "stackit_observability_credential" "example" {
      project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      description = "Description of the credential."
    }
    

    Create ObservabilityCredential Resource

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

    Constructor syntax

    new ObservabilityCredential(name: string, args: ObservabilityCredentialArgs, opts?: CustomResourceOptions);
    @overload
    def ObservabilityCredential(resource_name: str,
                                args: ObservabilityCredentialArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObservabilityCredential(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                instance_id: Optional[str] = None,
                                project_id: Optional[str] = None,
                                description: Optional[str] = None)
    func NewObservabilityCredential(ctx *Context, name string, args ObservabilityCredentialArgs, opts ...ResourceOption) (*ObservabilityCredential, error)
    public ObservabilityCredential(string name, ObservabilityCredentialArgs args, CustomResourceOptions? opts = null)
    public ObservabilityCredential(String name, ObservabilityCredentialArgs args)
    public ObservabilityCredential(String name, ObservabilityCredentialArgs args, CustomResourceOptions options)
    
    type: stackit:ObservabilityCredential
    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 ObservabilityCredentialArgs
    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 ObservabilityCredentialArgs
    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 ObservabilityCredentialArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObservabilityCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObservabilityCredentialArgs
    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 observabilityCredentialResource = new Stackit.ObservabilityCredential("observabilityCredentialResource", new()
    {
        InstanceId = "string",
        ProjectId = "string",
        Description = "string",
    });
    
    example, err := stackit.NewObservabilityCredential(ctx, "observabilityCredentialResource", &stackit.ObservabilityCredentialArgs{
    	InstanceId:  pulumi.String("string"),
    	ProjectId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    var observabilityCredentialResource = new ObservabilityCredential("observabilityCredentialResource", ObservabilityCredentialArgs.builder()
        .instanceId("string")
        .projectId("string")
        .description("string")
        .build());
    
    observability_credential_resource = stackit.ObservabilityCredential("observabilityCredentialResource",
        instance_id="string",
        project_id="string",
        description="string")
    
    const observabilityCredentialResource = new stackit.ObservabilityCredential("observabilityCredentialResource", {
        instanceId: "string",
        projectId: "string",
        description: "string",
    });
    
    type: stackit:ObservabilityCredential
    properties:
        description: string
        instanceId: string
        projectId: string
    

    ObservabilityCredential 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 ObservabilityCredential resource accepts the following input properties:

    InstanceId string
    The Observability Instance ID the credential belongs to.
    ProjectId string
    STACKIT project ID to which the credential is associated.
    Description string
    A description of the credential.
    InstanceId string
    The Observability Instance ID the credential belongs to.
    ProjectId string
    STACKIT project ID to which the credential is associated.
    Description string
    A description of the credential.
    instanceId String
    The Observability Instance ID the credential belongs to.
    projectId String
    STACKIT project ID to which the credential is associated.
    description String
    A description of the credential.
    instanceId string
    The Observability Instance ID the credential belongs to.
    projectId string
    STACKIT project ID to which the credential is associated.
    description string
    A description of the credential.
    instance_id str
    The Observability Instance ID the credential belongs to.
    project_id str
    STACKIT project ID to which the credential is associated.
    description str
    A description of the credential.
    instanceId String
    The Observability Instance ID the credential belongs to.
    projectId String
    STACKIT project ID to which the credential is associated.
    description String
    A description of the credential.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Password string
    Credential password
    Username string
    Credential username
    Id string
    The provider-assigned unique ID for this managed resource.
    Password string
    Credential password
    Username string
    Credential username
    id String
    The provider-assigned unique ID for this managed resource.
    password String
    Credential password
    username String
    Credential username
    id string
    The provider-assigned unique ID for this managed resource.
    password string
    Credential password
    username string
    Credential username
    id str
    The provider-assigned unique ID for this managed resource.
    password str
    Credential password
    username str
    Credential username
    id String
    The provider-assigned unique ID for this managed resource.
    password String
    Credential password
    username String
    Credential username

    Look up Existing ObservabilityCredential Resource

    Get an existing ObservabilityCredential 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?: ObservabilityCredentialState, opts?: CustomResourceOptions): ObservabilityCredential
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            instance_id: Optional[str] = None,
            password: Optional[str] = None,
            project_id: Optional[str] = None,
            username: Optional[str] = None) -> ObservabilityCredential
    func GetObservabilityCredential(ctx *Context, name string, id IDInput, state *ObservabilityCredentialState, opts ...ResourceOption) (*ObservabilityCredential, error)
    public static ObservabilityCredential Get(string name, Input<string> id, ObservabilityCredentialState? state, CustomResourceOptions? opts = null)
    public static ObservabilityCredential get(String name, Output<String> id, ObservabilityCredentialState state, CustomResourceOptions options)
    resources:  _:    type: stackit:ObservabilityCredential    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:
    Description string
    A description of the credential.
    InstanceId string
    The Observability Instance ID the credential belongs to.
    Password string
    Credential password
    ProjectId string
    STACKIT project ID to which the credential is associated.
    Username string
    Credential username
    Description string
    A description of the credential.
    InstanceId string
    The Observability Instance ID the credential belongs to.
    Password string
    Credential password
    ProjectId string
    STACKIT project ID to which the credential is associated.
    Username string
    Credential username
    description String
    A description of the credential.
    instanceId String
    The Observability Instance ID the credential belongs to.
    password String
    Credential password
    projectId String
    STACKIT project ID to which the credential is associated.
    username String
    Credential username
    description string
    A description of the credential.
    instanceId string
    The Observability Instance ID the credential belongs to.
    password string
    Credential password
    projectId string
    STACKIT project ID to which the credential is associated.
    username string
    Credential username
    description str
    A description of the credential.
    instance_id str
    The Observability Instance ID the credential belongs to.
    password str
    Credential password
    project_id str
    STACKIT project ID to which the credential is associated.
    username str
    Credential username
    description String
    A description of the credential.
    instanceId String
    The Observability Instance ID the credential belongs to.
    password String
    Credential password
    projectId String
    STACKIT project ID to which the credential is associated.
    username String
    Credential username

    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.