Queries the triggers of a repository.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:ListWebHook |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-kmsiwlxxdcva**** |
| RepoId |
string |
Yes |
The ID of the repository. |
crr-tquyps22md8p**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
success |
| IsSuccess |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| RequestId |
string |
The ID of the request. |
2CA76D52-A8F0-4D0B-854E-FBD9F6C99049 |
| Triggers |
array<object> |
The triggers of the repository. |
|
|
object |
|||
| TriggerName |
string |
The name of the trigger. |
test |
| RepoEvent |
string |
The event type that activates the trigger. Valid values:
|
BUILD_SUCCESS |
| TriggerId |
string |
The ID of the trigger. |
crw-vriyql9eq7ep**** |
| TriggerUrl |
string |
The URL of the trigger. |
https://www.test.com |
| TriggerType |
string |
The trigger type. Valid values:
|
ALL |
| TriggerTag |
string |
The image tag that the trigger matches. |
* |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "2CA76D52-A8F0-4D0B-854E-FBD9F6C99049",
"Triggers": [
{
"TriggerName": "test",
"RepoEvent": "BUILD_SUCCESS",
"TriggerId": "crw-vriyql9eq7ep****",
"TriggerUrl": "https://www.test.com",
"TriggerType": "ALL",
"TriggerTag": "*"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.