stack kb spaces get-spaces-space cli command
Auth required
Idempotent
Scope: global
elastic stack kb spaces get-spaces-space [options]
Get all spaces
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--purposeenum-
Specifies which authorization checks are applied to the API call. The default value is
any.Values: any, copySavedObjectsIntoSpace, shareSavedObjectsIntoSpace
- When enabled, the API returns any spaces the user is authorized to access in any capacity, each including the purposes for which the user is authorized. This is useful for identifying spaces the user can read but is not authorized for a given purpose. Without the security plugin, this parameter has no effect, because no authorization checks are performed. This parameter cannot be used together with the
purposeparameter. --input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON