List all workspaces in the account
workspace_admin.list(**kwargs) -> CursorPagination<Workspace { metadata, spec, status } >
GET/v1/account/workspaces
Lists every workspace in the account, optionally including archived ones. Admin only.
List all workspaces in the account
require "cadenya"
cadenya = Cadenya::Client.new(api_key: "My API Key")
page = cadenya.workspace_admin.list
puts(page){
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"description": "description"
},
"status": "STATUS_ENABLED"
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}Returns Examples
{
"items": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"description": "description"
},
"status": "STATUS_ENABLED"
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}