diff --git a/docs/data-sources/accounts.md b/docs/data-sources/accounts.md index a108cfe1..27bb16f6 100644 --- a/docs/data-sources/accounts.md +++ b/docs/data-sources/accounts.md @@ -26,7 +26,7 @@ data "octopusdeploy_accounts" "example" { ### Optional -- `account_type` (String) A filter to search by a list of account types. Valid account types are `AmazonWebServicesAccount`, `AmazonWebServicesRoleAccount`, `AmazonWebServicesOidcAccount`, `AzureServicePrincipal`, `AzureSubscription`, `None`, `SshKeyPair`, `Token`, or `UsernamePassword`. +- `account_type` (String) A filter to search by a list of account types. Valid account types are `AmazonWebServicesAccount`, `AmazonWebServicesRoleAccount`, `AmazonWebServicesOidcAccount`, `AzureServicePrincipal`, `AzureSubscription`, `GenericOidcAccount`, `None`, `SshKeyPair`, `Token`, or `UsernamePassword`. - `ids` (List of String) A filter to search by a list of IDs. - `partial_name` (String) A filter to search by the partial match of a name. - `skip` (Number) A filter to specify the number of items to skip in the response. diff --git a/docs/resources/generic_openid_connect_account.md b/docs/resources/generic_openid_connect_account.md new file mode 100644 index 00000000..514089d7 --- /dev/null +++ b/docs/resources/generic_openid_connect_account.md @@ -0,0 +1,48 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "octopusdeploy_generic_openid_connect_account Resource - terraform-provider-octopusdeploy" +subcategory: "" +description: |- + This resource manages Generic OpenID Connect accounts in Octopus Deploy. +--- + +# octopusdeploy_generic_openid_connect_account (Resource) + +This resource manages Generic OpenID Connect accounts in Octopus Deploy. + +## Example Usage + +```terraform +resource "octopusdeploy_generic_openid_connect_account" "example" { + name = "Generic OpenID Connect Account (OK to Delete)" + execution_subject_keys = ["space", "project"] + audience = "api://default" +} +``` + + +## Schema + +### Required + +- `name` (String) The name of this resource. + +### Optional + +- `audience` (String) Federated credentials audience, this value is used to establish a connection between external workload identities and Microsoft Entra ID. +- `description` (String) The description of this Azure OpenID Connect account. +- `environments` (List of String) A list of environment IDs associated with this resource. +- `execution_subject_keys` (List of String) Keys to include in a deployment or runbook. Valid options are `space`, `environment`, `project`, `tenant`, `runbook`, `account`, `type` +- `id` (String) The unique ID for this resource. +- `space_id` (String) The space ID associated with this resource. +- `tenant_tags` (List of String) A list of tenant tags associated with this resource. +- `tenanted_deployment_participation` (String) The tenanted deployment mode of the resource. Valid account types are `Untenanted`, `TenantedOrUntenanted`, or `Tenanted`. +- `tenants` (List of String) A list of tenant IDs associated with this resource. + +## Import + +Import is supported using the following syntax: + +```shell +terraform import [options] octopusdeploy_generic_openid_connect_account. +``` diff --git a/go.mod b/go.mod index 7e10c51b..5b907d7a 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/OctopusDeploy/terraform-provider-octopusdeploy go 1.21 require ( - github.com/OctopusDeploy/go-octopusdeploy/v2 v2.60.0 + github.com/OctopusDeploy/go-octopusdeploy/v2 v2.62.3-0.20241202024636-075a4f06c227 github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v0.0.0-20240729041805-46db6fb717b4 github.com/google/uuid v1.6.0 github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637 diff --git a/go.sum b/go.sum index d8eeb086..957e0955 100644 --- a/go.sum +++ b/go.sum @@ -22,6 +22,8 @@ github.com/OctopusDeploy/go-octodiff v1.0.0 h1:U+ORg6azniwwYo+O44giOw6TiD5USk8S4 github.com/OctopusDeploy/go-octodiff v1.0.0/go.mod h1:Mze0+EkOWTgTmi8++fyUc6r0aLZT7qD9gX+31t8MmIU= github.com/OctopusDeploy/go-octopusdeploy/v2 v2.60.0 h1:9j4IQ1UcAuaTytlBzQ7Mmoy/dLtofYfSGNiM22+sLXs= github.com/OctopusDeploy/go-octopusdeploy/v2 v2.60.0/go.mod h1:ggvOXzMnq+w0pLg6C9zdjz6YBaHfO3B3tqmmB7JQdaw= +github.com/OctopusDeploy/go-octopusdeploy/v2 v2.62.3-0.20241202024636-075a4f06c227 h1:ejQL4mdWMoF7PhOQUu/G4hZHfFYbXg+XuvXtMpFpllw= +github.com/OctopusDeploy/go-octopusdeploy/v2 v2.62.3-0.20241202024636-075a4f06c227/go.mod h1:ggvOXzMnq+w0pLg6C9zdjz6YBaHfO3B3tqmmB7JQdaw= github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v0.0.0-20240729041805-46db6fb717b4 h1:QfbVf0bOIRMp/WHAWsuVDB7KHoWnRsGbvDuOf2ua7k4= github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v0.0.0-20240729041805-46db6fb717b4/go.mod h1:Oq9KbiRNDBB5jFmrwnrgLX0urIqR/1ptY18TzkqXm7M= github.com/ProtonMail/go-crypto v1.1.0-alpha.2 h1:bkyFVUP+ROOARdgCiJzNQo2V2kiB97LyUpzH9P6Hrlg=