published on Thursday, Apr 2, 2026 by jdamata
published on Thursday, Apr 2, 2026 by jdamata
Provides a Sonarqube Bitbucket Data Center Alm/Devops Platform Integration resource. This can be used to create and manage a Alm/Devops Platform Integration for Bitbucket Data Center.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sonarqube from "@pulumi/sonarqube";
const bitbucket_alm = new sonarqube.AlmBitbucket("bitbucket-alm", {
key: "mybitbucket",
personalAccessToken: "my_personal_access_token",
url: "https://bitbucket.example.com",
});
import pulumi
import pulumi_sonarqube as sonarqube
bitbucket_alm = sonarqube.AlmBitbucket("bitbucket-alm",
key="mybitbucket",
personal_access_token="my_personal_access_token",
url="https://bitbucket.example.com")
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.NewAlmBitbucket(ctx, "bitbucket-alm", &sonarqube.AlmBitbucketArgs{
Key: pulumi.String("mybitbucket"),
PersonalAccessToken: pulumi.String("my_personal_access_token"),
Url: pulumi.String("https://bitbucket.example.com"),
})
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 bitbucket_alm = new Sonarqube.AlmBitbucket("bitbucket-alm", new()
{
Key = "mybitbucket",
PersonalAccessToken = "my_personal_access_token",
Url = "https://bitbucket.example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sonarqube.AlmBitbucket;
import com.pulumi.sonarqube.AlmBitbucketArgs;
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) {
var bitbucket_alm = new AlmBitbucket("bitbucket-alm", AlmBitbucketArgs.builder()
.key("mybitbucket")
.personalAccessToken("my_personal_access_token")
.url("https://bitbucket.example.com")
.build());
}
}
resources:
bitbucket-alm:
type: sonarqube:AlmBitbucket
properties:
key: mybitbucket
personalAccessToken: my_personal_access_token
url: https://bitbucket.example.com
Create AlmBitbucket Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlmBitbucket(name: string, args: AlmBitbucketArgs, opts?: CustomResourceOptions);@overload
def AlmBitbucket(resource_name: str,
args: AlmBitbucketArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlmBitbucket(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
personal_access_token: Optional[str] = None,
url: Optional[str] = None,
alm_bitbucket_id: Optional[str] = None)func NewAlmBitbucket(ctx *Context, name string, args AlmBitbucketArgs, opts ...ResourceOption) (*AlmBitbucket, error)public AlmBitbucket(string name, AlmBitbucketArgs args, CustomResourceOptions? opts = null)
public AlmBitbucket(String name, AlmBitbucketArgs args)
public AlmBitbucket(String name, AlmBitbucketArgs args, CustomResourceOptions options)
type: sonarqube:AlmBitbucket
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 AlmBitbucketArgs
- 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 AlmBitbucketArgs
- 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 AlmBitbucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlmBitbucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlmBitbucketArgs
- 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 almBitbucketResource = new Sonarqube.AlmBitbucket("almBitbucketResource", new()
{
Key = "string",
PersonalAccessToken = "string",
Url = "string",
AlmBitbucketId = "string",
});
example, err := sonarqube.NewAlmBitbucket(ctx, "almBitbucketResource", &sonarqube.AlmBitbucketArgs{
Key: pulumi.String("string"),
PersonalAccessToken: pulumi.String("string"),
Url: pulumi.String("string"),
AlmBitbucketId: pulumi.String("string"),
})
var almBitbucketResource = new AlmBitbucket("almBitbucketResource", AlmBitbucketArgs.builder()
.key("string")
.personalAccessToken("string")
.url("string")
.almBitbucketId("string")
.build());
alm_bitbucket_resource = sonarqube.AlmBitbucket("almBitbucketResource",
key="string",
personal_access_token="string",
url="string",
alm_bitbucket_id="string")
const almBitbucketResource = new sonarqube.AlmBitbucket("almBitbucketResource", {
key: "string",
personalAccessToken: "string",
url: "string",
almBitbucketId: "string",
});
type: sonarqube:AlmBitbucket
properties:
almBitbucketId: string
key: string
personalAccessToken: string
url: string
AlmBitbucket 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 AlmBitbucket resource accepts the following input properties:
- Key string
- Unique key of the Bitbucket instance setting. Maximum length: 200
- Personal
Access stringToken - Bitbucket personal access token. Maximum length: 2000
- Url string
- Bitbucket server API URL. Maximum length: 2000
- Alm
Bitbucket stringId - The ID of this resource.
- Key string
- Unique key of the Bitbucket instance setting. Maximum length: 200
- Personal
Access stringToken - Bitbucket personal access token. Maximum length: 2000
- Url string
- Bitbucket server API URL. Maximum length: 2000
- Alm
Bitbucket stringId - The ID of this resource.
- key String
- Unique key of the Bitbucket instance setting. Maximum length: 200
- personal
Access StringToken - Bitbucket personal access token. Maximum length: 2000
- url String
- Bitbucket server API URL. Maximum length: 2000
- alm
Bitbucket StringId - The ID of this resource.
- key string
- Unique key of the Bitbucket instance setting. Maximum length: 200
- personal
Access stringToken - Bitbucket personal access token. Maximum length: 2000
- url string
- Bitbucket server API URL. Maximum length: 2000
- alm
Bitbucket stringId - The ID of this resource.
- key str
- Unique key of the Bitbucket instance setting. Maximum length: 200
- personal_
access_ strtoken - Bitbucket personal access token. Maximum length: 2000
- url str
- Bitbucket server API URL. Maximum length: 2000
- alm_
bitbucket_ strid - The ID of this resource.
- key String
- Unique key of the Bitbucket instance setting. Maximum length: 200
- personal
Access StringToken - Bitbucket personal access token. Maximum length: 2000
- url String
- Bitbucket server API URL. Maximum length: 2000
- alm
Bitbucket StringId - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlmBitbucket resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AlmBitbucket Resource
Get an existing AlmBitbucket 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?: AlmBitbucketState, opts?: CustomResourceOptions): AlmBitbucket@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alm_bitbucket_id: Optional[str] = None,
key: Optional[str] = None,
personal_access_token: Optional[str] = None,
url: Optional[str] = None) -> AlmBitbucketfunc GetAlmBitbucket(ctx *Context, name string, id IDInput, state *AlmBitbucketState, opts ...ResourceOption) (*AlmBitbucket, error)public static AlmBitbucket Get(string name, Input<string> id, AlmBitbucketState? state, CustomResourceOptions? opts = null)public static AlmBitbucket get(String name, Output<String> id, AlmBitbucketState state, CustomResourceOptions options)resources: _: type: sonarqube:AlmBitbucket 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.
- Alm
Bitbucket stringId - The ID of this resource.
- Key string
- Unique key of the Bitbucket instance setting. Maximum length: 200
- Personal
Access stringToken - Bitbucket personal access token. Maximum length: 2000
- Url string
- Bitbucket server API URL. Maximum length: 2000
- Alm
Bitbucket stringId - The ID of this resource.
- Key string
- Unique key of the Bitbucket instance setting. Maximum length: 200
- Personal
Access stringToken - Bitbucket personal access token. Maximum length: 2000
- Url string
- Bitbucket server API URL. Maximum length: 2000
- alm
Bitbucket StringId - The ID of this resource.
- key String
- Unique key of the Bitbucket instance setting. Maximum length: 200
- personal
Access StringToken - Bitbucket personal access token. Maximum length: 2000
- url String
- Bitbucket server API URL. Maximum length: 2000
- alm
Bitbucket stringId - The ID of this resource.
- key string
- Unique key of the Bitbucket instance setting. Maximum length: 200
- personal
Access stringToken - Bitbucket personal access token. Maximum length: 2000
- url string
- Bitbucket server API URL. Maximum length: 2000
- alm_
bitbucket_ strid - The ID of this resource.
- key str
- Unique key of the Bitbucket instance setting. Maximum length: 200
- personal_
access_ strtoken - Bitbucket personal access token. Maximum length: 2000
- url str
- Bitbucket server API URL. Maximum length: 2000
- alm
Bitbucket StringId - The ID of this resource.
- key String
- Unique key of the Bitbucket instance setting. Maximum length: 200
- personal
Access StringToken - Bitbucket personal access token. Maximum length: 2000
- url String
- Bitbucket server API URL. Maximum length: 2000
Package Details
- Repository
- sonarqube jdamata/terraform-provider-sonarqube
- License
- Notes
- This Pulumi package is based on the
sonarqubeTerraform Provider.
published on Thursday, Apr 2, 2026 by jdamata
