Get
Returns community.
- TypeScript
- Python
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);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.datasphere.v2.community_service_pb2_grpc import CommunityServiceStub
from yandex.cloud.datasphere.v2.community_service_pb2 import GetCommunityRequest
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(CommunityServiceStub)
response = service.Get(GetCommunityRequest(community_id="communityId"))
print(response)
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