-
Notifications
You must be signed in to change notification settings - Fork 2
✨ new resource mondoo_workspace #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Salim Afiune Maya <[email protected]>
docs/resources/workspace.md
Outdated
page_title: "mondoo_workspace Resource - terraform-provider-mondoo" | ||
subcategory: "" | ||
description: |- | ||
Allows management of Mondoo Workspaces. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allows management of Mondoo Workspaces. | |
Allows management of Mondoo workspaces. |
|
||
### Required | ||
|
||
- `asset_selections` (Attributes List) A list of workspace selections. (see [below for nested schema](#nestedatt--asset_selections)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `asset_selections` (Attributes List) A list of workspace selections. (see [below for nested schema](#nestedatt--asset_selections)) | |
- `asset_selections` (Attributes List) A list of workspace selections. (See [below for nested schema](#nestedatt--asset_selections).) |
|
||
Required: | ||
|
||
- `conditions` (Attributes List) A list of conditions for the selection. (see [below for nested schema](#nestedatt--asset_selections--conditions)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `conditions` (Attributes List) A list of conditions for the selection. (see [below for nested schema](#nestedatt--asset_selections--conditions)) | |
- `conditions` (Attributes List) A list of conditions for the selection. (See [below for nested schema](#nestedatt--asset_selections--conditions).) |
|
||
Optional: | ||
|
||
- `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) | |
- `int_condition` (Attributes) A condition with values of type int. (See [below for nested schema](#nestedatt--asset_selections--conditions--int_condition).) |
Optional: | ||
|
||
- `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) | ||
- `key_value_condition` (Attributes) A condition with values of type key:value. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `key_value_condition` (Attributes) A condition with values of type key:value. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition)) | |
- `key_value_condition` (Attributes) A condition with values of type key:value. (See [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition).) |
|
||
- `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) | ||
- `key_value_condition` (Attributes) A condition with values of type key:value. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition)) | ||
- `rating_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--rating_condition)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `rating_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--rating_condition)) | |
- `rating_condition` (Attributes) A condition with values of type int. (See [below for nested schema](#nestedatt--asset_selections--conditions--rating_condition).) |
- `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) | ||
- `key_value_condition` (Attributes) A condition with values of type key:value. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition)) | ||
- `rating_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--rating_condition)) | ||
- `string_condition` (Attributes) A condition with values of type string. (see [below for nested schema](#nestedatt--asset_selections--conditions--string_condition)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `string_condition` (Attributes) A condition with values of type string. (see [below for nested schema](#nestedatt--asset_selections--conditions--string_condition)) | |
- `string_condition` (Attributes) A condition with values of type string. (See [below for nested schema](#nestedatt--asset_selections--conditions--string_condition).) |
|
||
- `field` (String) key:value field to match. Valid values: ["LABELS" "ANNOTATIONS"] | ||
- `operator` (String) Rating operator. Valid values: ["CONTAINS"] | ||
- `values` (Attributes List) key:value list to match. Values are ORed together. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition--values)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `values` (Attributes List) key:value list to match. Values are ORed together. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition--values)) | |
- `values` (Attributes List) key:value list to match. Values are ORed together. (See [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition--values).) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these changes see
> See
are part of the code generator, I will try to see if I can change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh rats! Well it would be great if you can... but of course it's not the end of the world. 😃
So nicely documented! I just nitpicked on capitalization. |
@misterpantz here is the change in the tool we use to auto generate the documentation |
Signed-off-by: Salim Afiune Maya <[email protected]>
dda8803
to
8ad8670
Compare
mondoo_workspace (Resource)
Allows management of Mondoo Workspaces.
Example Usage
Schema
Required
asset_selections
(Attributes List) A list of workspace selections. (see below for nested schema)name
(String) Name of the workspace.Optional
description
(String) Description of the workspace.space_id
(String) Mondoo space identifier. If there is no ID, the provider space is used.Read-Only
mrn
(String) The Mondoo resource name (MRN) of the workspace.Nested Schema for
asset_selections
Required:
conditions
(Attributes List) A list of conditions for the selection. (see below for nested schema)Nested Schema for
asset_selections.conditions
Required:
operator
(String) Operator determining how the condition is joined with the other conditions in the list. Valid values:AND
,AND_NOT
Optional:
int_condition
(Attributes) A condition with values of type int. (see below for nested schema)key_value_condition
(Attributes) A condition with values of type key:value. (see below for nested schema)rating_condition
(Attributes) A condition with values of type int. (see below for nested schema)string_condition
(Attributes) A condition with values of type string. (see below for nested schema)Nested Schema for
asset_selections.conditions.int_condition
Required:
field
(String) Numeric field to match. Valid values: ["RISK_SCORE"]operator
(String) Numeric operator. Valid values: ["EQUAL" "NOT_EQUAL" "GT" "LT"]values
(List of Number) Int values to match. Values are ORed together.Nested Schema for
asset_selections.conditions.key_value_condition
Required:
field
(String) key:value field to match. Valid values: ["LABELS" "ANNOTATIONS"]operator
(String) Rating operator. Valid values: ["CONTAINS"]values
(Attributes List) key:value list to match. Values are ORed together. (see below for nested schema)Nested Schema for
asset_selections.conditions.key_value_condition.values
Required:
key
(String) The key.value
(String) The value.Nested Schema for
asset_selections.conditions.rating_condition
Required:
field
(String) Rating field to match. Valid values: ["RISK"]operator
(String) Rating operator. Valid values: ["EQUAL" "NOT_EQUAL"]values
(List of String) Int values to match. Values are ORed together.Nested Schema for
asset_selections.conditions.string_condition
Required:
field
(String) String field to match. Valid values: ["PLATFORM" "PLATFORM_VERSION" "ASSET_NAME" "ASSET_KIND" "TECHNOLOGY"]operator
(String) String operator. Valid values: ["EQUAL" "NOT_EQUAL" "CONTAINS"]values
(List of String) String values to match. Values are ORed together.