Getting organization ID
In Yandex Cloud, each organization gets a unique ID. With this ID, you can perform all kinds of operations with the organization itself and the resources created inside it.
To find out the organization ID:
-
Log in to Cloud Center
.On the Cloud Center home page that opens, there is general info about your organization.
-
You can find the organization ID below the organization's name in the center of the screen. Click
to the right of the ID to copy it.If you have more than one organization, you can switch to the one you need. To do this, click
next to the name of the current organization in the top-left corner of the screen and select another one.
If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID>
command. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
To view a list of organizations available to you, run this command:
yc organization-manager organization list
Result:
+----------------------+-----------------------------+-------------------------+--------+ | ID | NAME | TITLE | LABELS | +----------------------+-----------------------------+-------------------------+--------+ | bpf1smsil5q0******** | org1-technical-name | Organization One | | | bpf2c65rqcl8******** | org2-technical-name | Organization Two | | | bpfaidqca8vd******** | org3-technical-name | Organization Three | | +----------------------+-----------------------------+-------------------------+--------+
Copy the ID of the organization you need from the
ID
column.
Use the list REST API method for the Organization resource or the OrganizationService/List gRPC API call.