DataSphere API v2, REST: Community.List
List communities in specified organization.
HTTP request
GET https://datasphere.api.cloud.yandex.net/datasphere/v2/communities
Query parameters
Field |
Description |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
nameOrDescriptionPattern |
string Community name or description pattern. |
ownedById |
string ID of the user. Only communities owned by specified user will be returned. |
listPublic |
boolean If set to true, only public communities will be returned. |
organizationId |
string Required field. ID of the organization to list communities in. |
Response
HTTP Code: 200 - OK
{
"communities": [
{
"id": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"createdById": "string",
"organizationId": "string",
"zoneId": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
communities[] |
List of communities matching filters in list communities request. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
Community
Field |
Description |
id |
string ID of the community. |
createdAt |
string (date-time) Time when community was created. String in RFC3339 To work with values in this field, use the APIs described in the |
name |
string Name of the community. |
description |
string Description of the comminuty. |
labels |
object (map<string, string>) Labels of the community. |
createdById |
string ID of the user who created the community. |
organizationId |
string ID of the organization to which community belongs. |
zoneId |
string ID of the zone where this community was created |