1. Packages
  2. Sonarqube Provider
  3. API Docs
  4. getAlmBitbucket
Viewing docs for sonarqube 0.16.21
published on Thursday, Apr 2, 2026 by jdamata
Viewing docs for sonarqube 0.16.21
published on Thursday, Apr 2, 2026 by jdamata

    Use this data source to get a Bitbucket Data Center ALM definition.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sonarqube from "@pulumi/sonarqube";
    
    const example = sonarqube.getAlmBitbucket({
        key: "my-bitbucket-key",
    });
    
    import pulumi
    import pulumi_sonarqube as sonarqube
    
    example = sonarqube.get_alm_bitbucket(key="my-bitbucket-key")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sonarqube/sonarqube"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sonarqube.LookupAlmBitbucket(ctx, &sonarqube.LookupAlmBitbucketArgs{
    			Key: "my-bitbucket-key",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sonarqube = Pulumi.Sonarqube;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Sonarqube.GetAlmBitbucket.Invoke(new()
        {
            Key = "my-bitbucket-key",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sonarqube.SonarqubeFunctions;
    import com.pulumi.sonarqube.inputs.GetAlmBitbucketArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = SonarqubeFunctions.getAlmBitbucket(GetAlmBitbucketArgs.builder()
                .key("my-bitbucket-key")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: sonarqube:getAlmBitbucket
          arguments:
            key: my-bitbucket-key
    

    Using getAlmBitbucket

    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 getAlmBitbucket(args: GetAlmBitbucketArgs, opts?: InvokeOptions): Promise<GetAlmBitbucketResult>
    function getAlmBitbucketOutput(args: GetAlmBitbucketOutputArgs, opts?: InvokeOptions): Output<GetAlmBitbucketResult>
    def get_alm_bitbucket(id: Optional[str] = None,
                          key: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAlmBitbucketResult
    def get_alm_bitbucket_output(id: Optional[pulumi.Input[str]] = None,
                          key: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAlmBitbucketResult]
    func LookupAlmBitbucket(ctx *Context, args *LookupAlmBitbucketArgs, opts ...InvokeOption) (*LookupAlmBitbucketResult, error)
    func LookupAlmBitbucketOutput(ctx *Context, args *LookupAlmBitbucketOutputArgs, opts ...InvokeOption) LookupAlmBitbucketResultOutput

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

    public static class GetAlmBitbucket 
    {
        public static Task<GetAlmBitbucketResult> InvokeAsync(GetAlmBitbucketArgs args, InvokeOptions? opts = null)
        public static Output<GetAlmBitbucketResult> Invoke(GetAlmBitbucketInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlmBitbucketResult> getAlmBitbucket(GetAlmBitbucketArgs args, InvokeOptions options)
    public static Output<GetAlmBitbucketResult> getAlmBitbucket(GetAlmBitbucketArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sonarqube:index/getAlmBitbucket:getAlmBitbucket
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Key string
    Unique key of the Bitbucket instance setting.
    Id string
    The ID of this resource.
    Key string
    Unique key of the Bitbucket instance setting.
    Id string
    The ID of this resource.
    key String
    Unique key of the Bitbucket instance setting.
    id String
    The ID of this resource.
    key string
    Unique key of the Bitbucket instance setting.
    id string
    The ID of this resource.
    key str
    Unique key of the Bitbucket instance setting.
    id str
    The ID of this resource.
    key String
    Unique key of the Bitbucket instance setting.
    id String
    The ID of this resource.

    getAlmBitbucket Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Key string
    Unique key of the Bitbucket instance setting.
    Url string
    Bitbucket server API URL.
    Id string
    The ID of this resource.
    Key string
    Unique key of the Bitbucket instance setting.
    Url string
    Bitbucket server API URL.
    id String
    The ID of this resource.
    key String
    Unique key of the Bitbucket instance setting.
    url String
    Bitbucket server API URL.
    id string
    The ID of this resource.
    key string
    Unique key of the Bitbucket instance setting.
    url string
    Bitbucket server API URL.
    id str
    The ID of this resource.
    key str
    Unique key of the Bitbucket instance setting.
    url str
    Bitbucket server API URL.
    id String
    The ID of this resource.
    key String
    Unique key of the Bitbucket instance setting.
    url String
    Bitbucket server API URL.

    Package Details

    Repository
    sonarqube jdamata/terraform-provider-sonarqube
    License
    Notes
    This Pulumi package is based on the sonarqube Terraform Provider.
    Viewing docs for sonarqube 0.16.21
    published on Thursday, Apr 2, 2026 by jdamata
      Try Pulumi Cloud free. Your team will thank you.