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

    Git Instance resource schema.

    This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources. This resource currently does not support updates. Changing the ACLs, flavor, or name will trigger resource recreation. Update functionality will be added soon. In the meantime, please proceed with caution. To update these attributes, please open a support ticket.

    Example Usage

    resource "stackit_git" "git" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "git-example-instance"
    }
    
    resource "stackit_git" "git" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "git-example-instance"
      acl = [
        "0.0.0.0/0"
      ]
      flavor = "git-100"
    }
    
    # Only use the import statement, if you want to import an existing git resource
    import {
      to = stackit_git.import-example
      id = "${var.project_id},${var.git_instance_id}"
    }
    

    Create Git Resource

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

    Constructor syntax

    new Git(name: string, args: GitArgs, opts?: CustomResourceOptions);
    @overload
    def Git(resource_name: str,
            args: GitArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Git(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            project_id: Optional[str] = None,
            acls: Optional[Sequence[str]] = None,
            flavor: Optional[str] = None,
            name: Optional[str] = None)
    func NewGit(ctx *Context, name string, args GitArgs, opts ...ResourceOption) (*Git, error)
    public Git(string name, GitArgs args, CustomResourceOptions? opts = null)
    public Git(String name, GitArgs args)
    public Git(String name, GitArgs args, CustomResourceOptions options)
    
    type: stackit:Git
    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 GitArgs
    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 GitArgs
    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 GitArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GitArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GitArgs
    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 gitResource = new Stackit.Git("gitResource", new()
    {
        ProjectId = "string",
        Acls = new[]
        {
            "string",
        },
        Flavor = "string",
        Name = "string",
    });
    
    example, err := stackit.NewGit(ctx, "gitResource", &stackit.GitArgs{
    	ProjectId: pulumi.String("string"),
    	Acls: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Flavor: pulumi.String("string"),
    	Name:   pulumi.String("string"),
    })
    
    var gitResource = new Git("gitResource", GitArgs.builder()
        .projectId("string")
        .acls("string")
        .flavor("string")
        .name("string")
        .build());
    
    git_resource = stackit.Git("gitResource",
        project_id="string",
        acls=["string"],
        flavor="string",
        name="string")
    
    const gitResource = new stackit.Git("gitResource", {
        projectId: "string",
        acls: ["string"],
        flavor: "string",
        name: "string",
    });
    
    type: stackit:Git
    properties:
        acls:
            - string
        flavor: string
        name: string
        projectId: string
    

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

    ProjectId string
    STACKIT project ID to which the git instance is associated.
    Acls List<string>
    Restricted ACL for instance access.
    Flavor string
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    Name string
    Unique name linked to the git instance.
    ProjectId string
    STACKIT project ID to which the git instance is associated.
    Acls []string
    Restricted ACL for instance access.
    Flavor string
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    Name string
    Unique name linked to the git instance.
    projectId String
    STACKIT project ID to which the git instance is associated.
    acls List<String>
    Restricted ACL for instance access.
    flavor String
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    name String
    Unique name linked to the git instance.
    projectId string
    STACKIT project ID to which the git instance is associated.
    acls string[]
    Restricted ACL for instance access.
    flavor string
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    name string
    Unique name linked to the git instance.
    project_id str
    STACKIT project ID to which the git instance is associated.
    acls Sequence[str]
    Restricted ACL for instance access.
    flavor str
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    name str
    Unique name linked to the git instance.
    projectId String
    STACKIT project ID to which the git instance is associated.
    acls List<String>
    Restricted ACL for instance access.
    flavor String
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    name String
    Unique name linked to the git instance.

    Outputs

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

    ConsumedDisk string
    How many bytes of disk space is consumed.
    ConsumedObjectStorage string
    How many bytes of Object Storage is consumed.
    Created string
    Instance creation timestamp in RFC3339 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    ID linked to the git instance.
    Url string
    Url linked to the git instance.
    Version string
    Version linked to the git instance.
    ConsumedDisk string
    How many bytes of disk space is consumed.
    ConsumedObjectStorage string
    How many bytes of Object Storage is consumed.
    Created string
    Instance creation timestamp in RFC3339 format.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    ID linked to the git instance.
    Url string
    Url linked to the git instance.
    Version string
    Version linked to the git instance.
    consumedDisk String
    How many bytes of disk space is consumed.
    consumedObjectStorage String
    How many bytes of Object Storage is consumed.
    created String
    Instance creation timestamp in RFC3339 format.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    ID linked to the git instance.
    url String
    Url linked to the git instance.
    version String
    Version linked to the git instance.
    consumedDisk string
    How many bytes of disk space is consumed.
    consumedObjectStorage string
    How many bytes of Object Storage is consumed.
    created string
    Instance creation timestamp in RFC3339 format.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    ID linked to the git instance.
    url string
    Url linked to the git instance.
    version string
    Version linked to the git instance.
    consumed_disk str
    How many bytes of disk space is consumed.
    consumed_object_storage str
    How many bytes of Object Storage is consumed.
    created str
    Instance creation timestamp in RFC3339 format.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    ID linked to the git instance.
    url str
    Url linked to the git instance.
    version str
    Version linked to the git instance.
    consumedDisk String
    How many bytes of disk space is consumed.
    consumedObjectStorage String
    How many bytes of Object Storage is consumed.
    created String
    Instance creation timestamp in RFC3339 format.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    ID linked to the git instance.
    url String
    Url linked to the git instance.
    version String
    Version linked to the git instance.

    Look up Existing Git Resource

    Get an existing Git 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?: GitState, opts?: CustomResourceOptions): Git
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acls: Optional[Sequence[str]] = None,
            consumed_disk: Optional[str] = None,
            consumed_object_storage: Optional[str] = None,
            created: Optional[str] = None,
            flavor: Optional[str] = None,
            instance_id: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            url: Optional[str] = None,
            version: Optional[str] = None) -> Git
    func GetGit(ctx *Context, name string, id IDInput, state *GitState, opts ...ResourceOption) (*Git, error)
    public static Git Get(string name, Input<string> id, GitState? state, CustomResourceOptions? opts = null)
    public static Git get(String name, Output<String> id, GitState state, CustomResourceOptions options)
    resources:  _:    type: stackit:Git    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:
    Acls List<string>
    Restricted ACL for instance access.
    ConsumedDisk string
    How many bytes of disk space is consumed.
    ConsumedObjectStorage string
    How many bytes of Object Storage is consumed.
    Created string
    Instance creation timestamp in RFC3339 format.
    Flavor string
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    InstanceId string
    ID linked to the git instance.
    Name string
    Unique name linked to the git instance.
    ProjectId string
    STACKIT project ID to which the git instance is associated.
    Url string
    Url linked to the git instance.
    Version string
    Version linked to the git instance.
    Acls []string
    Restricted ACL for instance access.
    ConsumedDisk string
    How many bytes of disk space is consumed.
    ConsumedObjectStorage string
    How many bytes of Object Storage is consumed.
    Created string
    Instance creation timestamp in RFC3339 format.
    Flavor string
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    InstanceId string
    ID linked to the git instance.
    Name string
    Unique name linked to the git instance.
    ProjectId string
    STACKIT project ID to which the git instance is associated.
    Url string
    Url linked to the git instance.
    Version string
    Version linked to the git instance.
    acls List<String>
    Restricted ACL for instance access.
    consumedDisk String
    How many bytes of disk space is consumed.
    consumedObjectStorage String
    How many bytes of Object Storage is consumed.
    created String
    Instance creation timestamp in RFC3339 format.
    flavor String
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    instanceId String
    ID linked to the git instance.
    name String
    Unique name linked to the git instance.
    projectId String
    STACKIT project ID to which the git instance is associated.
    url String
    Url linked to the git instance.
    version String
    Version linked to the git instance.
    acls string[]
    Restricted ACL for instance access.
    consumedDisk string
    How many bytes of disk space is consumed.
    consumedObjectStorage string
    How many bytes of Object Storage is consumed.
    created string
    Instance creation timestamp in RFC3339 format.
    flavor string
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    instanceId string
    ID linked to the git instance.
    name string
    Unique name linked to the git instance.
    projectId string
    STACKIT project ID to which the git instance is associated.
    url string
    Url linked to the git instance.
    version string
    Version linked to the git instance.
    acls Sequence[str]
    Restricted ACL for instance access.
    consumed_disk str
    How many bytes of disk space is consumed.
    consumed_object_storage str
    How many bytes of Object Storage is consumed.
    created str
    Instance creation timestamp in RFC3339 format.
    flavor str
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    instance_id str
    ID linked to the git instance.
    name str
    Unique name linked to the git instance.
    project_id str
    STACKIT project ID to which the git instance is associated.
    url str
    Url linked to the git instance.
    version str
    Version linked to the git instance.
    acls List<String>
    Restricted ACL for instance access.
    consumedDisk String
    How many bytes of disk space is consumed.
    consumedObjectStorage String
    How many bytes of Object Storage is consumed.
    created String
    Instance creation timestamp in RFC3339 format.
    flavor String
    Instance flavor. If not provided, defaults to git-100. For a list of available flavors, refer to our API documentation: https://docs.api.stackit.cloud/documentation/git/version/v1beta
    instanceId String
    ID linked to the git instance.
    name String
    Unique name linked to the git instance.
    projectId String
    STACKIT project ID to which the git instance is associated.
    url String
    Url linked to the git instance.
    version String
    Version linked to the git instance.

    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.