# Backport
This will backport the following commits from `main` to `8.x`:
- [[Synthetics] Space aware private locations !!
(#202634)](https://github.com/elastic/kibana/pull/202634)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2025-01-27T18:37:22Z","message":"[Synthetics]
Space aware private locations !! (#202634)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/199976\r\n\r\nUser can choose
which space the location will be visible in while\r\ncreating a location
!!\r\n\r\n\r\n### Testing\r\n\r\n- [ ] Create location in all spaces and
make sure it's visible\r\neverywhere.\r\n- [ ] Creation location in a
specific space and make sure it's only\r\nvisible in specified
space\r\n\r\n\r\n<img width=\"1728\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/6aa5cac9-500a-447a-8ef5-bf53e91a16dd\"\r\n/>","sha":"e51b2bda277ee4f532c901bcd65478fac86caeb8","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["v9.0.0","release_note:feature","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Synthetics]
Space aware private locations
!!","number":202634,"url":"https://github.com/elastic/kibana/pull/202634","mergeCommit":{"message":"[Synthetics]
Space aware private locations !! (#202634)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/199976\r\n\r\nUser can choose
which space the location will be visible in while\r\ncreating a location
!!\r\n\r\n\r\n### Testing\r\n\r\n- [ ] Create location in all spaces and
make sure it's visible\r\neverywhere.\r\n- [ ] Creation location in a
specific space and make sure it's only\r\nvisible in specified
space\r\n\r\n\r\n<img width=\"1728\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/6aa5cac9-500a-447a-8ef5-bf53e91a16dd\"\r\n/>","sha":"e51b2bda277ee4f532c901bcd65478fac86caeb8"}},"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/202634","number":202634,"mergeCommit":{"message":"[Synthetics]
Space aware private locations !! (#202634)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/199976\r\n\r\nUser can choose
which space the location will be visible in while\r\ncreating a location
!!\r\n\r\n\r\n### Testing\r\n\r\n- [ ] Create location in all spaces and
make sure it's visible\r\neverywhere.\r\n- [ ] Creation location in a
specific space and make sure it's only\r\nvisible in specified
space\r\n\r\n\r\n<img width=\"1728\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/6aa5cac9-500a-447a-8ef5-bf53e91a16dd\"\r\n/>","sha":"e51b2bda277ee4f532c901bcd65478fac86caeb8"}}]}]
BACKPORT-->
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
# Backport
This will backport the following commits from `main` to `8.x`:
- [[Synthetics] Refactor bulk delete monitor and params routes !!
(#195420)](https://github.com/elastic/kibana/pull/195420)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2024-11-07T09:51:56Z","message":"[Synthetics]
Refactor bulk delete monitor and params routes !! (#195420)\n\n##
Summary\r\n\r\nRefactor bulk delete monitor and params routes !!
\r\n\r\nWe need to remove usage for body from DELETE route.\r\n\r\n###
Params\r\n\r\nParams can be bulk delete now with POST request
to\r\n`/params/_bulk_delete` endpoint\r\n\r\n### Monitors\r\nMonitors
can be bulk delete now with POST request to\r\n`/monitors/_bulk_delete`
endpoint","sha":"d25a2b442aff8d3b4559832257b98c0f50de922b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Synthetics]
Refactor bulk delete monitor and params routes
!!","number":195420,"url":"https://github.com/elastic/kibana/pull/195420","mergeCommit":{"message":"[Synthetics]
Refactor bulk delete monitor and params routes !! (#195420)\n\n##
Summary\r\n\r\nRefactor bulk delete monitor and params routes !!
\r\n\r\nWe need to remove usage for body from DELETE route.\r\n\r\n###
Params\r\n\r\nParams can be bulk delete now with POST request
to\r\n`/params/_bulk_delete` endpoint\r\n\r\n### Monitors\r\nMonitors
can be bulk delete now with POST request to\r\n`/monitors/_bulk_delete`
endpoint","sha":"d25a2b442aff8d3b4559832257b98c0f50de922b"}},"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/195420","number":195420,"mergeCommit":{"message":"[Synthetics]
Refactor bulk delete monitor and params routes !! (#195420)\n\n##
Summary\r\n\r\nRefactor bulk delete monitor and params routes !!
\r\n\r\nWe need to remove usage for body from DELETE route.\r\n\r\n###
Params\r\n\r\nParams can be bulk delete now with POST request
to\r\n`/params/_bulk_delete` endpoint\r\n\r\n### Monitors\r\nMonitors
can be bulk delete now with POST request to\r\n`/monitors/_bulk_delete`
endpoint","sha":"d25a2b442aff8d3b4559832257b98c0f50de922b"}}]}]
BACKPORT-->
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
# Backport
This will backport the following commits from `main` to `8.x`:
- [[Synthetics] Fixes partial updates for params and params viewing
(#195866)](https://github.com/elastic/kibana/pull/195866)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2024-10-25T15:06:52Z","message":"[Synthetics]
Fixes partial updates for params and params viewing (#195866)\n\n##
Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/167781\r\n\r\nIn docs we says
that only key/value pairs are required, but in actual\r\nedit, that
means rest of the data was being lost on edits\r\n\r\nAllow partial
updates to params edit API !!\r\n\r\nThis PR makes sure prev objects is
fetched and merged with new data\r\nhence allowing partial updates
!!\r\n\r\nWe are also allowing the ability to view value of the secret
once it's\r\nsaved via API !!\r\n\r\n### Value is hidden\r\nParam value
will not be visible unless user is `super_user` or\r\n`kibana_admin`,
though user can assign new
value.\r\n\r\n---------\r\n\r\nCo-authored-by: Justin Kambic
<jk@elastic.co>","sha":"0ff9a8a9d9ff2bdb99562eeca29152bd0a0c4385","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Synthetics]
Fixes partial updates for params and params
viewing","number":195866,"url":"https://github.com/elastic/kibana/pull/195866","mergeCommit":{"message":"[Synthetics]
Fixes partial updates for params and params viewing (#195866)\n\n##
Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/167781\r\n\r\nIn docs we says
that only key/value pairs are required, but in actual\r\nedit, that
means rest of the data was being lost on edits\r\n\r\nAllow partial
updates to params edit API !!\r\n\r\nThis PR makes sure prev objects is
fetched and merged with new data\r\nhence allowing partial updates
!!\r\n\r\nWe are also allowing the ability to view value of the secret
once it's\r\nsaved via API !!\r\n\r\n### Value is hidden\r\nParam value
will not be visible unless user is `super_user` or\r\n`kibana_admin`,
though user can assign new
value.\r\n\r\n---------\r\n\r\nCo-authored-by: Justin Kambic
<jk@elastic.co>","sha":"0ff9a8a9d9ff2bdb99562eeca29152bd0a0c4385"}},"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/195866","number":195866,"mergeCommit":{"message":"[Synthetics]
Fixes partial updates for params and params viewing (#195866)\n\n##
Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/167781\r\n\r\nIn docs we says
that only key/value pairs are required, but in actual\r\nedit, that
means rest of the data was being lost on edits\r\n\r\nAllow partial
updates to params edit API !!\r\n\r\nThis PR makes sure prev objects is
fetched and merged with new data\r\nhence allowing partial updates
!!\r\n\r\nWe are also allowing the ability to view value of the secret
once it's\r\nsaved via API !!\r\n\r\n### Value is hidden\r\nParam value
will not be visible unless user is `super_user` or\r\n`kibana_admin`,
though user can assign new
value.\r\n\r\n---------\r\n\r\nCo-authored-by: Justin Kambic
<jk@elastic.co>","sha":"0ff9a8a9d9ff2bdb99562eeca29152bd0a0c4385"}}]}]
BACKPORT-->
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
## Summary
Allow deletion of monitor via id param !!
User can now delete monitor via passing id as url param
`DELETE <kibana host>:<port>/api/synthetics/monitors/<config_id>`
Previous bulk delete via list of ids via API body still works as well !!
Docs are updated !!
## Summary
Part of https://github.com/elastic/kibana/issues/169547
View docs at [Changed
pages](https://kibana_169928.docs-preview.app.elstc.co/diff)
Add monitor api public api
### Testing
Make sure you have some monitors populated before testing this PR and
before switching to the branch
- [ ] Try editing already added monitors via API
- [ ] Test adding monitors via API, and then edit those via and
subsqeuently try editing via API the same monitor
- [ ] Test editing monitors via API
- [ ] Test deleting monitors via API
- [ ] Test getting monitors via API
- [ ] Testing private as well public locations
Basic workflow that i am interesting in testing is to make sure, you can
add/edit via both API and UI without any issues
Test each of HTTP/TCP/ICMP browser examples
<img width="1728" alt="image"
src="3575d93a-5f04-4c80-ac62-038643f466f8">
---------
Co-authored-by: Justin Kambic <jk@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>