Skip to main content

Get

Returns community.

import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";

const GetCommunityRequest =
cloudApi.datasphere.community_service.GetCommunityRequest;

(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.CommunityServiceClient);

const result = await client.get(
GetCommunityRequest.fromPartial({
communityId: "communityId",
})
);
console.log(result);
})();

GetCommunityRequest

communityId : string

ID of the community.

Community

id : string

ID of the community.

createdAt : google.protobuf.Timestamp

Time when community was created.

name : string

Name of the community.

description : string

Description of the comminuty.

labels : 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