From 8634e3e1d429c9dcde23506d8e8cf643bf520b5c Mon Sep 17 00:00:00 2001 From: Piotr Truszkowski Date: Tue, 5 Mar 2024 13:49:43 +0100 Subject: [PATCH] generated docs --- .../bitbucket_datacenter_integration.md | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/docs/resources/bitbucket_datacenter_integration.md b/docs/resources/bitbucket_datacenter_integration.md index 06e7b254..c4574ad8 100644 --- a/docs/resources/bitbucket_datacenter_integration.md +++ b/docs/resources/bitbucket_datacenter_integration.md @@ -13,14 +13,27 @@ description: |- ## Example Usage ```terraform +# When a Bitbucket Datacenter server is accessible from the public internet. resource "spacelift_bitbucket_datacenter_integration" "example" { name = "Bitbucket integration" is_default = false space_id = "root" - api_host = "private://bitbucket_spacelift/bitbucket" - user_facing_host = "https://bitbucket.spacelift.io/bitbucket" + api_host = "https://mybitbucket.myorg.com" + user_facing_host = "https://mybitbucket.myorg.com" username = "bitbucket_user_name" - access_token = "ABCD-MDQ3NzgxMzg3NzZ0VpOejJZmQfBBlpxxJuK9j1LLQG8g" + access_token = "ABCD-EFGhiJKlMNoPQrSTuVWxYz0123456789abCDefGhiJkL" +} + +# When a Bitbucket Datacenter server is not accessible from the public internet. +# We need to use "private://" scheme to reach out our VCS Agent pool. +resource "spacelift_bitbucket_datacenter_integration" "private-example" { + name = "Bitbucket integration" + is_default = false + space_id = "root" + api_host = "private://mybitbucket" + user_facing_host = "https://mybitbucket.myorg.com" + username = "bitbucket_user_name" + access_token = "ABCD-EFGhiJKlMNoPQrSTuVWxYz0123456789abCDefGhiJkL" } ``` @@ -33,7 +46,7 @@ resource "spacelift_bitbucket_datacenter_integration" "example" { - `api_host` (String) The API host where requests will be sent - `is_default` (Boolean) Bitbucket Datacenter integration is default. - `name` (String) Bitbucket Datacenter integration name -- `user_facing_host` (String) User Facing Host which will be user for all user-facing URLs displayed in the Spacelift UI +- `user_facing_host` (String) User Facing Host which will be used for all user-facing URLs displayed in the Spacelift UI - `username` (String) Username which will be used to authenticate requests for cloning repositories ### Optional