Mengkueri preferensi keamanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:GetSecurityPreference |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| SecurityPreference |
object |
Preferensi keamanan. |
|
| AccessKeyPreference |
object |
Preferensi pasangan AccessKey. |
|
| AllowUserToManageAccessKeys |
boolean |
Indicates whether Resource Access Management (RAM) users can manage their AccessKey pairs. Valid values:
|
false |
| MFAPreference |
object |
Preferensi autentikasi multifaktor (MFA). |
|
| AllowUserToManageMFADevices |
boolean |
Indicates whether RAM users can manage their MFA devices. Valid values:
|
true |
| LoginProfilePreference |
object |
Preferensi logon. |
|
| EnableSaveMFATicket |
boolean |
Indicates whether RAM users can save security codes for MFA during logon. Each security code is valid for seven days. Valid values:
|
false |
| LoginSessionDuration |
integer |
The validity period of the logon session of RAM users. Unit: hours. |
6 |
| LoginNetworkMasks |
string |
The subnet mask that indicates the IP addresses from which logon to the Alibaba Cloud Management Console is allowed. This parameter applies to password-based logon and single sign-on (SSO). However, this parameter does not apply to API calls that are authenticated based on AccessKey pairs.
If you want to specify more than one subnet mask, separate the masks with semicolons (;). Example: 192.168.0.0/16;10.0.0.0/8. |
10.0.0.0/8 |
| AllowUserToChangePassword |
boolean |
Indicates whether RAM users can change their passwords. Valid values:
|
true |
| PublicKeyPreference |
object |
Preferensi kunci publik. Catatan
Parameter ini hanya valid untuk situs Jepang. |
|
| AllowUserToManagePublicKeys |
boolean |
Indicates whether RAM users can manage their public keys. Valid values:
|
false |
| RequestId |
string |
ID permintaan. |
DC1213F1-A9D5-4A01-A996-44983689126C |
Contoh
Respons sukses
JSONformat
{
"SecurityPreference": {
"AccessKeyPreference": {
"AllowUserToManageAccessKeys": false
},
"MFAPreference": {
"AllowUserToManageMFADevices": true
},
"LoginProfilePreference": {
"EnableSaveMFATicket": false,
"LoginSessionDuration": 6,
"LoginNetworkMasks": "10.0.0.0/8",
"AllowUserToChangePassword": true
},
"PublicKeyPreference": {
"AllowUserToManagePublicKeys": false
}
},
"RequestId": "DC1213F1-A9D5-4A01-A996-44983689126C"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.