Getting the service account ID
If you do not have a service account, create one.
Management console
CLI
- In the management console
, select the folder the service account belongs to. - At the top of the screen, go to the Service accounts tab.
- Choose a service account and click the line with its name.
- The Overview page will show the service account ID as a string in the
aje9sb6ffd2u********
format.
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
If you know the service account name, use the get
command to get the account ID:
ncp iam service-account get my-robot
Result:
id: aje6o61dvog2********
...
If you don't know the name, get a list of service accounts in the default folder:
ncp iam service-account list
Result:
+----------------------+------------------+-------------------------------+
| ID | NAME | DESCRIPTION |
+----------------------+------------------+-------------------------------+
| aje6o61dvog2******** | my-robot | |
| aje9sda1ufvq******** | account_name | account_description |
+----------------------+------------------+-------------------------------+