代码托管 CODEARTS REPO-示例2:通过仓库的UUID查询指定仓库详情:步骤1:查询用户的所有仓库

时间:2024-09-02 17:20:09

步骤1:查询用户的所有仓库

  • 请求示例:
    GET  https://codehub-ext.cn-north-7.mytestcloud.com/v2/projects/repositories
  • 响应示例:
    {
     "result": {
      "total": 40,
      "repositories": [
       {
        "star": false,
        "status": 5,
        "userRole": null,
        "repository_uuid": "25c88b23d4dc400fa7b3e2a152e4d53c",
        "repository_id": 522140,
        "repository_name": "1111111111111",
        "ssh_url": "git@codehub.test.com:testzxq00001/1111111111111.git",
        "https_url": "https://test.com/testzxq00001/1111111111111.git",
        "group_name": "testzxq00001",
        "web_url": "https://test.com/codehub/522140/home",
        "visibility_level": 0,
        "created_at": "2020-07-22 10:45:56",
        "updated_at": "2020-07-22 10:45:56",
        "repository_size": "0.16M",
        "lfs_size": "0.00M",
        "creator_name": "devcloud_codehub_l00314597_01",
        "domain_name": "devcloud_codehub_l00314597_01",
        "is_owner": 1,
        "iam_user_uuid": "a618e34bd5704be3ae3395dfede06041",
        "project_uuid": "a689e057c2304abfa35d4ff65630a90a",
        "project_is_deleted": "false"
       }
      ]
     },
     "status": "success"}
support.huaweicloud.com/api-codeartsrepo/codeartsrepo_05_0023.html