Help Center> Koo Command Line Interface> User Guide> Obtaining Authentication Information> Obtaining an Account Name, Account ID, and Project ID
Updated on 2022-08-31 GMT+08:00

Obtaining an Account Name, Account ID, and Project ID

A project ID is required in most cases when you call a cloud service API. To obtain a project ID, perform the following operations:

  1. Log in to the management console.
  2. Click the username in the upper right corner, choose My Credentials from the drop-down list, and view Account Name (cli-domain), Account ID (cli-domain-id), and Project ID (cli-project-id) on the displayed page.

    Projects physically isolate cloud server resources by region, and multiple projects can be created in the same region for more fine-grained isolation. As shown in the following figure, find the region where your server locates, obtain the corresponding project ID in the Project ID column, and click on the left to obtain a subproject ID.

    Figure 1 Viewing the account name, account ID, and project ID

    During API calling, KooCLI automatically obtains the account ID and project ID from the request header based on the authentication information of the current user. Therefore, you do not need to enter them in a command.