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.
hcloud ECS ListServersDetails --cli-region="eu-west-101" --project_id="2cc60f5****************efa5019ef" --enterprise_project_id="441d5677-****-****-****-ef7fd6336666" --cli-x-auth-token=****** { "count": 0, "servers": [] }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.