Queries the webhooks of 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
InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-tquyps22md8purzx

The ID of the repository.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The return value.

RequestId String 2CA76D52-A8F0-4D0B-854E-FBD9F6C99049

The ID of the request.

Triggers Array

The webhooks.

TriggerId String crw-vriyql9eq7ep8v4c

The ID of the webhook.

TriggerName String test

The name of the webhook.

TriggerUrl String https://www.test.com

The URL of the webhook.

RepoEvent String BUILD_SUCCESS

The event type that invokes the webhook. Valid value: BUILD_SUCCESS.

TriggerType String ALL

The type of the webhook.

TriggerTag String *

The image tag that triggers the webhook.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ListRepoTrigger
&InstanceId=cri-kmsiwlxxdcvaduwb
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8purzx
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>2CA76D52-A8F0-4D0B-854E-FBD9F6C99049</RequestId>
<Triggers>
    <TriggerUrl>https://www.test.com</TriggerUrl>
    <TriggerType>ALL</TriggerType>
    <TriggerName>test</TriggerName>
    <TriggerId>crw-vriyql9eq7ep8v4c</TriggerId>
    <TriggerTag/>
</Triggers>
<Code>success</Code>

JSON format

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

Error codes

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