Advanced
Тема интерфейса

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="ru-moscow-1" --project_id="2cc60f5****************efa5019ef" --enterprise_project_id="441d5677-****-****-****-ef7fd6336666" --cli-x-auth-token=******
{
"count": 0,
"servers": []
}