1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. cloudbuild
  5. BitbucketServerConfig
Google Cloud Classic v6.66.0 published on Monday, Sep 18, 2023 by Pulumi

gcp.cloudbuild.BitbucketServerConfig

Explore with Pulumi AI

gcp logo
Google Cloud Classic v6.66.0 published on Monday, Sep 18, 2023 by Pulumi

    BitbucketServerConfig represents the configuration for a Bitbucket Server.

    To get more information about BitbucketServerConfig, see:

    Example Usage

    Cloudbuild Bitbucket Server Config

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var bbs_config = new Gcp.CloudBuild.BitbucketServerConfig("bbs-config", new()
        {
            ApiKey = "<api-key>",
            ConfigId = "bbs-config",
            HostUri = "https://bbs.com",
            Location = "us-central1",
            Secrets = new Gcp.CloudBuild.Inputs.BitbucketServerConfigSecretsArgs
            {
                AdminAccessTokenVersionName = "projects/myProject/secrets/mybbspat/versions/1",
                ReadAccessTokenVersionName = "projects/myProject/secrets/mybbspat/versions/1",
                WebhookSecretVersionName = "projects/myProject/secrets/mybbspat/versions/1",
            },
            Username = "test",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuild"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudbuild.NewBitbucketServerConfig(ctx, "bbs-config", &cloudbuild.BitbucketServerConfigArgs{
    			ApiKey:   pulumi.String("<api-key>"),
    			ConfigId: pulumi.String("bbs-config"),
    			HostUri:  pulumi.String("https://bbs.com"),
    			Location: pulumi.String("us-central1"),
    			Secrets: &cloudbuild.BitbucketServerConfigSecretsArgs{
    				AdminAccessTokenVersionName: pulumi.String("projects/myProject/secrets/mybbspat/versions/1"),
    				ReadAccessTokenVersionName:  pulumi.String("projects/myProject/secrets/mybbspat/versions/1"),
    				WebhookSecretVersionName:    pulumi.String("projects/myProject/secrets/mybbspat/versions/1"),
    			},
    			Username: pulumi.String("test"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.cloudbuild.BitbucketServerConfig;
    import com.pulumi.gcp.cloudbuild.BitbucketServerConfigArgs;
    import com.pulumi.gcp.cloudbuild.inputs.BitbucketServerConfigSecretsArgs;
    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 bbs_config = new BitbucketServerConfig("bbs-config", BitbucketServerConfigArgs.builder()        
                .apiKey("<api-key>")
                .configId("bbs-config")
                .hostUri("https://bbs.com")
                .location("us-central1")
                .secrets(BitbucketServerConfigSecretsArgs.builder()
                    .adminAccessTokenVersionName("projects/myProject/secrets/mybbspat/versions/1")
                    .readAccessTokenVersionName("projects/myProject/secrets/mybbspat/versions/1")
                    .webhookSecretVersionName("projects/myProject/secrets/mybbspat/versions/1")
                    .build())
                .username("test")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    bbs_config = gcp.cloudbuild.BitbucketServerConfig("bbs-config",
        api_key="<api-key>",
        config_id="bbs-config",
        host_uri="https://bbs.com",
        location="us-central1",
        secrets=gcp.cloudbuild.BitbucketServerConfigSecretsArgs(
            admin_access_token_version_name="projects/myProject/secrets/mybbspat/versions/1",
            read_access_token_version_name="projects/myProject/secrets/mybbspat/versions/1",
            webhook_secret_version_name="projects/myProject/secrets/mybbspat/versions/1",
        ),
        username="test")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const bbs_config = new gcp.cloudbuild.BitbucketServerConfig("bbs-config", {
        apiKey: "<api-key>",
        configId: "bbs-config",
        hostUri: "https://bbs.com",
        location: "us-central1",
        secrets: {
            adminAccessTokenVersionName: "projects/myProject/secrets/mybbspat/versions/1",
            readAccessTokenVersionName: "projects/myProject/secrets/mybbspat/versions/1",
            webhookSecretVersionName: "projects/myProject/secrets/mybbspat/versions/1",
        },
        username: "test",
    });
    
    resources:
      bbs-config:
        type: gcp:cloudbuild:BitbucketServerConfig
        properties:
          apiKey: <api-key>
          configId: bbs-config
          hostUri: https://bbs.com
          location: us-central1
          secrets:
            adminAccessTokenVersionName: projects/myProject/secrets/mybbspat/versions/1
            readAccessTokenVersionName: projects/myProject/secrets/mybbspat/versions/1
            webhookSecretVersionName: projects/myProject/secrets/mybbspat/versions/1
          username: test
    

    Cloudbuild Bitbucket Server Config Repositories

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var bbs_config_with_repos = new Gcp.CloudBuild.BitbucketServerConfig("bbs-config-with-repos", new()
        {
            ApiKey = "<api-key>",
            ConfigId = "bbs-config",
            ConnectedRepositories = new[]
            {
                new Gcp.CloudBuild.Inputs.BitbucketServerConfigConnectedRepositoryArgs
                {
                    ProjectKey = "DEV",
                    RepoSlug = "repo1",
                },
                new Gcp.CloudBuild.Inputs.BitbucketServerConfigConnectedRepositoryArgs
                {
                    ProjectKey = "PROD",
                    RepoSlug = "repo1",
                },
            },
            HostUri = "https://bbs.com",
            Location = "us-central1",
            Secrets = new Gcp.CloudBuild.Inputs.BitbucketServerConfigSecretsArgs
            {
                AdminAccessTokenVersionName = "projects/myProject/secrets/mybbspat/versions/1",
                ReadAccessTokenVersionName = "projects/myProject/secrets/mybbspat/versions/1",
                WebhookSecretVersionName = "projects/myProject/secrets/mybbspat/versions/1",
            },
            Username = "test",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudbuild"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudbuild.NewBitbucketServerConfig(ctx, "bbs-config-with-repos", &cloudbuild.BitbucketServerConfigArgs{
    			ApiKey:   pulumi.String("<api-key>"),
    			ConfigId: pulumi.String("bbs-config"),
    			ConnectedRepositories: cloudbuild.BitbucketServerConfigConnectedRepositoryArray{
    				&cloudbuild.BitbucketServerConfigConnectedRepositoryArgs{
    					ProjectKey: pulumi.String("DEV"),
    					RepoSlug:   pulumi.String("repo1"),
    				},
    				&cloudbuild.BitbucketServerConfigConnectedRepositoryArgs{
    					ProjectKey: pulumi.String("PROD"),
    					RepoSlug:   pulumi.String("repo1"),
    				},
    			},
    			HostUri:  pulumi.String("https://bbs.com"),
    			Location: pulumi.String("us-central1"),
    			Secrets: &cloudbuild.BitbucketServerConfigSecretsArgs{
    				AdminAccessTokenVersionName: pulumi.String("projects/myProject/secrets/mybbspat/versions/1"),
    				ReadAccessTokenVersionName:  pulumi.String("projects/myProject/secrets/mybbspat/versions/1"),
    				WebhookSecretVersionName:    pulumi.String("projects/myProject/secrets/mybbspat/versions/1"),
    			},
    			Username: pulumi.String("test"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.cloudbuild.BitbucketServerConfig;
    import com.pulumi.gcp.cloudbuild.BitbucketServerConfigArgs;
    import com.pulumi.gcp.cloudbuild.inputs.BitbucketServerConfigConnectedRepositoryArgs;
    import com.pulumi.gcp.cloudbuild.inputs.BitbucketServerConfigSecretsArgs;
    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 bbs_config_with_repos = new BitbucketServerConfig("bbs-config-with-repos", BitbucketServerConfigArgs.builder()        
                .apiKey("<api-key>")
                .configId("bbs-config")
                .connectedRepositories(            
                    BitbucketServerConfigConnectedRepositoryArgs.builder()
                        .projectKey("DEV")
                        .repoSlug("repo1")
                        .build(),
                    BitbucketServerConfigConnectedRepositoryArgs.builder()
                        .projectKey("PROD")
                        .repoSlug("repo1")
                        .build())
                .hostUri("https://bbs.com")
                .location("us-central1")
                .secrets(BitbucketServerConfigSecretsArgs.builder()
                    .adminAccessTokenVersionName("projects/myProject/secrets/mybbspat/versions/1")
                    .readAccessTokenVersionName("projects/myProject/secrets/mybbspat/versions/1")
                    .webhookSecretVersionName("projects/myProject/secrets/mybbspat/versions/1")
                    .build())
                .username("test")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    bbs_config_with_repos = gcp.cloudbuild.BitbucketServerConfig("bbs-config-with-repos",
        api_key="<api-key>",
        config_id="bbs-config",
        connected_repositories=[
            gcp.cloudbuild.BitbucketServerConfigConnectedRepositoryArgs(
                project_key="DEV",
                repo_slug="repo1",
            ),
            gcp.cloudbuild.BitbucketServerConfigConnectedRepositoryArgs(
                project_key="PROD",
                repo_slug="repo1",
            ),
        ],
        host_uri="https://bbs.com",
        location="us-central1",
        secrets=gcp.cloudbuild.BitbucketServerConfigSecretsArgs(
            admin_access_token_version_name="projects/myProject/secrets/mybbspat/versions/1",
            read_access_token_version_name="projects/myProject/secrets/mybbspat/versions/1",
            webhook_secret_version_name="projects/myProject/secrets/mybbspat/versions/1",
        ),
        username="test")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const bbs_config_with_repos = new gcp.cloudbuild.BitbucketServerConfig("bbs-config-with-repos", {
        apiKey: "<api-key>",
        configId: "bbs-config",
        connectedRepositories: [
            {
                projectKey: "DEV",
                repoSlug: "repo1",
            },
            {
                projectKey: "PROD",
                repoSlug: "repo1",
            },
        ],
        hostUri: "https://bbs.com",
        location: "us-central1",
        secrets: {
            adminAccessTokenVersionName: "projects/myProject/secrets/mybbspat/versions/1",
            readAccessTokenVersionName: "projects/myProject/secrets/mybbspat/versions/1",
            webhookSecretVersionName: "projects/myProject/secrets/mybbspat/versions/1",
        },
        username: "test",
    });
    
    resources:
      bbs-config-with-repos:
        type: gcp:cloudbuild:BitbucketServerConfig
        properties:
          apiKey: <api-key>
          configId: bbs-config
          connectedRepositories:
            - projectKey: DEV
              repoSlug: repo1
            - projectKey: PROD
              repoSlug: repo1
          hostUri: https://bbs.com
          location: us-central1
          secrets:
            adminAccessTokenVersionName: projects/myProject/secrets/mybbspat/versions/1
            readAccessTokenVersionName: projects/myProject/secrets/mybbspat/versions/1
            webhookSecretVersionName: projects/myProject/secrets/mybbspat/versions/1
          username: test
    

    Create BitbucketServerConfig Resource

    new BitbucketServerConfig(name: string, args: BitbucketServerConfigArgs, opts?: CustomResourceOptions);
    @overload
    def BitbucketServerConfig(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              api_key: Optional[str] = None,
                              config_id: Optional[str] = None,
                              connected_repositories: Optional[Sequence[BitbucketServerConfigConnectedRepositoryArgs]] = None,
                              host_uri: Optional[str] = None,
                              location: Optional[str] = None,
                              peered_network: Optional[str] = None,
                              project: Optional[str] = None,
                              secrets: Optional[BitbucketServerConfigSecretsArgs] = None,
                              ssl_ca: Optional[str] = None,
                              username: Optional[str] = None)
    @overload
    def BitbucketServerConfig(resource_name: str,
                              args: BitbucketServerConfigArgs,
                              opts: Optional[ResourceOptions] = None)
    func NewBitbucketServerConfig(ctx *Context, name string, args BitbucketServerConfigArgs, opts ...ResourceOption) (*BitbucketServerConfig, error)
    public BitbucketServerConfig(string name, BitbucketServerConfigArgs args, CustomResourceOptions? opts = null)
    public BitbucketServerConfig(String name, BitbucketServerConfigArgs args)
    public BitbucketServerConfig(String name, BitbucketServerConfigArgs args, CustomResourceOptions options)
    
    type: gcp:cloudbuild:BitbucketServerConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args BitbucketServerConfigArgs
    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 BitbucketServerConfigArgs
    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 BitbucketServerConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BitbucketServerConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BitbucketServerConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    BitbucketServerConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The BitbucketServerConfig resource accepts the following input properties:

    ApiKey string

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    ConfigId string

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    HostUri string

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    Location string

    The location of this bitbucket server config.

    Secrets BitbucketServerConfigSecrets

    Secret Manager secrets needed by the config. Structure is documented below.

    Username string

    Username of the account Cloud Build will use on Bitbucket Server.

    ConnectedRepositories List<BitbucketServerConfigConnectedRepository>

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    PeeredNetwork string

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    SslCa string

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    ApiKey string

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    ConfigId string

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    HostUri string

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    Location string

    The location of this bitbucket server config.

    Secrets BitbucketServerConfigSecretsArgs

    Secret Manager secrets needed by the config. Structure is documented below.

    Username string

    Username of the account Cloud Build will use on Bitbucket Server.

    ConnectedRepositories []BitbucketServerConfigConnectedRepositoryArgs

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    PeeredNetwork string

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    SslCa string

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    apiKey String

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    configId String

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    hostUri String

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    location String

    The location of this bitbucket server config.

    secrets BitbucketServerConfigSecrets

    Secret Manager secrets needed by the config. Structure is documented below.

    username String

    Username of the account Cloud Build will use on Bitbucket Server.

    connectedRepositories List<BitbucketServerConfigConnectedRepository>

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    peeredNetwork String

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    sslCa String

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    apiKey string

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    configId string

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    hostUri string

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    location string

    The location of this bitbucket server config.

    secrets BitbucketServerConfigSecrets

    Secret Manager secrets needed by the config. Structure is documented below.

    username string

    Username of the account Cloud Build will use on Bitbucket Server.

    connectedRepositories BitbucketServerConfigConnectedRepository[]

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    peeredNetwork string

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    sslCa string

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    api_key str

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    config_id str

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    host_uri str

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    location str

    The location of this bitbucket server config.

    secrets BitbucketServerConfigSecretsArgs

    Secret Manager secrets needed by the config. Structure is documented below.

    username str

    Username of the account Cloud Build will use on Bitbucket Server.

    connected_repositories Sequence[BitbucketServerConfigConnectedRepositoryArgs]

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    peered_network str

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    ssl_ca str

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    apiKey String

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    configId String

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    hostUri String

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    location String

    The location of this bitbucket server config.

    secrets Property Map

    Secret Manager secrets needed by the config. Structure is documented below.

    username String

    Username of the account Cloud Build will use on Bitbucket Server.

    connectedRepositories List<Property Map>

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    peeredNetwork String

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    sslCa String

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    Outputs

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

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The resource name for the config.

    WebhookKey string

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The resource name for the config.

    WebhookKey string

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The resource name for the config.

    webhookKey String

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    The resource name for the config.

    webhookKey string

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    The resource name for the config.

    webhook_key str

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The resource name for the config.

    webhookKey String

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    Look up Existing BitbucketServerConfig Resource

    Get an existing BitbucketServerConfig 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?: BitbucketServerConfigState, opts?: CustomResourceOptions): BitbucketServerConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_key: Optional[str] = None,
            config_id: Optional[str] = None,
            connected_repositories: Optional[Sequence[BitbucketServerConfigConnectedRepositoryArgs]] = None,
            host_uri: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            peered_network: Optional[str] = None,
            project: Optional[str] = None,
            secrets: Optional[BitbucketServerConfigSecretsArgs] = None,
            ssl_ca: Optional[str] = None,
            username: Optional[str] = None,
            webhook_key: Optional[str] = None) -> BitbucketServerConfig
    func GetBitbucketServerConfig(ctx *Context, name string, id IDInput, state *BitbucketServerConfigState, opts ...ResourceOption) (*BitbucketServerConfig, error)
    public static BitbucketServerConfig Get(string name, Input<string> id, BitbucketServerConfigState? state, CustomResourceOptions? opts = null)
    public static BitbucketServerConfig get(String name, Output<String> id, BitbucketServerConfigState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    ApiKey string

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    ConfigId string

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    ConnectedRepositories List<BitbucketServerConfigConnectedRepository>

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    HostUri string

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    Location string

    The location of this bitbucket server config.

    Name string

    The resource name for the config.

    PeeredNetwork string

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Secrets BitbucketServerConfigSecrets

    Secret Manager secrets needed by the config. Structure is documented below.

    SslCa string

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    Username string

    Username of the account Cloud Build will use on Bitbucket Server.

    WebhookKey string

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    ApiKey string

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    ConfigId string

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    ConnectedRepositories []BitbucketServerConfigConnectedRepositoryArgs

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    HostUri string

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    Location string

    The location of this bitbucket server config.

    Name string

    The resource name for the config.

    PeeredNetwork string

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    Project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Secrets BitbucketServerConfigSecretsArgs

    Secret Manager secrets needed by the config. Structure is documented below.

    SslCa string

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    Username string

    Username of the account Cloud Build will use on Bitbucket Server.

    WebhookKey string

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    apiKey String

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    configId String

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    connectedRepositories List<BitbucketServerConfigConnectedRepository>

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    hostUri String

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    location String

    The location of this bitbucket server config.

    name String

    The resource name for the config.

    peeredNetwork String

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    secrets BitbucketServerConfigSecrets

    Secret Manager secrets needed by the config. Structure is documented below.

    sslCa String

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    username String

    Username of the account Cloud Build will use on Bitbucket Server.

    webhookKey String

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    apiKey string

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    configId string

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    connectedRepositories BitbucketServerConfigConnectedRepository[]

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    hostUri string

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    location string

    The location of this bitbucket server config.

    name string

    The resource name for the config.

    peeredNetwork string

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    project string

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    secrets BitbucketServerConfigSecrets

    Secret Manager secrets needed by the config. Structure is documented below.

    sslCa string

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    username string

    Username of the account Cloud Build will use on Bitbucket Server.

    webhookKey string

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    api_key str

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    config_id str

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    connected_repositories Sequence[BitbucketServerConfigConnectedRepositoryArgs]

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    host_uri str

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    location str

    The location of this bitbucket server config.

    name str

    The resource name for the config.

    peered_network str

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    project str

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    secrets BitbucketServerConfigSecretsArgs

    Secret Manager secrets needed by the config. Structure is documented below.

    ssl_ca str

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    username str

    Username of the account Cloud Build will use on Bitbucket Server.

    webhook_key str

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    apiKey String

    Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.

    configId String

    The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

    connectedRepositories List<Property Map>

    Connected Bitbucket Server repositories for this config. Structure is documented below.

    hostUri String

    Immutable. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig.

    location String

    The location of this bitbucket server config.

    name String

    The resource name for the config.

    peeredNetwork String

    The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.

    project String

    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    secrets Property Map

    Secret Manager secrets needed by the config. Structure is documented below.

    sslCa String

    SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt.

    username String

    Username of the account Cloud Build will use on Bitbucket Server.

    webhookKey String

    Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.

    Supporting Types

    BitbucketServerConfigConnectedRepository, BitbucketServerConfigConnectedRepositoryArgs

    ProjectKey string

    Identifier for the project storing the repository.

    RepoSlug string

    Identifier for the repository.

    ProjectKey string

    Identifier for the project storing the repository.

    RepoSlug string

    Identifier for the repository.

    projectKey String

    Identifier for the project storing the repository.

    repoSlug String

    Identifier for the repository.

    projectKey string

    Identifier for the project storing the repository.

    repoSlug string

    Identifier for the repository.

    project_key str

    Identifier for the project storing the repository.

    repo_slug str

    Identifier for the repository.

    projectKey String

    Identifier for the project storing the repository.

    repoSlug String

    Identifier for the repository.

    BitbucketServerConfigSecrets, BitbucketServerConfigSecretsArgs

    AdminAccessTokenVersionName string

    The resource name for the admin access token's secret version.

    ReadAccessTokenVersionName string

    The resource name for the read access token's secret version.

    WebhookSecretVersionName string

    Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.


    AdminAccessTokenVersionName string

    The resource name for the admin access token's secret version.

    ReadAccessTokenVersionName string

    The resource name for the read access token's secret version.

    WebhookSecretVersionName string

    Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.


    adminAccessTokenVersionName String

    The resource name for the admin access token's secret version.

    readAccessTokenVersionName String

    The resource name for the read access token's secret version.

    webhookSecretVersionName String

    Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.


    adminAccessTokenVersionName string

    The resource name for the admin access token's secret version.

    readAccessTokenVersionName string

    The resource name for the read access token's secret version.

    webhookSecretVersionName string

    Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.


    admin_access_token_version_name str

    The resource name for the admin access token's secret version.

    read_access_token_version_name str

    The resource name for the read access token's secret version.

    webhook_secret_version_name str

    Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.


    adminAccessTokenVersionName String

    The resource name for the admin access token's secret version.

    readAccessTokenVersionName String

    The resource name for the read access token's secret version.

    webhookSecretVersionName String

    Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource.


    Import

    BitbucketServerConfig can be imported using any of these accepted formats

     $ pulumi import gcp:cloudbuild/bitbucketServerConfig:BitbucketServerConfig default projects/{{project}}/locations/{{location}}/bitbucketServerConfigs/{{config_id}}
    
     $ pulumi import gcp:cloudbuild/bitbucketServerConfig:BitbucketServerConfig default {{project}}/{{location}}/{{config_id}}
    
     $ pulumi import gcp:cloudbuild/bitbucketServerConfig:BitbucketServerConfig default {{location}}/{{config_id}}
    

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the google-beta Terraform Provider.

    gcp logo
    Google Cloud Classic v6.66.0 published on Monday, Sep 18, 2023 by Pulumi