Skip to content

Commit 8634e3e

Browse files
committed
generated docs
1 parent 6461575 commit 8634e3e

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

docs/resources/bitbucket_datacenter_integration.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,27 @@ description: |-
1313
## Example Usage
1414

1515
```terraform
16+
# When a Bitbucket Datacenter server is accessible from the public internet.
1617
resource "spacelift_bitbucket_datacenter_integration" "example" {
1718
name = "Bitbucket integration"
1819
is_default = false
1920
space_id = "root"
20-
api_host = "private://bitbucket_spacelift/bitbucket"
21-
user_facing_host = "https://bitbucket.spacelift.io/bitbucket"
21+
api_host = "https://mybitbucket.myorg.com"
22+
user_facing_host = "https://mybitbucket.myorg.com"
2223
username = "bitbucket_user_name"
23-
access_token = "ABCD-MDQ3NzgxMzg3NzZ0VpOejJZmQfBBlpxxJuK9j1LLQG8g"
24+
access_token = "ABCD-EFGhiJKlMNoPQrSTuVWxYz0123456789abCDefGhiJkL"
25+
}
26+
27+
# When a Bitbucket Datacenter server is not accessible from the public internet.
28+
# We need to use "private://" scheme to reach out our VCS Agent pool.
29+
resource "spacelift_bitbucket_datacenter_integration" "private-example" {
30+
name = "Bitbucket integration"
31+
is_default = false
32+
space_id = "root"
33+
api_host = "private://mybitbucket"
34+
user_facing_host = "https://mybitbucket.myorg.com"
35+
username = "bitbucket_user_name"
36+
access_token = "ABCD-EFGhiJKlMNoPQrSTuVWxYz0123456789abCDefGhiJkL"
2437
}
2538
```
2639

@@ -33,7 +46,7 @@ resource "spacelift_bitbucket_datacenter_integration" "example" {
3346
- `api_host` (String) The API host where requests will be sent
3447
- `is_default` (Boolean) Bitbucket Datacenter integration is default.
3548
- `name` (String) Bitbucket Datacenter integration name
36-
- `user_facing_host` (String) User Facing Host which will be user for all user-facing URLs displayed in the Spacelift UI
49+
- `user_facing_host` (String) User Facing Host which will be used for all user-facing URLs displayed in the Spacelift UI
3750
- `username` (String) Username which will be used to authenticate requests for cloning repositories
3851

3952
### Optional

0 commit comments

Comments
 (0)