Calling APIs with AK/SK in Non-configuration Mode
Add the --cli-access-key, --cli-secret-key, and --cli-security-token options in a command to call a cloud service API with an AK/SK in non-configuration mode.
By default, if only --cli-access-key and --cli-secret-key are used in a command, the AK/SK are taken as permanent ones.
hcloud RDS ListApiVersion --cli-region="eu-west-101" --cli-access-key=8NVT************KIOV --cli-secret-key=VHMQjoC**************************lsk3cGf { "versions": [ { "id": "v3", "links": [], "status": "CURRENT", "updated": "2019-01-15T12:00:00Z" }, { "id": "v1", "links": [], "status": "DEPRECATED", "updated": "2017-02-07T17:34:02Z" } ] }
By default, if --cli-access-key, --cli-secret-key, and --cli-security-token are used in a command, the AK/SK are taken as temporary ones.
hcloud RDS ListApiVersion --cli-region="eu-west-101" --cli-access-key=5FSU************607T --cli-secret-key=VoyjgLh**************************qRc8pSq --cli-security-token=****** { "versions": [ { "id": "v3", "links": [], "status": "CURRENT", "updated": "2019-01-15T12:00:00Z" }, { "id": "v1", "links": [], "status": "DEPRECATED", "updated": "2017-02-07T17:34:02Z" } ] }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.