文档

GetGroupDetail - 查询代码组信息

更新时间:

查询指定的某个代码组信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

GET /repository/groups/get_detail

请求参数

名称类型必填描述示例值
organizationIdstring

企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】

6218766746d4d2ca636d0497
accessTokenstring

个人访问令牌。 使用阿里云 AK+SK 或使用 STS 临时授权方式不需要传该字段

f0b1e61db5961df5975a93f9129d2513
groupIdlong

代码组主键 ID

36612

返回参数

名称类型描述示例值
object

Schema of Response

requestIdstring

请求 ID

4CA06B0B-5867-5DE6-A0FA-9F39C97B524C
errorMessagestring

错误信息

""
errorCodestring

错误码

Openapi.RequestError
successboolean

调用是否成功

true
resultobject

返回结果

idlong

代码组主键 ID

36612
namestring

代码组名称

test-group-detail
pathstring

代码组路径

test-group-detail
descriptionstring

代码组的描述信息

描述信息的具体内容
avatarUrlstring

代码组头像地址

https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100
webUrlstring

页面访问时的 URL

""
pathWithNamespacestring

路径(含父路径)

codeup-test-org/test-group-detail
nameWithNamespacestring

名称(含父路径)

codeup-test-org / test-group-detail(斜杠两侧有空格)
typestring

类型,默认为 Group

Group
visibilityLevelinteger

代码组的可见性

  • 0:私有
  • 10:企业可见
10
parentIdlong

父路径 ID

26842
ownerIdlong

拥有者 ID

19230

示例

正常返回示例

JSON格式

{
  "requestId": "4CA06B0B-5867-5DE6-A0FA-9F39C97B524C",
  "errorMessage": "\"\"",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "result": {
    "id": 36612,
    "name": "test-group-detail",
    "path": "test-group-detail",
    "description": "描述信息的具体内容\n",
    "avatarUrl": "https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100",
    "webUrl": "\"\"",
    "pathWithNamespace": "codeup-test-org/test-group-detail",
    "nameWithNamespace": "codeup-test-org / test-group-detail(斜杠两侧有空格)",
    "type": "Group",
    "visibilityLevel": 10,
    "parentId": 26842,
    "ownerId": 19230
  }
}

错误码

HTTP status code错误码错误信息描述
403Forbidden.UserNotInCurrentOrganizationThe user is not in the organization and is not authorized to perform the operation.当前用户不在该企业中,无权进行操作。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈