You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/resource.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ data "restful_resource" "test" {
28
28
### Optional
29
29
30
30
-`allow_not_exist` (Boolean) Whether to throw error if the data source being queried doesn't exist (i.e. status code is 404). Defaults to `false`.
31
+
-`body` (Dynamic) The request body that is sent when using `POST` method.
31
32
-`header` (Map of String) The header parameters that are applied to each request. This overrides the `header` set in the provider block.
32
33
-`method` (String) The HTTP Method for the request. Allowed methods are a subset of methods defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3) namely, `GET`, `HEAD`, and `POST`. `POST` support is only intended for read-only URLs, such as submitting a search. Defaults to `GET`.
33
34
-`output_attrs` (Set of String) A set of `output` attribute paths (in [gjson syntax](https://github.com/tidwall/gjson/blob/master/SYNTAX.md)) that will be exported in the `output`. If this is not specified, all attributes will be exported by `output`.
Description: "The request body that is sent when using `POST` method.",
73
+
MarkdownDescription: "The request body that is sent when using `POST` method.",
74
+
Optional: true,
75
+
},
70
76
"selector": schema.StringAttribute{
71
77
Description: "A selector in gjson query syntax, that is used when `id` represents a collection of resources, to select exactly one member resource of from it",
72
78
MarkdownDescription: "A selector in [gjson query syntax](https://github.com/tidwall/gjson/blob/master/SYNTAX.md#queries), that is used when `id` represents a collection of resources, to select exactly one member resource of from it",
0 commit comments