forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [EEM] Add create and read APIs for v2 type and source definitio…
…ns (elastic#201470) (elastic#202928) # Backport This will backport the following commits from `main` to `8.x`: - [[EEM] Add create and read APIs for v2 type and source definitions (elastic#201470)](elastic#201470) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Milton Hultgren","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-04T13:53:57Z","message":"[EEM] Add create and read APIs for v2 type and source definitions (elastic#201470)\n\n## Summary\r\n\r\nThis PR adds:\r\n* Some basic features and privileges for the EEM app\r\n* A function that sets up an index with a template for the new\r\ndefinitions\r\n* 4 API endpoints to read and create entity types and sources\r\n * `POST /internal/entities/v2/definitions/types`\r\n * `GET /internal/entities/v2/definitions/types`\r\n * `POST /internal/entities/v2/definitions/sources`\r\n * `GET /internal/entities/v2/definitions/sources`\r\n* Some v2 shuffling around of code\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Maxim Palenov <[email protected]>","sha":"26de7a85ba8dfcfca082a463a67de58ba376ce13","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:all-open","ci:project-deploy-observability","Feature:EEM"],"title":"[EEM] Add create and read APIs for v2 type and source definitions","number":201470,"url":"https://github.com/elastic/kibana/pull/201470","mergeCommit":{"message":"[EEM] Add create and read APIs for v2 type and source definitions (elastic#201470)\n\n## Summary\r\n\r\nThis PR adds:\r\n* Some basic features and privileges for the EEM app\r\n* A function that sets up an index with a template for the new\r\ndefinitions\r\n* 4 API endpoints to read and create entity types and sources\r\n * `POST /internal/entities/v2/definitions/types`\r\n * `GET /internal/entities/v2/definitions/types`\r\n * `POST /internal/entities/v2/definitions/sources`\r\n * `GET /internal/entities/v2/definitions/sources`\r\n* Some v2 shuffling around of code\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Maxim Palenov <[email protected]>","sha":"26de7a85ba8dfcfca082a463a67de58ba376ce13"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201470","number":201470,"mergeCommit":{"message":"[EEM] Add create and read APIs for v2 type and source definitions (elastic#201470)\n\n## Summary\r\n\r\nThis PR adds:\r\n* Some basic features and privileges for the EEM app\r\n* A function that sets up an index with a template for the new\r\ndefinitions\r\n* 4 API endpoints to read and create entity types and sources\r\n * `POST /internal/entities/v2/definitions/types`\r\n * `GET /internal/entities/v2/definitions/types`\r\n * `POST /internal/entities/v2/definitions/sources`\r\n * `GET /internal/entities/v2/definitions/sources`\r\n* Some v2 shuffling around of code\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Maxim Palenov <[email protected]>","sha":"26de7a85ba8dfcfca082a463a67de58ba376ce13"}}]}] BACKPORT--> Co-authored-by: Milton Hultgren <[email protected]>
- Loading branch information
1 parent
8aa7419
commit c9e60df
Showing
32 changed files
with
893 additions
and
336 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
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 was deleted.
Oops, something went wrong.
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,19 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
// Definitions index | ||
|
||
export const DEFINITIONS_ALIAS = '.kibana-entities-definitions'; | ||
export const TEMPLATE_VERSION = 1; | ||
|
||
// Privileges | ||
|
||
export const CREATE_ENTITY_TYPE_DEFINITION_PRIVILEGE = 'create_entity_type_definition'; | ||
export const CREATE_ENTITY_SOURCE_DEFINITION_PRIVILEGE = 'create_entity_source_definition'; | ||
export const READ_ENTITY_TYPE_DEFINITION_PRIVILEGE = 'read_entity_type_definition'; | ||
export const READ_ENTITY_SOURCE_DEFINITION_PRIVILEGE = 'read_entity_source_definition'; | ||
export const READ_ENTITIES_PRIVILEGE = 'read_entities'; |
Oops, something went wrong.