更新时间:2026-01-08 GMT+08:00
以无配置方式Token调用云服务API
Cloud CLI支持在命令中添加“--cli-x-auth-token”选项,以无配置方式Token调用云服务API。
使用命令提示符工具(即cmd.exe)执行如下命令时,可能会因“cli-x-auth-token”值长度过长导致命令内容粘贴不完整,执行前请确认命令完整性:
cloud ECS ListServersDetails --cli-region="{region}" --project_id="2cc60f5****************efa5019ef" --enterprise_project_id="441d5677-****-****-****-ef7fd6336666" --cli-x-auth-token=******
{
"count": 0,
"servers": []
} 父主题: 选项说明