Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
Yandex Resource Manager
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Cloud
      • Creating a cloud
      • Rename a cloud
      • Deleting a cloud
      • Canceling cloud deletion
      • Setting up access rights
      • Retrieving a cloud ID
      • Switch clouds
      • Changing an organization for a cloud
      • Cloud incident notifications
    • Folders
      • Creating a folder
      • Updating a folder
      • Deleting a folder
      • How to set up access rights
      • Getting the folder ID
      • Folder incident notifications
  • Concepts
    • Hierarchy of Yandex Cloud resources
    • Notifications from Yandex Cloud
    • Quotas and limits
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • CloudService
      • FolderService
      • OperationService
    • REST
      • Overview
      • Cloud
        • Overview
        • create
        • get
        • list
        • listAccessBindings
        • listOperations
        • setAccessBindings
        • update
        • updateAccessBindings
      • Folder
        • Overview
        • create
        • delete
        • get
        • list
        • listAccessBindings
        • listOperations
        • setAccessBindings
        • update
        • updateAccessBindings
  • Questions and answers
  1. Step-by-step instructions
  2. Folders
  3. Getting the folder ID

Getting the folder ID

Written by
Yandex Cloud
    Management console
    CLI
    API
    1. Select the folder on the management console home page. This page displays information about all the folders in the selected cloud. If necessary, switch to another cloud.

    2. You can retrieve the folder ID from the folder page URL in the management console:

      https://console.cloud.yandex.com/folders/b1gd129pp9ha0vnvf5g7
      

      Where b1gd129pp9ha0vnvf5g7 is the folder ID.

    If you don't have the Yandex Cloud command line interface yet, install and initialize it.

    If you know the folder name, get its ID using the get command:

    yc resource-manager folder get my-folder
    

    Result:

    id: b1gd129pp9ha0vnvf5g7
    ...
    

    If you don't, get a list of folders with IDs for the default cloud:

    yc resource-manager folder list
    

    Result:

    +----------------------+--------------------+------------------+--------+
    |          ID          |        NAME        |      LABELS      | STATUS |
    +----------------------+--------------------+------------------+--------+
    | b1gd129pp9ha0vnvf5g7 | my-folder          |                  | ACTIVE |
    | b1g66mft1vopnevbn57j | default            |                  | ACTIVE |
    +----------------------+--------------------+------------------+--------+
    

    To view the list of folders in a different cloud, specify the folder ID in cloud-id:

    yc resource-manager folder list --cloud-id b1glku4lgd6g31h5onqs
    

    To get the list of folders with IDs, use the list method for the Folder resource.

    Was the article helpful?

    Language / Region
    Yandex project
    © 2023 Yandex.Cloud LLC