Commit graph

67 commits

Author SHA1 Message Date
Jesus Wahrman
3f5e855d29
[docs] Remove experimental message from saved objects import and export apis for 8.12 (#202529)
## Summary

Same as https://github.com/elastic/kibana/pull/202173 but for 8.12


### Checklist

Check the PR satisfies following conditions. 

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
2024-12-03 22:29:49 -08:00
Luke Elmers
6df50ea666
Remove mention of config SO types from SO.create API docs. (#168538) 2023-10-17 09:40:49 -06:00
Lisa Cawley
aab7f6e368
[DOCS] Remove a-data-source shared attribute (#167943) 2023-10-05 12:46:16 -07:00
Lisa Cawley
16f7189bb1
[OAS] Add deprecated saved object APIs (#164355) 2023-08-25 12:48:55 -07:00
Lisa Cawley
8ce51770a5
[OAS] Add saved objects openAPI folder (#162522) 2023-08-16 16:01:50 -07:00
Pierre Gayvallet
b08c322524
Allow exporting all SO types (#159289)
## Summary

Fix https://github.com/elastic/kibana/issues/150079

Add support for the `*` wildcard for by-type export, allowing to more
easily export all the exportable SO types

```
POST /api/saved_objects/_export
{
   types: '*',
}
```

## Release Note

The savedObjects export API now supports exporting all types using the
`*` wildcard. Please refer to the documentation
for more details and examples.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-06-12 00:03:54 -07:00
Aleh Zasypkin
7112c286ab
Document compatibilityMode query string parameter in Resolve import errors API. (#155696) 2023-04-25 17:36:31 +02:00
Aleh Zasypkin
a1fccfd880
Support generating legacy URL aliases for objects that change IDs during import. (#149021) 2023-04-03 10:54:23 +02:00
Christiane (Tina) Heiligers
b14af4b243
API docs: Add deprecation warning to all deprecated Saved Object APIs (#150267) 2023-02-07 09:28:13 -07:00
Sébastien Loix
0e6fa006c1
[SavedObjectClient] Add support to exclude references when searching (#142479) 2022-10-04 04:19:22 -07:00
Christiane (Tina) Heiligers
8bfe338d73
Documents saved objects bulk delete API (#141164)
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
2022-09-22 07:06:27 -07:00
Matthew Kime
bde1ba53dc
fix paths in sample code in docs (#130215) 2022-04-14 09:38:27 -05:00
Joe Portner
4920ace1d5
Add enhancements for legacy URL aliases (#125960) 2022-03-18 13:11:11 -07:00
Christiane (Tina) Heiligers
1cff513284
Adds API docs for Saved Objects Bulk Update (#127687)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-03-15 07:39:43 -07:00
Tobias Stadler
fc6897c17b
Fixed some typos (#125802)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2022-03-02 16:40:34 -06:00
Kaarina Tungseth
014d3ddc85
[DOCS] Updates {data-source} in REST APIs (#121240)
* [DOCS] Updates {data-source} in REST APIs

* Update docs/api/saved-objects/bulk_get.asciidoc

Co-authored-by: Matthew Kime <matt@mattki.me>

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-12-15 12:50:06 -06:00
Luke Elmers
ab47ac64ad
[saved objects] Updates import docs to make it clearer which versions are supported. (#119879) 2021-11-29 12:27:42 -07:00
Joe Portner
3c9a6564e8
Prevent legacy url conflicts (#116007) 2021-10-26 17:15:41 +01:00
Joe Portner
1ca8771d67
Add SavedObjectsClient.bulkResolve (#112025) 2021-09-16 17:12:17 -04:00
Uladzislau Lasitsa
70090e326c
Timelion App removal (#110255)
* Remove timelion app and stuff which related to it

* Fix CI

* Fix lint

* Fix tests

* Fix tests

* Fis tests

* Fix some comments

* Clean up

* fix CI

* fix some comments

* Fix deprecation examples

* Return `enabled` property in config for timelion vis

* Remove unused angular lib

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-09-10 14:53:07 +03:00
Joe Portner
695280b756
bulkGet saved objects across spaces (#109967) 2021-08-26 11:26:34 -04:00
Joe Portner
c21272cc5b
Sharing saved objects developer guide (#107099) 2021-08-10 16:02:45 -04:00
Joe Portner
00a6bdd401
Allow initialNamespaces to be used for isolated types (#102585) 2021-06-22 20:36:04 +02:00
Pierre Gayvallet
05e2ab4df1
Add upsert support for savedObjects update (#98712)
* Add upsert support for savedObjects update

* fix types

* update generated docs

* update docs

* fix types

* do not use update attributes for upsert
2021-04-30 11:10:50 +02:00
Pierre Gayvallet
106afd41b6
[SavedObjects] Add aggregations support (#96292)
* step 1 to add aggs in the find function of saved object

* setp 2 - add specific unit test to aggs + fix bug found during integrations

* step 3 - add security api_integration arounds aggs

* fix types

* unit test added for aggs_utils

* add documentation

* fix docs

* review I

* doc

* try to fix test

* add the new property to the saved object globaltype

* fix types

* delete old files

* fix types + test api integration

* type fix + test

* Update src/core/server/saved_objects/types.ts

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>

* review I

* change our validation to match discussion with Pierre and Rudolph

* Validate multiple items nested filter query through KueryNode

* remove unused import

* review + put back test

* migrate added tests to new TS file

* fix documentation

* fix license header

* move stuff

* duplicating test mappings

* rename some stuff

* move ALL the things

* cast to aggregation container

* update generated doc

* add deep nested validation

* rewrite the whole validation mechanism

* some cleanup

* minor cleanup

* update generated doc

* adapt telemetry client

* fix API integ tests

* fix doc

* TOTO-less

* remove xpack tests

* list supported / unsupported aggregations

* typo fix

* extract some validation function

* fix indent

* add some unit tests

* adapt FTR assertions

* update doc

* fix doc

* doc again

* cleanup test names

* improve tsdoc on validation functions

* perf nit

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-16 10:40:30 +02:00
Luke Elmers
d1040f0105
[core.savedObjects] Fix maxImportExportSize config & update docs. (#94019) 2021-03-18 19:34:15 -04:00
Rudolf Meijering
d657118aa0
Saved objects import compatibility across versions (#94072) 2021-03-09 16:07:08 +01:00
Rudolf Meijering
1f4a72e776
Revert "[DOC] Clarify compatibility of Saved Objects across versions (#63090)" (#94070)
This reverts commit 4c58e70a7e.
2021-03-09 12:07:35 +01:00
Luca Belluccini
4c58e70a7e
[DOC] Clarify compatibility of Saved Objects across versions (#63090)
* [DOC] Clarify compatibility of Saved Objects across versions

* Update docs/management/managing-saved-objects.asciidoc

* Saved objects compatibility

* clarify that same version export/import is compatible

* Add compatibility to SO import API docs

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
2021-03-08 14:58:11 -08:00
Joe Portner
25f16db4d9
Sharing saved objects, phase 2 (#80945) 2021-01-20 17:39:21 -05:00
Olivier V
5420177485
Update create.asciidoc (#84046)
The url templates provided for call of the API with space information was missing the /api/ section in it.

(cherry picked from commit 35f1cc16eaa29666d7212402f57ab17858ebc96d)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-01 08:06:19 -08:00
Aleh Zasypkin
89e2af8334
Rename batchSize parameter to batch_size to be consisten with the API namings guidelines. (#82123) 2020-11-01 09:09:40 +01:00
Aleh Zasypkin
d4530e15c6
[Docs] Document Encrypted Saved Objects functionality. (#80183) 2020-10-16 18:16:10 +02:00
Joe Portner
13b8aed11d
[Docs] Update developer docs for create/bulkCreate initialNamespaces (#79769)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2020-10-06 18:00:23 -04:00
Joe Portner
0a02ac1327
Rename namespaces to initialNamespaces for create operations (#79682) 2020-10-06 17:01:26 -04:00
Joe Portner
caa5da26f0
Add support for sharing saved objects to all spaces (#76132) 2020-10-04 23:28:49 -04:00
Kaarina Tungseth
55dc6af27f
[DOCS] Updates create.asciidoc (#73481)
Co-authored-by: Sutra Hsing <sutrahsing@163.com>
2020-09-24 12:25:51 -05:00
Joe Portner
6627d7d9af
Sharing saved-objects phase 1.5 (#75444)
Added UI for sharing saved objects, and updated UI for importing and copying too
2020-08-26 16:52:29 -04:00
Kaarina Tungseth
0b675b8908
[DOCS] Fixes to API docs (#71678)
* [DOCS] Fixes to API docs

* Fixes rogue -u
2020-07-14 14:59:21 -05:00
Josh Dover
8db71dee09
[DOCS] Clarify 'fields' option in SO.find docs (#71491) 2020-07-14 12:43:08 -06:00
Kaarina Tungseth
fef7ff859d
[DOCS] Fixes POST request for saved objects (#69036) 2020-06-12 11:29:14 -05:00
Ryder Timberlake
7071fac36a
Fix typos (#66984)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-27 13:44:41 -06:00
Radu Gheorghe
cf7da3cdb7
Add headers to the sample curl (#63548)
* Add headers to the sample curl

At least in 7.x it doesn't work without the kbn-xsrf and json headers.

* More headers to curl commands

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-17 10:01:30 -05:00
Joe Portner
97d1685c3d
Sharing saved-objects phase 1 (#54605)
Co-authored-by: kobelb <brandon.kobel@elastic.co>
2020-04-09 23:18:18 -04:00
Kaarina Tungseth
fda3196611
[DOCS] Updates API requests and examples (#60695)
* [DOCS] Updates API requests and examples

* Review comments
2020-03-20 16:33:20 -05:00
Brandon Morelli
3db8cb34b0
[docs] Remove unused callout (#56032) 2020-01-27 21:03:06 -08:00
Melori Arellano
8d34f25134
[DOCS] Add space_id path parameter to saved_object APIs (#47627)
* [DOCS] Add space_id path parameter to saved_object APIs

* [DOCS] Apply suggested edits for #47627

* [DOCS] Apply suggested edits for #47627 to delete API
2019-10-18 11:17:54 -06:00
Kaarina Tungseth
1e3f14395c
[DOCS] API intro (#47164)
* [DOCS] API intro

* Logstash configuration management

* Reformatting

* Comments from Josh

* Commets from Gail

* Fixed broken things
2019-10-16 15:10:40 -05:00
Pierre Gayvallet
7df981fbf8 Ignore missing references on saved object exports (#47685)
* add saved object export details in ndjson response

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* update core doc

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* exclude export details for space copy

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* fixing tests

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* display warning instead of success if export contains missing refs

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* nits/typo

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* properly updates api integration tests

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* fix typings

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* add test on objects_table component

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* remove added translations from jp/cn bundles

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* restoring line feeds

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* improve doc and user alert message

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* restoring line feeds on server.api.md

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* warning test label

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
2019-10-16 12:48:34 +02:00
Xavier Mouligneau
d95c47f776
Add KQL functionality in the find function of the saved objects (#41136)
* Add KQL functionality in the find function of the saved objects

wip

rename variable from KQL to filter, fix unit test + add new ones

miss security pluggins

review I

fix api changes

refactor after reviewing with Rudolf

fix type

review III

review IV

for security put back allowed logic back to return empty results

remove StaticIndexPattern

review V

fix core_api_changes

fix type

* validate filter to match requirement type.attributes.key or type.savedObjectKey

* Fix types

* fix a bug + add more api integration test

* fix types in test until we create package @kbn/types

* fix type issue

* fix api integration test

* export nodeTypes from packages @kbn/es-query instead of the function buildNodeKuery

* throw 400- bad request when validation error in find

* fix type issue

* accept api change

* renove _ to represent private

* fix unit test + add doc

* add comment to explain why we removed the private
2019-10-02 18:23:44 -04:00