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

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.

cloud RDS ListApiVersion --cli-region="ru-moscow-1" --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.

cloud RDS ListApiVersion --cli-region="ru-moscow-1" --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"
}
]
}