Get
Returns the specified Organization resource.
To get the list of available Organization resources, make a List request.
- TypeScript
- Python
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);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.organizationmanager.v1.organization_service_pb2 import GetOrganizationRequest
from yandex.cloud.organizationmanager.v1.organization_service_pb2_grpc import (
    OrganizationServiceStub,
)
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(OrganizationServiceStub)
response = service.Get(GetOrganizationRequest(organization_id="organizationId"))
print(response)
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.