获取成员列表-DescribeMemberList

获取成员列表,限主账号使用。

Request Parameters

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID,请参考GetProjectList接口。不填写为查询所有项目。No
Offsetstring成员列表的偏移量,默认为0No
Limitstring成员列表的最大数量,默认为200No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
MemberSetarrayJSON格式的成员列表实例Yes
TotalCountint成员总数Yes

MemberInfo

Parameter nameTypeDescriptionRequired
MemberEmailstring成员邮箱Yes
MemberPhonestring成员手机Yes
MemberNamestring成员名字Yes
MemberPositionstring成员地址Yes
MemberQQstring成员QQYes
PublicKeystring公钥Yes
LastRegionIdstring最后访问的机房Yes
DefultProjectIdstring默认项目Yes
LastLoginint最后一次登录时间Yes
Createdint创建时间Yes
Statestring状态Yes
IsAdminint是否主账号(0:子账号,1:主账号)Yes
IsFinanceint是否有财务权限(0:无财务权限,1:有财务权限)Yes
ProjectSetarray项目列表Yes
ActivateFlagint激活状态(0:未激活,1:已激活)Yes
PasswordPolicyDateint密码安全策略开启时间,格式:unix timestampYes
TOTPStatusintTOTP状态(0:未开启,1:已开启)Yes

ProjectInfo

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID,请参考GetProjectList接口Yes
ProjectNamestring项目名Yes
CharacterIdstring角色IDYes

Request Example

https://api.ucloud.cn/?Action=DescribeMemberList
&ProjectId=gVhmRqSF
&Offset=0
&Limit=10

Response Example

{
    "MemberSet": [
        {
            "MemberEmail": "test1@ucloud.cn",
            "MemberPhone": "(86)12345678901",
            "MemberName": "LGwo4hy",
            "MemberPosition": "lBHo2",
            "MemberQQ": "BHow3",
            "PublicKey": "BLihwFHoiyo24ihyLIBHFOIWRgho24yosihdlh+=",
            "LastRegionId": "cn-east-04",
            "DefultProjectId": "bjwoig",
            "LastLogin": 0,
            "Created": 1524125597,
            "State": "Normal",
            "IsAdmin": 1,
            "IsFinance": 0,
            "ProjectSet": [
                {
                    "ProjectId": "fzzfcBg1",
                    "ProjectName": "gejaE45",
                    "CharacterId": "Lbhi2bw"
                }
            ],
            "ActivateFlag": 1,
            "PasswordPolicyDate": 0,
            "TOTPStatus": 0
        },
        {
            "MemberEmail": "test2@ucloud.cn",
            "MemberPhone": "(86)12345678902",
            "MemberName": "xnwo33y",
            "MemberPosition": "LBho2",
            "MemberQQ": "BHJowf",
            "PublicKey": "xLihwFHoiyo114gyLBWOHFOIWRgho24yosi23dl42BSk",
            "LastRegionId": "cn-east-03",
            "DefultProjectId": "Bliwhe",
            "LastLogin": 0,
            "Created": 1524125597,
            "State": "Normal",
            "IsAdmin": 1,
            "IsFinance": 0,
            "ProjectSet": [
                {
                    "ProjectId": "BHOWIlgho",
                    "ProjectName": "woihgoBH",
                    "CharacterId": "gwhoeigh"
                }
            ],
            "ActivateFlag": 1,
            "PasswordPolicyDate": 0,
            "TOTPStatus": 0
        }
    ],
    "TotalCount": 2,
    "RetCode": 0,
    "Action": "DescribeMemberListResponse"
}