閱讀161 返回首頁    go 小米 go 小米5


SetSecurityPreference__安全設置接口_RAM API文檔_訪問控製-阿裏雲

接口描述

 設置全局安全首選項

請求參數

Action

  • 類型:String
  • 必須:是
  • 描述:操作接口名,係統規定參數,取值:SetSecurityPreference

EnableSaveMFATicket

  • 類型:Boolean
  • 必須:否
  • 描述:是否允許在用戶在登錄時保存MFA驗證票據,目前票據有效期是七天

AllowUserToChangePassword

  • 類型:Boolean
  • 必須:false
  • 默認:true
  • 描述:是否允許用戶修改自己的密碼

AllowUserToManageAccessKeys

  • 類型:Boolean
  • 必須:false
  • 默認:false
  • 描述:是否允許用戶管理自己的AccessKey

AllowUserToManageMFADevices

  • 類型:Boolean
  • 必須:false
  • 默認:true
  • 描述:是否允許用戶管理自己綁定或解綁MFA設備

返回參數

SecurityPreference

需要的權限

Action

ram:SetSecurityPreference

Resource

acs:ram:*:${AccountId}:*

操作示例

請求示例

  1. https://ram.aliyuncs.com/?Action=SetSecurityPreference
  2. &EnableSaveMFATicket=true
  3. &AllowUserToChangePassword=true
  4. &AllowUserToManageAccessKeys=false
  5. &<公共請求參數>

返回示例

XML格式

  1. <SetSecurityPreferenceResponse>
  2. <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  3. <SecurityPreference>
  4. <LoginProfilePreference>
  5. <EnableSaveMFATicket>true</EnableSaveMFATicket>
  6. <AllowUserToChangePassword>true</AllowUserToChangePassword>
  7. </LoginProfilePreference>LoginProfilePreference>
  8. <AccessKeyPreference>
  9. <AllowUserToManageAccessKeys>false</AllowUserToManageAccessKeys>
  10. </AccessKeyPreference>
  11. <MFAPreference>
  12. <AllowUserToManageMFADevices>false</AllowUserToManageMFADevices>
  13. </MFAPreference>
  14. </SecurityPreference>
  15. </SetSecurityPreferenceResponse>

JSON格式

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  3. "SecurityPreference": {
  4. "LoginProfilePreference": {
  5. "EnableSaveMFATicket": true,
  6. "AllowUserToChangePassword": true
  7. },
  8. "AccessKeyPreference": {
  9. "AllowUserToManageAccessKeys": false
  10. },
  11. "MFAPreference": {
  12. "AllowUserToManageMFADevices": true
  13. }
  14. }
  15. }

最後更新:2016-11-23 17:16:10

  上一篇:go GetPasswordPolicy__安全設置接口_RAM API文檔_訪問控製-阿裏雲
  下一篇:go User__數據類型_RAM API文檔_訪問控製-阿裏雲