-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align mTLS Imperva to Origin URL with Imperva API and add provider re…
…source documentations (#419) * add docs for mtls imperva to origin resource * add docs for mtls imperva to origin resource and update the mtls api path to align with the latest changes on the Imperva public API
- Loading branch information
1 parent
5793852
commit 1184493
Showing
6 changed files
with
91 additions
and
15 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
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
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
42 changes: 42 additions & 0 deletions
42
website/docs/r/mtls_imperva_to_origin_certificate.html.markdown
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,42 @@ | ||
--- | ||
subcategory: "Provider Reference" | ||
layout: "incapsula" | ||
page_title: "incapsula_mtls_imperva_to_origin_certificate" | ||
description: |- | ||
Provides a Mutual TLS Imperva to Origin certificate resource. | ||
--- | ||
|
||
# incapsula_mtls_imperva_to_origin_certificate | ||
|
||
Provides a Mutual TLS Imperva to Origin certificate resource. | ||
This resource is used to upload mTLS client certificates to enable mutual authentication between Imperva and origin servers. | ||
Mutual TLS Imperva to Origin Certificates must be in one of the following formats: pem, der, pfx, cert, crt, p7b, cer, p12, key, ca-bundle, bundle, priv, cert. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "incapsula_mtls_imperva_to_origin_certificate" "mtls_imperva_to_origin_certificate"{ | ||
certificate = filebase64("${"path/to/your/cert.pem"}") | ||
private_key = filebase64("${"path/to/your/private_key.pem"}") | ||
passphrase = "my_passphrase" | ||
certificate_name = "pem certificate example" | ||
account_id = "incapsula_account.example-account.id" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `certificate` - (Required) Your mTLS client certificate file. Supported formats: pem, der, pfx, cert, crt, p7b, cer, p12, ca-bundle, bundle, cert. | ||
You can use the Terraform HCL `filebase64` directive to pull in the contents from a file. You can also embed the certificate in the configuration. | ||
* `private_key` - Your private key file. supported formats: pem, der, priv, key. If pfx or p12 certificate is used, then this field can remain empty. | ||
* `passphrase` - Your private key passphrase. Leave empty if the private key is not password protected. | ||
* `certificate_name` - (Optional) A descriptive name for your mTLS Certificate. | ||
* `account_id` - (Required) Numeric identifier of the account to operate on. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - Unique identifier of the Mutual TLS Imperva to Origin Certificate. |
34 changes: 34 additions & 0 deletions
34
website/docs/r/mtls_imperva_to_origin_certificate_site_association.html.markdown
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,34 @@ | ||
--- | ||
subcategory: "Provider Reference" | ||
layout: "incapsula" | ||
page_title: "incapsula_mtls_imperva_to_origin_certificate" | ||
description: |- | ||
Provides a Mutual TLS Imperva to Origin certificate resource. | ||
--- | ||
|
||
# incapsula_mtls_imperva_to_origin_certificate_site_association | ||
|
||
Provides a Mutual TLS Imperva to Origin certificate Association resource. | ||
This resource is used to associate between mTLS client certificates and site. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "incapsula_mtls_imperva_to_origin_certificate_site_association" "mtls_imperva_to_origin_certificate_site_association"{ | ||
site_id = incapsula_site.example-site.id | ||
certificate_id = incapsula_certificate.example-certificate.id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `site_id` - (Required) Site id to assign to a given mTLS client certificate. | ||
* `certificate_id` - (Required) The mTLS certificate id you want to assign to your site. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - Unique identifier of the Mutual TLS Imperva to Origin Certificate. |