@@ -13,14 +13,27 @@ description: |-
13
13
## Example Usage
14
14
15
15
``` terraform
16
+ # When a Bitbucket Datacenter server is accessible from the public internet.
16
17
resource "spacelift_bitbucket_datacenter_integration" "example" {
17
18
name = "Bitbucket integration"
18
19
is_default = false
19
20
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 "
22
23
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"
24
37
}
25
38
```
26
39
@@ -33,7 +46,7 @@ resource "spacelift_bitbucket_datacenter_integration" "example" {
33
46
- ` api_host ` (String) The API host where requests will be sent
34
47
- ` is_default ` (Boolean) Bitbucket Datacenter integration is default.
35
48
- ` 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
37
50
- ` username ` (String) Username which will be used to authenticate requests for cloning repositories
38
51
39
52
### Optional
0 commit comments