2019-09-06 18:09:57 +02:00
|
|
|
[[spaces-api-get-all]]
|
|
|
|
=== Get all {kib} spaces API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Get all spaces</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
2019-10-16 22:10:40 +02:00
|
|
|
Retrieve all {kib} spaces.
|
2019-09-06 18:09:57 +02:00
|
|
|
|
2019-09-18 17:54:28 +02:00
|
|
|
experimental["The underlying Spaces concepts are stable, but the APIs for managing Spaces are experimental."]
|
2019-09-06 18:09:57 +02:00
|
|
|
|
|
|
|
[[spaces-api-get-all-request]]
|
|
|
|
==== Request
|
|
|
|
|
|
|
|
`GET /api/spaces/space`
|
|
|
|
|
|
|
|
[[spaces-api-get-all-response-codes]]
|
|
|
|
==== Response code
|
|
|
|
|
|
|
|
`200`::
|
|
|
|
Indicates a successful call.
|
|
|
|
|
|
|
|
[[spaces-api-get-all-example]]
|
|
|
|
==== Example
|
|
|
|
|
|
|
|
The API returns the following:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": "default",
|
|
|
|
"name": "Default",
|
|
|
|
"description" : "This is the Default Space",
|
|
|
|
"disabledFeatures": [],
|
2019-09-18 17:06:57 +02:00
|
|
|
"imageUrl": "",
|
2019-09-06 18:09:57 +02:00
|
|
|
"_reserved": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "marketing",
|
|
|
|
"name": "Marketing",
|
|
|
|
"description" : "This is the Marketing Space",
|
|
|
|
"color": "#aabbcc",
|
|
|
|
"disabledFeatures": ["apm"],
|
2019-09-18 17:06:57 +02:00
|
|
|
"initials": "MK",
|
2020-02-07 16:19:32 +01:00
|
|
|
"imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSU"
|
2019-09-06 18:09:57 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "sales",
|
|
|
|
"name": "Sales",
|
|
|
|
"initials": "MK",
|
|
|
|
"disabledFeatures": ["discover", "timelion"],
|
2019-09-18 17:06:57 +02:00
|
|
|
"imageUrl": ""
|
2020-02-07 16:19:32 +01:00
|
|
|
}
|
2019-09-06 18:09:57 +02:00
|
|
|
]
|
|
|
|
--------------------------------------------------
|