Queries triggers for an image repository.

Request information

Request line

GET /repos/[RepoNamespace]/[RepoName]/webhooks HTTP/1.1

Request line parameters

Parameter Type Required Description
RepoNamespace String Yes The name of the namespace.
RepoName String Yes The name of the repository.

Operation-specific request headers

None.

Request body

None.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

{
    "data": {
        "webhooks":[
            {
                "webhookId": Long,
                "triggerTag": String,
                "webhookName": String,
                "triggerType": String,
                "webhookUrl": String
            }
        ]
    },
    "requestId": String
}

Response body parameters

Parameter Type Description
webhookId Long webhook ID
triggerTag String The trigger that is invoked by tag.
webhookName String The name of the webhook.
triggerType String The type of trigger.
webhookUrl String The URL of the trigger.
RequestId String The ID of the request.

Examples

Sample requests

GET /repos/[RepoNamespace]/[RepoName]/webhooks HTTP/1.1
<Common request headers>

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
    "data": {
        "webhooks":[
            {
                "webhookId": 39726,
                "triggerTag": "",
                "webhookName": "justForTest",
                "triggerType": "ALL",
                "webhookUrl": "https://www. ****.com"
            }
        ]
    },
    "requestId": "A86AB63A-758B-4FD9-9CB1-1421083A2EF5"
}