代码仓库分支列表

Method

GET

描述

代码仓库分支列表

请求参数

参数名称说明参数类型是否必填备注
AccountTypegit账号类型,1GitHub2GitLabinteger
Refresh是否需要刷新,默认falseboolean
ActionDescribeRepositoryInfostring
Version2018-03-08string

返回参数

参数名称说明参数类型是否必填备注
UpdatedTimeGit账号更新时间long
RepositoriesRepo信息数组array详细信息见下表
参数名称说明参数类型是否必填备注
CloneUrlgitClone地址string
Branchesgit Repo分支array详细信息见下表
LastUpdatedTimeRepo最后更新时间long
Private是否是私有库boolean
IdRepoIdlong
NameGit Repo名字string
参数名称说明参数类型是否必填备注
Namestring

状态码

错误码(Code)错误提示(Message)http status code说明
MissingParameterThe required input parameter %s for processing this request is not supplied.400参数 %s 缺失
ResourceNotFound%s is not found.404%s请求的资源不存在
RemoteServerError%s remote server error.400%s服务调用失败

请求示例

GET https://open.cn-east-1.163yun.com/ccr?Version=2018-03-08&Action=DescribeRepositoryInfo&AccountType=2

返回示例

{
    "Repositories": [
        {
            "CloneUrl": "https://gitlab.com/ShadowGitHub/demo.git",
            "Branches": [
                {
                    "Name": "develop"
                },
                {
                    "Name": "master"
                },
                {
                    "Name": "patch-1"
                }
            ],
            "LastUpdatedTime": 1501228130992,
            "Private": true,
            "Id": 3799464,
            "Name": "demo"
        },
        {
            "CloneUrl": "https://gitlab.com/ShadowGitHub/repolistaaaSSS.git",
            "Branches": [
                {
                    "Name": "jjj"
                },
                {
                    "Name": "master"
                }
            ],
            "LastUpdatedTime": 1531136636321,
            "Private": true,
            "Id": 3799463,
            "Name": "repolistaaaSSS"
        }
    ],
    "RequestId": "8a722cb1-a7f9-464b-8c2b-72ec8c19f3da",
    "UpdatedTime": 1533375541452
}