Queries the triggers of 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-kmsiwlxxdcva**** |
The ID of the Container Registry instance. |
RegionId | String | Yes | cn-shanghai |
The ID of the region. |
RepoId | String | Yes | crr-tquyps22md8p**** |
The ID of the repository. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | success |
The return value. |
IsSuccess | Boolean | true |
Indicates whether the API call is successful. Valid values:
|
RequestId | String | 2CA76D52-A8F0-4D0B-854E-FBD9F6C99049 |
The ID of the request. |
Triggers | Array of Triggers |
The triggers. |
|
RepoEvent | String | BUILD_SUCCESS |
The type of event that activates the trigger. Valid values:
|
TriggerId | String | crw-vriyql9eq7ep**** |
The ID of the trigger. |
TriggerName | String | test |
The name of the trigger. |
TriggerTag | String | * |
The image tag based on which the trigger is set. |
TriggerType | String | ALL |
The type of the trigger. Valid values:
|
TriggerUrl | String | https://www.test.com |
The URL of the trigger. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListRepoTrigger
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8p****
&<Common request parameters>
Sample success responses
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>2CA76D52-A8F0-4D0B-854E-FBD9F6C99049</RequestId>
<Triggers>
<TriggerUrl>https://www.test.com</TriggerUrl>
<TriggerType>ALL</TriggerType>
<RepoEvent>BUILD_SUCCESS</RepoEvent>
<TriggerName>test</TriggerName>
<TriggerTag>*</TriggerTag>
<TriggerId>crw-vriyql9eq7ep****</TriggerId>
</Triggers>
<Code>success</Code>
JSON
format
{
"IsSuccess": true,
"RequestId": "2CA76D52-A8F0-4D0B-854E-FBD9F6C99049",
"Triggers": {
"TriggerUrl": "https://www.test.com",
"TriggerType": "ALL",
"RepoEvent": "BUILD_SUCCESS",
"TriggerName": "test",
"TriggerTag": "*",
"TriggerId": "crw-vriyql9eq7ep****"
},
"Code": "success"
}
Error codes
For a list of error codes, visit the API Error Center.