List workspaces
workspaces.list(**kwargs) -> CursorPagination<Workspace { metadata, spec, status } >
GET/v1/workspaces
List workspaces
require "cadenya"
cadenya = Cadenya::Client.new(api_key: "My API Key")
page = cadenya.workspaces.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
}
}