閱讀80 返回首頁    go 群英


CreateVirtualMFADevice__用戶管理接口_RAM API文檔_訪問控製-阿裏雲

接口描述

 創建虛擬多因素認證設備

請求參數

Action

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

VirtualMFADeviceName

  • 類型:String
  • 必須:是
  • 描述:指定設備名稱, 最大長度64個字符
  • 限製:[a-zA-Z0-9-]*

返回參數

VirtualMFADevice

需要的權限

Action

ram:CreateVirtualMFADevice

Resource

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

錯誤信息

InvalidParameter.VirtualMFADeviceName.InvalidChars
  • HTTP Status:400
  • Error Message:The parameter - "VirtualMFADeviceName" contains invalid chars.
InvalidParameter.VirtualMFADeviceName.Length
  • HTTP Status:400
  • Error Message:The parameter - "VirtualMFADeviceName" beyond the length limit.
EntityAlreadyExists.VirtualMFADevice
  • HTTP Status:409
  • Error Message:The virtual mfa device does already EXIST.
LimitExceeded.VirtualMFADevice
  • HTTP Status:409
  • Error Message:The count of virtual mfa devices beyond the current limits.

操作示例

請求示例

https://ram.aliyuncs.com/?Action=CreateVirtualMFADevice
&VirtualMFADeviceName=device001
&<公共請求參數>

返回示例

XML格式

<CreateVirtualMFADeviceResponse>
    <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
    <VirtualMFADevice>
        <SerialNumber>acs:ram::1234567890123:mfa/device001</VirtualMFASerialNumber>
        <Base32StringSeed>DSF98HAD982KJA9SDFNAS9D8FU839B8ADHBGSD7A8</Base32StringSeed>
        <QRCodePNG>YXNkZmFzZDlmeW5hc2Q5OGZoODd4bXJmcThhaGU5aSBmYXNkZiBzYWRmIGFGIDRxd2VjIGEgdHEzdCAg</QRCodePNG>
    </VirtualMFADevice>
</CreateVirtualMFADeviceResponse>

JSON格式

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
    "VirtualMFADevice": {
        "SerialNumber": "acs:ram::1234567890123:mfa/device001",
        "Base32StringSeed": "DSF98HAD982KJA9SDFNAS9D8FU839B8ADHBGSD7A8",
        "QRCodePNG": "YXNkZmFzZDlmeW5hc2Q5OGZoODd4bXJmcThhaGU5aSBmYXNkZiBzYWRmIGFGIDRxd2VjIGEgdHEzdCAg"
    }
}

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

  上一篇:go ListAccessKeys__用戶管理接口_RAM API文檔_訪問控製-阿裏雲
  下一篇:go ListVirtualMFADevices__用戶管理接口_RAM API文檔_訪問控製-阿裏雲