- 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.
Authorizing 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:
-
Get the project ID and save it to an environment variable:
-
Run the following command:
If you have access to multiple tenants, you can specify the tenant that you want to use with this profile in the
--tenant-idparameter. 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:
-
Check that your new profile has been created and set as the default one:
You should see the following output:
Authorizing 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.
- Open your terminal.
-
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. -
Get the project ID and save it to an environment variable:
-
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: