Authentication Mode Priority
During command parsing, Cloud CLI performs authentication for API calling according to the following authentication mode priority:
- Delegating account ID (cli-agency-domain-id) or name (cli-agency-domain-name), agency name (cli-agency-name), and profile (cli-source-profile) that stores the authentication information of the delegated party
- AK/SK, account, or token authentication in non-configuration mode
- Access key (permanent AK/SK, that is, cli-access-key and cli-secret-key) or temporary security credentials (temporary AK/SK and SecurityToken, that is, cli-access-key, cli-secret-key, and cli-security-token)
- IAM user name (cli-username), IAM user password (cli-password), and account name (cli-domain)
- Token (cli-x-auth-token)
- Profile specified in the command or the default profile
- Cloud service agency (applicable only when Cloud CLI is used on an ECS)
Parameters of different authentication modes mentioned in 2 cannot be used interchangeably in the same command. If an exception occurs during authentication mode parsing, authentication modes with a lower priority will not be used.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot