更新时间:2026-01-08 GMT+08:00
指定配置项的认证模式
Cloud CLI的配置项的认证模式取值为AKSK、ecsAgency、token、agency,推荐使用AKSK。当使用的配置项同时配置了多种认证模式相关的参数,如:AK/SK和Token时,用户可使用“--cli-mode”选项来指定配置项的认证模式:
cloud CCE ListNodes --cluster_id="f288****-****-****-****-****ac101534" --project_id="0dd8cb****************19b5a84546" --cli-profile=test --cli-mode=AKSK
设置配置项时,需要以“--cli-profile”指定配置项的名称,同时还需根据认证模式“--cli-mode”添加相应的认证参数:
父主题: 选项说明