Skip to content

Commit

Permalink
[minor_change] Added certificate_usage property to aci_certificate_au…
Browse files Browse the repository at this point in the history
…thority
  • Loading branch information
samiib committed Nov 13, 2024
1 parent 974c43d commit 8b75d29
Show file tree
Hide file tree
Showing 7 changed files with 1,000 additions and 898 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/certificate_authority.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ data "aci_certificate_authority" "example_tenant" {
* `id` - (string) The distinguished name (DN) of the Certificate Authority object.
* `annotation` (annotation) - (string) The annotation of the Certificate Authority object.
* `certificate_chain` (certChain) - (string) The PEM-encoded chain of trust from the trustpoint to a trusted root authority.
* `certificate_usage` (certUsage) - (list) The certificate usage of the Certificate Authority object.
* `description` (descr) - (string) The description of the Certificate Authority object.
* `name_alias` (nameAlias) - (string) The name alias of the Certificate Authority object.
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
Expand Down
5 changes: 5 additions & 0 deletions docs/resources/certificate_authority.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ hvcNAQELBQADgYEAOmvre+5tgZ0+F3DgsfxNQqLTrGiBgGCIymPkP/cBXXkNuJyl
KU0Td2OpVyo0eLqjoX5u2G90IBWzhyjFbo+CcKMrSVKj1YOdG0E3OuiJf00=
-----END CERTIFICATE-----
EOT
certificate_usage = test_value
description = "description_1"
name = "test_name"
name_alias = "name_alias_1"
Expand Down Expand Up @@ -144,6 +145,7 @@ hvcNAQELBQADgYEAOmvre+5tgZ0+F3DgsfxNQqLTrGiBgGCIymPkP/cBXXkNuJyl
KU0Td2OpVyo0eLqjoX5u2G90IBWzhyjFbo+CcKMrSVKj1YOdG0E3OuiJf00=
-----END CERTIFICATE-----
EOT
certificate_usage = test_value
description = "description_1"
name = "test_name"
name_alias = "name_alias_1"
Expand Down Expand Up @@ -185,6 +187,9 @@ All examples for the Certificate Authority resource can be found in the [example
- Default: `uni/userext/pkiext`
* `annotation` (annotation) - (string) The annotation of the Certificate Authority object.
- Default: `orchestrator:terraform`
* `certificate_usage` (certUsage) - (list) The certificate usage of the Certificate Authority object.
- Default: `WebSvcOrAuth`.
- Valid Values: `WebSvcOrAuth`, `pxGrid`.
* `description` (descr) - (string) The description of the Certificate Authority object.
* `name_alias` (nameAlias) - (string) The name alias of the Certificate Authority object.
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ hvcNAQELBQADgYEAOmvre+5tgZ0+F3DgsfxNQqLTrGiBgGCIymPkP/cBXXkNuJyl
KU0Td2OpVyo0eLqjoX5u2G90IBWzhyjFbo+CcKMrSVKj1YOdG0E3OuiJf00=
-----END CERTIFICATE-----
EOT
certificate_usage = test_value
description = "description_1"
name = "test_name"
name_alias = "name_alias_1"
Expand Down Expand Up @@ -56,6 +57,7 @@ hvcNAQELBQADgYEAOmvre+5tgZ0+F3DgsfxNQqLTrGiBgGCIymPkP/cBXXkNuJyl
KU0Td2OpVyo0eLqjoX5u2G90IBWzhyjFbo+CcKMrSVKj1YOdG0E3OuiJf00=
-----END CERTIFICATE-----
EOT
certificate_usage = test_value
description = "description_1"
name = "test_name"
name_alias = "name_alias_1"
Expand Down
10 changes: 10 additions & 0 deletions gen/definitions/properties.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,27 @@ pkiTP:
default_values:
parent_dn: "uni/userext/pkiext"
overwrites:
cert_usage: "certificate_usage"
cert_chain: "certificate_chain"
ignores:
- "certUsage"
resource_required:
- "certChain"
ignore_properties_in_test:
certUsage: ""
documentation:
certUsage: "The certificate usage of the Certificate Authority object."
test_values:
resource_required:
certificate_chain: -----BEGIN CERTIFICATE-----\\nMIICODCCAaGgAwIBAgIJAIt8XMntue0VMA0GCSqGSIb3DQEBCwUAMDQxDjAMBgNV\\nBAMMBUFkbWluMRUwEwYDVQQKDAxZb3VyIENvbXBhbnkxCzAJBgNVBAYTAlVTMCAX\\nDTE4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zRvfruRs/fy1VXMB8GA1Ud\\nIwQYMBaAFD0jLXfpkrU/ChzRvfruRs/fy1VXMAwGA1UdEwQFMAMBAf8wDQYJKoZI\\nhvcNAQELBQADgYEAOmvre+5tgZ0+F3DgsfxNQqLTrGiBgGCIymPkP/cBXXkNuJyl\\n3ac7tArHQc7WEA4U2R2rZbEq8FC3UJJm4nUVtCPvEh3G9OhN2xwYev79yt6pIn/l\\nKU0Td2OpVyo0eLqjoX5u2G90IBWzhyjFbo+CcKMrSVKj1YOdG0E3OuiJf00=\\n-----END CERTIFICATE-----

tagTag:
Expand Down
Loading

0 comments on commit 8b75d29

Please sign in to comment.