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

Specifying Authentication Mode

Cloud CLI allows you to set the authentication mode to AKSK, token, agency, and ecsAgency in a profile. AKSK is recommended. If the profile you use contains parameters related to different authentication modes such as AK/SK and token, use --cli-mode to specify the mode that will be used.

cloud CCE ListNodes --cluster_id="f288****-****-****-****-****ac101534" --project_id="0dd8cb****************19b5a84546" --cli-profile=test --cli-mode=AKSK
Note

When configuring a profile, use --cli-profile to specify the profile name and add authentication parameters corresponding to --cli-mode.

  • If --cli-mode is AKSK, set both --cli-access-key and --cli-secret-key.
  • If --cli-mode is token, set --cli-x-auth-token.
  • If --cli-mode is ecsAgency, set --cli-mode=ecsAgency.
  • If --cli-mode is agency, set --cli-agency-domain-id/--cli-agency-domain-name, --cli-agency-name, and --cli-source-profile.