Updates an image trigger for a repository.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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-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.

TriggerId String Yes crw-k7bdx4kt52tyeurf

The ID of the trigger.

TriggerName String Yes test_trigger

The name of the trigger.

TriggerUrl String No https://www.test.com

The target URL of the trigger.

TriggerType String No TAG_LIST

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 No master

The image tag that invokes the trigger.

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 32535049-ED91-4589-98C0-7C88766EDF1F

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=UpdateRepoTrigger
&<Common request parameters>

Sample success responses

JSON format


XML format


Error codes

For a list of error codes, visit the API Error Center.