Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Help Center/ Koo Command Line Interface/ User Guide/ Options/ Calling APIs with AK/SK in Non-configuration Mode

Calling APIs with AK/SK in Non-configuration Mode

Updated on 2023-02-27 GMT+08:00

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

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback