Get all spaces
Base URL
https://{kibana_url}
Auth
Expand all
purpose
enum
Specifies which authorization checks are applied to the API call. The default value is any.
Values:
any
copySavedObjectsIntoSpace
shareSavedObjectsIntoSpace
include_authorized_purposes
union enum | boolean
required
When enabled, the API returns any spaces that the user is authorized to access in any capacity and each space will contain the purposes for which the user is authorized. This can be useful to determine which spaces a user can read but not take a specific action in. If the security plugin is not enabled, this parameter has no effect, since no authorization checks take place. This parameter cannot be used in with the purpose parameter.
Values:
false
200
Indicates a successful call.
application/json
Thank you for your feedback.
Base URL
https://{kibana_url}
Examples
Request
Console
1 / 2 languages
‹
›
1
GET kbn:/api/spaces/space?include_authorized_purposes=INCLUDE_AUTHORIZED_PURPOSES
Generated from the API spec
1
2
curl -X GET "${KIBANA_URL}/api/spaces/space?include_authorized_purposes=${INCLUDE_AUTHORIZED_PURPOSES}" \
-H "Authorization: ApiKey ${API_KEY}"
Generated from the API spec
Response
Get all spaces without specifying any options.
Show more
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[
{
"id": "default",
"name": "Default",
"description": "This is the Default Space",
"disabledFeatures": [],
"imageUrl": "",
"_reserved": true
},
{
"id": "marketing",
"name": "Marketing",
"description": "This is the Marketing Space",
"color": "null",
"disabledFeatures": [
"apm"
],
"initials": "MK",
"imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSU"
},
{
"id": "sales",
"name": "Sales",
"initials": "MK",
"disabledFeatures": [
"discover"
],
"imageUr\u0022": "",
"solution": "oblt"
}
]