-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add organization_collection resource (#14)
* Add organization_collection resource * Fix issues with older versions
- Loading branch information
Showing
19 changed files
with
765 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "vaultwarden_organization_collection Resource - vaultwarden" | ||
subcategory: "" | ||
description: |- | ||
This resource creates a Vaultwarden organization collection. | ||
--- | ||
|
||
# vaultwarden_organization_collection (Resource) | ||
|
||
This resource creates a Vaultwarden organization collection. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "vaultwarden_organization" "example" { | ||
name = "Example" | ||
} | ||
resource "vaultwarden_organization_collection" "example" { | ||
organization_id = vaultwarden_organization.example.id | ||
name = "Example Collection" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the organization collection | ||
- `organization_id` (String) ID of the organization that the collection belongs to | ||
|
||
### Optional | ||
|
||
- `external_id` (String) An optional identifier that can be assigned to the collection for integration with external systems. This identifier is not generated by Vaultwarden and must be provided explicitly. It is typically used to link the collection to external systems, such as directory services (e.g., LDAP, Active Directory) or custom automation workflows. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) ID of the organization collection | ||
- `last_updated` (String) Timestamp of the last update | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import vaultwarden_organization_collection.example <org_id>/<id> | ||
``` |
1 change: 1 addition & 0 deletions
1
examples/resources/vaultwarden_organization_collection/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import vaultwarden_organization_collection.example <org_id>/<id> |
8 changes: 8 additions & 0 deletions
8
examples/resources/vaultwarden_organization_collection/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
resource "vaultwarden_organization" "example" { | ||
name = "Example" | ||
} | ||
|
||
resource "vaultwarden_organization_collection" "example" { | ||
organization_id = vaultwarden_organization.example.id | ||
name = "Example Collection" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.