文档

返回结果

更新时间:

正常返回示例

以创建代码库 CreateRepository 为例:

{
    "RequestId":"D1A5E078-6893-43E9-B7B1-7146DD409207",
    "Success":true,
    "Result":{
        "HttpUrlToRepo":"https://codeup.aliyun.com/5ef0767baf80fad018f11bfa/repo_path.git",
        "Archive":false,
        "CreatedAt":"2020-08-12T20:00:04.598+08:00",
        "VisibilityLevel":"10",
        "MergeRequestEnableStatus":true,
        "BuildsEnableStatus":true,
        "SnippetsEnableStatus":true,
        "Name":"repo_name",
        "DemoProjectStatus":false,
        "TagList":[

        ],
        "Path":"repo_path",
        "PathWithNamespace":"5ef0767baf80fad018f11bfa/repo_path",
        "LastActivityAt":"2020-08-12T20:00:04.598+08:00",
        "CreatorId":15477,
        "WebUrl":"https://codeup.aliyun.com/5ef0767baf80fad018f11bfa/repo_path",
        "NameWithNamespace":"5ef0767baf80fad018f11bfa / repo_name",
        "Public":false,
        "Namespace":{
            "Path":"5ef0767baf80fad018f11bfa",
            "Description":"",
            "OwnerId":28581,
            "CreatedAt":"2020-06-22T17:14:38+08:00",
            "VisibilityLevel":"0",
            "Id":20966,
            "Public":false,
            "UpdatedAt":"2020-06-22T17:14:38+08:00",
            "Name":"5ef0767baf80fad018f11bfa"
        },
        "SshUrlToRepo":"git@codeup.aliyun.com:5ef0767baf80fad018f11bfa/repo_path.git",
        "WikiEnableStatus":true,
        "Id":97752
    }
}

异常返回示例

{
  "RequestId":"256E6D67-B27D-4250-9083-6C757EB55E4E",
  "HostId":"codeup.cn-hangzhou.aliyuncs.com",
  "Code":"SYSTEM_FORBIDDEN_ERROR",
  "Message":"禁止访问!当前企业设置了开启白名单验证,您的IP xx.xx.xx.xx不在设置白名单范围内,请联系企业管理员进行授权。",
  "Recommend":"https://error-center.aliyun.com/status/search?Keyword=SYSTEM_FORBIDDEN_ERROR&source=PopGw"
}

  • 本页导读 (0)
文档反馈