> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting network and subnet IDs for Nebius AI Cloud resources

When you create Nebius AI Cloud resources by using the [Nebius AI Cloud CLI](/cli/index), the [Terraform provider](/terraform-provider/index) or the [API](/grpc-api/index), you need to specify the ID of the [network](/vpc/overview#network) or [subnet](/vpc/overview#subnet).

## Prerequisites

Make sure you are in a [group](/iam/authorization/groups/index) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.

<Note>
  If you are in a group with the `viewer` role, you can get the IDs but cannot create any Nebius AI Cloud resources.
</Note>

## How to get a network ID

<Tabs group="interfaces">
  <Tab title="Web console">
    1. In the sidebar, go to <Icon icon="https://mintcdn.com/nebius-ai-cloud/rOlLZ_MFvrheaI-h/_assets/sidebar/networking.svg?fit=max&auto=format&n=rOlLZ_MFvrheaI-h&q=85&s=7a4fe6d935f68131371d7b49a9bd595f" width="16" height="16" data-path="_assets/sidebar/networking.svg" /> **Networking** → **Virtual Networks**.
    2. To copy the network ID, click the <Icon icon="https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/copy.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=e7f23591f2e46ebae45634aa995aaa9f" width="16" height="16" data-path="_assets/copy.svg" /> icon next to the required ID.
  </Tab>

  <Tab title="CLI">
    * If you know the name of the network, use the `get-by-name` command:

      ```bash theme={null}
      nebius vpc network get-by-name --name <network_name>
      ```

    * If you do not know the exact name of the network, use the `list` command to view a list of available networks:

      ```bash theme={null}
      nebius vpc network list
      ```

    You can find the ID in the `metadata.id` parameter of the output.
  </Tab>
</Tabs>

## How to get a subnet ID

<Tabs group="interfaces">
  <Tab title="Web console">
    1. In the sidebar, go to <Icon icon="https://mintcdn.com/nebius-ai-cloud/rOlLZ_MFvrheaI-h/_assets/sidebar/networking.svg?fit=max&auto=format&n=rOlLZ_MFvrheaI-h&q=85&s=7a4fe6d935f68131371d7b49a9bd595f" width="16" height="16" data-path="_assets/sidebar/networking.svg" /> **Networking** → **Virtual Networks**.
    2. Switch to the **Subnets** tab.
    3. To copy the subnet ID, click the <Icon icon="https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/copy.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=e7f23591f2e46ebae45634aa995aaa9f" width="16" height="16" data-path="_assets/copy.svg" /> icon next to the required ID.
  </Tab>

  <Tab title="CLI">
    * If you know the name of the subnet, use the `get-by-name` command:

      ```bash theme={null}
      nebius vpc subnet get-by-name --name <subnet_name>
      ```

    * If you do not know the exact name of the subnet, use the `list` command to view a list of available subnets:

      ```bash theme={null}
      nebius vpc subnet list
      ```

    You can find the ID in the `metadata.id` parameter of the output.
  </Tab>
</Tabs>
