forked from mondoohq/terraform-provider-mondoo
-
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.
Signed-off-by: Matthias Theuermann <[email protected]>
- Loading branch information
1 parent
9b536ef
commit d9a147c
Showing
18 changed files
with
384 additions
and
146 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,74 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "mondoo_frameworks Data Source - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Data source to return compliance frameworks in a Space | ||
--- | ||
|
||
# mondoo_frameworks (Data Source) | ||
|
||
Data source to return compliance frameworks in a Space | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "mondoo_frameworks" "frameworks_data" { | ||
space_id = "your-space-1234567" | ||
} | ||
output "framework_mrn" { | ||
value = [for framework in data.mondoo_frameworks.frameworks_data.frameworks : framework.mrn] | ||
description = "The MRN of the frameworks in the space." | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `space_id` (String) Space ID | ||
- `space_mrn` (String) Space MRN | ||
|
||
### Read-Only | ||
|
||
- `frameworks` (Attributes List) List of compliance frameworks (see [below for nested schema](#nestedatt--frameworks)) | ||
|
||
<a id="nestedatt--frameworks"></a> | ||
### Nested Schema for `frameworks` | ||
|
||
Read-Only: | ||
|
||
- `authors` (Attributes List) List of authors (see [below for nested schema](#nestedatt--frameworks--authors)) | ||
- `mrn` (String) Compliance framework MRN | ||
- `name` (String) Compliance framework name | ||
- `previous_completion_scores` (Attributes List) List of previous completion scores (see [below for nested schema](#nestedatt--frameworks--previous_completion_scores)) | ||
- `state` (String) Compliance framework state is either `PREVIEW` or `ACTIVE` | ||
- `tags` (Attributes List) List of tags (see [below for nested schema](#nestedatt--frameworks--tags)) | ||
|
||
<a id="nestedatt--frameworks--authors"></a> | ||
### Nested Schema for `frameworks.authors` | ||
|
||
Read-Only: | ||
|
||
- `email` (String) Author email | ||
- `name` (String) Author name | ||
|
||
|
||
<a id="nestedatt--frameworks--previous_completion_scores"></a> | ||
### Nested Schema for `frameworks.previous_completion_scores` | ||
|
||
Read-Only: | ||
|
||
- `score` (Number) Score | ||
- `timestamp` (String) Timestamp | ||
|
||
|
||
<a id="nestedatt--frameworks--tags"></a> | ||
### Nested Schema for `frameworks.tags` | ||
|
||
Read-Only: | ||
|
||
- `key` (String) Tag key | ||
- `value` (String) Tag value |
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
9 changes: 0 additions & 9 deletions
9
examples/data-sources/mondoo_compliance_framework/data-source.tf
This file was deleted.
Oops, something went wrong.
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 @@ | ||
data "mondoo_frameworks" "frameworks_data" { | ||
space_id = "your-space-1234567" | ||
} | ||
|
||
output "framework_mrn" { | ||
value = [for framework in data.mondoo_frameworks.frameworks_data.frameworks : framework.mrn] | ||
description = "The MRN of the frameworks in the space." | ||
} |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...data-sources/mondoo_policy/data-source.tf → ...ta-sources/mondoo_policies/data-source.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
data "mondoo_policy" "policy" { | ||
data "mondoo_policies" "policies_data" { | ||
space_id = "your-space-1234567" | ||
catalog_type = "ALL" # available options: "ALL", "POLICY", "QUERYPACK" | ||
assigned_only = true | ||
} | ||
|
||
output "policies_mrn" { | ||
value = [for policy in data.mondoo_policy.policy.policies : policy.policy_mrn] | ||
value = [for policy in data.mondoo_policies.policies_data.policies : policy.policy_mrn] | ||
description = "The MRN of the policies in the space according to the filter criteria." | ||
} |
File renamed without changes.
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.