gcp.cloudbuild.BitbucketServerConfig
Explore with Pulumi AI
BitbucketServerConfig represents the configuration for a Bitbucket Server.
To get more information about BitbucketServerConfig, see:
- API documentation
- How-to Guides
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:
- Api
Key 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.
- Config
Id string The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- Host
Uri 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
Bitbucket
Server Config Secrets Secret Manager secrets needed by the config. Structure is documented below.
- Username string
Username of the account Cloud Build will use on Bitbucket Server.
- Connected
Repositories List<BitbucketServer Config Connected Repository> Connected Bitbucket Server repositories for this config. Structure is documented below.
- Peered
Network 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.
- Ssl
Ca 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 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.
- Config
Id string The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- Host
Uri 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
Bitbucket
Server Config Secrets Args Secret Manager secrets needed by the config. Structure is documented below.
- Username string
Username of the account Cloud Build will use on Bitbucket Server.
- Connected
Repositories []BitbucketServer Config Connected Repository Args Connected Bitbucket Server repositories for this config. Structure is documented below.
- Peered
Network 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.
- Ssl
Ca 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 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.
- config
Id String The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- host
Uri 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
Bitbucket
Server Config Secrets Secret Manager secrets needed by the config. Structure is documented below.
- username String
Username of the account Cloud Build will use on Bitbucket Server.
- connected
Repositories List<BitbucketServer Config Connected Repository> Connected Bitbucket Server repositories for this config. Structure is documented below.
- peered
Network 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.
- ssl
Ca 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 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.
- config
Id string The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- host
Uri 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
Bitbucket
Server Config Secrets Secret Manager secrets needed by the config. Structure is documented below.
- username string
Username of the account Cloud Build will use on Bitbucket Server.
- connected
Repositories BitbucketServer Config Connected Repository[] Connected Bitbucket Server repositories for this config. Structure is documented below.
- peered
Network 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.
- ssl
Ca 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
Bitbucket
Server Config Secrets Args 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[BitbucketServer Config Connected Repository Args] 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.
- api
Key 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.
- config
Id String The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- host
Uri 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.
- connected
Repositories List<Property Map> Connected Bitbucket Server repositories for this config. Structure is documented below.
- peered
Network 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.
- ssl
Ca 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.
- Webhook
Key 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.
- Webhook
Key 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.
- webhook
Key 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.
- webhook
Key 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.
- webhook
Key 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.
- Api
Key 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.
- Config
Id string The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- Connected
Repositories List<BitbucketServer Config Connected Repository> Connected Bitbucket Server repositories for this config. Structure is documented below.
- Host
Uri 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.
- Peered
Network 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
Bitbucket
Server Config Secrets Secret Manager secrets needed by the config. Structure is documented below.
- Ssl
Ca 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.
- Webhook
Key string Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
- Api
Key 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.
- Config
Id string The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- Connected
Repositories []BitbucketServer Config Connected Repository Args Connected Bitbucket Server repositories for this config. Structure is documented below.
- Host
Uri 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.
- Peered
Network 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
Bitbucket
Server Config Secrets Args Secret Manager secrets needed by the config. Structure is documented below.
- Ssl
Ca 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.
- Webhook
Key string Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
- api
Key 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.
- config
Id String The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- connected
Repositories List<BitbucketServer Config Connected Repository> Connected Bitbucket Server repositories for this config. Structure is documented below.
- host
Uri 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.
- peered
Network 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
Bitbucket
Server Config Secrets Secret Manager secrets needed by the config. Structure is documented below.
- ssl
Ca 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.
- webhook
Key String Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
- api
Key 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.
- config
Id string The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- connected
Repositories BitbucketServer Config Connected Repository[] Connected Bitbucket Server repositories for this config. Structure is documented below.
- host
Uri 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.
- peered
Network 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
Bitbucket
Server Config Secrets Secret Manager secrets needed by the config. Structure is documented below.
- ssl
Ca 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.
- webhook
Key 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[BitbucketServer Config Connected Repository Args] 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
Bitbucket
Server Config Secrets Args 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.
- api
Key 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.
- config
Id String The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.
- connected
Repositories List<Property Map> Connected Bitbucket Server repositories for this config. Structure is documented below.
- host
Uri 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.
- peered
Network 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.
- ssl
Ca 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.
- webhook
Key String Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config.
Supporting Types
BitbucketServerConfigConnectedRepository, BitbucketServerConfigConnectedRepositoryArgs
- Project
Key string Identifier for the project storing the repository.
- Repo
Slug string Identifier for the repository.
- Project
Key string Identifier for the project storing the repository.
- Repo
Slug string Identifier for the repository.
- project
Key String Identifier for the project storing the repository.
- repo
Slug String Identifier for the repository.
- project
Key string Identifier for the project storing the repository.
- repo
Slug string Identifier for the repository.
- project_
key str Identifier for the project storing the repository.
- repo_
slug str Identifier for the repository.
- project
Key String Identifier for the project storing the repository.
- repo
Slug String Identifier for the repository.
BitbucketServerConfigSecrets, BitbucketServerConfigSecretsArgs
- Admin
Access stringToken Version Name The resource name for the admin access token's secret version.
- Read
Access stringToken Version Name The resource name for the read access token's secret version.
- Webhook
Secret stringVersion Name 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 stringToken Version Name The resource name for the admin access token's secret version.
- Read
Access stringToken Version Name The resource name for the read access token's secret version.
- Webhook
Secret stringVersion Name 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 StringToken Version Name The resource name for the admin access token's secret version.
- read
Access StringToken Version Name The resource name for the read access token's secret version.
- webhook
Secret StringVersion Name 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 stringToken Version Name The resource name for the admin access token's secret version.
- read
Access stringToken Version Name The resource name for the read access token's secret version.
- webhook
Secret stringVersion Name 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_ strtoken_ version_ name The resource name for the admin access token's secret version.
- read_
access_ strtoken_ version_ name The resource name for the read access token's secret version.
- webhook_
secret_ strversion_ name 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 StringToken Version Name The resource name for the admin access token's secret version.
- read
Access StringToken Version Name The resource name for the read access token's secret version.
- webhook
Secret StringVersion Name 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.