Gunakan `GetSecurityPreference` untuk mengkueri preferensi keamanan global pengguna RAM.
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 |
Data yang dikembalikan. |
||
| SecurityPreference |
object |
Preferensi keamanan. |
|
| AccessKeyPreference |
object |
Preferensi AccessKey. |
|
| AllowUserToManageAccessKeys |
boolean |
Specifies whether Resource Access Management (RAM) users can manage their own access keys. Valid values:
|
false |
| AllowUserToManageServiceCredentials |
boolean |
false |
|
| LoginProfilePreference |
object |
Preferensi login. |
|
| EnableSaveMFATicket |
boolean |
Specifies whether to save the multi-factor authentication (MFA) verification status for seven days after a RAM user authenticates with an MFA device. Valid values:
|
false |
| LoginSessionDuration |
integer |
The login session duration for a RAM user. Unit: hours. |
6 |
| LoginNetworkMasks |
string |
The login network mask. This setting specifies the IP addresses or CIDR blocks from which RAM users can sign in to the console. |
10.0.0.0/8 |
| AllowUserToChangePassword |
boolean |
Specifies whether RAM users can change their own passwords. Valid values:
|
true |
OperationForRiskLogin
deprecated
|
string |
Specifies whether to require multi-factor authentication (MFA) for an abnormal logon. Valid values:
|
autonomous |
| MFAOperationForLogin |
string |
Specifies whether MFA is required for console logons. This parameter replaces
|
adaptive |
| AllowUserToLoginWithPasskey |
boolean |
Specifies whether RAM users can sign in with a passkey. Valid values:
|
true |
| MFAPreference |
object |
Preferensi MFA. |
|
| AllowUserToManageMFADevices |
boolean |
Specifies whether RAM users can manage their own MFA devices. Valid values:
|
false |
| VerificationPreference |
object |
Preferensi untuk metode MFA. |
|
| VerificationTypes |
array |
The MFA verification methods. |
|
|
string |
The MFA verification method. Valid values:
|
["sms","email"] |
|
| PersonalInfoPreference |
object |
Preferensi informasi pribadi. |
|
| AllowUserToManagePersonalDingTalk |
boolean |
Specifies whether RAM users can bind or unbind their personal DingTalk accounts. Valid values:
|
true |
| MaxIdleDays |
object |
Pengaturan periode idle maksimum, dalam hari. |
|
| MaxIdleDaysForUsers |
integer |
The maximum number of days that a RAM user can be idle. If a user with console login enabled is inactive for this number of consecutive days, their console logon is automatically disabled the next day. This setting does not apply to single sign-on (SSO) logons. Default value: 730. |
730 |
| MaxIdleDaysForAccessKeys |
integer |
The maximum number of days that an access key can be idle. If an access key remains unused for this number of consecutive days, it is automatically disabled the next day. Default value: 730. |
730 |
| RequestId |
string |
ID permintaan. |
30C9068D-FBAA-4998-9986-8A562FED0BC3 |
Contoh
Respons sukses
JSONformat
{
"SecurityPreference": {
"AccessKeyPreference": {
"AllowUserToManageAccessKeys": false,
"AllowUserToManageServiceCredentials": false
},
"LoginProfilePreference": {
"EnableSaveMFATicket": false,
"LoginSessionDuration": 6,
"LoginNetworkMasks": "10.0.0.0/8",
"AllowUserToChangePassword": true,
"OperationForRiskLogin": "autonomous",
"MFAOperationForLogin": "adaptive",
"AllowUserToLoginWithPasskey": true
},
"MFAPreference": {
"AllowUserToManageMFADevices": false
},
"VerificationPreference": {
"VerificationTypes": [
"[\"sms\",\"email\"]"
]
},
"PersonalInfoPreference": {
"AllowUserToManagePersonalDingTalk": true
},
"MaxIdleDays": {
"MaxIdleDaysForUsers": 730,
"MaxIdleDaysForAccessKeys": 730
}
},
"RequestId": "30C9068D-FBAA-4998-9986-8A562FED0BC3"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.