-
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.
Merge pull request #55 from raito-io/grant-categories
Grant categories data soruce
- Loading branch information
Showing
23 changed files
with
1,751 additions
and
633 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "raito_grant_category Data Source - terraform-provider-raito" | ||
subcategory: "" | ||
description: |- | ||
Find a grant category by name | ||
--- | ||
|
||
# raito_grant_category (Data Source) | ||
|
||
Find a grant category by name | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "raito_grant_category" "example" { | ||
name = "Purpose" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the requested grant category | ||
|
||
### Read-Only | ||
|
||
- `allow_duplicate_names` (Boolean) Indicates if duplicate names are allowed for grants of this category | ||
- `allowed_what_items` (Attributes) Allowed WHAT items for the grant category (see [below for nested schema](#nestedatt--allowed_what_items)) | ||
- `allowed_who_items` (Attributes) Allowed WHO items for the grant category (see [below for nested schema](#nestedatt--allowed_who_items)) | ||
- `can_create` (Boolean) Indicates if grants of this category can be created | ||
- `default_type_per_data_source` (Attributes Set) List of data sources and types for which the grant category is the default (see [below for nested schema](#nestedatt--default_type_per_data_source)) | ||
- `description` (String) The description of the grant category | ||
- `id` (String) The ID of the requested grant category | ||
- `is_default` (Boolean) Indicates if the grant category is the default category | ||
- `is_system` (Boolean) Indicates if the grant category is a system category | ||
- `multi_data_source` (Boolean) Indicates if APs of this category can have multiple data sources | ||
|
||
<a id="nestedatt--allowed_what_items"></a> | ||
### Nested Schema for `allowed_what_items` | ||
|
||
Read-Only: | ||
|
||
- `data_object` (Boolean) Indicates if a data object is allowed as a WHAT item | ||
|
||
|
||
<a id="nestedatt--allowed_who_items"></a> | ||
### Nested Schema for `allowed_who_items` | ||
|
||
Read-Only: | ||
|
||
- `categories` (Set of String) List of grant category IDs that are allowed as WHO items | ||
- `group` (Boolean) Indicates if a group is allowed as a WHO item | ||
- `inheritance` (Boolean) Indicates if inheritance is allowed as a WHO item | ||
- `self` (Boolean) Indicates if self is allowed as a WHO item | ||
- `user` (Boolean) Indicates if a user is allowed as a WHO item | ||
|
||
|
||
<a id="nestedatt--default_type_per_data_source"></a> | ||
### Nested Schema for `default_type_per_data_source` | ||
|
||
Read-Only: | ||
|
||
- `data_source` (String) Data source ID for which the default type is the defined grant category | ||
- `type` (String) Types for which this grant category is the default for the defined data source |
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,105 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "raito_grant_category Resource - terraform-provider-raito" | ||
subcategory: "" | ||
description: |- | ||
The grant category resource allows you to manage grant categories in Raito. | ||
--- | ||
|
||
# raito_grant_category (Resource) | ||
|
||
The grant category resource allows you to manage grant categories in Raito. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "raito_datasource" "ds" { | ||
name = "exampleDS" | ||
} | ||
resource "raito_grant_category" "example_category" { | ||
name = "exampleCategory" | ||
description = "A simple category" | ||
icon = "testIcon" | ||
can_create = true | ||
allow_duplicated_names = true | ||
multi_data_source = true | ||
default_type_per_data_source = [ | ||
{ | ||
data_source : raito_datasource.ds.id | ||
type : "table" | ||
} | ||
] | ||
allowed_who_items = { | ||
user = true | ||
group = true | ||
inheritance = true | ||
self = true | ||
categories = ["otherCategoryId"] | ||
} | ||
allowed_what_items = { | ||
data_object = true | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `icon` (String) The icon of the grant category | ||
- `name` (String) The name of the grant category | ||
|
||
### Optional | ||
|
||
- `allow_duplicate_names` (Boolean) Whether the user can create grants with duplicate names in this category | ||
- `allowed_what_items` (Attributes) The allowed WHAT items for the grants of this category (see [below for nested schema](#nestedatt--allowed_what_items)) | ||
- `allowed_who_items` (Attributes) The allowed WHO items for the grants of this category (see [below for nested schema](#nestedatt--allowed_who_items)) | ||
- `can_create` (Boolean) Whether the user can create grants in this category | ||
- `default_type_per_data_source` (Attributes Set) The default category for each data source, type pair (see [below for nested schema](#nestedatt--default_type_per_data_source)) | ||
- `description` (String) The description of the grant category | ||
- `multi_data_source` (Boolean) Whether the grant category supports multiple data sources | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of the grant category | ||
- `is_default` (Boolean) Whether the grant category is a default category | ||
- `is_system` (Boolean) Whether the grant category is a system category | ||
|
||
<a id="nestedatt--allowed_what_items"></a> | ||
### Nested Schema for `allowed_what_items` | ||
|
||
Optional: | ||
|
||
- `data_object` (Boolean) The allowed WHAT items for the grants of this category | ||
|
||
|
||
<a id="nestedatt--allowed_who_items"></a> | ||
### Nested Schema for `allowed_who_items` | ||
|
||
Optional: | ||
|
||
- `categories` (Set of String) The allowed WHO items for the grants of this category | ||
- `group` (Boolean) Whether the group is allowed as WHO item for the grants of this category | ||
- `inheritance` (Boolean) Whether the inheritance is allowed as WHO item for the grants of this category | ||
- `self` (Boolean) Whether the self is allowed as WHO item for the grants of this category | ||
- `user` (Boolean) Whether the user is allowed as WHO item for the grants of this category | ||
|
||
|
||
<a id="nestedatt--default_type_per_data_source"></a> | ||
### Nested Schema for `default_type_per_data_source` | ||
|
||
Required: | ||
|
||
- `data_source` (String) The data source for which the default type is set | ||
- `type` (String) The default type for the data source | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
#Import grant. Not that who and what_data_objects will not be imported | ||
terraform import raito_grant_category.example GrantCategoryId | ||
``` |
Oops, something went wrong.