Updates an image trigger for a repository.

Debugging

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.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UpdateRepoTrigger
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8purzx
&TriggerId=crw-k7bdx4kt52tyeurf
&TriggerName=test_trigger
&TriggerUrl=https://www.test.com
&TriggerType=TAG_LIST
&TriggerTag=master
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RequestId":"32535049-ED91-4589-98C0-7C88766EDF1F",
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RequestId>32535049-ED91-4589-98C0-7C88766EDF1F</RequestId>
<Code>success</Code>

Error codes

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