Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
© 2022 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
      • Switch clouds
      • Changing an organization for a cloud
      • Cloud incident notifications
    • Folders
      • Creating a folder
      • Updating 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. Open the folder page. You can select a folder on the Home page of the management console. This page displays folders for the selected cloud. If necessary, switch to another cloud.

    2. Get the folder ID from the URL of the folder page in the management console:

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

      b1gd129pp9ha0vnvf5g7 is the folder ID.

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

    $ yc resource-manager folder get my-folder
    
    id: b1gd129pp9ha0vnvf5g7
    ...
    

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

    $ yc resource-manager folder list
    
    +----------------------+--------------------+------------------+--------+
    |          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 and IDs, use the list method for the Folder resource.

    Was the article helpful?

    Language / Region
    © 2022 Yandex.Cloud LLC