Obtaining E2E Settings in a Repository Group
Function
This API is used to obtain E2E settings in a repository group.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account root user has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
codeartsrepo:group:getGroup |
Read |
- |
- |
- |
- |
URI
GET https://{hostURL}/v4/groups/{group_id}/e2e-setting
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
group_id |
Yes |
Integer |
Definition Repository group ID, which is the numeric ID next to Group ID on the repository group homepage. Default Value N/A Value range: 1~2147483647 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition User token. Obtain one by calling the IAM API Obtaining a User Token. The value of X-Subject-Token in the response header is a token. Constraints N/A Range 1–100,000 characters. Default Value N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
e2e_policies |
E2ePolicyDto object |
Definition: E2E common settings |
|
req |
ReqSettingDto object |
Definition: CodeArts Req settings that can be integrated. |
|
link |
LinkSettingDto object |
Definition: Link settings that can be integrated. |
|
Parameter |
Type |
Description |
|---|---|---|
|
auto_extract |
Boolean |
Definition: Whether to enable automatic extraction of IDs. Value range: true: yes; false: no |
|
prefix_symbol |
String |
Definition: Set of ID prefixes for automatic extraction separated by commas (,) Value range: A prefix can contain a maximum of 200 characters. A maximum of 10 prefixes can be configured. |
|
separator |
String |
Definition: Separator for automatic extraction |
|
suffix_symbol |
String |
Definition: ID suffix of automatic extraction |
|
Parameter |
Type |
Description |
|---|---|---|
|
active |
Boolean |
Definition: Whether to enable integration with CodeArts Req. Value range: true: yes; false: no |
|
branches |
String |
Definition: Enable branch list that can be excluded and associated with specified categories. The branch refers to the target branch of the merge request. Multiple branches can be separated by commas (,) or regular expressions. Only regular expressions can be configured at the project and repository group levels. |
|
branches_type |
String |
Definition: Branch type, which can be text or regular expression. Value range: plain: text; regex: regular expression Enumeration values:
|
|
project_type |
String |
Definition: Type of the associated CodeArts Req project Value range: scrum: Scrum project; ipd: IPD project; xboard: Kanban project Enumeration values:
|
|
categories |
String |
Definition: List of association types, separated by commas (,) |
|
category_codes |
String |
Definition: List of associable type codes, which are separated by commas (,) |
|
exclude_statuses |
String |
Definition: List of excluded states, separated by commas (,) |
|
exclude_status_codes |
String |
Definition: List of excluded state codes, separated by commas (,) |
|
Parameter |
Type |
Description |
|---|---|---|
|
active |
Boolean |
Definition: Whether to enable the integration with Link. Value range: true: yes; false: no |
|
url |
String |
Definition: Interconnection address of the Link service |
|
app_auth_type |
String |
Definition: AK/SK for interconnecting with Link. ak_sk: AK and SK are used for authentication. Enumeration values:
|
|
app_ak |
String |
Definition: AK for interconnecting with Link |
|
app_sk |
String |
Definition: SK for interconnecting with Link. If the SK has been configured, the mask in the format of ************ is returned. |
|
categories |
String |
Definition: List of association types, separated by commas (,). |
|
exclude_statuses |
String |
Definition: List of excluded states, separated by commas (,). |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Definition Error code. |
|
error_msg |
String |
Definition Error message. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Definition Error code. |
|
error_msg |
String |
Definition Error message. |
Example Requests
GET https://{endpoint}/v4/groups/1/e2e-setting
Example Responses
Status code: 200
OK
{
"e2e_policies" : {
"auto_extract" : true,
"prefix_symbol" : "TicketNo",
"separator" : ";",
"suffix_symbol" : "\\\\n"
},
"req" : {
"active" : true,
"branches" : "dev",
"branches_type" : "plain",
"categories" : "Epic,Story",
"category_codes" : "5,7",
"exclude_statuses" : "New, resolved",
"exclude_status_codes" : "1,3",
"project_type" : "scrum"
},
"link" : {
"active" : true,
"url" : "https://demo.com",
"app_auth_type" : "ak_sk",
"app_ak" : "testak",
"app_sk" : "************",
"categories" : "IR",
"exclude_statuses" : "New"
}
}
Status code: 401
Unauthorized
{
"error_code" : "DEV.00000003",
"error_msg" : "Authentication information expired."
}
Status code: 403
Bad Request
{
"error_code" : "CH.004403",
"error_msg" : "Insufficient permissions. Apply for the required permissions and try again."
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
401 |
Unauthorized |
|
403 |
Bad Request |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot