获取企业成员。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetDevopsOrganizationMembers | 系统规定参数。取值:GetDevopsOrganizationMembers。 |
OrgId | String | 否 | 5ebbc0408123212b59xxxxx | 5ebbc0408123212b59xxxxx |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ErrorMsg | String | "" | 错误信息 |
RequestId | String | ASSDS-ASSASX-XSAXSA-**** | 请求id,每次请求都是唯一值,便于后续排查问题 |
Successful | Boolean | true | true 接口调用成功,false 接口调用失败 |
ErrorCode | String | "" | 错误码 |
Object | Array of member | 成员列表 |
|
String | 389444***@****.com | 邮箱 |
|
AvatarUrl | String | http://wwww.aliyun.com/***.jpg | 头像地址 |
UserId | String | 60b89a1d749ddsssfxxxxx | 用户id |
MemberId | String | 60b89a1d749ddb003fxxxxx | 企业memberId |
Role | Integer | 2 | 企业角色 2拥有者 1 管理员 0 成员 |
Name | String | 名字 | 用户名称 |
Phone | String | 123343567**** | 手机号 |
示例
请求示例
POST /?Action=GetDevopsOrganizationMembers&公共请求参数 HTTP/1.1
Content-Type:application/x-www-form-urlencoded
OrgId=5ebbc0408123212b59xxxxx
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<GetDevopsOrganizationMembersResponse>
<ErrorMsg>""</ErrorMsg>
<RequestId>ASSDS-ASSASX-XSAXSA-****</RequestId>
<Successful>true</Successful>
<ErrorCode>""</ErrorCode>
<Object>
<Email>389444***@****.com</Email>
<AvatarUrl>http://wwww.aliyun.com/***.jpg</AvatarUrl>
<UserId>60b89a1d749ddsssfxxxxx</UserId>
<MemberId>60b89a1d749ddb003fxxxxx</MemberId>
<Role>2</Role>
<Name>名字</Name>
<Phone>123343567****</Phone>
</Object>
</GetDevopsOrganizationMembersResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"ErrorMsg" : "\"\"",
"RequestId" : "ASSDS-ASSASX-XSAXSA-****",
"Successful" : true,
"ErrorCode" : "\"\"",
"Object" : [ {
"Email" : "389444***@****.com",
"AvatarUrl" : "http://wwww.aliyun.com/***.jpg",
"UserId" : "60b89a1d749ddsssfxxxxx",
"MemberId" : "60b89a1d749ddb003fxxxxx",
"Role" : 2,
"Name" : "名字",
"Phone" : "123343567****"
} ]
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidUser.UserNotInCurrentOrganization | The user does not belong to the specified organization. | 当前用户不属于该企业 |
404 | InvalidOrganization.NotFound | The specified organization doe not exist. | 企业信息有误,未找到该企业 |
404 | InvalidPipeline.NotFound | The specified pipeline does not exist. | 未找到流水线 |
404 | InvalidUser.NotFound | The specified user does not exist. | 用户数据有误,未找到该用户 |
访问错误中心查看更多错误码。