-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APP-16093] add smart classes to tf provider (#229)
- Loading branch information
1 parent
ed8148a
commit 843569b
Showing
26 changed files
with
3,536 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ website/node_modules | |
.terraform/ | ||
*.log | ||
*.bak | ||
.env | ||
*~ | ||
.*.swp | ||
.idea | ||
|
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,50 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "jupiterone_smart_class Resource - terraform-provider-jupiterone" | ||
subcategory: "" | ||
description: |- | ||
JupiterOne Smart Class | ||
--- | ||
|
||
# jupiterone_smart_class (Resource) | ||
|
||
JupiterOne Smart Class | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "jupiterone_smart_class" "example" { | ||
tag_name = "Example" | ||
description = "Example smart class" | ||
} | ||
resource "jupiterone_smart_class_query" "query1" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
query = "Find User" | ||
description = "Example query" | ||
} | ||
resource "jupiterone_smart_class_tag" "tag2" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
name = "user" | ||
type = "boolean" | ||
value = "true" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `tag_name` (String) The tag name of the smart class. | ||
|
||
### Optional | ||
|
||
- `description` (String) The description of the smart class. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
|
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,36 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "jupiterone_smart_class_query Resource - terraform-provider-jupiterone" | ||
subcategory: "" | ||
description: |- | ||
A smart class query is a J1QL query that finds entities to associate with a smart class | ||
--- | ||
|
||
# jupiterone_smart_class_query (Resource) | ||
|
||
A smart class query is a J1QL query that finds entities to associate with a smart class | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "jupiterone_smart_class_query" "query1" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
query = "Find User with active=true" | ||
description = "Find all active users" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `description` (String) A description of the smart class query | ||
- `query` (String) The J1QL query to find entities for the smart class | ||
- `smart_class_id` (String) The ID of the smart class to associate the query with | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
|
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,52 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "jupiterone_smart_class_tag Resource - terraform-provider-jupiterone" | ||
subcategory: "" | ||
description: |- | ||
A smart class tag is another tag applied to entities found by a smart class query | ||
--- | ||
|
||
# jupiterone_smart_class_tag (Resource) | ||
|
||
A smart class tag is another tag applied to entities found by a smart class query | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "jupiterone_smart_class_tag" "tag1" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
name = "person" | ||
type = "boolean" | ||
value = "true" | ||
} | ||
resource "jupiterone_smart_class_tag" "tag2" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
name = "worth" | ||
type = "number" | ||
value = "50000" | ||
} | ||
resource "jupiterone_smart_class_tag" "tag3" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
name = "label" | ||
type = "string" | ||
value = "example" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name (key) of the tag | ||
- `smart_class_id` (String) The ID of the smart class to associate the tag with | ||
- `type` (String) The type of the tag, one of 'string', 'boolean', or 'number' | ||
- `value` (String) The value of the tag as a string | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
|
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,18 @@ | ||
resource "jupiterone_smart_class" "example" { | ||
tag_name = "Example" | ||
description = "Example smart class" | ||
} | ||
|
||
resource "jupiterone_smart_class_query" "query1" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
query = "Find User" | ||
description = "Example query" | ||
} | ||
|
||
resource "jupiterone_smart_class_tag" "tag2" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
name = "user" | ||
type = "boolean" | ||
value = "true" | ||
} | ||
|
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,5 @@ | ||
resource "jupiterone_smart_class_query" "query1" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
query = "Find User with active=true" | ||
description = "Find all active users" | ||
} |
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,20 @@ | ||
resource "jupiterone_smart_class_tag" "tag1" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
name = "person" | ||
type = "boolean" | ||
value = "true" | ||
} | ||
|
||
resource "jupiterone_smart_class_tag" "tag2" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
name = "worth" | ||
type = "number" | ||
value = "50000" | ||
} | ||
|
||
resource "jupiterone_smart_class_tag" "tag3" { | ||
smart_class_id = jupiterone_smart_class.example.id | ||
name = "label" | ||
type = "string" | ||
value = "example" | ||
} |
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.