Updates a trigger for a repository.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateRepoTrigger |
The operation that you want to perform. Set the value to UpdateRepoTrigger. |
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. |
TriggerId | String | Yes | crw-k7bdx4kt52ty**** |
The ID of the trigger. |
TriggerName | String | Yes | test_trigger |
The name of the trigger. |
TriggerUrl | String | No | https://www.test.com |
The URL of the trigger. |
TriggerType | String | No | TAG_LIST |
The type of the trigger. Valid values:
|
TriggerTag | String | No | master |
The image tag based on which the trigger is set. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | success |
The return value. |
IsSuccess | Boolean | true |
Indicates whether the API call is successful. |
RequestId | String | 32535049-ED91-4589-98C0-7C88766EDF1F |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateRepoTrigger
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8p****
&TriggerId=crw-k7bdx4kt52ty****
&TriggerName=test_trigger
&<Common request parameters>
Sample success responses
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>32535049-ED91-4589-98C0-7C88766EDF1F</RequestId>
<Code>success</Code>
JSON
format
{
"IsSuccess":true,
"RequestId":"32535049-ED91-4589-98C0-7C88766EDF1F",
"Code":"success"
}
Error codes
For a list of error codes, visit the API Error Center.