GetGroupByPath

Updated at:

Queries the information about a code group based on its full path.

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 /api/4/groups/find_by_path HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

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

60de7a6852743a5162b5f957

identity

string

Yes

The full path or ID of the code group.

60de7a6852743a5162b5f957/test-group

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

6177543A-8D54-5736-A93B-E0195A1512CB

success

boolean

Indicates whether the call was successful.

true

errorCode

string

The error code.

SYSTEM_UNKNOWN_ERROR

errorMessage

string

The error message.

""

result

object

The returned code group information.

id

integer

The ID of the code group, which is also the namespace ID of the code group.

30815

name

string

The name of the code group.

test-group

path

string

The path of the code group.

test-group

pathWithNamespace

string

The path of the code group, including the full parent path.

codeup-test-org/test-group

nameWithNamespace

string

The name of the code group, including the full parent path.

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

visibilityLevel

integer

The visibility level of the code group. Valid values:

  • 0: Private.

  • 10: Visible to the enterprise.

0

description

string

The description of the code group.

Description content

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.

https://example.com/org/demo-group

parentId

string

The ID of the parent path.

26842

ownerId

string

The ID of the owner.

19230

Examples

Success response

JSON format

{
  "requestId": "6177543A-8D54-5736-A93B-E0195A1512CB",
  "success": true,
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "errorMessage": "\"\"",
  "result": {
    "id": 30815,
    "name": "test-group",
    "path": "test-group",
    "pathWithNamespace": "codeup-test-org/test-group",
    "nameWithNamespace": "codeup-test-org / test-group (spaces on both sides of the slash)",
    "visibilityLevel": 0,
    "description": "Sample description",
    "avatarUrl": "https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100",
    "webUrl": "xxx",
    "parentId": "26842",
    "ownerId": "19230"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.