-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show examples in documentation (#58)
- Loading branch information
1 parent
aa2d108
commit f149590
Showing
4 changed files
with
48 additions
and
15 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 |
---|---|---|
|
@@ -10,7 +10,21 @@ description: |- | |
|
||
A row in a SN table | ||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "servicenow-data_table_row" "example-with-sys_id" { | ||
table_id = "sys_user" | ||
sys_id = "7a9dde3e6fa4310005a9fbf7eb3ee495" | ||
} | ||
data "servicenow-data_table_row" "example-with-email-query" { | ||
table_id = "sys_user" | ||
row_data = { | ||
"email" : "[email protected]" | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
@@ -22,19 +36,17 @@ A row in a SN table | |
### Optional | ||
|
||
- `row_data` (Map of String) Columns | ||
- `sys_id` (String) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `sys_class_name` (String) | ||
- `sys_created_by` (String) | ||
- `sys_created_on` (String) | ||
- `sys_domain` (String) | ||
- `sys_domain_path` (String) | ||
- `sys_id` (String) | ||
- `sys_mod_count` (String) | ||
- `sys_tags` (String) | ||
- `sys_updated_by` (String) | ||
- `sys_updated_on` (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 |
---|---|---|
|
@@ -10,7 +10,30 @@ description: |- | |
|
||
A row in a SN table | ||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "servicenow-data_table_row" "example-with-sys_id" { | ||
table_id = "sys_user" | ||
sys_id = "7a9dde3e6fa4310005a9fbf7eb3ee495" | ||
} | ||
data "servicenow-data_table_row" "example-with-email-query" { | ||
table_id = "sys_user" | ||
row_data = { | ||
"email" : "[email protected]" | ||
} | ||
} | ||
resource "servicenow-data_table_row" "example-row" { | ||
table_id = "x_example_table" | ||
row_data = { | ||
"field1" : "value1", | ||
"field2" : "value2" | ||
"approvers" : "${data.servicenow-data_table_row.example-with-email-query.sys_id},${data.servicenow-data_table_row.example-with-sys_id.sys_id}" | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
@@ -22,21 +45,21 @@ A row in a SN table | |
### Optional | ||
|
||
- `row_data` (Map of String) Columns | ||
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `sys_class_name` (String) | ||
- `sys_created_by` (String) | ||
- `sys_created_on` (String) | ||
- `sys_domain` (String) | ||
- `sys_domain_path` (String) | ||
- `sys_id` (String) | ||
- `sys_mod_count` (String) | ||
- `sys_tags` (String) | ||
- `sys_updated_by` (String) | ||
- `sys_updated_on` (String) | ||
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `sys_id` (String) | ||
|
||
<a id="nestedblock--timeouts"></a> | ||
### Nested Schema for `timeouts` | ||
|
@@ -48,5 +71,3 @@ Optional: | |
- `delete` (String) | ||
- `read` (String) | ||
- `update` (String) | ||
|
||
|
File renamed without changes.
File renamed without changes.