Mengubah pengaturan otentikasi dua faktor dari bastion host.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ModifyInstanceTwoFactor |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID bastion host. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID bastion host. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID Wilayah bastion host. Catatan
Untuk informasi lebih lanjut tentang Pemetaan antara ID wilayah dan nama wilayah, lihat Regions and zones. |
cn-hangzhou |
| EnableTwoFactor |
string |
No |
Apakah akan mengaktifkan otentikasi dua faktor. Nilai valid:
|
true |
| TwoFactorMethods |
string |
No |
Metode yang digunakan untuk mengirim kode verifikasi otentikasi dua faktor. Jika EnableTwoFactor diatur ke true, Anda harus menentukan setidaknya satu metode. Nilai valid:
|
["sms"] |
| SkipTwoFactorTime |
string |
No |
Durasi di mana otentikasi dua faktor tidak diperlukan setelah pengguna lolos otentikasi dua faktor. Nilai valid: 0 hingga 168. Unit: jam. Jika Anda mengatur parameter ini ke 0, pengguna harus lolos otentikasi dua faktor setiap kali pengguna masuk ke bastion host. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
9CE1A352-15E9-5EB4-B589-87A8DEECB20D |
Contoh
Respons sukses
JSONformat
{
"RequestId": "9CE1A352-15E9-5EB4-B589-87A8DEECB20D"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 500 | InternalError | An unknown error occurred. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.