获取虚拟设备

最近更新时间:2018-03-16 15:45:55

获取虚拟设备(GetVirtualMFADevice)

描述

获取虚拟设备

请求参数
名称 类型 必须 长度限制(字符) 参数格式 描述
Action String 确定值 [a-zA-Z]+ 操作接口名,系统规定参数,取值: GetVirtualMFADevice
UserName String 最短1,最长64 ^[\w\Q+=,.@-\E]+ 用户名
错误码(调用不成功) {#错误码(调用不成功)}
错误代码 描述 HTTP 状态码 语义
MissingParameter A required parameter for the specified action is not supplied. 400 忘记输入参数,具体参数名在错误消息中说明(UserName)
InvalidParameterValue An invalid or out-of-range value was supplied for the input parameter. 400 参数格式/取值范围不对,具体参数名在错误消息中说明(UserName,Path,RealName)
EntityAlreadyExists The request was rejected because it attempted to create a resource that already exists 409 资源已经存在,具体实体名称在错误消息中说明(UserName)
LimitExceeded The request was rejected because it attempted to create resources beyond the current Ksyun account limits 409 资源数量超过限制,具体限制在错误消息中说明(User数量是100)
示例(调用成功)
请求示例
https://iam.api.ksyun.com/?Action=GetVirtualMFADevice&Version=2015-11-01&公共请求参数
返回示例
  • XML格式
<GetVirtualMFADeviceResponse>
 <GetVirtualMFADeviceResult>
 <VirtualMFADevice>

<Item>
 <SerialNumber>krn:ksc:iam::2000000719:mfa/mfa</SerialNumber>
 <EnableDate>2017-11-03T10:58:51+0800</EnableDate>
 <User>
 <UserId>t16ODMvLRsCqe9EgrM-B2g</UserId>
 <UserName>mfa</UserName>
 <Krn>krn:ksc:iam::2000000719:usermfa</Krn>
 <CreateDate>2017-11-03T10:57:53+0800</CreateDate>
 </User>
 </Item>

</VirtualMFADevice>
 <ResponseMetadata>
 <RequestId>2</RequestId>
 </ResponseMetadata>
</EnableMFADeviceResponse>

金山云,开启您的云计算之旅

注册有礼