GetGroupDetail

Updated at:

Queries the details of a specified code group.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /repository/groups/get_detail HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The enterprise identifier, also known as the enterprise ID. This string can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId].

6218766746d4d2ca636d0497

accessToken

string

No

The personal access token. This field is not required if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) temporary authorization.

f0b1e61db5961df5975a93f9129d2513

groupId

integer

Yes

The primary key ID of the code group.

36612

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

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

errorMessage

string

The error message.

""

errorCode

string

The error code.

Openapi.RequestError

success

boolean

Indicates whether the call was successful.

true

result

object

The returned result.

id

integer

The primary key ID of the code group.

36612

name

string

The name of the code group.

test-group-detail

path

string

The path of the code group.

test-group-detail

description

string

The description of the code group.

Specific content of the description

avatarUrl

string

The URL of the code group avatar.

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

webUrl

string

The URL for accessing the web page.

""

pathWithNamespace

string

The path, including the parent path.

codeup-test-org/test-group-detail

nameWithNamespace

string

The name, including the parent path.

codeup-test-org / test-group-detail (with spaces on both sides of the slash)

type

string

The type. Default value: Group.

Group

visibilityLevel

integer

The visibility level of the code group. Valid values:

  • 0: Private.

  • 10: Visible to the enterprise.

10

parentId

integer

The ID of the parent path.

26842

ownerId

integer

The ID of the owner.

19230

Examples

Success response

JSON format

{
  "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
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403 Forbidden.UserNotInCurrentOrganization The user is not in the organization and is not authorized to perform the operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.