ListGroupRepositories
Queries the code repositories in a code group by code group ID.
Try it now
Test
RAM authorization
Request syntax
GET /repository/groups/{groupId}/projects HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| groupId |
string |
Yes |
The primary key ID of the code group. |
35117 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The enterprise identifier, also known as the enterprise ID. It is a string value that you can obtain from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId]. |
60ee8a814690c27532d412f8 |
| accessToken |
string |
No |
The personal access token. This parameter is not required if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) for temporary authorization. |
f0b1e61db5961df5975a93f9129d2513 |
| page |
integer |
No |
The page number. Default value: 1. |
1 |
| pageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value: 20. |
10 |
| search |
string |
No |
The search keyword used to match the code group name. |
Demo |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
9293CBDA-B5BC-5AD6-A8F4-C7873AC7A3DF |
| errorMessage |
string |
The error message. |
"" |
| errorCode |
string |
The error code. |
SYSTEM_UNKNOWN_ERROR |
| success |
boolean |
Indicates whether the call was successful. |
true |
| total |
integer |
The total number of records. |
2 |
| result |
array<object> |
The list of returned results. |
|
|
object |
The returned result. |
||
| id |
integer |
The ID of the code repository. |
89616 |
| name |
string |
The name of the code repository. |
test-group-repo |
| path |
string |
The path of the code repository. |
test-group-repo |
| nameWithNamespace |
string |
The full name of the code repository, including the full group name. |
codeup-test-org / test-group-repo (with spaces on both sides of the slash) |
| pathWithNamespace |
string |
The full path of the code repository, including the full group path. |
codeup-test-org/test-group-repo |
| lastActivityAt |
string |
The time of the last activity. |
2022-03-18 14:24:54 |
| createdAt |
string |
The creation time. Format: YYYY-MM-DD HH:mm:ss. |
2022-03-18 14:24:54 |
| updatedAt |
string |
The update time. Format: YYYY-MM-DD HH:mm:ss. |
2022-03-18 14:24:54 |
| visibilityLevel |
integer |
The visibility level. Valid values:
|
0 |
| starCount |
integer |
The number of stars. |
0 |
| webUrl |
string |
The web URL of the code repository. |
"" |
| sshUrl |
string |
The SSH clone URL of the code repository. |
git@xxx:xxx/test/test.git |
| httpUrl |
string |
The HTTP clone URL of the code repository. |
https://xxx/test/test |
| description |
string |
The description of the code repository. |
Description details |
| privateFlag |
boolean |
Indicates whether the repository is private. Valid values:
|
true |
| creatorId |
integer |
The ID of the creator. |
19238 |
| issuesEnabled |
boolean |
Specifies whether the issues feature is enabled. Valid values: true and false. |
true |
| mergeRequestsEnabled |
boolean |
Specifies whether merge requests are enabled. Valid values: true and false. |
true |
| wikiEnabled |
boolean |
Specifies whether the wiki feature is enabled. Valid values: true and false. |
true |
| namespaceId |
boolean |
The ID of the group or enterprise workspace to which the repository belongs. |
100003 |
| snippetsEnabled |
boolean |
Specifies whether the snippets feature is enabled. Valid values: true and false. |
false |
| importUrl |
string |
The HTTP URL of the code repository to be imported, such as the URL of a repository on GitHub. |
http://xxx/x |
| archived |
boolean |
Indicates whether the repository is archived. |
false |
| commitCount |
integer |
The number of commits in the code repository. |
10 |
| isStared |
boolean |
Indicates whether the repository is starred. |
true |
Examples
Success response
JSON format
{
"requestId": "9293CBDA-B5BC-5AD6-A8F4-C7873AC7A3DF",
"errorMessage": "\"\"",
"errorCode": "SYSTEM_UNKNOWN_ERROR",
"success": true,
"total": 2,
"result": [
{
"id": 89616,
"name": "test-group-repo",
"path": "test-group-repo",
"nameWithNamespace": "codeup-test-org / test-group-repo(斜杠两侧有空格)",
"pathWithNamespace": "codeup-test-org/test-group-repo",
"lastActivityAt": "2022-03-18 14:24:54",
"createdAt": "2022-03-18 14:24:54",
"updatedAt": "2022-03-18 14:24:54",
"visibilityLevel": 0,
"starCount": 0,
"webUrl": "\"\"",
"sshUrl": "git@xxx:xxx/test/test.git",
"httpUrl": "https://xxx/test/test",
"description": "描述详情内容",
"privateFlag": true,
"creatorId": 19238,
"issuesEnabled": true,
"mergeRequestsEnabled": true,
"wikiEnabled": true,
"namespaceId": true,
"snippetsEnabled": false,
"importUrl": "http://xxx/x",
"archived": false,
"commitCount": 10,
"isStared": true
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.