Queries the triggers of 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 ListRepoTrigger

The operation that you want to perform. Set the value to ListRepoTrigger.

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.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful. Valid values:

  • true: successful
  • false: failed
RequestId String 2CA76D52-A8F0-4D0B-854E-FBD9F6C99049

The ID of the request.

Triggers Array of Triggers

The triggers.

RepoEvent String BUILD_SUCCESS

The type of event that activates the trigger. Valid values:

  • BUILD_SUCCESS: The trigger is activated when the build is successful.
  • BUILD_Fail: The trigger is activated when the build fails.
TriggerId String crw-vriyql9eq7ep****

The ID of the trigger.

TriggerName String test

The name of the trigger.

TriggerTag String *

The image tag based on which the trigger is set.

TriggerType String ALL

The type of the trigger. Valid values:

  • ALL: a trigger that supports both tags and regular expressions.
  • TAG_LISTTAG: a tag trigger.
  • TAG_REG_EXP: a regular expression trigger.
TriggerUrl String https://www.test.com

The URL of the trigger.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "IsSuccess": true,
    "RequestId": "2CA76D52-A8F0-4D0B-854E-FBD9F6C99049",
    "Triggers": {
        "TriggerUrl": "https://www.test.com",
        "TriggerType": "ALL",
        "RepoEvent": "BUILD_SUCCESS",
        "TriggerName": "test",
        "TriggerTag": "*",
        "TriggerId": "crw-vriyql9eq7ep****"
    "Code": "success"

Error codes

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