-
Notifications
You must be signed in to change notification settings - Fork 108
Add plugin framework #343
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
Merged
tobio
merged 15 commits into
elastic:main
from
wandergeek:O11Y-236-new-plugin-framework
Oct 12, 2023
Merged
Add plugin framework #343
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b9e9199
wip
wandergeek 18bd254
add docs
wandergeek fb10085
wip
wandergeek 1c34a23
wip
wandergeek eecb3e1
Generate docs
tobio a58fac9
Existing provider resources work
tobio 41d6e35
Support client creation in the plugin framework
tobio c052e62
Remove plugin testing
tobio c2ce6f9
Import saved objects
tobio 5fa5736
Add docs template
tobio 8add7d9
Upgrade FW and validators
tobio bf7994e
WIP
tobio 80b08fc
PR feedback
tobio aa5916c
Update check on import saved objects
tobio bf73cd7
Changelog
tobio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,99 @@ | ||
--- | ||
subcategory: "Kibana" | ||
layout: "" | ||
page_title: "Elasticstack: elasticstack_kibana_import_saved_objects Resource" | ||
description: |- | ||
Create sets of Kibana saved objects from a file created by the export API. | ||
--- | ||
|
||
# Resource: elasticstack_kibana_import_saved_objects | ||
|
||
Create sets of Kibana saved objects from a file created by the export API. See https://www.elastic.co/guide/en/kibana/current/saved-objects-api-import.html | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
provider "elasticstack" { | ||
kibana {} | ||
} | ||
|
||
resource "elasticstack_kibana_import_saved_objects" "settings" { | ||
overwrite = true | ||
file_contents = <<-EOT | ||
{"attributes":{"buildNum":42747,"defaultIndex":"metricbeat-*","theme:darkMode":true},"coreMigrationVersion":"7.0.0","id":"7.14.0","managed":false,"references":[],"type":"config","typeMigrationVersion":"7.0.0","updated_at":"2021-08-04T02:04:43.306Z","version":"WzY1MiwyXQ=="} | ||
{"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":1,"missingRefCount":0,"missingReferences":[]} | ||
EOT | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `file_contents` (String) The contents of the exported saved objects file. | ||
|
||
### Optional | ||
|
||
- `ignore_import_errors` (Boolean) If set to true, errors during the import process will not fail the configuration application | ||
- `overwrite` (Boolean) Overwrites saved objects when they already exist. When used, potential conflict errors are automatically resolved by overwriting the destination object. | ||
- `space_id` (String) An identifier for the space. If space_id is not provided, the default space is used. | ||
|
||
### Read-Only | ||
|
||
- `errors` (List of Object) (see [below for nested schema](#nestedatt--errors)) | ||
- `id` (String) Generated ID for the import. | ||
- `success` (Boolean) Indicates when the import was successfully completed. When set to false, some objects may not have been created. For additional information, refer to the errors and success_results properties. | ||
- `success_count` (Number) Indicates the number of successfully imported records. | ||
- `success_results` (List of Object) (see [below for nested schema](#nestedatt--success_results)) | ||
|
||
<a id="nestedatt--errors"></a> | ||
### Nested Schema for `errors` | ||
|
||
Read-Only: | ||
|
||
- `error` (Object) (see [below for nested schema](#nestedobjatt--errors--error)) | ||
- `id` (String) | ||
- `meta` (Object) (see [below for nested schema](#nestedobjatt--errors--meta)) | ||
- `title` (String) | ||
- `type` (String) | ||
|
||
<a id="nestedobjatt--errors--error"></a> | ||
### Nested Schema for `errors.error` | ||
|
||
Read-Only: | ||
|
||
- `type` (String) | ||
|
||
|
||
<a id="nestedobjatt--errors--meta"></a> | ||
### Nested Schema for `errors.meta` | ||
|
||
Read-Only: | ||
|
||
- `icon` (String) | ||
- `title` (String) | ||
|
||
|
||
|
||
<a id="nestedatt--success_results"></a> | ||
### Nested Schema for `success_results` | ||
|
||
Read-Only: | ||
|
||
- `destination_id` (String) | ||
- `id` (String) | ||
- `meta` (Object) (see [below for nested schema](#nestedobjatt--success_results--meta)) | ||
- `type` (String) | ||
|
||
<a id="nestedobjatt--success_results--meta"></a> | ||
### Nested Schema for `success_results.meta` | ||
|
||
Read-Only: | ||
|
||
- `icon` (String) | ||
- `title` (String) | ||
|
||
## Import | ||
|
||
Import is not supported. |
11 changes: 11 additions & 0 deletions
11
examples/resources/elasticstack_kibana_import_saved_objects/resource.tf
This file contains hidden or 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,11 @@ | ||
provider "elasticstack" { | ||
kibana {} | ||
} | ||
|
||
resource "elasticstack_kibana_import_saved_objects" "settings" { | ||
overwrite = true | ||
file_contents = <<-EOT | ||
{"attributes":{"buildNum":42747,"defaultIndex":"metricbeat-*","theme:darkMode":true},"coreMigrationVersion":"7.0.0","id":"7.14.0","managed":false,"references":[],"type":"config","typeMigrationVersion":"7.0.0","updated_at":"2021-08-04T02:04:43.306Z","version":"WzY1MiwyXQ=="} | ||
{"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":1,"missingRefCount":0,"missingReferences":[]} | ||
EOT | ||
} |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.