Creates a trigger for an image repository.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateWebHook |
create |
Repository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-xkx6vujuhay0**** |
| RepoId |
string |
Yes |
The image repository ID. |
crr-xwvi3osiy4ff**** |
| TriggerName |
string |
Yes |
The trigger name. |
trigger1 |
| TriggerUrl |
string |
Yes |
The trigger URL. |
http://www.mysite.com |
| TriggerType |
string |
Yes |
The trigger type. Valid values:
|
ALL |
| TriggerTag |
string |
No |
The image tag that activates the trigger. Note
|
[1] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
success |
| IsSuccess |
boolean |
Whether the request was successful. |
true |
| RequestId |
string |
The request ID. |
B79F5E0E-8770-407D-BCB6-ECF4BA9C**** |
| TriggerId |
string |
The trigger ID. |
crw-0z4pf81pgz35**** |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "B79F5E0E-8770-407D-BCB6-ECF4BA9C****",
"TriggerId": "crw-0z4pf81pgz35****"
}
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.