查看关联的代码托管账号列表

Method

GET

描述

查看关联的代码托管账号列表

请求参数

参数名称说明参数类型是否必填备注
ActionDescribeGitTokensstring
Version2018-03-08string

返回参数

参数名称说明参数类型是否必填备注
Accounts账号数组array详细信息见下表
参数名称说明参数类型是否必填备注
UserName用户名string
AccountType账户类型(1github/2gitlab)integer
AvatarUrl头像链接string

状态码

错误码(Code)错误提示(Message)http status code说明
ForbiddenYou have no right to access.403无权访问

请求示例

GET http://10.180.156.56:9898/ccr?Version=2018-03-08&Action=DescribeGitTokens

返回示例

{
    "RequestId": "8a722cb1-a7f9-464b-8c2b-72ec8c19f3da",
    "Accounts": [
        {
            "AccountType": 1,
            "AvatarUrl": "https://avatars3.githubusercontent.com/u/30718120?v=4",
            "UserName": "test1"
        },
        {
            "AccountType": 2,
            "AvatarUrl": "https://secure.gravatar.com/avatar/ababa02e135b3d9cbff3d003af61531e?s=80&d=identicon",
            "UserName": "test2"
        }
    ]
}