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