Resource: BitbucketServerConfig
BitbucketServerConfig represents the configuration for a Bitbucket Server.
JSON representation |
---|
{ "name": string, "hostUri": string, "secrets": { object ( |
Fields | |
---|---|
name |
The resource name for the config. |
hostUri |
Required. 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. |
secrets |
Required. Secret Manager secrets needed by the config. |
createTime |
Time when the config was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
username |
Username of the account Cloud Build will use on Bitbucket Server. |
webhookKey |
Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config. |
apiKey |
Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig. |
connectedRepositories[] |
Output only. Connected Bitbucket Server repositories for this config. |
peeredNetwork |
Optional. 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 |
sslCa |
Optional. 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. |
peeredNetworkIpRange |
Immutable. IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. |
BitbucketServerSecrets
BitbucketServerSecrets represents the secrets in Secret Manager for a Bitbucket Server.
JSON representation |
---|
{ "adminAccessTokenVersionName": string, "readAccessTokenVersionName": string, "webhookSecretVersionName": string } |
Fields | |
---|---|
adminAccessTokenVersionName |
Required. The resource name for the admin access token's secret version. |
readAccessTokenVersionName |
Required. The resource name for the read access token's secret version. |
webhookSecretVersionName |
Required. Immutable. The resource name for the webhook secret's secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig. |
BitbucketServerRepositoryId
BitbucketServerRepositoryId identifies a specific repository hosted on a Bitbucket Server.
JSON representation |
---|
{ "projectKey": string, "repoSlug": string, "webhookId": integer } |
Fields | |
---|---|
projectKey |
Required. Identifier for the project storing the repository. |
repoSlug |
Required. Identifier for the repository. |
webhookId |
Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo. |
Methods |
|
---|---|
|
Creates a new BitbucketServerConfig . |
|
Delete a BitbucketServerConfig . |
|
Retrieve a BitbucketServerConfig . |
|
List all BitbucketServerConfigs for a given project. |
|
Updates an existing BitbucketServerConfig . |
|
Remove a Bitbucket Server repository from a given BitbucketServerConfig's connected repositories. |