Queries a list of triggers for a repository.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListRepoTrigger |
The operation that you want to perform. Set the value to ListRepoTrigger. |
InstanceId | String | Yes | cri-kmsiwlxxdcvaduwb |
The ID of the instance. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where the instance resides. |
RepoId | String | Yes | crr-tquyps22md8purzx |
The ID of the repository. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
Code | String | success |
The code returned for the request. |
RequestId | String | 2CA76D52-A8F0-4D0B-854E-FBD9F6C99049 |
The ID of the request. |
Triggers | Array |
A list of triggers. |
|
TriggerId | String | crw-vriyql9eq7ep8v4c |
The ID of the trigger. |
TriggerName | String | test |
The name of the trigger. |
TriggerUrl | String | https://www.test.com |
The target URL of the trigger. |
RepoEvent | String | BUILD_SUCCESS |
The event type that invokes the trigger. Valid value: BUILD_SUCCESS. |
TriggerType | String | ALL |
The type of expression used to filter image tags that can invoke the trigger. Valid values: ALL, TAG_LIST, and TAG_REG_EXP. |
TriggerTag | String | * |
The image tag that invokes the trigger. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ListRepoTrigger
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8purzx
&<Common request parameters>
Sample success responses
JSON
format
{
"IsSuccess":true,
"RequestId":"2CA76D52-A8F0-4D0B-854E-FBD9F6C99049",
"Triggers":[
{
"TriggerUrl":"https://www.test.com",
"TriggerType":"ALL",
"TriggerName":"test",
"TriggerId":"crw-vriyql9eq7ep8v4c",
"TriggerTag":""}
],
"Code":"success"
}
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>2CA76D52-A8F0-4D0B-854E-FBD9F6C99049</RequestId>
<Triggers>
<TriggerUrl>https://www.test.com</TriggerUrl>
<TriggerType>ALL</TriggerType>
<TriggerName>test</TriggerName>
<TriggerId>crw-vriyql9eq7ep8v4c</TriggerId>
<TriggerTag/>
</Triggers>
<Code>success</Code>
Error codes
For a list of error codes, visit the API Error Center.