Updates an image repository trigger.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:UpdateWebHook |
update |
Repository
|
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 image repository. |
crr-tquyps22md8p**** |
| TriggerName |
string |
No |
The name of the trigger. Specify either TriggerName or TriggerUrl. |
test_trigger |
| TriggerUrl |
string |
No |
The URL of the trigger. |
https://www.test.com |
| TriggerType |
string |
No |
The type of the trigger. Valid values:
|
ALL |
| TriggerTag |
string |
No |
The image tag that activates the trigger. |
master |
| TriggerId |
string |
Yes |
The ID of the trigger. |
crw-k7bdx4kt52ty**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Indicates whether the request succeeded. |
true |
| RequestId |
string |
The ID of the request. |
32535049-ED91-4589-98C0-7C88766EDF1F |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "32535049-ED91-4589-98C0-7C88766EDF1F"
}
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.