Skip to main content

Get

Returns the specified Organization resource.

To get the list of available Organization resources, make a List request.

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

const GetOrganizationRequest =
cloudApi.organizationmanager.organization_service.GetOrganizationRequest;

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

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

GetOrganizationRequest

organizationId : string

ID of the Organization resource to return. To get the organization ID, use a OrganizationService.List request.

Organization

An Organization resource. For more information, see Organization.

id : string

ID of the organization.

createdAt : google.protobuf.Timestamp

Creation timestamp.

name : string

Name of the organization. 3-63 characters long.

description : string

Description of the organization. 0-256 characters long.

title : string

Display name of the organization. 0-256 characters long.

labels : string

Resource labels as key:value pairs. Maximum of 64 per resource.