Help Center/ Koo Command Line Interface/ User Guide (Ally Region)/ User Guide/ Options/ Calling APIs with a Token in Non-configuration Mode
Updated on 2026-01-08 GMT+08:00

Calling APIs with a Token in Non-configuration Mode

Add --cli-x-auth-token in a command to call a cloud service API with a token in non-configuration mode.

When you use a command prompt tool (such as cmd.exe) to run the following command, the command line may be incomplete if the value of cli-x-auth-token is too long. Therefore, check whether the command line content is complete before executing a command.

cloud ECS ListServersDetails --cli-region="{region}" --project_id="2cc60f5****************efa5019ef" --enterprise_project_id="441d5677-****-****-****-ef7fd6336666" --cli-x-auth-token=******
{
  "count": 0,
  "servers": []
}