-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(entry_certificate): add entry_certificate resource and data source
- Loading branch information
1 parent
9d3655e
commit 4115a3d
Showing
13 changed files
with
996 additions
and
5 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,55 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "dvls_entry_certificate Data Source - terraform-provider-dvls" | ||
subcategory: "" | ||
description: |- | ||
Certificate data source | ||
--- | ||
|
||
# dvls_entry_certificate (Data Source) | ||
|
||
Certificate data source | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "dvls_entry_certificate" "example" { | ||
id = "00000000-0000-0000-0000-000000000000" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) Certificate ID | ||
|
||
### Read-Only | ||
|
||
- `description` (String) Certificate description | ||
- `expiration` (String) Certificate expiration date, in RFC3339 format (e.g. 2022-12-31T23:59:59-05:00) | ||
- `file` (Attributes, Sensitive) Certificate file. Either file or url must be specified. (see [below for nested schema](#nestedatt--file)) | ||
- `folder` (String) Certificate folder path | ||
- `name` (String) Certificate name | ||
- `password` (String, Sensitive) Certificate password | ||
- `tags` (List of String) Certificate tags | ||
- `url` (Attributes) Certificate url. Either file or url must be specified. (see [below for nested schema](#nestedatt--url)) | ||
- `vault_id` (String) Vault ID | ||
|
||
<a id="nestedatt--file"></a> | ||
### Nested Schema for `file` | ||
|
||
Read-Only: | ||
|
||
- `content_b64` (String, Sensitive) Certificate base 64 encoded string | ||
- `name` (String) Certificate file name | ||
|
||
|
||
<a id="nestedatt--url"></a> | ||
### Nested Schema for `url` | ||
|
||
Read-Only: | ||
|
||
- `url` (String) Certificate url | ||
- `use_default_credentials` (Boolean) Use default credentials |
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,97 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "dvls_entry_certificate Resource - terraform-provider-dvls" | ||
subcategory: "" | ||
description: |- | ||
A DVLS Certificate | ||
--- | ||
|
||
# dvls_entry_certificate (Resource) | ||
|
||
A DVLS Certificate | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Example with URL | ||
resource "dvls_entry_certificate" "url" { | ||
vault_id = "00000000-0000-0000-0000-000000000000" | ||
name = "foo" | ||
description = "bar" | ||
password = "bar" | ||
folder = "foo\\bar" | ||
expiration = "2022-12-31T23:59:59-05:00" | ||
tags = ["foo", "bar"] | ||
url = { | ||
url = "http://foo.bar" | ||
use_default_credentials = false | ||
} | ||
} | ||
# Example with file content | ||
resource "dvls_entry_certificate" "file" { | ||
vault_id = "00000000-0000-0000-0000-000000000000" | ||
name = "foo" | ||
description = "bar" | ||
password = "bar" | ||
folder = "foo\\bar" | ||
expiration = "2022-12-31T23:59:59-05:00" | ||
tags = ["foo", "bar"] | ||
file = { | ||
name = "test.p12" | ||
content_b64 = filebase64("test.p12") | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `expiration` (String) Certificate expiration date, in RFC3339 format (e.g. 2022-12-31T23:59:59-05:00) | ||
- `name` (String) Certificate name | ||
- `vault_id` (String) Vault ID | ||
|
||
### Optional | ||
|
||
- `description` (String) Certificate description | ||
- `file` (Attributes, Sensitive) Certificate file. Either file or url must be specified. (see [below for nested schema](#nestedatt--file)) | ||
- `folder` (String) Certificate folder path | ||
- `password` (String, Sensitive) Certificate password | ||
- `tags` (List of String) Certificate tags | ||
- `url` (Attributes) Certificate url. Either file or url must be specified. (see [below for nested schema](#nestedatt--url)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Certificate ID | ||
|
||
<a id="nestedatt--file"></a> | ||
### Nested Schema for `file` | ||
|
||
Required: | ||
|
||
- `content_b64` (String, Sensitive) Certificate base 64 encoded string | ||
- `name` (String) Certificate file name | ||
|
||
|
||
<a id="nestedatt--url"></a> | ||
### Nested Schema for `url` | ||
|
||
Required: | ||
|
||
- `url` (String) Certificate url | ||
|
||
Optional: | ||
|
||
- `use_default_credentials` (Boolean) Use default credentials | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import dvls_entry_certificate.example 00000000-0000-0000-0000-000000000000 | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "dvls_entry_certificate" "example" { | ||
id = "00000000-0000-0000-0000-000000000000" | ||
} |
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 dvls_entry_certificate.example 00000000-0000-0000-0000-000000000000 |
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,31 @@ | ||
# Example with URL | ||
resource "dvls_entry_certificate" "url" { | ||
vault_id = "00000000-0000-0000-0000-000000000000" | ||
name = "foo" | ||
description = "bar" | ||
password = "bar" | ||
folder = "foo\\bar" | ||
expiration = "2022-12-31T23:59:59-05:00" | ||
tags = ["foo", "bar"] | ||
|
||
url = { | ||
url = "http://foo.bar" | ||
use_default_credentials = false | ||
} | ||
} | ||
|
||
# Example with file content | ||
resource "dvls_entry_certificate" "file" { | ||
vault_id = "00000000-0000-0000-0000-000000000000" | ||
name = "foo" | ||
description = "bar" | ||
password = "bar" | ||
folder = "foo\\bar" | ||
expiration = "2022-12-31T23:59:59-05:00" | ||
tags = ["foo", "bar"] | ||
|
||
file = { | ||
name = "test.p12" | ||
content_b64 = filebase64("test.p12") | ||
} | ||
} |
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.