- A user account offers personalized access and accountability. It can be used when you, as a human user, need to manage and interact with resources.
- A service account automates the interaction of applications and services with resources.
Authorize with a user account
To authorize quickly, follow the non-interactive flow. To control the authorization process, follow the interactive flow.- Non-interactive flow
- Interactive flow
- Open your terminal.
-
Create a name of your new profile in the Nebius AI Cloud CLI and save it to an environment variable:
-
Copy your project ID from the web console and save it to an environment variable.
To get the project ID, go to the web console and expand the top list of projects. Next to the project’s name, click
→ Copy project ID.
-
Run the following command:
If you are added to someone else’s tenant and know the ID of its federation, you can specify it either in the
--federation-idparameter, or when logging in to the Nebius AI Cloud web console after running the command. -
In the browser tab that opens, log in to the web console if prompted. After logging in (or if you have already been logged in), you will see the following message:
-
Close the browser tab and go back to your terminal window. You will see the following message:
-
Verify that your new profile has been created and set as the default:
You should see the following output:
Authorize with a service account
Before authorization, create a service account. You can do it using a user account or another service account within a group that has theadmin role within your tenant; for example, the default admins group. You can check this in the Administration → IAM section of the web console.
To authorize quickly, follow the non-interactive flow. To control the authorization process, follow the interactive flow.
- Non-interactive flow
- Interactive flow
- Open the service account page in the web console and view the service account details. You’ll need to view the service account’s details from there.
- Open your terminal.
- Open the service account page in the web console.
-
Save the service account details to environment variables:
-
Create a name for your profile and save it to an environment variable:
For example,
gpu-monitoring-sa. -
Copy your project ID from the web console and save it to an environment variable.
To get the project ID, go to the web console and expand the top list of projects. Next to the project’s name, click
→ Copy project ID.
-
Run the following command:
You will see the following message:
-
Check that your new profile has been created and set as the default one:
You should see the following output: