You need to enable JavaScript to run this app.
导航
SetSecurityConfig - 为IAM用户设置操作保护
最近更新时间:2024.09.14 14:49:29首次发布时间:2024.09.13 18:25:10

为指定IAM用户设置操作保护

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

SetSecurityConfig

要执行的操作,取值:SetSecurityConfig。

Version
String

2018-01-01

API的版本,取值:2018-01-01。

UserName
String

bob

用户名。

SafeAuthType
String

phone,email

操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。

SafeAuthExemptDuration
String

30

操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

GET /?Action=SetSecurityConfig&Version=2018-01-01&UserName=bob&SafeAuthType=phone HTTP/1.1
Host: iam.volcengineapi.com
X-Date: 20240913T072834Z
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240913/cn-beijing/iam/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f


返回示例

{
  "ResponseMetadata": {
    "RequestId": "2024091315290111212218901177209E",
    "Action": "SetSecurityConfig",
    "Version": "2018-01-01",
    "Service": "iam",
    "Region": "cn-beijing"
  }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
403
AccessDenied
User is not authorized to perform on resource

用户无操作权限。

404
UserNotExist
User does not exist

用户不存在。

500
ServiceFailure
The requested service failed due to an unknown error

内部服务错误。